/**
 * WinClass Arena — Full Design System
 */

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

/* ==========================================
   VARIABLES
========================================== */
:root {
    /* Colors */
    --turquoise: #46D2D2;
    --green: #4DC247;
    --blue: #41C8E5;
    --purple: #9966CC;
    --pink: #FF69B4;
    --gold: #FFD700;
    --orange: #FFA500;
    --red: #FF6B6B;
    
    /* Gradients */
    --grad-brand: linear-gradient(135deg, #46D2D2 0%, #4DC247 50%, #41C8E5 100%);
    --grad-cosmic: linear-gradient(135deg, #9966CC 0%, #46D2D2 100%);
    --grad-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --grad-hero: linear-gradient(135deg, rgba(70,210,210,0.12) 0%, rgba(77,194,71,0.08) 50%, rgba(153,102,204,0.12) 100%);
    
    /* Glows */
    --glow-turquoise: 0 0 20px rgba(70, 210, 210, 0.4);
    --glow-green: 0 0 20px rgba(77, 194, 71, 0.4);
    --glow-purple: 0 0 20px rgba(153, 102, 204, 0.4);
    
    /* Backgrounds */
    --bg-body: #f5f9fc;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    /* Text */
    --text-dark: #1a2b3c;
    --text-mid: #5a6b7c;
    --text-light: #8a9bac;
    
    /* Layout */
    --header-h: 70px;
    --sidebar-w: 240px;
    --sidebar-w-collapsed: 70px;
    
    /* Misc */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

/* ==========================================
   RESET
========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-mid);
    background: var(--bg-body);
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ==========================================
   HEADER
========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--grad-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--glow-turquoise);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.logo-sub {
    font-size: 11px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
}

/* Header Buttons */
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.header-btn i {
    width: 18px;
    height: 18px;
}

.header-btn.primary {
    background: var(--grad-brand);
    color: white;
    box-shadow: var(--glow-turquoise);
}

.header-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(70, 210, 210, 0.5);
}

.header-btn.outline {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: rgba(70, 210, 210, 0.3);
}

.header-btn.outline:hover {
    border-color: var(--turquoise);
    box-shadow: var(--glow-turquoise);
}

.header-btn.active {
    background: var(--grad-brand);
    color: white;
    box-shadow: var(--glow-turquoise);
}

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

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-white);
    border: 2px solid rgba(70, 210, 210, 0.2);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.user-btn:hover {
    border-color: var(--turquoise);
    box-shadow: var(--glow-turquoise);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--grad-cosmic);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-btn i {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    overflow: hidden;
}

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

.dropdown-label {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-body);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    transition: all var(--transition);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
}

.dropdown-item:hover {
    background: rgba(70, 210, 210, 0.1);
}

.dropdown-item.danger:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--red);
}

/* ==========================================
   SIDEBAR
========================================== */
.sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-white);
    border-right: 1px solid rgba(0,0,0,0.06);
    padding: 20px 12px;
    z-index: 90;
    transition: width var(--transition);
    overflow-x: hidden;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
}

.menu-item i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.menu-item:hover {
    background: rgba(70, 210, 210, 0.1);
    color: var(--text-dark);
}

.menu-item.active {
    background: var(--grad-brand);
    color: white;
    box-shadow: var(--glow-turquoise);
}

.menu-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 12px 0;
}

/* ==========================================
   MAIN CONTENT
========================================== */
.main-content {
    margin-left: var(--sidebar-w);
    margin-top: var(--header-h);
    padding: 28px;
    min-height: calc(100vh - var(--header-h));
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    margin-left: var(--sidebar-w);
    padding: 20px 28px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: var(--bg-white);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--turquoise);
}

/* ==========================================
   HERO
========================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
    background: var(--grad-hero);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

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

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--grad-cosmic);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    box-shadow: var(--glow-purple);
}

.hero-badge .badge-icon {
    font-size: 18px;
}

.hero-badge span {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.hero-badge .gold {
    color: var(--gold);
    font-weight: 800;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #46D2D2, #4DC247, #41C8E5, #9966CC, #46D2D2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-text {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 28px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--turquoise);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 14px;
}

/* Hero Visual */
.hero-visual {
    width: 350px;
    height: 350px;
    position: relative;
    flex-shrink: 0;
}

.orbit-system {
    width: 100%;
    height: 100%;
    position: relative;
}

.orbit {
    position: absolute;
    border: 2px dashed rgba(70, 210, 210, 0.25);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 180px; height: 180px; animation: rotate 20s linear infinite; }
