/* ========= 1. DESIGN SYSTEM & CORE ========= */
:root {
    --bg: #121220;
    --card-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.24);
    --main: #ffffff;
    --accent: #8b7dff;
    --accent-glow: rgba(139, 125, 255, 0.7);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(139, 125, 255, 0.3) 0%, transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(0, 210, 255, 0.2) 0%, transparent 55%);
}


/* ========= 2. GLOBAL TEXT & INTERACTIVE HOVERS ========= */
h1,
h2,
h3 {
    transition: var(--transition-smooth);
    cursor: default;
}

h1:hover,
h2:hover {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
    transform: translateX(10px) scale(1.02);
}

p {
    transition: var(--transition-fast);
    opacity: 0.7;
}

p:hover {
    opacity: 1;
    color: white;
    text-shadow: 0 0 1px white;
}


/* ========= 3. PREMIUM SIDEBAR ========= */
.sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 90vh;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.sidebar:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(109, 93, 252, 0.2);
}

.logo {
    font-weight: 900;
    color: var(--main);
    font-size: 1.2rem;
    margin-bottom: 40px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 15px white;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-grow: 1;
    justify-content: center;
}

.icon {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--transition-fast);
    position: relative;
}

.icon:hover {
    opacity: 1;
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px var(--accent));
}

.icon.active {
    opacity: 1;
    transform: scale(1.2);
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent);
}

#vertical-clock {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    opacity: 0.3;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

#vertical-clock:hover {
    opacity: 1;
    color: var(--accent);
    letter-spacing: 4px;
}


/* ========= 4. PAGE LAYOUT ========= */
main {
    margin-left: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 100vh;
    padding: 40px clamp(24px, 6vw, 60px);
    box-sizing: border-box;
}

.page {
    display: none;
    width: 100%;
    opacity: 0;
    height: 100%;
}

.page.active {
    display: flex;
    opacity: 1;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


/* ========= 5. HOME SECTION ========= */
.linear-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    height: 100%;
    width: 100%;
}

.home-title {
    font-size: 3rem;
}

