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

:root {
    --primary: #39FF14;
    --primary-dark: #2ACC10;
    --bg-main: #0A0E27;
    --bg-secondary: #151932;
    --bg-card: #1A1F3A;
    --border: rgba(57, 255, 20, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #8B92B8;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050810;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(57, 255, 20, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(57, 255, 20, 0.3);
    color: #fff;
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(57, 255, 20, 0.03) 0%, transparent 50%),
        linear-gradient(rgba(57, 255, 20, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    z-index: 0;
    pointer-events: none;
    animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(21, 25, 50, 0.95);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(57, 255, 20, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: -280px;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.sidebar.sidebar-open {
    left: 0;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.2);
    border-radius: 10px;
}

/* Sidebar Header - New Modern Design */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.05) 0%, transparent 100%);
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #39FF14 0%, #2ACC10 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.sidebar-logo p {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sidebar-close-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .sidebar-close-btn {
        display: flex;
    }
}

/* Menu Items */
.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    font-weight: 600;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(57, 255, 20, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: #39FF14;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.menu-item:hover {
    background: rgba(57, 255, 20, 0.12);
    color: var(--primary);
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(42, 204, 16, 0.15));
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(57, 255, 20, 0.15);
}

.menu-item.active::before {
    height: 32px;
    box-shadow: 0 0 12px var(--primary);
}

.menu-item i {
    font-size: 1.25rem;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item span {
    font-size: 0.9375rem;
}

.menu-item.logout {
    color: #FF6B6B;
    margin-top: auto;
    display: none; /* Hidden by default */
}

@media (min-width: 769px) {
    .menu-item.logout {
        display: flex; /* Only show on desktop */
    }
}

.menu-item.logout:hover {
    background: rgba(255, 107, 107, 0.12);
    color: #FF6B6B;
}

option {
    color: black;
}

/* Sidebar Footer - New Design with User Profile */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(57, 255, 20, 0.03) 100%);
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.user-profile-mini:hover {
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
}

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