.orbit-2 { width: 260px; height: 260px; animation: rotate 30s linear infinite reverse; }
.orbit-3 { width: 340px; height: 340px; animation: rotate 40s linear infinite; }

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.planet-main {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--grad-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 0 50px rgba(70, 210, 210, 0.5), inset -10px -10px 30px rgba(0,0,0,0.15);
    animation: pulse 3s ease-in-out infinite;
}

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

.planet-small {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
}

.planet-small.p1 { top: 5%; right: 15%; animation: float1 6s ease-in-out infinite; }
.planet-small.p2 { bottom: 25%; left: 5%; animation: float2 8s ease-in-out infinite; }
.planet-small.p3 { bottom: 10%; right: 10%; animation: float3 7s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 15px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -10px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, -15px); }
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-glow {
    background: var(--grad-brand);
    color: white;
    box-shadow: var(--glow-turquoise);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(70, 210, 210, 0.5);
}

.btn-glass {
    background: var(--bg-glass);
    color: var(--text-dark);
    border-color: rgba(70, 210, 210, 0.3);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    border-color: var(--turquoise);
    box-shadow: var(--glow-turquoise);
}

.btn-outline {
    background: transparent;
    color: var(--turquoise);
    border-color: var(--turquoise);
}

.btn-outline:hover {
    background: var(--turquoise);
    color: white;
}

.btn-block {
    width: 100%;
}

/* ==========================================
   SECTIONS
========================================== */
.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    color: var(--text-dark);
}

.section-header h2 i {
    width: 26px;
    height: 26px;
    color: var(--turquoise);
}

.section-badge {
    padding: 6px 16px;
    background: var(--bg-body);
    border: 1px solid rgba(70, 210, 210, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

/* ==========================================
   CARDS GRID
========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all var(--transition);
    animation: cardIn 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

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

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--glow-turquoise);
    border-color: rgba(70, 210, 210, 0.3);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--grad-cosmic);
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.card-status.live .status-dot {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: blink 1.5s ease-in-out infinite;
}

.card-status.soon .status-dot {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

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

.card-users {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.card-users i {
    width: 16px;
    height: 16px;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.card-author i {
    width: 14px;
    height: 14px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
    min-height: 44px;
}

.card-meta {
    padding: 0 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-row i {
    width: 16px;
    height: 16px;
    color: var(--turquoise);
}

.card-foot {
    padding: 16px 20px;
    background: var(--bg-body);
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* ==========================================
   EMPTY STATE
========================================== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(70, 210, 210, 0.3);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float1 3s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   ALERTS
========================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
}

.alert-close:hover {
    opacity: 1;
}

.alert-close i {
    width: 18px;
    height: 18px;
}

.alert-success {
    background: rgba(77, 194, 71, 0.12);
    border: 1px solid rgba(77, 194, 71, 0.3);
    color: #2d8a2d;
}

.alert-error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #d63939;
}

.alert-warning {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #a68a00;
}

.alert-info {
    background: rgba(70, 210, 210, 0.12);
    border: 1px solid rgba(70, 210, 210, 0.3);
    color: #1a8a8a;
}

/* ==========================================
   UTILITIES
========================================== */
.animate-fade-in {
    animation: fadeInUp 0.4s ease;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 32px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        width: 280px;
        height: 280px;
    }
    
    .planet-main {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .orbit-1 { width: 140px; height: 140px; }
    .orbit-2 { width: 200px; height: 200px; }
    .orbit-3 { width: 260px; height: 260px; }
}

@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-w-collapsed);
    }
    
    .menu-item span {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 16px;
    }
    
    .menu-item i {
        width: 26px;
        height: 26px;
    }
    
    .main-content {
        margin-left: var(--sidebar-w-collapsed);
    }
    
    .footer {
        margin-left: var(--sidebar-w-collapsed);
    }
    
    .header-btn span {
        display: none;
    }
    
    .header-btn {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 16px 8px;
    }
    
    .menu-item {
        padding: 14px;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 20px 16px;
    }
    
    .footer {
        margin-left: 60px;
        padding: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .logo-text {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .header-center {
        display: none;
    }
    
    .hero {
        padding: 32px 20px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px 12px;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}




/* ==========================================
   MOBILE BOTTOM NAVIGATION
========================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--bg-white);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
    padding: 8px 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    padding: 6px 4px;
    border-radius: var(--radius-md);
    position: relative;
}

.mobile-nav-item i {
    width: 26px;
    height: 26px;
    stroke-width: 2px;
    color: var(--text-light);
    transition: all var(--transition);
}

.mobile-nav-item span {
    transition: all var(--transition);
}

/* Active state */
.mobile-nav-item.active {
    color: var(--turquoise);
}

.mobile-nav-item.active i {
    color: var(--turquoise);
    filter: drop-shadow(0 0 8px rgba(70, 210, 210, 0.6));
    transform: scale(1.1);
}

/* Hover/tap state */
.mobile-nav-item:active {
    background: rgba(70, 210, 210, 0.1);
    transform: scale(0.95);
}

/* Special glow button for main action */
.mobile-nav-item.glow {
    position: relative;
}

.mobile-nav-item.glow::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--grad-brand);
    border-radius: 50%;
    z-index: -1;
    box-shadow: var(--glow-turquoise);
}

