/* ========================================
   NEXUS.MC — Professional Minecraft Server
   Complete Design System
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --bg-deep: #06060e;
    --bg-card: rgba(15, 10, 35, 0.4);
    --bg-card-hover: rgba(20, 15, 45, 0.6);
    --bg-card-solid: rgba(15, 10, 35, 0.85);
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-dark: #6D28D9;
    --accent-glow: #9333EA;
    --secondary: #6366F1;
    --success: #34D399;
    --error: #F87171;
    --warning: #FBBF24;
    --text-primary: #E8E0F0;
    --text-secondary: #8B7FA8;
    --text-muted: #6B5B80;
    --border: rgba(139, 92, 246, 0.12);
    --border-hover: rgba(139, 92, 246, 0.3);
    --border-glow: rgba(139, 92, 246, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C3AED, #A78BFA);
    --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(6,6,14,0.8) 100%);
    --gradient-card: linear-gradient(135deg, rgba(15,10,35,0.6), rgba(25,15,50,0.4));
    --gradient-glow: radial-gradient(ellipse at center, rgba(139,92,246,0.15) 0%, transparent 70%);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-display: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}


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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #06060e, #1a0a3a, #060618, #150030);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: var(--accent-light); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #c4b5fd; }


/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

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

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

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

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.2), 0 0 40px rgba(139,92,246,0.1); }
    50% { box-shadow: 0 0 30px rgba(139,92,246,0.4), 0 0 60px rgba(139,92,246,0.15); }
}


/* ===== BACKGROUND EFFECTS ===== */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nebula {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.nebula-1 {
    width: 700px; height: 700px;
    top: -250px; right: -200px;
    background: radial-gradient(circle, #7C3AED, #3a1a5a);
}

.nebula-2 {
    width: 600px; height: 600px;
    bottom: -300px; left: -200px;
    background: radial-gradient(circle, #6366F1, #1a0a3a);
}

.nebula-3 {
    width: 500px; height: 500px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #9333EA, transparent);
    opacity: 0.05;
}


/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(6, 6, 14, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    padding: 10px 40px;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #c4b5fd, #8B5CF6, #c4b5fd);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite;
    letter-spacing: 3px;
    text-decoration: none;
}

.logo span {
    font-weight: 300;
    -webkit-text-fill-color: rgba(139, 92, 246, 0.4);
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: rgba(10, 6, 20, 0.4);
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: var(--error);
    animation: none;
}

.status-text { color: var(--success); font-weight: 500; }
.status-text.offline { color: var(--error); }

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    white-space: nowrap;
}

.btn-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-light);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--border-glow);
    transform: scale(1.03);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 14, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.nav-mobile.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.nav-mobile a, .nav-mobile button {
    color: var(--text-secondary);
    font-size: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
}

.nav-mobile a:hover, .nav-mobile button:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}


/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    background: linear-gradient(135deg, #e0d0ff, #8B5CF6, #e0d0ff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.3);
}

.hero h1 .hero-dot {
    -webkit-text-fill-color: rgba(139, 92, 246, 0.35);
    font-weight: 400;
    font-size: 0.5em;
}

.hero .subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.server-ip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: clamp(16px, 2vw, 20px);
    color: var(--accent-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
}

.server-ip:hover {
    border-color: var(--border-hover);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    transform: scale(1.02);
}

.server-ip .copy-icon {
    opacity: 0.4;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.server-ip:hover .copy-icon { opacity: 1; }

.copied-tooltip {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
    font-size: 13px;
    font-family: var(--font-body);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(52, 211, 153, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.copied-tooltip.show { opacity: 1; }

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.discount-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: var(--space-lg);
    line-height: 1.5;
    max-width: 500px;
}

.discount-desc strong { color: var(--success); font-size: 15px; }
.discount-desc span { color: var(--text-muted); font-size: 13px; }

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounceDown 2s ease infinite;
}


/* ===== GLOBAL BUTTONS ===== */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25), 0 0 40px rgba(139, 92, 246, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.15);
}

.btn-primary:active { transform: scale(0.98); }

.btn-primary:disabled, .btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-secondary);
    border: none;
    font-size: 14px;
    padding: 12px 24px;
}

.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
}

.btn-season.active {
    background: linear-gradient(135deg, #059669, #34D399) !important;
    cursor: default;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.25);
}
.btn-season.active:hover { transform: none; }

.btn-logout {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.15);
    width: 100%;
    margin-top: var(--space-md);
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.3);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.15);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    margin-left: 8px;
}

.btn-small:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--border-hover);
}


/* ===== STATS STRIP ===== */
.stats-strip {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: var(--space-2xl) 20px;
    background: rgba(10, 6, 25, 0.5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

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

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}


/* ===== SECTION COMMON ===== */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}


/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-4xl) 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.1);
}

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

.card-icon {
    font-size: 40px;
    display: block;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ===== SEASON SECTION ===== */
.season-section {
    padding: var(--space-4xl) 20px;
    position: relative;
    z-index: 1;
}

.season-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.season-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: var(--space-xl) 0;
}

.timer-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    min-width: 85px;
    text-align: center;
    transition: all 0.3s ease;
}

.timer-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.timer-item .number {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-light);
    display: block;
    line-height: 1.2;
}

.timer-item .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
    display: block;
}