.user-info-mini .username {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-mini .user-xp {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.version-info {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sidebar Toggle Button (Mobile & Desktop) */
.sidebar-toggle-btn {
    display: flex;
    position: fixed;
    top: 1.75rem;
    left: 1.75rem;
    z-index: 998;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.sidebar-toggle-btn:hover {
    background: rgba(57, 255, 20, 0.15);
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
}

.sidebar-toggle-btn:active {
    transform: scale(0.95);
}

/* Adjust toggle button position when sidebar is open on desktop */
@media (min-width: 769px) {
    .sidebar.sidebar-open ~ .dashboard-container .sidebar-toggle-btn {
        left: 295px;
    }
}

/* On mobile, position it higher to avoid header text conflict */
@media (max-width: 768px) {
    .sidebar-toggle-btn {
        top: 1rem;
        left: 1rem;
        width: 42px;
        height: 42px;
    }
}


/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    padding: 0.25rem 0.625rem;
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #FF9800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 0;
    overflow-y: auto;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust main content when sidebar is open on desktop */
@media (min-width: 769px) {
    .sidebar.sidebar-open + * .main-content,
    body:has(.sidebar.sidebar-open) .main-content {
        margin-left: 280px;
    }
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.2);
    border-radius: 10px;
}

/* Header - New Modern Design */
.header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(57, 255, 20, 0.15);
    padding: 1.5rem 2rem 1.5rem 6rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Adjust header padding when sidebar is open on desktop */
@media (min-width: 769px) {
    .sidebar.sidebar-open ~ .dashboard-container .header {
        padding-left: 2rem;
    }
}

.header-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
    letter-spacing: -0.5px;
    color: #fff;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-badge:hover::before {
    opacity: 1;
}

.stat-badge:hover {
    background: rgba(57, 255, 20, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.15);
    border-color: rgba(57, 255, 20, 0.4);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.stat-badge span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Content Area */
.content {
    padding: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(57, 255, 20, 0.15);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #39FF14, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(57, 255, 20, 0.2), 0 0 32px rgba(57, 255, 20, 0.1);
    transform: translateY(-4px);
    border-color: rgba(57, 255, 20, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.375rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    letter-spacing: -0.5px;
    color: #fff;
}

.card-header i {
    color: var(--primary);
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.5));
}

/* XP Card */
.xp-card {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15) 0%, rgba(26, 31, 58, 0.9) 100%);
    border: 1px solid rgba(57, 255, 20, 0.3);
    box-shadow: 0 8px 32px rgba(57, 255, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.xp-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.xp-value {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    letter-spacing: -0.5px;
}

.progress-bar-container {
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(57, 255, 20, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 100px 100px 0 0;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Quest & Bounty Items */
.quest-item, .bounty-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.quest-item:hover, .bounty-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border);
    transform: translateX(4px);
}

.quest-header, .bounty-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.quest-title, .bounty-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.quest-reward, .bounty-reward {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.quest-progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid rgba(57, 255, 20, 0.1);
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

/* Status Badges */
.bounty-status, .status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(57, 255, 20, 0.15);
    color: var(--primary);
}

.status-submitted {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.status-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #FF9800;
}

.status-approved {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.status-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    font-weight: 800;
    box-shadow: 0 10px 40px rgba(57, 255, 20, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 60px rgba(57, 255, 20, 0.5), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(57, 255, 20, 0.08);
    border: 2px solid rgba(57, 255, 20, 0.3);
    color: var(--primary);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(57, 255, 20, 0.25);
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border);
    transform: translateX(4px);
}

.leaderboard-item.gold {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard-item.silver {
    background: rgba(192, 192, 192, 0.08);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.leaderboard-item.bronze {
    background: rgba(205, 127, 50, 0.08);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.leaderboard-rank {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
    color: var(--primary);
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .header {
        padding: 1.75rem 2rem;
    }

    .content {
        padding: 2rem;
    }

    .header-title h2 {
        font-size: 1.75rem;
    }

    .header-title p {
        font-size: 0.9375rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .card {
        padding: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .dashboard-container {
        flex-direction: column;
        padding-bottom: 0;
    }

    /* Mobile Sidebar - inherits desktop styles */
    .sidebar.sidebar-open {
        left: 0;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1.5rem 1rem;
        width: 100%;
        height: auto;
        gap: 0.5rem;
        flex: 1;
    }

    .menu-item {
        flex: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
        margin: 0 0 0.5rem 0;
        border-radius: 14px;
        height: auto;
        position: relative;
    }

    .menu-item::before {
        display: block;
    }

    .menu-item.active {
        background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(42, 204, 16, 0.15));
    }

    .menu-item.active::after {
        display: none;
    }

    .menu-item.active i {
        color: var(--primary);
    }

    .menu-item i {
        font-size: 1.25rem;
        transition: all 0.2s ease;
    }

    .menu-item span {
        display: block;
        font-size: 0.9375rem;
        font-weight: 600;
        text-align: left;
    }

    .menu-item.active span {
        color: var(--primary);
    }

    .main-content {
        margin-left: 0;
        min-height: 100vh;
        padding-bottom: 0;
    }

    .header {
        padding: 1.25rem 1.5rem 1.25rem 4.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-title h2 {
        font-size: 1.5rem;
    }

    .header-title p {
        font-size: 0.875rem;
    }

    .header-stats {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.75rem;
    }

    .stat-badge {
        padding: 0.75rem 1.125rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .content {
        padding: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card-header h3 {
        font-size: 1.25rem;
    }

    .xp-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 1.25rem 1rem 4rem;
    }

    .header-title h2 {
        font-size: 1.375rem;
    }

    .header-title p {
        font-size: 0.8125rem;
    }

    .stat-badge {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .card-header h3 {
        font-size: 1.125rem;
    }

    .card-header i {
        font-size: 1.5rem;
    }

    .content {
        padding: 1.25rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .xp-value {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

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