/* ==========================================================================
   TÔM AUTO CLICK — CLEAN MINIMALIST SAAS DESIGN SYSTEM (LINEAR / VERCEL STYLE)
   High-end Dark UI • Glassmorphism 2.0 • Ambient Aurora Glow • Precision Layout
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-dark: #060813;
    --bg-surface: #0b0f1e;
    --bg-card: rgba(13, 18, 36, 0.72);
    --bg-card-hover: rgba(20, 28, 54, 0.88);
    --bg-glass-input: rgba(255, 255, 255, 0.04);
    
    /* Borders & Outlines */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(99, 102, 241, 0.35);
    --border-glow: rgba(99, 102, 241, 0.55);
    --border-gold: rgba(245, 158, 11, 0.45);
    
    /* Color Tokens */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --purple: #8b5cf6;
    --gold: #fbbf24;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-hero-text: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
    --gradient-accent-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 50%, #34d399 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gradient-vip: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-card-border: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
    
    /* Text Hierarchy */
    --text-heading: #ffffff;
    --text-body: #cbd5e1;
    --text-muted: #8492a6;
    --text-dim: #475569;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Subtle Dot Grid Matrix */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Ambient Radial Aurora Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(140px);
}
.ambient-1 {
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.12) 40%, transparent 70%);
    opacity: 0.9;
}
.ambient-2 {
    top: 35%;
    right: -180px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    opacity: 0.6;
}
.ambient-3 {
    bottom: 8%;
    left: -160px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    opacity: 0.5;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

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

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

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

/* Glassmorphism 2.0 Base */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.45);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   BUTTONS (SaaS Pill High-Contrast)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
    pointer-events: none;
}
.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-vip {
    background: var(--gradient-gold);
    color: #0b0f19;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55);
}

.btn-admin {
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}
.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.55);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
}

