/* ==========================================
   🎨 DayZ Cloud - Custom Design System
   ========================================== */

/* ==========================================
   ⚙️ Utility Classes
   ========================================== */

.hidden {
    display: none !important;
}

/* ==========================================
   🔄 Preloader Styles
   ========================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary, #0a0a0f);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-icon {
    font-size: 48px;
    color: var(--color-primary, #6366f1);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
    font-size: 16px;
    color: var(--color-text-secondary, #9ca3af);
}

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

/* ==========================================
   🔐 2FA Login Modal Styles
   ========================================== */

.icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin-right: 6px;
    vertical-align: middle;
}

/* 2FA Form Container */
.twofa-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 20px;
}

/* 2FA Input Container */
.twofa-input-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* 2FA Code Input Field */
.twofa-code-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 10px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    margin: 0 auto !important;
}

.twofa-code-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 10px !important;
}

.twofa-code-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 8px 24px rgba(59, 130, 246, 0.2) !important;
}

.twofa-code-input::-webkit-outer-spin-button,
.twofa-code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 2FA Submit Button - СТРОГО ПО ЦЕНТРУ */
.twofa-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
}

/* Error Message for 2FA */
.twofa-form .error-message {
    width: 100%;
    max-width: 320px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Error Messages (General) */
.error-message {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 14px;
    margin-top: 10px;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-message {
    padding: 16px 40px 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    backdrop-filter: blur(10px);
}

.flash-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flash-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.flash-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.flash-error,
.flash-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.flash-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - немного "грязные" оттенки для реализма */
    --color-bg: #0a0b0e;
    --color-surface: #131418;
    --color-surface-hover: #1a1c22;
    --color-border: rgba(255, 255, 255, 0.08);
    
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-primary-light: rgba(59, 130, 246, 0.1);
    
    --color-accent: #8b5cf6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --color-text: #e8e9ec;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    
    /* Typography */
    --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing - не идеально ровные числа */
    --space-xs: 0.5rem;
    --space-sm: 0.875rem;
    --space-md: 1.25rem;
    --space-lg: 1.875rem;
    --space-xl: 3rem;
    --space-2xl: 4.5rem;
    
    /* Shadows - мягкие, естественные */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Animations - естественные тайминги */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Container */
.container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.container-wide {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.container-narrow {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==========================================
   🔝 Preloader
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s, visibility 0.4s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 48px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
    margin-top: 16px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

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

/* ==========================================
   🧭 Header & Navigation
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 24px;
}

.logo-text strong {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 12px;
    margin-left: 16px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

/* ==========================================
   🎯 Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text-muted);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.btn-white {
    background: white;
    color: var(--color-bg);
}

.btn-white:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-ghost-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   🎨 Hero Section
   ========================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 20s ease-in-out infinite;
    opacity: 0.15;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 19px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
}

.desktop-br {
    display: block;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

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

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 540px;
    z-index: 1;
}

.window {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--color-border);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.window-body {
    padding: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mini-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.mini-card-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.mini-card-value span {
    font-size: 20px;
    color: var(--color-text-muted);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 3px 3px 0 0;
    animation: growBar 1s ease-out;
}

@keyframes growBar {
    from { height: 0; }
}

.perf-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perf-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.perf-row > span:first-child {
    width: 40px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.perf-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.perf-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 3px;
    animation: fillBar 1.5s ease-out;
}

@keyframes fillBar {
    from { width: 0; }
}

.perf-row > span:last-child {
    width: 35px;
    text-align: right;
    font-weight: 600;
    color: var(--color-text);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.event-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.event-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.event-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.event-text {
    flex: 1;
}

.event-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.event-time {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================
   👥 Social Proof
   ========================================== */
.social-proof {
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.01);
}

.social-proof-text {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.servers-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.server-tag {
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ==========================================
   ✨ Features Section
   ========================================== */
.features {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 19px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.feature-link:hover {
    gap: 6px;
}

/* ==========================================
   🔧 How It Works
   ========================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--color-surface);
}

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

.step {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.step-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ==========================================
   💰 Pricing
   ========================================== */
.pricing {
    padding: 120px 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.pricing-featured {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), var(--color-surface));
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.pricing-header {
    margin-bottom: 28px;
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--color-text-muted);
}

.pricing-price {
    margin-bottom: 32px;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text);
}

.price-period {
    font-size: 16px;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.pricing-features .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-features li:has(.disabled) {
    opacity: 0.4;
}

/* ==========================================
   ❓ FAQ
   ========================================== */
.faq {
    padding: 100px 0;
    background: var(--color-surface);
}

.faq-list {
    max-width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 28px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ==========================================
   📣 CTA Section
   ========================================== */
.cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0.08;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.cta-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================
   🦶 Footer
   ========================================== */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-desc {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

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

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

.footer-version {
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ==========================================
   🎭 Modal Windows
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-small {
    width: 100%;
    max-width: 480px;
}

.modal-medium {
    width: 100%;
    max-width: 680px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    transform: rotate(90deg);
}

.modal-header {
    padding: 48px 48px 32px;
    text-align: center;
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-text);
}

.modal-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.modal-body {
    padding: 0 48px 48px;
}

/* ==========================================
   📝 Forms
   ========================================== */
.auth-form {
    margin-bottom: 28px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.form-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.divider {
    position: relative;
    text-align: center;
    margin: 28px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

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

.form-footer p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ==========================================
   🔐 Social Auth
   ========================================== */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-text-muted);
    transform: translateY(-2px);
}

.social-btn.steam {
    position: relative;
}

.social-btn.steam:hover {
    border-color: #1b2838;
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.3), rgba(19, 135, 184, 0.2));
}

.social-btn.google:hover {
    border-color: #4285f4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(234, 67, 53, 0.1));
}

.social-auth-large {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.social-btn-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-main);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
}

.social-btn-large:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-text-muted);
    transform: translateX(4px);
}

.social-btn-large.steam {
    position: relative;
    overflow: hidden;
}

.social-btn-large.steam:hover {
    border-color: #1b2838;
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.3), rgba(19, 135, 184, 0.2));
}

