/* navbar.css */

/* Navbar base */
.navbar {
    font-family: Arial, sans-serif;
    background-color: var(--card);
    color: var(--text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

.navbar-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Brand */
.brand-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-logo {
    height: 200px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    animation: brandEnter 600ms cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes brandEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.03);
    transition: transform 200ms ease, filter 200ms ease;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}

/* Dark theme - invert logo for better visibility */
html[data-theme='dark'] .brand-logo {
    filter: invert(1) brightness(1.1) drop-shadow(0 4px 10px rgba(255,255,255,0.1));
}

html[data-theme='dark'] .brand-logo:hover {
    filter: invert(1) brightness(1.1) drop-shadow(0 8px 16px rgba(255,255,255,0.15));
}

/* Links container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    transition: all 0.3s ease;
}

/* Theme toggle alignment */
.neo-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Links */
.nav-links a {
    text-decoration: none;
    color: var(--link);
    padding: 8px 14px;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: 600;
    position: relative;
}

.nav-links a:hover {
    color: var(--link-hover);
}

/* Underline animation for all nav links */
.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Dashboard link special color */
.nav-links a[href*="dashboard"] {
    color: var(--primary);
}

.nav-links a[href*="dashboard"]:hover {
    color: var(--primary-2);
}

/* Dark mode overrides for higher contrast */
html[data-theme='dark'] .nav-links a { color: #ffffff; }
html[data-theme='dark'] .nav-links a:hover { color: #cbd5e1; }
html[data-theme='dark'] .brand a { color: #ffffff; }

/* Dark mode overrides for Dashboard link */
html[data-theme='dark'] .nav-links a[href*="dashboard"] { 
    color: var(--primary); 
}
html[data-theme='dark'] .nav-links a[href*="dashboard"]:hover { 
    color: var(--primary-2); 
}

/* CTA buttons in dark mode */
html[data-theme='dark'] .btn.enroll { background-color: var(--primary); color: #ffffff; }
html[data-theme='dark'] .btn.enroll:hover { background-color: #5258f2; }
html[data-theme='dark'] .btn.login { border-color: #ffffff; color: #ffffff; }
html[data-theme='dark'] .btn.login:hover { background-color: rgba(255,255,255,0.08); }

/* Buttons */
.btn.enroll {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #ffffff;
    border-radius: 9999px;
    padding: 10px 18px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

.btn.enroll:hover {
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.28);
    transform: translateY(-2px);
}

.btn.login {
    border: 2px solid var(--link);
    color: var(--link);
    border-radius: 9999px;
    padding: 10px 18px;
}

.btn.login:hover {
    background-color: var(--surface);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

/* User Info Section */
.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-greeting {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.user-greeting strong {
    color: var(--primary);
    font-weight: 600;
}

.btn.logout {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

.btn.logout:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

/* Dark mode overrides for user info */
html[data-theme='dark'] .user-greeting { color: #ffffff; }
html[data-theme='dark'] .user-greeting strong { color: var(--primary); }
html[data-theme='dark'] .btn.logout { 
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
}
html[data-theme='dark'] .btn.logout:hover { 
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-toggle:hover {
    background: var(--card);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-info {
    display: none; /* Hide name on desktop, show only avatar */
}

.profile-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--muted);
    transition: transform 0.3s ease;
}

.profile-toggle:hover .dropdown-arrow {
    transform: translateY(2px);
}

/* Profile Menu */
.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 320px;
    max-width: 360px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-info {
    flex: 1;
    min-width: 0;
}

.menu-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-email {
    font-size: 0.85rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: var(--surface);
    color: var(--primary);
}

.menu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.menu-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-item {
    color: #dc2626;
}

.logout-item:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

/* Subscription Status Section */
.subscription-status {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
}

.status-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-info {
    flex: 1;
}

.status-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 0.2rem;
}

.status-expiry {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

/* Dark theme for subscription status */
html[data-theme='dark'] .subscription-status {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.08));
}

html[data-theme='dark'] .status-card {
    border-color: rgba(245, 158, 11, 0.4);
}

/* Dark theme overrides */
html[data-theme='dark'] .profile-toggle {
    background: var(--surface);
    border-color: var(--border);
}

html[data-theme='dark'] .profile-toggle:hover {
    background: var(--card);
    border-color: var(--primary);
}

html[data-theme='dark'] .profile-menu {
    background: var(--card);
    border-color: var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .menu-item:hover {
    background: var(--surface);
}

/* Custom Scrollbar for mobile menu */
.nav-links::-webkit-scrollbar {
    width: 6px;
}

.nav-links::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 10px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.nav-links::-webkit-scrollbar-thumb:hover {
    background: var(--primary-2);
}

.profile-menu::-webkit-scrollbar {
    width: 6px;
}

.profile-menu::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 10px;
}

.profile-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.profile-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

.mobile-menu-btn button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-menu-btn button:hover {
    background: var(--surface);
    transform: scale(1.05);
}

.mobile-menu-btn button:active {
    transform: scale(0.95);
}

.hamburger {
    display: inline;
    transition: opacity 0.2s ease;
}

.close-icon {
    display: none;
    transition: opacity 0.2s ease;
}

.show {
    display: inline;
}

.hide {
    display: none;
}

/* Responsive for tablets and mobile */
@media screen and (max-width: 1024px) {
    .navbar{
        z-index: 2000;
    }
    .nav-links {
        z-index: 1999;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        background-color: var(--card);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 16px 24px;
        overflow-y: auto;
        overflow-x: hidden;
        
        /* Smooth slide-in animation */
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s ease,
                    visibility 0.4s;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 2001;
    }
    
    /* Regular nav links should be full width with background */
    .nav-links a:not(.btn) {
        width: 100%;
        padding: 0.6rem 1rem;
        background-color: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        margin-bottom: 0.15rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 0.95rem;
    }
    
    /* CTA buttons should remain auto-width and centered */
    .nav-links .btn.enroll,
    .nav-links .btn.login {
        width: auto !important;
        margin: 0.5rem 0;
    }

    /* Mobile user info styles */
    .user-info {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 16px 0;
        border-top: 1px solid var(--border);
        margin-top: 8px;
    }

    .user-greeting {
        text-align: center;
        font-size: 16px;
    }

    .btn.logout {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    /* Theme toggle on mobile */
    .neo-toggle-container {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0.5rem 0;
        margin: 0.5rem 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    /* Profile dropdown mobile styles */
    .profile-dropdown {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: none;
    }

    .profile-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
    }
    
    .profile-info {
        display: flex; /* Show name on mobile */
    }

    .profile-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid var(--border);
    }

    .profile-menu.active {
        display: block;
    }
}

/* Fully mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        margin: 0px;
        background-color: var(--card);
        min-height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        justify-content: flex-start;
        align-items: stretch;
        gap: 0 !important;
        padding: 1rem 1rem 1rem 1rem !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links a:not(.btn) {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 10px;
        margin-bottom: 0.4rem;
        background-color: var(--surface);
        border: 1px solid var(--border);
        width: 100%;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }
    
    .nav-links a:not(.btn):hover {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateX(4px);
    }
    
    /* CTA buttons should remain auto-width and centered */
    .nav-links .btn.enroll,
    .nav-links .btn.login {
        width: auto !important;
        padding: 0.75rem 1.8rem !important;
        margin: 0.4rem 0 !important;
        font-size: 0.95rem !important;
    }
    
    .user-info {
        gap: 0.75rem !important;
        padding: 1rem !important;
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border);
    }
    
    .btn.logout {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        width: 100%;
        max-width: 200px;
        align-self: center;
    }
    
    .profile-dropdown {
        margin-top: 0 !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0 !important;
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        border-top: 1px solid var(--border);
    }
    
    .profile-toggle {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .profile-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: 1px solid var(--border);
        border-radius: 12px;
        max-height: none;
        overflow: visible;
    }
    
    .profile-menu.active {
        display: block;
    }
    
    /* Reduce subscription status on mobile */
    .subscription-status {
        padding: 0.6rem 0.8rem !important;
    }
    
    .status-card {
        padding: 0.6rem !important;
        gap: 0.6rem !important;
    }
    
    .status-icon {
        font-size: 1.3rem !important;
    }
    
    .status-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    .status-expiry {
        font-size: 0.75rem !important;
    }
    
    /* Menu items */
    .menu-item {
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .menu-header {
        padding: 1rem !important;
    }
    
    .menu-divider {
        margin: 0.5rem 0 !important;
    }
    
    /* Logout item */
    .logout-item {
        background-color: rgba(220, 38, 38, 0.1);
        color: #dc2626;
        border-radius: 8px;
        margin-top: 0.3rem;
    }
    
    .logout-item:hover {
        background-color: rgba(220, 38, 38, 0.2);
    }
    
    /* Neo toggle in mobile */
    .neo-toggle-container {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }
}

/* iPhone 12 Pro and smaller screens */
@media screen and (max-width: 390px) {
    .nav-links {
        gap: 0 !important;
        padding: 0.75rem 0.75rem 0.75rem 0.75rem !important;
        min-height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        align-items: stretch;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-links a:not(.btn) {
        padding: 0.7rem 0.9rem !important;
        font-size: 0.9rem !important;
        line-height: 1.15 !important;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 0.35rem;
        border-radius: 10px;
    }
    
    /* CTA buttons should remain auto-width and centered */
    .nav-links .btn.enroll,
    .nav-links .btn.login {
        width: auto !important;
        padding: 0.7rem 1.6rem !important;
        margin: 0.35rem 0 !important;
        font-size: 0.9rem !important;
    }
    
    .user-info {
        gap: 0.7rem !important;
        padding: 0.85rem !important;
        margin-top: 0.5rem;
    }
    
    .btn.logout {
        padding: 0.7rem 1.3rem !important;
        font-size: 0.9rem !important;
    }
    
    .profile-dropdown {
        margin-top: 0 !important;
        padding-top: 0.7rem !important;
        padding-bottom: 0 !important;
        width: 100%;
    }
    
    .profile-toggle {
        width: 100%;
        margin-bottom: 0.4rem;
    }
    
    .profile-menu {
        width: 100%;
        max-height: none;
    }
    
    /* Menu items on small screens */
    .menu-item {
        padding: 0.65rem 0.9rem !important;
        gap: 0.6rem !important;
        font-size: 0.9rem !important;
    }
    
    .menu-icon {
        font-size: 1rem !important;
        width: 20px !important;
    }
    
    .menu-text {
        font-size: 0.9rem !important;
    }
    
    .menu-header {
        padding: 0.85rem !important;
        gap: 0.7rem !important;
    }
    
    .menu-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    
    .menu-name {
        font-size: 0.95rem !important;
    }
    
    .menu-email {
        font-size: 0.85rem !important;
    }
    
    .menu-divider {
        margin: 0.4rem 0 !important;
    }
    
    .subscription-status {
        padding: 0.55rem 0.75rem !important;
    }
    
    .status-card {
        padding: 0.55rem !important;
    }
    
    .neo-toggle-container {
        padding: 0.85rem 0;
    }
}

/* ======================================
   MOBILE MENU OVERLAY (Like Instructor)
   ====================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90%;
    height: 100%;
    background: var(--card, white);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

html[data-theme="dark"] .mobile-menu {
    background: #1f2937;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface, #f9fafb);
    position: sticky;
    top: 0;
    z-index: 10;
}

html[data-theme="dark"] .mobile-menu-header {
    border-bottom-color: #374151;
    background: #111827;
}

.mobile-brand-logo {
    height: 50px;
    width: auto;
}

html[data-theme='dark'] .mobile-brand-logo {
    filter: invert(1) brightness(1.1);
}

.mobile-menu-close {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--surface, #f8fafc);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text, #4a5568);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--border, #e2e8f0);
    color: var(--text, #2d3748);
    transform: rotate(90deg);
}

html[data-theme="dark"] .mobile-menu-close {
    background: #374151;
    color: #d1d5db;
}

html[data-theme="dark"] .mobile-menu-close:hover {
    background: #4b5563;
    color: #f9fafb;
}

.mobile-profile {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface, #f9fafb);
}

html[data-theme="dark"] .mobile-profile {
    border-bottom-color: #374151;
    background: #111827;
}

.mobile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-profile-info {
    flex: 1;
    min-width: 0;
}

.mobile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #2d3748);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-email {
    font-size: 0.85rem;
    color: var(--text-secondary, #718096);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="dark"] .mobile-name {
    color: #f9fafb;
}

html[data-theme="dark"] .mobile-email {
    color: #9ca3af;
}

.mobile-menu-items {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.5rem;
    color: var(--text, #4a5568);
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
    background: var(--surface, #f8fafc);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 2rem;
}

.mobile-menu-item:active {
    transform: scale(0.98);
}

.mobile-menu-item .menu-icon {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-item .menu-text {
    flex: 1;
}

.mobile-menu-item.logout-item {
    color: #e53e3e;
    margin-top: 0.5rem;
}

.mobile-menu-item.logout-item:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #c53030;
    border-left-color: #e53e3e;
}

html[data-theme="dark"] .mobile-menu-item {
    color: #d1d5db;
}

html[data-theme="dark"] .mobile-menu-item:hover {
    background: #111827;
    color: var(--primary);
}

html[data-theme="dark"] .mobile-menu-item.logout-item:hover {
    background: rgba(229, 62, 62, 0.15);
    color: #fc8181;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border, #e2e8f0);
    margin: 0.75rem 1.5rem;
}

html[data-theme="dark"] .mobile-menu-divider {
    background: #374151;
}

.mobile-subscription-status {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    margin: 1rem 1.5rem;
}

.mobile-subscription-status .status-icon {
    font-size: 1.5rem;
}

.mobile-subscription-status .status-info {
    flex: 1;
}

.mobile-subscription-status .status-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.mobile-subscription-status .status-expiry {
    font-size: 0.8rem;
    color: var(--text-secondary, #718096);
}

.mobile-menu-cta {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-cta-btn {
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-cta-btn.enroll {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mobile-cta-btn.enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.mobile-cta-btn.login {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.mobile-cta-btn.login:hover {
    background: var(--surface);
}

.mobile-theme-toggle {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.mobile-theme-toggle .theme-label {
    font-weight: 600;
    color: var(--text, #2d3748);
    font-size: 0.95rem;
}

html[data-theme="dark"] .mobile-theme-toggle .theme-label {
    color: #f9fafb;
}

.mobile-neo-toggle {
    transform: scale(0.9);
}

/* Hamburger button styling */
.hamburger-line {
    width: 26px;
    height: 3px;
    background: var(--text, #4a5568);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    margin: 4px 0;
}

#menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

html[data-theme="dark"] .hamburger-line {
    background: #f9fafb;
}

/* Show hamburger on mobile */
@media (max-width: 1024px) {
    #menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: none !important;
    }
}

/* Hide mobile overlay on desktop */
@media (min-width: 1025px) {
    .mobile-menu-overlay {
        display: none;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}