/* ==========================================================================
   NAVBAR (Sleek Frosted Glass Header)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 8, 19, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.logo img {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links li a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}
.nav-links li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* Language Selector Dropdown */
.lang-selector {
    position: relative;
    display: inline-block;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.lang-dropdown {
    position: absolute;
    top: 125%;
    right: 0;
    width: 160px;
    background: #0d1224;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0,0,0,0.7);
    display: none;
    z-index: 1200;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.lang-dropdown.active {
    display: block;
    animation: fadeInSlide 0.2s ease;
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-option {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}
.lang-option:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

/* User Account Header State */
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

/* ==========================================================================
   HERO SECTION (Linear / Vercel Impact)
   ========================================================================== */
.hero {
    padding-top: 50px;
    padding-bottom: 70px;
    text-align: center;
    position: relative;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.12;
    max-width: 960px;
    margin: 0 auto 20px auto;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto 36px auto;
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* ==========================================================================
   HERO INTERACTIVE APP SIMULATOR STAGE (Visual Showcase)
   ========================================================================== */
.hero-stage-wrapper {
    max-width: 1060px;
    margin: 0 auto 40px auto;
    position: relative;
}
.hero-stage-card {
    background: rgba(13, 18, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
}
.stage-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stage-traffic-lights {
    display: flex;
    gap: 8px;
}
.stage-traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.stage-traffic-lights span:nth-child(1) { background: #ef4444; }
.stage-traffic-lights span:nth-child(2) { background: #f59e0b; }
.stage-traffic-lights span:nth-child(3) { background: #10b981; }

.stage-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}
.stage-status-badge .live-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stage-body-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    text-align: left;
}

.stage-node-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stage-node-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: var(--transition-fast);
}
.stage-node-item.active-running {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}
.stage-node-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stage-node-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.stage-node-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
}
.stage-node-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.stage-node-metric {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
}

.stage-screen-mockup {
    background: #070a14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}
.scanner-crosshair {
    position: absolute;
    top: 45%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 80px;
    border: 2px dashed var(--cyan);
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.scanner-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    background: var(--cyan);
    color: #040711;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.floating-overlay-widget {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Stats Counter Strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: rgba(11, 15, 30, 0.65);
    border: 1px solid var(--border-glass);
    margin-top: 30px;
    text-align: center;
}
.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}
.stat-lbl {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   BENTO GRID FEATURE SHOWCASE
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.bento-card {
    background: rgba(13, 18, 36, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bento-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.18);
    background: rgba(18, 25, 50, 0.85);
}
.bento-card.col-7 { grid-column: span 7; }
.bento-card.col-5 { grid-column: span 5; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-12 { grid-column: span 12; }

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.bento-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
}
.bento-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}
.bento-preview-box {
    background: rgba(5, 8, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: auto;
}

@media (max-width: 992px) {
    .bento-card.col-7,
    .bento-card.col-5,
    .bento-card.col-6,
    .bento-card.col-4,
    .bento-card.col-8 {
        grid-column: span 12;
    }
}

/* ==========================================================================
   SECTIONS & BENTO GRID
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}
.section-title {
    font-size: 2.6rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}

/* ==========================================================================
   VIP PREMIUM PRICING SECTION (SaaS Cards)
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: rgba(13, 18, 36, 0.7);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.2);
}

.pricing-card.popular {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(20, 26, 50, 0.85);
    box-shadow: 0 25px 60px rgba(245, 158, 11, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    color: #0b0f19;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.pricing-name {
    font-size: 1.45rem;
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}
.pricing-bonus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 36px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.94rem;
    color: var(--text-body);
    margin-bottom: 14px;
}
.pricing-features li i {
    color: var(--emerald);
    font-size: 0.95rem;
}

/* ==========================================================================
   SCRIPT MARKETPLACE SECTION
   ========================================================================== */
.script-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.script-tab-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.script-tab-btn.active, .script-tab-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.search-bar-wrapper {
    max-width: 580px;
    margin: 0 auto 40px auto;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 16px 22px 16px 52px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition-fast);
    backdrop-filter: blur(16px);
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.06);
}
.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.script-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.script-card {
    background: rgba(13, 18, 36, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.script-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.18);
    background: rgba(18, 25, 48, 0.8);
}

/* ==========================================================================
   APP GUIDES & ACTION CATALOG
   ========================================================================== */
.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.guide-tab-btn {
    padding: 12px 22px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}
.guide-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.guide-content-box {
    padding: 36px;
    border-radius: var(--radius-xl);
    background: rgba(11, 15, 30, 0.75);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(24px);
}

/* Category Badges */
.badge-cat {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-mono);
}
.badge-touch { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.badge-vision { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.badge-logic { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.badge-vars { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.badge-input { background: rgba(244, 63, 94, 0.15); color: var(--rose); }
.badge-device { background: rgba(139, 92, 246, 0.15); color: var(--purple); }

/* Action Card Item */
.action-card-item {
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}
.action-card-item:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-3px);
    background: rgba(20, 30, 54, 0.75);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Action Inspector Form Mockup Modal */
.inspector-card {
    width: 100%;
    max-width: 580px;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: #0d1224;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.inspector-form-mockup {
    background: rgba(5, 8, 16, 0.8);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-glass);
    margin-top: 16px;
    margin-bottom: 20px;
}

.form-field-row {
    margin-bottom: 14px;
}
.form-field-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.field-help-tip {
    font-size: 0.78rem;
    color: var(--emerald);
    margin-top: 4px;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.faq-item {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(13, 18, 36, 0.6);
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}
.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(17, 24, 46, 0.75);
}
.faq-q {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}
.faq-a {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   MODAL OVERLAY & CARDS (Glassmorphism 2.0)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 12, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 38px;
    border-radius: var(--radius-xl);
    background: #0d1224;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
    position: relative;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .auth-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.auth-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 6px;
    position: relative;
    transition: var(--transition-fast);
}
.auth-tab-btn.active { color: #ffffff; }
.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}
.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.captcha-question {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

.alert-msg {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: none;
    line-height: 1.5;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* ==========================================================================
   FOOTER (SaaS Minimalist)
   ========================================================================== */
.footer {
    padding: 80px 0 36px 0;
    border-top: 1px solid var(--border-glass);
    background: #03050a;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 50px;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 340px;
}
.footer-col h4 {
    margin-bottom: 18px;
    font-size: 0.98rem;
    color: #ffffff;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition-fast);
}
.footer-col ul li a:hover { color: #ffffff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
    .stage-body-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.2rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .pricing-grid, .script-card-grid, .faq-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .navbar { top: 10px; }
    .nav-container { padding: 8px 16px; }
    .hero { padding-top: 125px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .pricing-grid, .script-card-grid, .faq-grid, .stats-strip { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