.social-btn-large.steam:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(19, 135, 184, 0.1), transparent);
    z-index: 0;
}

.social-btn-large.google:hover {
    border-color: #4285f4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(234, 67, 53, 0.1));
}

.social-btn-large svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.social-btn-large > div {
    position: relative;
    z-index: 1;
}

.social-btn-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.social-btn-desc {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ==========================================
   📋 Registration Steps
   ========================================== */
.register-step {
    display: none;
}

.register-step.active {
    display: block;
}

.plan-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.plan-card {
    position: relative;
    display: block;
    cursor: pointer;
    transition: all var(--transition-base);
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-content {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.plan-card:hover .plan-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-text-muted);
}

.plan-card input[type="radio"]:checked ~ .plan-content {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
}

.plan-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.plan-featured .plan-content {
    border-color: var(--color-primary);
}

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

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.plan-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
}

.plan-badge.trial {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.register-actions {
    display: flex;
    gap: 12px;
}

.register-actions .btn {
    flex: 1;
}

/* ==========================================
   📱 Responsive
   ========================================== */

/* Prevent horizontal scroll globally */
* {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1280px) {
    .hero-visual {
        width: 480px;
        right: 24px;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
        overflow: hidden;
    }
    
    .hero-visual {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 40px 0 0;
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    .window {
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 16px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container,
    .container-wide,
    .container-narrow {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 11, 14, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--color-border);
        padding: 24px 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 16px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 16px;
    }
    
    .burger {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero-desc {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .desktop-br {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .stat {
        width: 100%;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .step {
        flex-direction: column;
        gap: 16px;
    }
    
    .cta-content {
        padding: 40px 24px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .modal {
        padding: 16px;
        box-sizing: border-box;
    }
    
    .modal-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .modal-header {
        padding: 32px 20px 20px;
    }
    
    .modal-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .modal-body {
        padding: 0 20px 32px;
    }
    
    .social-auth {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
    
    .social-btn-large {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .register-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .register-actions .btn {
        width: 100%;
    }
    
    .plan-selector {
        gap: 12px;
    }
    
    .plan-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .nav {
        height: 64px;
    }

    .nav-menu {
        padding: 20px 14px;
        gap: 4px;
    }

    .nav-menu .btn,
    .nav-menu .btn-icon {
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
    }

    .nav-menu .user-menu {
        width: 100%;
    }

    .nav-menu .user-menu-btn {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 110px 0 48px;
    }

    .hero-content {
        text-align: left;
        padding: 0;
        width: 100%;
    }

    .hero-visual {
        margin-top: 32px;
    }

    .hero-actions {
        width: 100%;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        width: 100%;
        align-items: stretch;
    }

    .hero-stats .stat {
        align-items: flex-start;
    }

    .social-proof-text {
        text-align: center;
        margin-bottom: 18px;
    }

    .servers-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .features {
        padding: 72px 0;
    }

    .feature-card {
        padding: 24px;
    }

    .how-it-works {
        padding: 80px 0;
    }

    .step {
        padding: 24px 0;
        gap: 18px;
    }

    .step-number {
        font-size: 32px;
    }

    .pricing {
        padding: 80px 0;
    }

    .pricing-card {
        padding: 28px 24px;
    }

    .price-value {
        font-size: 40px;
    }

    .faq {
        padding: 80px 0;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }

    .cta {
        padding: 80px 0;
    }

    .cta-content {
        padding: 32px 20px;
        text-align: center;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-actions {
        width: 100%;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-top {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .feature-title {
        font-size: 20px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .faq-question svg {
        width: 20px;
        height: 20px;
    }

    .cta-title {
        font-size: 26px;
    }
}
 
/* ==========================================
   🎭 Animations (AOS)
   ========================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