.mobile-nav-item.glow i {
    color: white;
    filter: none;
}

.mobile-nav-item.glow span {
    color: var(--turquoise);
    font-weight: 700;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 43, 60, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-menu-overlay.show {
    display: flex;
    opacity: 1;
}

.mobile-menu {
    width: 100%;
    max-height: 70vh;
    background: var(--bg-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.mobile-menu-overlay.show .mobile-menu {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-menu-header button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-mid);
}

.mobile-menu-header button i {
    width: 22px;
    height: 22px;
}

.mobile-menu-body {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-mid);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.mobile-menu-link i {
    width: 24px;
    height: 24px;
    color: var(--turquoise);
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(70, 210, 210, 0.1);
}

.mobile-menu-link.danger {
    color: var(--red);
}

.mobile-menu-link.danger i {
    color: var(--red);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 8px 0;
}

/* Show mobile nav on small screens */
@media (max-width: 480px) {
    .mobile-nav {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px 12px;
        padding-bottom: 100px;
    }
    
    .footer {
        margin-left: 0;
        display: none; /* Hide footer on mobile, we have bottom nav */
    }
}

/* Also show on tablets in portrait */
@media (max-width: 768px) and (max-height: 1024px) {
    .mobile-nav {
        display: flex;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding-bottom: 100px;
    }
    
    .footer {
        margin-left: 0;
        display: none;
    }
}







/* ==========================================
   AUTH PAGES
========================================== */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h) - 100px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card-wide {
    max-width: 520px;
}

.auth-header {
    text-align: center;
    padding: 32px 32px 24px;
    background: var(--grad-hero);
}

.auth-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: var(--grad-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-turquoise);
}

.auth-icon.purple {
    background: var(--grad-cosmic);
    box-shadow: var(--glow-purple);
}

.auth-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-mid);
}

.auth-tabs {
    display: flex;
    margin: 0 24px;
    margin-top: -20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--bg-white);
    transition: all var(--transition);
}

.auth-tab i {
    width: 18px;
    height: 18px;
}

.auth-tab:hover {
    color: var(--text-dark);
    background: var(--bg-body);
}

.auth-tab.active {
    color: white;
    background: var(--grad-brand);
}

.auth-form {
    padding: 24px 32px 32px;
}

.auth-footer {
    text-align: center;
    padding: 20px 32px 28px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: var(--bg-body);
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-mid);
    margin: 0;
}

.auth-footer a {
    color: var(--turquoise);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.back-link i {
    width: 18px;
    height: 18px;
}

.back-link:hover {
    color: var(--turquoise);
    background: rgba(70, 210, 210, 0.1);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label i {
    width: 16px;
    height: 16px;
    color: var(--turquoise);
}

.form-label .required {
    color: var(--red);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-body);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    background: var(--bg-white);
    border-color: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(70, 210, 210, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-mid);
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: var(--bg-body);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    position: relative;
    transition: all var(--transition);
}

.checkbox-input:checked + .checkbox-box {
    background: var(--grad-brand);
    border-color: transparent;
}

.checkbox-input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--turquoise);
    font-weight: 600;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 40px 32px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-state h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success-state p {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 43, 60, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 440px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-mid);
    transition: all var(--transition);
}

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

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 15px;
    color: var(--text-mid);
    margin-bottom: 16px;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-body);
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-card {
        border-radius: var(--radius-lg);
    }
    
    .auth-header {
        padding: 24px 20px 20px;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
    }
    
    .auth-icon i {
        width: 28px;
        height: 28px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-tabs {
        margin: 0 16px;
        margin-top: -16px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .auth-footer {
        padding: 16px 20px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}











/* Large modal */
.modal.modal-lg {
    max-width: 1100px;
}

.modal.modal-lg .modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .modal.modal-lg {
        max-width: 95vw;
    }
}