/* =============================================
   NETEA.PL - Dual Theme CSS (Light + Dark)
   Toggle via data-theme="dark" on <html>
   ============================================= */

/* --- CSS Variables --- */
:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-input: #f8fafc;
    --bg-input-focus: #ffffff;
    --bg-tag: #f8fafc;
    --bg-nav-mobile: rgba(255, 255, 255, 0.95);
    --bg-marquee-item: #ffffff;

    --border-primary: rgba(0, 0, 0, 0.06);
    --border-input: rgba(0, 0, 0, 0.1);
    --border-tag: #e2e8f0;
    --border-marquee: #e2e8f0;

    --text-heading: #0f172a;
    --text-body: #64748b;
    --text-muted: #94a3b8;
    --text-label: #64748b;
    --text-input: #1e293b;
    --text-nav: #64748b;
    --text-nav-hover: #4f46e5;

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 20px 40px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-code: 0 25px 60px rgba(15, 23, 42, 0.25);
    --shadow-nav: 0 1px 20px rgba(0, 0, 0, 0.05);
    --shadow-marquee: 0 1px 3px rgba(0, 0, 0, 0.04);

    --navbar-bg: rgba(255, 255, 255, 0.92);
    --navbar-border: rgba(0, 0, 0, 0.06);

    --icon-bg-brand: rgba(99, 102, 241, 0.08);
    --icon-bg-cyan: rgba(6, 182, 212, 0.06);
    --badge-bg: rgba(99, 102, 241, 0.08);
    --badge-color: #6366f1;
    --badge-border: rgba(99, 102, 241, 0.15);

    --hero-bg: #ffffff;
    --hero-orb-1: rgba(99, 102, 241, 0.1);
    --hero-orb-2: rgba(6, 182, 212, 0.08);
    --hero-grid: rgba(99, 102, 241, 0.04);

    --section-alt-from: #ffffff;
    --section-alt-mid: #f8fafc;

    --it-card-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(6, 182, 212, 0.02) 100%);
    --it-card-border: rgba(99, 102, 241, 0.1);

    --problem-icon-bg: #fef2f2;
    --solution-icon-bg: #f0fdf4;
    --problem-icon-color: #ef4444;
    --solution-icon-color: #22c55e;

    --btn-secondary-bg: rgba(99, 102, 241, 0.06);
    --btn-secondary-border: rgba(99, 102, 241, 0.15);
    --btn-secondary-color: #4f46e5;
    --btn-secondary-hover-bg: rgba(99, 102, 241, 0.1);

    --marquee-fade-from: #f8fafc;

    --scrollbar-track: #f8fafc;

    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --footer-heading: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.1);

    --particle-opacity-base: 0.25;
    --particle-opacity-range: 0.3;
    --line-opacity-mult: 0.12;

    /* Toggle icon colors */
    --toggle-bg: #f1f5f9;
    --toggle-border: #e2e8f0;
    --toggle-icon: #64748b;
}

[data-theme="dark"] {
    --bg-primary: #030712;
    --bg-secondary: #0a0f1e;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-input-focus: rgba(255, 255, 255, 0.05);
    --bg-tag: rgba(255, 255, 255, 0.03);
    --bg-nav-mobile: rgba(15, 23, 42, 0.95);
    --bg-marquee-item: rgba(255, 255, 255, 0.03);

    --border-primary: rgba(255, 255, 255, 0.06);
    --border-input: rgba(255, 255, 255, 0.08);
    --border-tag: rgba(255, 255, 255, 0.05);
    --border-marquee: rgba(255, 255, 255, 0.05);

    --text-heading: #ffffff;
    --text-body: #64748b;
    --text-muted: #475569;
    --text-label: #64748b;
    --text-input: #ffffff;
    --text-nav: #94a3b8;
    --text-nav-hover: #ffffff;

    --shadow-card: none;
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.08);
    --shadow-code: 0 25px 60px rgba(0, 0, 0, 0.5);
    --shadow-nav: none;
    --shadow-marquee: none;

    --navbar-bg: rgba(3, 7, 18, 0.9);
    --navbar-border: rgba(255, 255, 255, 0.05);

    --icon-bg-brand: rgba(99, 102, 241, 0.12);
    --icon-bg-cyan: rgba(6, 182, 212, 0.1);
    --badge-bg: rgba(99, 102, 241, 0.08);
    --badge-color: #a5b4fc;
    --badge-border: rgba(99, 102, 241, 0.15);

    --hero-bg: #030712;
    --hero-orb-1: rgba(99, 102, 241, 0.2);
    --hero-orb-2: rgba(6, 182, 212, 0.15);
    --hero-grid: rgba(255, 255, 255, 0.03);

    --section-alt-from: #030712;
    --section-alt-mid: #0a0f1e;

    --it-card-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
    --it-card-border: rgba(99, 102, 241, 0.08);

    --problem-icon-bg: rgba(239, 68, 68, 0.1);
    --solution-icon-bg: rgba(34, 197, 94, 0.1);
    --problem-icon-color: #ef4444;
    --solution-icon-color: #22c55e;

    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
    --btn-secondary-color: #ffffff;
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);

    --marquee-fade-from: #030712;

    --scrollbar-track: #030712;

    --footer-bg: #030712;
    --footer-text: #64748b;
    --footer-heading: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.05);

    --particle-opacity-base: 0.05;
    --particle-opacity-range: 0.4;
    --line-opacity-mult: 0.06;

    --toggle-bg: rgba(255, 255, 255, 0.05);
    --toggle-border: rgba(255, 255, 255, 0.1);
    --toggle-icon: #e2e8f0;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background: var(--bg-primary);
    color: var(--text-body);
    transition: background 0.4s ease, color 0.4s ease;
}