.main-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.main-img:hover {
    transform: scale(1.05) rotate(-2deg);
    border-color: var(--accent);
    box-shadow: 0 0 80px rgba(109, 93, 252, 0.3);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.glass-pill:hover {
    background: var(--accent);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px var(--accent-glow);
}


/* ========= 6. COURSES & TRACKS ========= */
.content-wrapper {
    padding: 0 clamp(20px, 5vw, 100px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    font-size: clamp(2.6rem, 6vw, 6rem);
    font-weight: 900;
    letter-spacing: clamp(-3px, -0.6vw, -5px);
    margin-bottom: 60px;
    line-height: 0.9;
    text-transform: uppercase;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    perspective: 2000px;
    overflow: visible;
    justify-items: center;
    align-items: stretch;
    padding-bottom: 40px;
    padding-top: 20px;
}

.course-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    min-height: 520px;
    height: auto;
    width: 100%;
    max-width: 380px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.card-content {
    padding: clamp(24px, 3vw, 40px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-number {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.course-main-title {
    font-size: clamp(1.6rem, 2.6vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -1px;
    transition: var(--transition-smooth);
}

.course-subtitle {
    font-size: 0.95rem;
    opacity: 0.5;
    margin-bottom: 40px;
    max-width: 80%;
}

.book-display {
    position: relative;
    margin-top: auto;
    width: 100%;
    height: clamp(200px, 22vw, 250px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: clamp(12px, 2.5vw, 28px);
    transition: var(--transition-smooth);
}

.book-display img {
    width: clamp(140px, 18vw, 180px);
    height: clamp(200px, 24vw, 240px);
    object-fit: cover;
    border-radius: 4px 15px 15px 4px;
    box-shadow: -15px 20px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: var(--transition-smooth);
}

.book-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
    transition: 0.5s;
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-20px) rotateY(-5deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.course-card:hover .course-main-title {
    color: var(--accent);
    transform: scale(1.05) translateX(10px);
}

.course-card:hover .book-display img {
    transform: rotate(-10deg) scale(1.1) translateY(-20px);
    box-shadow: -30px 40px 50px rgba(0, 0, 0, 0.7);
}

.course-card:hover .book-glow {
    opacity: 0.6;
    transform: scale(1.5);
}

.course-card::after {
    content: "TRACK";
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    opacity: 0.03;
    pointer-events: none;
}


/* ========= 7. CONTACT & MAP (FLOATING BUBBLES) ========= */
.map-wrapper {
    width: 90%;
    max-width: 1700px;
    height:80vh;             
    border-radius: 40px;
    margin: 60px auto;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.floating-bubble {
    position: absolute;
    right: 40px;
    height: 65px;
    width: 65px;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1), background 0.3s, border-color 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 50;
    overflow: hidden;
}

.phone-bubble {
    top: 40px;
    animation: float 6s ease-in-out infinite;
}

.loc-bubble {
    top: 125px;
    animation: float 6s ease-in-out infinite 2s;
}

.floating-bubble:hover {
    width: 650px;
    background: var(--accent);
    border-color: white;
}

.bubble-icon {
    min-width: 65px;
    text-align: center;
    font-size: 1.5rem;
    transition: 0.5s;
}

.floating-bubble:hover .bubble-icon {
    transform: rotate(360deg) scale(1.2);
}

.bubble-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s 0.2s, transform 0.5s 0.1s;
    white-space: nowrap;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
}

.floating-bubble:hover .bubble-content {
    opacity: 1;
    transform: translateX(0);
}

.bubble-content .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.bubble-content .detail {
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}


/* ========= 8. UI COMPONENTS ========= */
.main-input {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    outline: none;
    transition: var(--transition-fast);
}

.main-input:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.main-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.01);
}

.cta-btn {
    width: 100%;
    padding: 18px;
    background: white;
    color: black;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.cta-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}


/* ========= 9. ANIMATIONS ========= */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========= 10. PREMIUM STUDENT ID ========= */
.premium-id-container {
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.id-card-new {
    width: 420px;
    height: 260px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.logout-link-premium {
    margin-top: 40px;
    background: rgba(255, 71, 87, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 30px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    transition: 0.4s;
}

.logout-link-premium:hover {
    color: #ff4757;
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
}

.logout-link-premium:hover .btn-glow {
    opacity: 1;
}

.logout-link-premium:hover .btn-icon {
    transform: rotate(90deg);
}

.logout-link-premium:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 71, 87, 0.2);
    animation: warningPulse 1.5s infinite;
}

@keyframes warningPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.logout-link-premium:active {
    transform: scale(0.95);
    background: #ff4757;
    color: white;
}

.card-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.holographic-shimmer {
    position: absolute;
    inset: -100%;
    background: linear-gradient(45deg, transparent, rgba(109, 93, 252, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.id-card-new:hover .holographic-shimmer {
    inset: 100%;
}

.brand-logotype {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.member-tag {
    font-weight: 400;
    font-size: 0.6rem;
    opacity: 0.5;
    margin-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 10px;
}

.status-pill {
    background: #2ed573;
    color: #0b0b12;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.4);
}

.status-pill.paid {
    background: #2ed573;
    color: #0b0b12;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.4);
}

.status-pill.unpaid {
    background: #ff6b6b;
    color: #0b0b12;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.card-header,
.card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.student-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: -1px;
}

.student-uid {
    font-family: monospace;
    font-size: 0.8rem;
    opacity: 0.4;
    margin-top: 5px;
}

.qr-placeholder {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
}

.qr-inner {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.5;
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 85%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.sessions-card {
    width: min(720px, 92vw);
    margin-top: 10px;
}

.sessions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.sessions-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.student-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.meta-label {
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.65rem;
}

.meta-value {
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.meta-value.paid {
    background: rgba(46, 213, 115, 0.2);
    color: #9cffc0;
}

.meta-value.unpaid {
    background: rgba(255, 107, 107, 0.2);
    color: #ffb3b3;
}

.sessions-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.sessions-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sessions-table th,
.sessions-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sessions-table th {
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.sessions-table tr:last-child td {
    border-bottom: none;
}

.sessions-table .empty {
    text-align: center;
    opacity: 0.6;
    padding: 16px 0;
}

.stars {
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.admin-panel {
    width: min(1100px, 94vw);
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-subtitle {
    opacity: 0.7;
    max-width: 520px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.admin-actions .main-input {
    flex: 1 1 260px;
    min-width: 220px;
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: white;
}

.admin-notice {
    min-height: 18px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.admin-notice.success {
    color: #8dffb0;
}

.admin-notice.error {
    color: #ff9aa5;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
}

.admin-sessions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sessions-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-table {
    min-width: 640px;
}

.table-input,
.table-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
}

.table-input:focus,
.table-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.delete-row-btn {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.5);
    color: #ff9aa5;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.delete-row-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    color: white;
}

.admin-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.danger-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
}

.danger-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(255, 71, 87, 0.3);
}

/* ========= 11. RESPONSIVE ========= */
@media (max-width: 1200px) {
    main {
        gap: 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .course-card {
        min-height: 500px;
    }

    .course-card:hover {
        transform: translateY(-12px) rotateY(-3deg);
    }
}

@media (max-width: 980px) {
    .sidebar {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 14px 18px;
        border-radius: 0 0 28px 28px;
    }

    .logo {
        margin-bottom: 0;
        margin-right: 16px;
        font-size: 1rem;
        line-height: 1;
    }

    .nav-group {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }

    #vertical-clock {
        writing-mode: horizontal-tb;
        transform: none;
        margin-left: 16px;
    }

    main {
        margin-left: 0;
        padding-top: 120px;
    }

    .page.active {
        align-items: flex-start;
    }

    .linear-container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .text-group {
        width: 100%;
        max-width: 720px;
    }

    .features-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .features-row br {
        display: none;
    }

    .main-img {
        width: 300px;
        height: 300px;
    }

    .content-wrapper {
        height: auto;
    }

    .courses-grid {
        overflow: visible;
    }
}

@media (max-width: 700px) {
    .home-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .glass-card {
        padding: 20px;
    }

    .section-header {
        margin-bottom: 28px;
        line-height: 1;
    }

    .course-card {
        min-height: 440px;
        border-radius: 28px;
        margin-top: 20px;
    }

    .course-card:hover {
        transform: translateY(-8px);
    }

    .course-card:hover .course-main-title {
        transform: translateX(6px);
    }

    .course-card:hover .book-display img {
        transform: rotate(-5deg) scale(1.03);
    }

    .map-wrapper {
        height: 65vh;
    }

    .floating-bubble {
        right: 20px;
    }

    .floating-bubble:hover {
        width: min(90vw, 360px);
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions .cta-btn,
    .admin-actions .ghost-btn {
        width: 100%;
    }

    .sessions-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 520px) {
    main {
        padding: 96px 16px 32px;
    }

    .sidebar {
        padding: 12px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .nav-group {
        gap: 10px;
    }

    .icon {
        font-size: 1.25rem;
    }

    #vertical-clock {
        display: none;
    }

    .center-content {
        padding: 0 8px;
    }

    .main-img {
        width: 240px;
        height: 240px;
        border-radius: 28px;
    }

    .glass-card {
        width: 100%;
        max-width: 520px;
    }

    .glass-pill {
        font-size: 0.75rem;
    }

    .course-card {
        min-height: 400px;
    }

    .card-content {
        padding: 20px;
    }

    #login-box {
        width: min(92vw, 400px) !important;
    }

    .premium-id-container {
        width: 100%;
    }

    .id-card-new {
        width: min(92vw, 420px);
        height: auto;
    }

    .logout-link-premium {
        width: min(92vw, 360px);
        justify-content: center;
    }

    .map-wrapper {
        width: 100%;
        border-radius: 24px;
    }

    .floating-bubble {
        right: 12px;
        width: min(90vw, 320px);
    }

    .bubble-content {
        white-space: normal;
        opacity: 1;
        transform: none;
    }

    .map-wrapper iframe {
        border-radius: 24px;
    }

    .admin-table {
        min-width: 520px;
    }
}

@media (max-width: 420px) {
    .home-title {
        font-size: clamp(2rem, 12vw, 2.6rem);
    }

    .section-header {
        font-size: clamp(2.2rem, 9vw, 2.8rem);
    }

    .main-input,
    .cta-btn {
        padding: 14px;
    }

    .glass-card {
        padding: 18px;
    }

    .course-card {
        min-height: 360px;
    }
}
