/* ========================================
   PREMIUM DARK LIQUID GLASS DESIGN SYSTEM
   ======================================== */

:root {
    --bg-base: #0a0a0f;
    --bg-depth: #0f0f1a;
    --bg-surface: rgba(20, 20, 35, 0.6);
    --bg-elevated: rgba(30, 30, 50, 0.5);
    
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-active: rgba(255, 255, 255, 0.18);
    
    --accent: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-soft: rgba(99, 102, 241, 0.15);
    --accent-glow: rgba(99, 102, 241, 0.25);
    
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.15);
    
    --text-primary: #f1f1f8;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a82;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 60px rgba(0, 0, 0, 0.5);
    
    --transition-fast: 150ms ease-out;
    --transition-normal: 250ms ease-out;
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { color: var(--accent-secondary); }

ul { list-style: none; }

/* ---------- Public Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}
.navbar-brand a svg { color: var(--accent); }
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.navbar-menu {
    display: flex;
    align-items: center;
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.navbar-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
}
.navbar-nav a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff !important;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-primary.btn-block { width: 100%; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-secondary:hover {
    background: var(--glass-hover);
    color: #fff;
}
.btn-secondary.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn-danger.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0088cc;
    color: #fff !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn-telegram:hover { background: #0099dd; }

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: var(--space-4);
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Form Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.premium-package-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.premium-package-row:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
    .form-grid-2, .form-grid-3, .form-grid-4 {
        grid-template-columns: 1fr;
    }
    .premium-package-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-secondary { background: var(--glass); color: var(--text-muted); }

/* ---------- Flash Messages ---------- */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.92rem;
}
.flash-success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); }
.flash-error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* ========================================
   AUTHENTICATION PAGES (LOGIN, REGISTER, VERIFY)
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15), transparent 70%), var(--bg-base);
    padding: 40px 20px;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.auth-panel {
    width: 100%;
    background: #121422 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 20px !important;
    padding: 36px 32px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(99, 102, 241, 0.15) !important;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    margin-bottom: 16px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-logo:hover {
    transform: scale(1.08) rotate(5deg);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    background: #1b1e32 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: #6366f1 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    background: #20243b !important;
}

/* Password Wrapper and Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 5;
}

.password-toggle:hover {
    color: #fff !important;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.strength-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 4px;
    border-radius: 2px;
}

.strength-segment {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.strength-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Fix Browser Autofill Background on Dark Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1b1e32 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

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

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   LANDING PAGE HERO & SECTIONS
   ======================================== */

.hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--success-soft);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

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