::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-heading);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #6366f1, #06b6d4); border-radius: 99px; }

/* =============================================
   HERO
   ============================================= */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -10%, var(--hero-orb-1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, var(--hero-orb-2) 0%, transparent 60%),
        var(--hero-bg);
    transition: background 0.4s ease;
}

.hero-grid {
    background-image: 
        linear-gradient(var(--hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    transition: background 0.4s ease;
}
.glow-orb-1 {
    width: 500px; height: 500px;
    background: var(--hero-orb-1);
    top: -150px; left: -100px;
    animation: orbDrift 25s ease-in-out infinite;
}
.glow-orb-2 {
    width: 400px; height: 400px;
    background: var(--hero-orb-2);
    bottom: -100px; right: -100px;
    animation: orbDrift 25s ease-in-out infinite reverse;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-30px, 40px); }
}

/* Code block (always dark) */
.code-block {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #94a3b8;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-code);
}
.code-block .code-line {
    opacity: 0;
    transform: translateX(-10px);
    animation: codeFadeIn 0.4s ease forwards;
}
.code-block .code-line:nth-child(1) { animation-delay: 0.3s; }
.code-block .code-line:nth-child(2) { animation-delay: 0.5s; }
.code-block .code-line:nth-child(3) { animation-delay: 0.7s; }
.code-block .code-line:nth-child(4) { animation-delay: 0.9s; }
.code-block .code-line:nth-child(5) { animation-delay: 1.1s; }
.code-block .code-line:nth-child(6) { animation-delay: 1.3s; }
.code-block .code-line:nth-child(7) { animation-delay: 1.5s; }
.code-block .code-line:nth-child(8) { animation-delay: 1.7s; }

@keyframes codeFadeIn {
    to { opacity: 1; transform: translateX(0); }
}

.code-tag { color: #f472b6; }
.code-attr { color: #c084fc; }
.code-string { color: #34d399; }
.code-comment { color: #475569; font-style: italic; }

/* =============================================
   PARTICLES
   ============================================= */
#particles-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   TYPING
   ============================================= */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #6366f1;
    margin-left: 3px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-scrolled {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: var(--shadow-nav);
}

/* =============================================
   SECTIONS
   ============================================= */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}

.section-bg-subtle {
    background: linear-gradient(180deg, var(--section-alt-from) 0%, var(--section-alt-mid) 50%, var(--section-alt-from) 100%);
    transition: background 0.4s ease;
}

.section-bg-white {
    background: var(--bg-primary);
    transition: background 0.4s ease;
}

/* =============================================
   CARDS
   ============================================= */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.it-card {
    background: var(--it-card-bg);
    border: 1px solid var(--it-card-border);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.it-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.it-card:hover::before { opacity: 1; }
.it-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

/* Problem/Solution */
.problem-item { position: relative; padding-left: 2rem; }
.problem-item::before { content: '✕'; position: absolute; left: 0; top: 0.15em; color: #ef4444; font-weight: bold; font-size: 0.9rem; }
.solution-item { position: relative; padding-left: 2rem; }
.solution-item::before { content: '✓'; position: absolute; left: 0; top: 0.15em; color: #22c55e; font-weight: bold; font-size: 0.9rem; }

/* =============================================
   TECH CARD
   ============================================= */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
}
.tech-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* =============================================
   GRADIENT TEXT
   ============================================= */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =============================================
   BADGE
   ============================================= */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--badge-bg);
    color: var(--badge-color);
    border: 1px solid var(--badge-border);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

/* =============================================
   FORM
   ============================================= */
.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-input);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}
.form-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--bg-input-focus);
}
.form-input::placeholder { color: var(--text-muted); }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-scale.active { opacity: 1; transform: scale(1); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }

/* =============================================
   MARQUEE
   ============================================= */
.tech-marquee {
    display: flex;
    animation: marqueeScroll 40s linear infinite;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }

.btn-secondary {
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--btn-secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* =============================================
   THEME TOGGLE
   ============================================= */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    color: var(--toggle-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    transform: rotate(15deg);
}

/* Sun/Moon icon toggle */
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* =============================================
   THEMED UTILITY CLASSES
   ============================================= */
.themed-heading { color: var(--text-heading); transition: color 0.3s ease; }
.themed-body { color: var(--text-body); transition: color 0.3s ease; }
.themed-muted { color: var(--text-muted); transition: color 0.3s ease; }
.themed-nav { color: var(--text-nav); transition: color 0.3s ease; }
.themed-bg { background: var(--bg-primary); transition: background 0.3s ease; }
.themed-bg-alt { background: var(--bg-secondary); transition: background 0.3s ease; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .glow-orb { opacity: 0.15; filter: blur(140px); }
    .hero-grid { display: none; }
}

/* =============================================
   POPUP BANNER
   ============================================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.popup-overlay.popup-visible { opacity: 1; }

.popup-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(99, 102, 241, 0.08);
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.popup-overlay.popup-visible .popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}
.popup-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Video */
.popup-video-wrap {
    padding: 1rem 1rem 0;
}
.popup-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 1rem;
    overflow: hidden;
    background: #0f172a;
}
.popup-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Body */
.popup-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 0.75rem;
}
.popup-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.popup-desc {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Form */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.popup-field {
    position: relative;
}
.popup-field-error {
    display: none;
    font-size: 0.7rem;
    color: #ef4444;
    margin-top: 0.2rem;
    padding-left: 0.25rem;
}
.popup-field-error.visible { display: block; }

.popup-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
}
.popup-consent input[type="checkbox"] {
    margin-top: 0.15rem;
    accent-color: #6366f1;
    flex-shrink: 0;
}
.popup-consent a {
    color: #6366f1;
    text-decoration: underline;
}

.popup-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-top: 0.25rem;
}
.popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success */
.popup-success {
    text-align: center;
    padding: 3rem 2rem;
}
.popup-success-icon {
    font-size: 3.5rem;
    color: #22c55e;
    margin-bottom: 1rem;
    animation: popupSuccessPulse 0.6s ease;
}
@keyframes popupSuccessPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Wizard steps */
.wizard-progress {
    height: 4px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 2px;
    margin: 0 1.5rem;
}
.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.wizard-step-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 2rem;
}
.wizard-back {
    position: absolute;
    top: 1.25rem;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    z-index: 5;
}
.wizard-back:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}
.popup-body {
    padding: 1.25rem 1.5rem 1.5rem;
    position: relative;
}
.wizard-type-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.wizard-type-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}
.wizard-type-card:hover, .wizard-type-card.selected {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
}
.wizard-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.wizard-type-phone { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.wizard-type-meet { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.wizard-type-label { font-size: 0.85rem; font-weight: 600; color: var(--text-heading); line-height: 1.3; flex: 1; }
.wizard-type-arrow { color: var(--text-muted); font-size: 0.75rem; }
.wizard-input-lg { font-size: 1.1rem !important; padding: 1rem 1.25rem !important; }
.wizard-btn-next { margin-top: 0.75rem; }
.wizard-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.wizard-time-slot {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-heading);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wizard-time-slot:hover, .wizard-time-slot.selected {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}
.wizard-slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 300px;
    overflow-y: auto;
}
.wizard-slot-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-heading);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}
.wizard-slot-btn:hover, .wizard-slot-btn.selected {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.08);
}
.slot-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.wizard-loading, .wizard-no-slots {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Popup scrollbar */
.popup-card::-webkit-scrollbar { width: 4px; }
.popup-card::-webkit-scrollbar-track { background: transparent; }
.popup-card::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 99px; }

/* Mobile popup */
@media (max-width: 640px) {
    .popup-card {
        max-width: 100%;
        border-radius: 1.25rem;
        max-height: 95vh;
    }
    .popup-body { padding: 1rem 1.25rem 1.25rem; }
    .popup-title { font-size: 1.25rem; }
    .wizard-time-grid { grid-template-columns: 1fr; }
}