.season-status {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

.promo-section {
    margin-top: var(--space-xl);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.promo-title {
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.promo-form {
    display: flex;
    gap: 8px;
}

.promo-form input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: rgba(10, 5, 25, 0.6);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.promo-form input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.promo-form input[type="text"]::placeholder { color: var(--text-muted); }
.promo-form input[type="text"]:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-promo {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-promo:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
.btn-promo:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.promo-message {
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    text-align: center;
}

.promo-message.success {
    background: rgba(52, 211, 153, 0.08);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.promo-message.error {
    background: rgba(248, 113, 113, 0.08);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.season-legal {
    margin-top: var(--space-lg);
    color: var(--text-muted);
    font-size: 13px;
}

.season-legal a {
    color: var(--accent-light);
    text-decoration: underline;
}


/* ===== PROFILE SECTION ===== */
.profile-section {
    padding: var(--space-4xl) 20px;
    position: relative;
    z-index: 1;
}

.profile-content {
    max-width: 520px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-field {
    margin: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.profile-field .value {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 500;
    word-break: break-all;
    display: flex;
    align-items: center;
}

.profile-row {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-success { color: var(--success); font-weight: 600; }
.text-error { color: var(--error); font-weight: 600; }


/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.12), 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: fadeInUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-wide { max-width: 480px; }

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover { color: var(--text-primary); transform: scale(1.1); }

.modal-desc {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.modal-price {
    color: var(--text-secondary);
    font-size: 15px;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.modal-price strong {
    color: var(--accent-light);
    font-size: 24px;
    display: block;
    margin-top: 8px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 24px 0;
}


/* ===== AUTH MODAL SPECIFIC ===== */
.auth-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-lg);
    background: rgba(10, 5, 25, 0.5);
    padding: 4px;
    border-radius: var(--radius-full);
}

.auth-toggle button {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-toggle button.active {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.3);
}

.auth-toggle button:hover:not(.active) {
    background: rgba(139, 92, 246, 0.1);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.auth-form.active { display: flex; }

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
    padding: 14px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: rgba(10, 5, 25, 0.6);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

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

.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 48px !important; }

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
    font-size: 18px;
    line-height: 1;
    transition: color 0.3s ease;
}

.toggle-password:hover { color: var(--text-secondary); }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-label span {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-label a { color: var(--accent-light); text-decoration: underline; }


/* ===== ERROR / SUCCESS MESSAGES ===== */
.error-msg {
    color: var(--error);
    font-size: 14px;
    text-align: center;
    padding: 10px 16px;
    background: rgba(248, 113, 113, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(248, 113, 113, 0.15);
    margin-bottom: var(--space-md);
}

.success-msg {
    color: var(--success);
    font-size: 14px;
    text-align: center;
    padding: 10px 16px;
    background: rgba(52, 211, 153, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(52, 211, 153, 0.15);
    margin-bottom: var(--space-md);
}


/* ===== DEVICES LIST ===== */
.modal-devices-list {
    margin: 12px 0;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 5, 25, 0.4);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.device-item.device-current {
    background: rgba(52, 211, 153, 0.05);
    border-color: rgba(52, 211, 153, 0.2);
}

.device-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.device-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-badge {
    color: var(--success);
    font-size: 11px;
    font-weight: 400;
    background: rgba(52, 211, 153, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.device-meta {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.device-meta .ip {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.2);
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
}

.device-actions { flex-shrink: 0; margin-left: 12px; }

.device-delete-btn {
    background: rgba(248, 113, 113, 0.12);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.device-delete-btn:hover {
    background: rgba(248, 113, 113, 0.3);
    border-color: rgba(248, 113, 113, 0.4);
}


/* ===== DOWNLOAD BUTTONS ===== */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--space-md);
    width: 100%;
}

.btn-yandex {
    background: linear-gradient(135deg, #ffcc00, #f0a500) !important;
    color: #000 !important;
    font-weight: 700;
    width: 100%;
}

.btn-google {
    background: linear-gradient(135deg, #4285F4, #34A853) !important;
    color: #fff !important;
    font-weight: 700;
    width: 100%;
}


/* ===== FOOTER ===== */
.footer {
    padding: var(--space-2xl) 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.footer-logo span {
    font-weight: 300;
    -webkit-text-fill-color: rgba(139, 92, 246, 0.35);
    font-size: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}


/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .navbar { padding: 12px 20px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .btn-download { display: none; }
    
    .hero h1 { font-size: 48px; }
    .stats-strip { gap: 32px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .navbar.scrolled { padding: 8px 16px; }
    
    .hero { padding: 100px 16px 60px; }
    .hero h1 { font-size: 36px; }
    .hero .subtitle { font-size: 15px; }
    
    .server-ip { font-size: 15px; padding: 12px 20px; gap: 8px; }
    
    .stats-strip { gap: 20px; padding: 32px 16px; }
    .stat-item .stat-number { font-size: 28px; }
    
    .features { padding: var(--space-3xl) 16px; }
    .features-grid { grid-template-columns: 1fr; }
    
    .season-section { padding: var(--space-3xl) 16px; }
    .season-timer { gap: 10px; }
    .timer-item { padding: 14px 16px; min-width: 68px; }
    .timer-item .number { font-size: 30px; }
    
    .promo-form { flex-direction: column; }
    .promo-form input, .btn-promo { width: 100%; }
    
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; max-width: 280px; }
    
    .modal-content { padding: 24px 20px; margin: 12px; }
    
    .status-badge { padding: 4px 12px; font-size: 12px; }
    .btn-nav { padding: 6px 14px; font-size: 13px; }
    
    .profile-section { padding: var(--space-3xl) 16px; }
}