.hero-content h1 {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Code Panel (IDE visual in Hero) */
.code-panel {
    background: #0d0d18;
    border: 1px solid var(--glass-border-active);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #22c55e; }

.code-title {
    margin-left: 8px;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-body {
    padding: 24px;
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.code-request {
    color: #facc15;
    background: rgba(250, 204, 21, 0.05);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid #facc15;
}

.code-response {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.05);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid #60a5fa;
}

/* Trust Metrics */
.trust-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 32px 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.metric {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Features */
.features, .how-it-works, .cta-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

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

.feature-card {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-active);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing */
.pricing {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -30px auto 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    padding: 36px 32px;
    border-radius: var(--radius-xl);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-active);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(20, 20, 35, 0.6) 100%);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: rgba(30, 30, 50, 0.9);
    border: 1px solid var(--glass-border-active);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-badge-featured {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

.pricing-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.pricing-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.price-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
}

.price-unit {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.pricing-features .check {
    color: var(--success);
    font-weight: 700;
    font-size: 1.05rem;
}

/* How It Works (Steps) */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    position: relative;
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* CTA Panel */
.cta-panel {
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--glass-border-active);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cta-panel h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-panel p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

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

/* ---------- Dashboard & Admin Layout ---------- */
.dashboard-page, .admin-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.dashboard-nav, .admin-header-nav {
    height: 70px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.dashboard-nav-container, .admin-header-container, .dashboard-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-brand a svg {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

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

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.dashboard-container, .admin-container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.dashboard-sidebar, .admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--glass-border);
    padding: 24px 16px;
    background: rgba(10, 10, 15, 0.3);
}
.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--glass-hover);
    color: #fff;
}
.sidebar-nav a.admin-link { color: #f59e0b; }
.sidebar-divider { height: 1px; background: var(--glass-border); margin: 10px 0; }

.dashboard-main, .admin-main {
    flex: 1;
    min-width: 0;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dashboard-header, .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard-header h1, .admin-header h1 { font-size: 1.85rem; font-weight: 700; color: #fff; }

/* Onboarding Stepper */
.onboarding-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    border: 1px solid var(--glass-border-active);
    margin-bottom: 8px;
}

.onboarding-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.onboarding-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.onboarding-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.onboarding-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.onboarding-step-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.onboarding-step-card.done {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.04);
}

.onboarding-step-card.current {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.onboarding-step-card.pending {
    opacity: 0.6;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.onboarding-step-card.done .step-num {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.onboarding-step-card.current .step-num {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.step-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.step-details p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.step-done-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    margin-top: auto;
}

.btn-xs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-top: auto;
    width: fit-content;
}

/* Grid & Cards */
.stats-grid, .admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card, .admin-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.stat-card.stat-card-balance {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(99, 102, 241, 0.04));
    border-color: rgba(34, 197, 94, 0.25);
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-balance .stat-icon-wrapper {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value, .admin-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-value {
    color: #22c55e;
}

.currency-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-label, .admin-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dashboard-card, .admin-card {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

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

/* Tables */
.dashboard-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.dashboard-table th, .admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
}
.dashboard-table td, .admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}
.dashboard-table tr:hover, .admin-table tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.project-card {
    padding: 22px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-description { font-size: 0.9rem; color: var(--text-secondary); }
.project-stats { display: flex; gap: 14px; font-size: 0.85rem; color: var(--text-muted); }
.project-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

/* ---------- Modals ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
}
.modal-content {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 520px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: #141423;
    border: 1px solid var(--glass-border-active);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}
.modal-content.danger {
    border-color: rgba(239, 68, 68, 0.4);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--transition-fast);
}
.modal-close:hover { color: #fff; }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
.danger-text {
    color: var(--danger);
    font-size: 0.88rem;
    margin: 10px 0 16px;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.95);
    padding: 60px 0 30px;
    margin-top: auto;
    width: 100%;
}

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

.footer-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 260px;
}

.footer-column h4 {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 14px;
}

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

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .dashboard-container, .admin-container { flex-direction: column; }
    .dashboard-sidebar, .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .stats-grid, .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .trust-metrics { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px;
    }
    .navbar-menu.open {
        display: block;
    }
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .hero-content h1 { font-size: 2.1rem; }
    .trust-metrics { grid-template-columns: 1fr; padding: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .cta-panel { padding: 36px 20px; }
    .cta-actions { flex-direction: column; }
    .hero-actions { flex-direction: column; }
    .dashboard-main, .admin-main { padding: 20px 16px; }
    .stats-grid, .admin-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   MODERN ULTRA-SMOOTH ANIMATIONS SUITE
   ======================================== */

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    70% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

@keyframes floatGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(25px, -20px) scale(1.1);
    }
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(200%) rotate(25deg);
    }
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---------- Entrance Stagger Animations ---------- */
.hero-content,
.dashboard-header,
.admin-header {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stats-grid,
.admin-stats {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.dashboard-card,
.admin-card,
.feature-card,
.pricing-card {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.auth-card {
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- Cards Hover Animation & Glow ---------- */
.stat-card,
.admin-stat-card,
.dashboard-card,
.admin-card,
.feature-card,
.pricing-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.stat-card:hover,
.admin-stat-card:hover,
.feature-card:hover,
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

/* ---------- Buttons Animation & Shimmer ---------- */
.btn-primary,
.btn-secondary,
.btn-telegram,
.btn-danger {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}

.btn-primary:hover,
.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active,
.btn-secondary:active,
.btn-telegram:active,
.btn-danger:active {
    transform: translateY(0) scale(0.97);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
}

.btn-primary:hover::after {
    animation: shimmerSweep 1s ease forwards;
}

/* ---------- Sidebar Navigation Links Animation ---------- */
.sidebar-nav a {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-nav a:hover {
    transform: translateX(6px);
    background: rgba(99, 102, 241, 0.12);
    color: #fff;
}

.sidebar-nav a svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-nav a:hover svg {
    transform: scale(1.2);
    color: var(--accent);
}

/* ---------- Table Rows Smooth Animation ---------- */
.dashboard-table tr,
.admin-table tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dashboard-table tbody tr:hover td,
.admin-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.04);
}

/* ---------- Live Pulsing Status Dots ---------- */
.badge-success::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 6px;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 2s infinite;
}

.badge-warning::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    margin-right: 6px;
    box-shadow: 0 0 8px #f59e0b;
    animation: pulseDot 2s infinite;
}

/* ---------- Modal Animation ---------- */
.modal.active .modal-overlay {
    animation: fadeIn 0.3s ease forwards;
}

.modal.active .modal-content {
    animation: modalPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ---------- Ripple Effect Class ---------- */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}