:root {
            --primary-gradient: var(--rvz-gradient-primary);
            --secondary-gradient: var(--rvz-gradient-secondary);
            --header-height: 70px;
            --sidebar-width: 280px;
            --text-primary: var(--rvz-text-primary);
            --text-secondary: var(--rvz-text-secondary);
            --border-color: var(--rvz-border-subtle);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
            padding-top: var(--header-height);
            overflow-x: hidden;
        }

        body.sidebar-mobile-open {
            overflow: hidden;
        }

        .modern-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            z-index: 1050;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
        }

        .modern-header .header-left {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .modern-header .brand-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 700;
            font-size: 1.3rem;
            transition: all 0.3s ease;
        }

        .modern-header .brand-logo:hover {
            color: var(--text-primary);
            transform: scale(1.03);
        }

        .modern-header .brand-icon {
            width: 40px;
            height: 40px;
            background: var(--primary-gradient);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        .modern-header .brand-icon::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .modern-header .brand-text {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }

        .modern-header .nav-menu {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .modern-header .nav-item {
            position: relative;
        }

        .modern-header .nav-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 10px;
            transition: all 0.3s ease;
            font-weight: 500;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
        }

        .modern-header .nav-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--primary-gradient);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .modern-header .nav-link:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .modern-header .nav-link:hover::before {
            opacity: 1;
        }

        .modern-header .nav-link.active {
            color: white;
            background: var(--primary-gradient);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .modern-header .nav-menu .nav-link {
            justify-content: center;
            line-height: 1;
        }

        .modern-header .nav-menu .nav-icon {
            width: 1rem;
            height: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1rem;
        }

        .modern-header .nav-menu .nav-link span {
            display: block;
            line-height: 1;
            white-space: nowrap;
        }

        .modern-header .header-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .modern-header .header-guest-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .modern-header .header-guest-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.92rem;
        }

        .modern-header .header-guest-link:hover {
            color: #667eea;
        }

        .modern-header .header-guest-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0.72rem 1rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.25s ease;
            white-space: nowrap;
        }

        .modern-header .header-guest-btn--primary {
            background: var(--primary-gradient);
            color: #fff;
            box-shadow: 0 10px 24px rgba(102, 126, 234, 0.18);
        }

        .modern-header .header-guest-btn--primary:hover {
            color: #fff;
            transform: translateY(-2px);
        }

        .modern-header .header-guest-btn--secondary {
            border: 1px solid rgba(102, 126, 234, 0.18);
            background: rgba(102, 126, 234, 0.08);
            color: #5b62ea;
        }

        .modern-header .header-guest-btn--secondary:hover {
            color: #4653df;
            background: rgba(102, 126, 234, 0.12);
        }

        .modern-header .search-container {
            position: relative;
        }

        .modern-header .search-input {
            width: 300px;
            padding: 0.75rem 1rem 0.75rem 3rem;
            border: 1px solid var(--border-color);
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .modern-header .search-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            background: white;
        }

        .modern-header .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
        }

        .modern-header .notification-dropdown,
        .modern-header .user-dropdown {
            position: relative;
        }

        .modern-header .header-notification-desktop {
            display: flex;
            align-items: center;
            flex: 0 0 auto;
        }

        .modern-header .notification-btn {
            position: relative;
            width: 45px;
            height: 45px;
            border: none;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 12px;
            color: #667eea;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .modern-header .notification-btn:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .modern-header .notification-dot,
        .modern-header .notification-indicator {
            position: absolute;
            top: 6px;
            right: 6px;
            min-width: 18px;
            height: 18px;
            padding: 0 0.35rem;
            background: #ff4757;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 0.68rem;
            font-weight: 700;
            animation: pulse-dot 2s infinite;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
            line-height: 1;
        }

        .modern-header .notification-indicator.is-hidden {
            display: none;
        }

        @keyframes pulse-dot {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .modern-header .notification-menu {
            position: absolute;
            top: 100%;
            right: 0;
            min-width: 320px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
            margin-top: 0.5rem;
        }

        .modern-header .notification-dropdown.show .notification-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .modern-header .notification-header {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modern-header .notification-header h6 {
            margin: 0;
            font-size: 1rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        .modern-header .notification-count {
            background: #ff4757;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .modern-header .notification-count.is-empty {
            background: rgba(102, 126, 234, 0.12);
            color: #667eea;
        }

        .modern-header .notification-body {
            max-height: 300px;
            overflow-y: auto;
        }

        .modern-header .notification-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border-bottom: 1px solid rgba(102, 126, 234, 0.05);
            transition: background 0.3s ease, opacity 0.25s ease;
            text-decoration: none;
            color: inherit;
        }

        .modern-header .notification-item:hover {
            background: rgba(102, 126, 234, 0.05);
        }

        .modern-header .notification-item:last-child {
            border-bottom: none;
        }

        .modern-header .notification-icon {
            width: 35px;
            height: 35px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .modern-header .notification-icon.success {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
        }

        .modern-header .notification-icon.info {
            background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
        }

        .modern-header .notification-icon.warning {
            background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
        }

        .modern-header .notification-content {
            flex: 1;
            min-width: 0;
        }

        .modern-header .notification-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .modern-header .notification-text {
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.45;
            margin-bottom: 0.2rem;
        }

        .modern-header .notification-time {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .modern-header .notification-item.is-unread {
            background: rgba(102, 126, 234, 0.06);
        }

        .modern-header .notification-item.is-unread .notification-title {
            font-weight: 700;
        }

        .modern-header .notification-item.is-read {
            opacity: 0.72;
        }

        .modern-header .notification-empty-state {
            padding: 1.35rem 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .modern-header .notification-footer {
            padding: 1rem;
            border-top: 1px solid var(--border-color);
            text-align: center;
        }

        .modern-header .notification-see-all {
            color: #667eea;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .modern-header .notification-see-all:hover {
            color: #764ba2;
        }

        .modern-header .user-toggle {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem 1rem;
            background: rgba(102, 126, 234, 0.1);
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modern-header .user-toggle:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-2px);
        }

        .modern-header .user-avatar {
            width: 35px;
            height: 35px;
            border-radius: 10px;
            background: var(--secondary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 0.9rem;
            overflow: hidden;
            flex-shrink: 0;
        }

        .modern-header .user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0;
        }

        .modern-header .user-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .modern-header .user-level {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .modern-header .dropdown-icon {
            color: var(--text-secondary);
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }

        .modern-header .user-dropdown.show .dropdown-icon {
            transform: rotate(180deg);
        }

        .modern-header .user-dropdown .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 250px;
            max-width: 300px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 9999;
            display: block;
        }

        .modern-header .user-dropdown.show .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

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

        .modern-header .dropdown-avatar {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: var(--secondary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .modern-header .dropdown-user-info h6 {
            margin: 0;
            font-size: 1rem;
            color: var(--text-primary);
        }

        .modern-header .dropdown-user-info p {
            margin: 0;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .modern-header .dropdown-body {
            padding: 0.5rem 0;
        }

        .modern-header .dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            border: none;
            background: none;
            width: 100%;
            cursor: pointer;
            text-align: left;
        }

        .modern-header .dropdown-item:hover {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            text-decoration: none;
        }

        .modern-header .dropdown-item i {
            width: 20px;
            text-align: center;
        }

        .modern-header .dropdown-item-mobile-only {
            display: none;
        }

        .modern-header .dropdown-item-badge {
            margin-left: auto;
            min-width: 1.4rem;
            height: 1.4rem;
            padding: 0 0.35rem;
            border-radius: 999px;
            background: #ff4757;
            color: #fff;
            font-size: 0.72rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
        }

        .modern-header .dropdown-item.logout {
            color: #e53e3e;
            border-top: 1px solid var(--border-color);
            margin-top: 0.5rem;
            padding-top: 1rem;
        }

        .modern-header .dropdown-item.logout:hover {
            background: rgba(229, 62, 62, 0.1);
            color: #e53e3e;
        }

        .sidebar {
            position: fixed;
            top: var(--header-height);
            left: 0;
            width: var(--sidebar-width);
            height: calc(100vh - var(--header-height));
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-right: 1px solid var(--border-color);
            padding: 2rem 1rem;
            overflow-y: auto;
            transition: all 0.3s ease;
            z-index: 1040;
        }

        .sidebar.hidden {
            transform: translateX(-100%);
        }

        .sidebar-section {
            margin-bottom: 2rem;
        }

        .sidebar-section--mobile-primary {
            display: none;
        }

        .sidebar-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sidebar-user-profile {
            background: linear-gradient(135deg, #f8f9fc 0%, #edf2f7 100%);
            border-radius: 15px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            text-align: center;
        }

        .user-avatar-large {
            width: 60px;
            height: 60px;
            border-radius: 15px;
            background: var(--secondary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.3rem;
            margin: 0 auto 1rem;
        }

        .user-name-large {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            word-break: break-word;
        }

        .user-level-large {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .user-progress-large {
            height: 6px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 3px;
            overflow: hidden;
            margin-top: 1rem;
        }

        .sidebar-user-profile--guest {
            text-align: left;
            background:
                radial-gradient(circle at top right, rgba(255, 255, 255, 0.46), transparent 36%),
                linear-gradient(145deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.14));
        }

        .user-avatar-large--guest {
            margin: 0 0 1rem;
            background: linear-gradient(135deg, #5b67d8 0%, #7f58d4 100%);
            box-shadow: 0 12px 24px rgba(91, 103, 216, 0.16);
        }

        .sidebar-guest-actions {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.65rem;
            margin-top: 1rem;
        }

        .sidebar-guest-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            border-radius: 12px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.25s ease;
        }

        .sidebar-guest-btn--primary {
            background: var(--primary-gradient);
            color: #fff;
        }

        .sidebar-guest-btn--primary:hover {
            color: #fff;
            transform: translateY(-2px);
        }

        .sidebar-guest-btn--secondary {
            background: rgba(255, 255, 255, 0.9);
            color: #5b62ea;
            border: 1px solid rgba(102, 126, 234, 0.15);
        }

        .sidebar-guest-btn--secondary:hover {
            color: #4653df;
            transform: translateY(-2px);
        }

        .progress-fill-large {
            height: 100%;
            background: var(--primary-gradient);
            border-radius: 3px;
            transition: width 1s ease;
        }

        .sidebar-stats {
            background: linear-gradient(135deg, #f8f9fc 0%, #edf2f7 100%);
            border-radius: 15px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
        }

        .sidebar-stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .sidebar-stat-item {
            text-align: center;
        }

        .sidebar-stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #667eea;
            display: block;
        }

        .sidebar-stat-label {
            font-size: 0.7rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sidebar-nav {
            padding: 0;
        }

        .nav-item-sidebar {
            margin-bottom: 0.5rem;
        }

        .nav-link-sidebar {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.875rem 1rem;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 12px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .nav-link-sidebar:hover {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            transform: translateX(5px);
        }

        .nav-link-sidebar.active {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .nav-link-sidebar.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: rgba(255, 255, 255, 0.8);
        }

        .sidebar-nav .nav-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .sidebar-nav .nav-text {
            font-size: 0.95rem;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.3s ease;
        }

        .sidebar-support-card {
            background:
                radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 36%),
                linear-gradient(160deg, rgba(102, 126, 234, 0.18), rgba(14, 165, 233, 0.1));
            border: 1px solid rgba(102, 126, 234, 0.16);
            border-radius: 18px;
            padding: 1.15rem;
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
        }

        .sidebar-support-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.45rem 0.8rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.88);
            color: #0f6c86;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 0.9rem;
        }

        .sidebar-support-heading {
            margin: 0 0 0.6rem;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.35;
        }

        .sidebar-support-copy {
            margin: 0 0 0.95rem;
            color: var(--text-secondary);
            font-size: 0.88rem;
            line-height: 1.6;
        }

        .sidebar-support-phones {
            display: grid;
            gap: 0.75rem;
            margin-bottom: 0.85rem;
        }

        .sidebar-support-phone {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.2rem;
            padding: 0.8rem 0.9rem;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.92);
            color: var(--text-primary);
            text-align: center;
            text-decoration: none;
            border: 1px solid rgba(102, 126, 234, 0.1);
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        .sidebar-support-phone:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 24px rgba(102, 126, 234, 0.14);
            border-color: rgba(102, 126, 234, 0.28);
            color: var(--text-primary);
        }

        .sidebar-support-label {
            display: block;
            width: 100%;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #64748b;
            font-weight: 700;
            text-align: center;
        }

        .sidebar-support-phone strong {
            display: block;
            width: 100%;
            font-size: 0.98rem;
            color: #1e3a8a;
            text-align: center;
        }

        .sidebar-support-note {
            margin: 0 0 0.85rem;
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.55;
        }

        .sidebar-support-link {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            color: #5b62ea;
            font-weight: 700;
            text-decoration: none;
        }

        .sidebar-support-link:hover {
            color: #3749d7;
        }

        .main-content {
            margin-left: var(--sidebar-width);
            min-height: calc(100vh - var(--header-height));
            transition: margin-left 0.3s ease;
        }

        .main-content.expanded {
            margin-left: 0;
        }

        .modern-header .sidebar-toggle {
            position: relative;
            width: 44px;
            height: 44px;
            background: rgba(102, 126, 234, 0.12);
            border: 1px solid rgba(102, 126, 234, 0.15);
            border-radius: 14px;
            color: #667eea;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1;
            display: none;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .mobile-overlay {
            position: fixed;
            inset: var(--header-height) 0 0 0;
            background: rgba(12, 19, 46, 0.42);
            backdrop-filter: blur(2px);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
            z-index: 1035;
        }

        .mobile-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modern-header .sidebar-toggle:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
        }

        .modern-header .sidebar-toggle:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
        }

        .modern-header .sidebar-toggle.hidden {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
        }

        .modern-header .sidebar-toggle.hidden:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 24px rgba(102, 126, 234, 0.3);
        }

        @media (min-width: 769px) {
            .modern-header {
                gap: 1rem;
                padding: 0 1.5rem;
            }

            .modern-header .header-left {
                flex: 1 1 auto;
                min-width: 0;
                gap: 1.25rem;
            }

            .modern-header .nav-menu {
                flex: 1 1 auto;
                min-width: 0;
                gap: 0.25rem;
                flex-wrap: nowrap;
            }

            .modern-header .nav-item {
                flex: 0 1 auto;
                min-width: 0;
            }

            .modern-header .nav-link {
                padding: 0.75rem 0.875rem;
                white-space: nowrap;
            }

            .modern-header .header-right {
                flex: 0 1 auto;
                min-width: 0;
                gap: 0.75rem;
            }

            .modern-header .search-container {
                flex: 0 1 280px;
                min-width: 220px;
                max-width: 320px;
            }

            .modern-header .search-input {
                width: 100%;
            }

            .modern-header .user-info {
                min-width: 0;
            }

            .modern-header .user-name,
            .modern-header .user-level {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }

        @media (max-width: 991px) {
            .modern-header {
                padding: 0 1rem;
            }

            .modern-header .header-right {
                gap: 0.5rem;
            }

            .modern-header .nav-menu {
                display: none;
            }

            .modern-header .search-container {
                display: none;
            }

            .modern-header .header-notification-desktop {
                display: none;
            }

            .modern-header .header-guest-actions {
                gap: 0.5rem;
            }

            .modern-header .header-guest-link {
                display: none;
            }

            .modern-header .header-guest-btn {
                min-height: 40px;
                padding: 0.65rem 0.85rem;
                font-size: 0.88rem;
            }

            .modern-header .user-info {
                display: none;
            }

            .modern-header .user-toggle {
                padding: 0.5rem 0.75rem;
                gap: 0.5rem;
                max-width: none;
            }

            .modern-header .dropdown-item-mobile-only {
                display: flex;
            }

            .sidebar {
                width: min(var(--sidebar-width), calc(100vw - 2rem));
                transform: translateX(-100%);
                box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
            }

            .sidebar.mobile-open {
                transform: translateX(0);
            }

            .sidebar-section--mobile-primary {
                display: block;
            }

            .main-content {
                margin-left: 0;
            }

            .modern-header .sidebar-toggle {
                display: inline-flex;
            }
        }

        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }

        .slide-in {
            animation: slideIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideIn {
            from { transform: translateX(-20px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* Header account button visibility */
        .modern-header {
            overflow: visible;
        }

        .modern-header .header-right {
            margin-left: auto;
            flex-wrap: nowrap;
        }

        .modern-header .notification-dropdown,
        .modern-header .user-dropdown {
            flex: 0 0 auto;
        }

        .modern-header .user-toggle {
            min-width: 0;
            max-width: clamp(170px, 22vw, 250px);
        }

        .modern-header .user-info {
            min-width: 0;
            overflow: hidden;
        }

        .modern-header .user-name,
        .modern-header .user-level {
            width: 100%;
            max-width: 100%;
        }

        .modern-header .user-dropdown .dropdown-menu,
        .modern-header .notification-menu {
            z-index: 1085;
        }

        @media (min-width: 769px) and (max-width: 1320px) {
            .modern-header {
                padding: 0 1.25rem;
                gap: 0.75rem;
            }

            .modern-header .header-left {
                gap: 1rem;
            }

            .modern-header .nav-menu {
                gap: 0.2rem;
            }

            .modern-header .nav-link {
                padding: 0.7rem 0.72rem;
                font-size: 0.86rem;
            }

            .modern-header .search-container {
                flex: 0 1 220px;
                min-width: 160px;
                max-width: 220px;
            }

            .modern-header .user-toggle {
                padding: 0.5rem 0.8rem;
                gap: 0.6rem;
                max-width: 220px;
            }
        }

        @media (min-width: 769px) and (max-width: 1180px) {
            .modern-header .search-container {
                display: none;
            }

            .modern-header .user-toggle {
                max-width: 240px;
            }

            .modern-header .header-guest-link {
                display: none;
            }
        }

        @media (min-width: 769px) and (max-width: 1040px) {
            .modern-header .user-level {
                display: none;
            }
        }

        @media (max-width: 640px) {
            .modern-header .header-guest-btn--secondary {
                display: none;
            }
        }

        @media (max-width: 767.98px) {
            .modern-header .brand-logo {
                font-size: 1.12rem;
            }

            .modern-header .brand-icon {
                width: 38px;
                height: 38px;
                font-size: 1.05rem;
            }

            .modern-header .header-guest-btn,
            .modern-header .header-guest-link,
            .modern-header .user-toggle {
                font-size: 0.9rem;
            }

            .modern-header .dropdown-header {
                padding: 0.9rem;
            }

            .modern-header .dropdown-user-info h6 {
                font-size: 0.94rem;
            }

            .modern-header .dropdown-user-info p {
                font-size: 0.8rem;
            }

            .modern-header .dropdown-item {
                padding: 0.72rem 0.95rem;
                font-size: 0.92rem;
            }

            .modern-header .dropdown-item-badge {
                font-size: 0.68rem;
            }

            .sidebar {
                padding: 1.35rem 0.9rem;
            }

            .sidebar-section {
                margin-bottom: 1.5rem;
            }

            .sidebar-title {
                font-size: 0.76rem;
                letter-spacing: 0.08em;
                margin-bottom: 0.8rem;
            }

            .sidebar-user-profile {
                padding: 1.2rem;
            }

            .user-avatar-large {
                width: 56px;
                height: 56px;
                font-size: 1.15rem;
                margin-bottom: 0.85rem;
            }

            .user-name-large {
                font-size: 1rem;
            }

            .user-level-large {
                font-size: 0.84rem;
                margin-bottom: 0.85rem;
            }

            .sidebar-stats-grid {
                gap: 0.85rem;
            }

            .sidebar-stat-value {
                font-size: 1.35rem;
            }

            .sidebar-stat-label {
                font-size: 0.66rem;
            }

            .nav-link-sidebar {
                gap: 0.85rem;
                padding: 0.78rem 0.9rem;
            }

            .sidebar-nav .nav-icon {
                font-size: 1rem;
            }

            .sidebar-nav .nav-text {
                font-size: 0.9rem;
            }

            .sidebar-guest-btn,
            .sidebar-support-link {
                font-size: 0.9rem;
            }

            .sidebar-support-badge {
                font-size: 0.68rem;
            }

            .sidebar-support-heading {
                font-size: 0.96rem;
            }

            .sidebar-support-copy,
            .sidebar-support-note {
                font-size: 0.82rem;
            }

            .sidebar-support-label {
                font-size: 0.66rem;
            }

            .sidebar-support-phone strong {
                font-size: 0.92rem;
            }
        }

