﻿:root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --warning-gradient: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
            --header-height: 70px;
            --sidebar-width: 280px;
            --sidebar-collapsed-width: 0;
            --text-primary: #2d3748;
            --text-secondary: #718096;
            --border-color: rgba(102, 126, 234, 0.1);
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

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

        /* Modern Header */
        .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;
        }

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

        .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;
        }

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

        .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;
        }

        .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); }
        }

        .brand-text {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Navigation Menu */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-item {
            position: relative;
        }

        .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;
        }

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

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

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

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

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

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

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

        /* Header Right */
        .header-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .search-container {
            position: relative;
        }

        .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;
        }

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

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

        /* Notification Dropdown */
        .notification-dropdown {
            position: relative;
        }

        .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;
        }

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

        .notification-dot,
        .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;
        }

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

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

        .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;
        }

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

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

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

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

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

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

        .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;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

        .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;
        }

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

        .notification-see-all {
            color: #667eea;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

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

        /* User Dropdown */
        .user-dropdown {
            position: relative;
        }

        .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;
        }

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

        .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;
            position: relative;
            overflow: hidden;
        }

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

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

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

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

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

        .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;
            overflow: visible;
            display: block !important;
        }

        .user-dropdown.show .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            display: block !important;
        }

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

        .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;
        }

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

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

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

        .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;
        }

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

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

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

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

        /* Sidebar Minimalist */
        .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-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* User Profile in Sidebar */
        .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;
            position: relative;
            overflow: hidden;
        }

        .user-avatar-large::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: var(--secondary-gradient);
            z-index: -1;
            border-radius: 15px;
            animation: avatar-glow 3s infinite;
        }

        .user-info-large {
            text-align: center;
        }

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

        .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;
        }

        .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 Navigation */
        .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);
        }

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

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

        /* Main Content */
        .main-content {
            margin-left: var(--sidebar-width);
            padding: 2rem;
            transition: margin-left 0.3s ease;
        }

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

        /* Dashboard Content Styles */
        .welcome-section {
            background: var(--primary-gradient);
            border-radius: 25px;
            padding: 2.5rem;
            color: white;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }

        .welcome-section::before {
            content: '';
            position: absolute;
            top: -20%;
            right: -10%;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            backdrop-filter: blur(20px);
        }

        .welcome-content {
            position: relative;
            z-index: 2;
        }

        .welcome-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .welcome-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 2rem;
            color: white;
        }

        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .action-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 1rem 1.5rem;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .action-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .dashboard-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.05);
            transition: all 0.3s ease;
        }

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

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

            .brand-logo {
                flex-shrink: 0;
            }

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

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

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

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

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

            .search-input,
            .search-input:focus {
                width: 100%;
            }

            .user-toggle {
                flex-shrink: 0;
            }

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

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

            .main-content {
                min-width: 0;
            }

            .dashboard-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .action-btn,
            .progress-item,
            .level-display,
            .xp-current,
            .metric-item {
                min-width: 0;
            }
        }

        .dashboard-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .card-icon {
            width: 50px;
            height: 50px;
            background: var(--primary-gradient);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.3rem;
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        /* Performance Stats */
        .performance-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .stat-box {
            text-align: center;
            padding: 1rem;
            background: linear-gradient(135deg, #f8f9fc 0%, #edf2f7 100%);
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

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

        .stat-box .stat-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 0.25rem;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .modern-header {
                padding: 0 1rem;
            }

            .nav-menu {
                display: none;
            }

            .search-input {
                width: 200px;
            }

            .search-input:focus {
                width: 220px;
            }

            .user-info {
                display: none;
            }

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

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

            .user-avatar-large {
                width: 50px;
                height: 50px;
                font-size: 1.1rem;
            }

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

            .user-level-large {
                font-size: 0.8rem;
            }

            .main-content {
                margin-left: 0;
                padding: 1rem;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .welcome-title {
                font-size: 2rem;
            }

            .welcome-section {
                padding: 2rem;
            }

            .performance-stats {
                grid-template-columns: 1fr;
            }
        }

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

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

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

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

        /* Toggle button for sidebar */
        /* Level Card Styles */
        .dashboard-level-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
            padding: 30px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            min-height: 420px;
            display: flex;
            flex-direction: column;
        }

        .level-card-content {
            position: relative;
            z-index: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .level-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 25px;
        }

        .level-display {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .level-hexagon {
            width: 70px;
            height: 70px;
            background: var(--primary-gradient);
            clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            animation: float-hexagon 3s ease-in-out infinite;
        }

        @keyframes float-hexagon {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-8px); }
        }

        .hexagon-inner {
            color: white;
            font-weight: 700;
            font-size: 1.5rem;
        }

        .level-info h3 {
            margin: 0;
            font-size: 1.2rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        .level-subtitle {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .status-badge {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            animation: pulse-status 2s infinite;
        }

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

        .status-dot {
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
            animation: blink-dot 1.5s infinite;
        }

        @keyframes blink-dot {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .xp-section {
            margin-bottom: 25px;
        }

        .xp-current {
            display: flex;
            align-items: center;
            gap: 15px;
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            padding: 20px;
            border-radius: 15px;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .xp-icon {
            width: 50px;
            height: 50px;
            background: var(--primary-gradient);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            animation: gem-shine 3s ease-in-out infinite;
        }

        @keyframes gem-shine {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .xp-value {
            font-size: 1.8rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: block;
        }

        .xp-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            display: block;
        }

        .circular-progress {
            margin-bottom: 25px;
            text-align: center;
        }

        .progress-ring-container {
            position: relative;
            display: inline-block;
            margin-bottom: 15px;
        }

        .progress-ring-svg {
            transform: rotate(-90deg);
        }

        .progress-ring-track {
            fill: none;
            stroke: #e2e8f0;
            stroke-width: 8;
        }

        .progress-ring-progress {
            fill: none;
            stroke-width: 8;
            stroke-linecap: round;
            transition: stroke-dashoffset 2s ease;
        }

        .level-progress-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.15rem;
            width: 110px;
            text-align: center;
        }

        .level-progress-percentage {
            font-size: 2rem;
            font-weight: 700;
            color: #667eea;
            line-height: 1;
        }

        .level-progress-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.1;
            white-space: nowrap;
        }

        .level-progress-target {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-secondary);
            line-height: 1;
        }

        .quick-metrics {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        .metric-item {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            padding: 15px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .metric-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        }

        .metric-icon {
            width: 35px;
            height: 35px;
            background: var(--primary-gradient);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
        }

        .metric-value {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            display: block;
        }

        .metric-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: block;
        }

        .next-level-preview {
            background: linear-gradient(135deg, #fef5e7 0%, #f7fafc 100%);
            padding: 15px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 15px;
            border: 1px solid rgba(237, 137, 54, 0.2);
        }

        .preview-icon {
            font-size: 1.5rem;
            color: #ed8936;
        }

        .preview-title {
            font-size: 0.9rem;
            color: var(--text-secondary);
            display: block;
        }

        .preview-target {
            font-size: 1.1rem;
            font-weight: 600;
            color: #ed8936;
            display: block;
        }

        /* Progress Overview */
        .progress-overview {
            margin-bottom: 1.5rem;
        }

        .progress-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .progress-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

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

        .progress-details h6 {
            margin: 0;
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        .progress-details span {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .progress-bar-container {
            width: 100px;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 1s ease;
        }

        /* Recent Activity */
        .recent-activity {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.05);
        }

        .activity-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(102, 126, 234, 0.05);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
        }

        .activity-content {
            flex: 1;
        }

        .activity-title {
            font-weight: 600;
            color: var(--text-primary);
            margin: 0 0 0.25rem 0;
            font-size: 0.95rem;
        }

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

        /* Achievements */
        .achievements-showcase {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .achievement-item {
            text-align: center;
            padding: 1.5rem 1rem;
            background: linear-gradient(135deg, #f8f9fc 0%, #edf2f7 100%);
            border-radius: 15px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            transition: all 0.3s ease;
        }

        .achievement-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
        }

        .achievement-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 1rem;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            background: var(--primary-gradient);
        }

        .achievement-name {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .achievement-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

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

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

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

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

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

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

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

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

            .header-left {
                gap: 1rem;
            }

            .nav-menu {
                gap: 0.2rem;
            }

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

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

            .search-input,
            .search-input:focus {
                width: 100%;
            }

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

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

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

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