/* ============================================================
   MYPA PROD — Immersive Premium Design System
   Dark futuristic + warm glassmorphism
   ============================================================ */

/* --- CSS Variables (Dark Theme Default) --- */
:root {
    /* Brand colors */
    --brand-green: #9BC53D;
    --brand-orange: #E2793D;
    --brand-coral: #E8735A;
    --brand-magenta: #D946A8;
    --brand-gold: #D4A142;
    --brand-indigo: #6366f1;
    --brand-cyan: #0891b2;
    --brand-purple: #7c3aed;

    /* Core palette */
    --color-primary: #E2793D;
    --color-bg-deep: #080B14;
    --color-bg-dark: #0D1117;
    --color-bg: #0D1117;
    --color-surface: rgba(255,255,255,0.03);
    --color-surface-solid: #131820;
    --color-text: #E8E8EC;
    --color-text-secondary: #A0A4B8;
    --color-text-muted: #5A5E6E;
    --color-text-faint: #3A3E4A;
    --color-border: rgba(255,255,255,0.08);
    --color-border-light: rgba(255,255,255,0.05);

    /* Glass */
    --glass-bg: rgba(255,255,255,0.04);
    --glass-bg-hover: rgba(255,255,255,0.07);
    --glass-bg-active: rgba(226,121,61,0.08);
    --glass-border: 1px solid rgba(255,255,255,0.08);
    --glass-border-hover: 1px solid rgba(255,255,255,0.15);
    --glass-border-active: 1px solid rgba(226,121,61,0.35);

    /* Hero gradient mesh — rich multi-layered */
    --hero-gradient:
        /* Lueur magenta centrale basse */
        radial-gradient(ellipse 80% 50% at 50% 105%, rgba(160,40,140,0.55) 0%, transparent 60%),
        /* Halo violet profond centre-bas */
        radial-gradient(ellipse 90% 60% at 45% 90%, rgba(90,20,120,0.45) 0%, transparent 55%),
        /* Lueur rose chaud droite */
        radial-gradient(ellipse 50% 50% at 75% 85%, rgba(180,50,110,0.3) 0%, transparent 50%),
        /* Teinte prune gauche */
        radial-gradient(ellipse 60% 50% at 20% 75%, rgba(100,25,90,0.35) 0%, transparent 50%),
        /* Reflet bordeaux subtil milieu */
        radial-gradient(ellipse 40% 35% at 55% 70%, rgba(140,30,70,0.2) 0%, transparent 45%),
        /* Trace ambrée discrète haut-gauche */
        radial-gradient(ellipse 45% 40% at 15% 40%, rgba(200,100,50,0.1) 0%, transparent 45%),
        /* Lueur lavande haut-droite */
        radial-gradient(ellipse 50% 45% at 85% 30%, rgba(100,60,140,0.12) 0%, transparent 45%),
        /* Touche bleu nuit lointaine */
        radial-gradient(ellipse 70% 50% at 60% 50%, rgba(40,20,80,0.18) 0%, transparent 50%),
        /* Voile mauve diffus */
        radial-gradient(ellipse 100% 80% at 40% 95%, rgba(120,50,130,0.15) 0%, transparent 60%),
        /* Base dégradée sombre */
        linear-gradient(180deg, #07050D 0%, #0B0815 25%, #120C20 50%, #1C0F28 75%, #251230 100%);

    /* Typography */
    --font-body: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow-orange: 0 0 40px rgba(226,121,61,0.15);
    --shadow-glow-magenta: 0 0 40px rgba(217,70,168,0.1);

    /* Easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light theme overrides --- */
[data-theme="light"] {
    --color-bg-deep: #F5F4F0;
    --color-bg-dark: #FAFAF8;
    --color-bg: #FAFAF8;
    --color-surface: rgba(255,255,255,0.8);
    --color-surface-solid: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #555555;
    --color-text-muted: #888888;
    --color-text-faint: #BBBBBB;
    --color-border: rgba(0,0,0,0.08);
    --color-border-light: rgba(0,0,0,0.04);
    --color-primary: #E2793D;
    --glass-bg: rgba(255,255,255,0.6);
    --glass-bg-hover: rgba(255,255,255,0.8);
    --glass-bg-active: rgba(226,121,61,0.08);
    --glass-border: 1px solid rgba(0,0,0,0.06);
    --glass-border-hover: 1px solid rgba(0,0,0,0.12);
    --glass-border-active: 1px solid rgba(226,121,61,0.4);
    --hero-gradient:
        radial-gradient(ellipse at 50% 100%, rgba(120,40,120,0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 50%, rgba(226,121,61,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(140,50,100,0.06) 0%, transparent 50%),
        linear-gradient(180deg, #FAF8F5 0%, #F5F0F2 80%, #F0EAF0 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-glow-orange: 0 0 40px rgba(226,121,61,0.1);
    --shadow-glow-magenta: 0 0 40px rgba(217,70,168,0.06);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle grain texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-coral); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Gradient Bar (removed fixed bar, replaced with nav glow) --- */
.gradient-bar {
    height: 0;
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-orange), var(--brand-coral), var(--brand-magenta));
    opacity: 0;
    pointer-events: none;
}

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 700px; margin: 0 auto; padding: 0 24px; }

/* === NAVBAR === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13,17,23,0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}
[data-theme="light"] .navbar {
    background: rgba(250,250,248,0.75);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    background: rgba(13,17,23,0.88);
}
[data-theme="light"] .navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    background: rgba(250,250,248,0.9);
}
.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226,121,61,0.3), rgba(217,70,168,0.2), transparent);
    opacity: 0.6;
}

.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
    max-width: 1440px; padding: 0 48px;
    margin: 0 auto;
}
.navbar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-text {
    font-size: 22px; font-weight: 800; color: var(--color-text);
    letter-spacing: 0.5px;
}
.logo-accent { color: var(--color-primary); }
.logo-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
    animation: pulse-dot 3s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.navbar-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--color-text-secondary);
    transition: all var(--transition); text-decoration: none;
}
.nav-link:hover { color: var(--color-text); background: rgba(255,255,255,0.05); }
[data-theme="light"] .nav-link:hover { background: rgba(0,0,0,0.04); }
.nav-link.active { color: var(--color-text); font-weight: 600; }
.nav-link.nav-cta {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff !important; font-weight: 600;
    border-radius: var(--radius-pill); padding: 8px 22px;
    backdrop-filter: blur(8px);
}
[data-theme="light"] .nav-link.nav-cta {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral));
    border: none; color: #fff !important;
}
.nav-link.nav-cta:hover {
    background: var(--color-primary); border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-orange);
    transform: translateY(-1px); color: #fff !important;
}

.navbar-controls { display: flex; align-items: center; gap: 6px; }
.navbar-toggle {
    display: none; width: 36px; height: 36px; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: var(--glass-border);
}
.hamburger-line {
    width: 20px; height: 2px; background: var(--color-text);
    transition: var(--transition); border-radius: 2px;
}
.navbar-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Dropdowns --- */
.dropdown { position: relative; }
.dropdown-toggle {
    display: flex; align-items: center; gap: 4px; padding: 6px 12px;
    font-size: 13px; font-weight: 500; color: var(--color-text-secondary);
    border: var(--glass-border); border-radius: var(--radius-sm);
    background: var(--glass-bg); backdrop-filter: blur(8px);
    transition: var(--transition);
}
.dropdown-toggle:hover {
    border-color: rgba(255,255,255,0.15);
    background: var(--glass-bg-hover);
    color: var(--color-text);
}
.dropdown-menu {
    position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: var(--color-surface-solid); border: var(--glass-border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
    min-width: 110px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all 0.25s ease; z-index: 100;
    backdrop-filter: blur(20px);
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: block; padding: 8px 14px; font-size: 13px; color: var(--color-text-secondary);
    transition: var(--transition); white-space: nowrap; text-decoration: none;
}
.dropdown-item:hover { background: var(--glass-bg-active); color: var(--color-primary); }
.dropdown-item.active { color: var(--color-primary); font-weight: 600; }

/* --- Theme Toggle --- */
.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-secondary); transition: var(--transition);
    background: var(--glass-bg); border: var(--glass-border);
}
.theme-toggle:hover {
    background: rgba(226,121,61,0.1); color: var(--color-primary);
    border-color: rgba(226,121,61,0.2);
}
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun, :root .icon-sun { display: none; }
[data-theme="light"] .icon-moon, :root .icon-moon { display: block; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; transition: all var(--transition);
    border: none; cursor: pointer; text-decoration: none; position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--color-primary); color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-glow-orange); color: #fff; }
.btn-cta {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral));
    color: #fff; font-weight: 700;
    box-shadow: 0 4px 15px rgba(226,121,61,0.2);
}
.btn-cta:hover {
    box-shadow: 0 8px 30px rgba(226,121,61,0.35);
    color: #fff; transform: translateY(-2px);
}
.btn-outline {
    background: var(--glass-bg); color: var(--color-text);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: var(--color-primary); color: var(--color-primary);
    background: var(--glass-bg-active);
}
.btn-white {
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px); font-weight: 700;
}
[data-theme="light"] .btn-white {
    background: transparent; color: var(--color-text);
    border: 1.5px solid var(--color-text);
}
.btn-white:hover {
    background: var(--color-primary); border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-orange); color: #fff;
}
[data-theme="light"] .btn-white:hover {
    color: #fff;
}
.btn-glass {
    background: var(--glass-bg); color: var(--color-text);
    border: var(--glass-border); backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: var(--glass-bg-hover); border-color: rgba(255,255,255,0.15);
}
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* === SECTIONS === */
.section {
    padding: 100px 0;
    position: relative; overflow: hidden;
}
.section-alt {
    background: var(--color-bg-dark);
}
.section-label {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--color-primary);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700;
    text-align: center; margin-bottom: 12px;
    color: var(--color-text); letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 16px; color: var(--color-text-secondary);
    text-align: center; margin-bottom: 56px;
    max-width: 600px; margin-left: auto; margin-right: auto;
    line-height: 1.7;
}
.page-header {
    padding: 130px 0 60px; text-align: center;
    position: relative; overflow: hidden;
    background: var(--hero-gradient);
}
.page-header::before {
    content: '';
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(226,121,61,0.15), transparent 70%);
    top: -100px; right: -100px; filter: blur(60px); pointer-events: none;
}
.page-title {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
    margin-bottom: 12px; letter-spacing: -0.02em; color: var(--color-text);
}
.page-subtitle {
    font-size: 16px; color: var(--color-text-secondary);
    max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* === HERO === */
.hero {
    min-height: 100vh; align-items: center;
    position: relative; overflow: hidden;
    background: var(--hero-gradient);
    padding: 120px 0 80px;
}
/* Orbe violet-magenta gauche */
.hero::before {
    content: '';
    position: absolute; width: 350px; height: 800px; border-radius: 50%;
    background:
        radial-gradient(circle, rgba(140,30,120,0.35) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(180,50,100,0.2) 0%, transparent 40%);
    bottom: -25%; left: -8%; filter: blur(100px); pointer-events: none;
}
/* Orbe rose-prune droite */
.hero::after {
    content: '';
    position: absolute; width: 350px; height: 650px; border-radius: 50%;
    background:
        radial-gradient(circle, rgba(150,40,120,0.28) 0%, transparent 50%),
        radial-gradient(circle at 30% 40%, rgba(100,50,140,0.15) 0%, transparent 40%);
    bottom: -15%; right: -6%; filter: blur(100px); pointer-events: none;
}

.hero .container {
    position: relative; z-index: 2;
    max-width: 1200px;
    padding: 0 24px;
}
.hero-content { text-align: left; width: 100%; }
.hero-badge {
    display: inline-block; padding: 8px 18px; border-radius: var(--radius-pill);
    background: var(--glass-bg); border: var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--color-text-secondary); font-size: 13px; font-weight: 500;
    margin-bottom: 32px; letter-spacing: 0.02em;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900;
    line-height: 1.0; margin-bottom: 28px; letter-spacing: -0.04em;
    color: #fff;
}
[data-theme="light"] .hero-title { color: var(--color-text); }
.hero-accent {
    display: block;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral), var(--brand-magenta));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
    font-family: var(--font-body); font-weight: 900; font-style: normal;
}
.hero-subtitle {
    font-size: 18px; color: var(--color-text-secondary);
    margin-bottom: 40px; line-height: 1.7; max-width: 550px;
}
.hero-buttons { display: flex; gap: 14px; margin-bottom: 56px; flex-wrap: wrap; max-width: 550px; }
.hero-stats { display: flex; gap: 48px; }
.stat-item { text-align: left; }
.stat-number {
    display: block; font-size: 28px; font-weight: 800; color: #fff;
    font-family: var(--font-mono);
}
[data-theme="light"] .stat-number { color: var(--color-text); }
.stat-label { font-size: 13px; color: var(--color-text-muted); }

/* Hero floating card */
.hero-floating {
    position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
    width: 280px; z-index: 3;
    display: flex; flex-direction: column; gap: 16px;
    align-items: flex-end;
}
@media (max-width: 1280px) {
    .hero-floating { display: none; }
}
.floating-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg); padding: 24px 28px;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
    color: var(--color-text);
}
.floating-card-sm {
    padding: 16px 22px;
    animation-delay: -2s;
}
[data-theme="light"] .floating-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.06);
}
.floating-card-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 8px;
}
.floating-card-value {
    font-size: 24px; font-weight: 800; color: var(--color-primary);
    font-family: var(--font-mono);
}
.floating-card-bar {
    height: 4px; border-radius: 2px; margin-top: 12px; width: 180px;
    background: rgba(255,255,255,0.06); overflow: hidden;
}
.floating-card-bar-fill {
    height: 100%; border-radius: 2px; width: 65%;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-orange), var(--brand-coral), var(--brand-magenta));
    position: relative; overflow: hidden;
}
.floating-card-bar-fill::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

/* Hero testimonial */
.hero-testimonial {
    max-width: 280px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px); border-radius: var(--radius-md);
    padding: 18px 22px; animation: float 8s ease-in-out infinite; animation-delay: -4s;
}
[data-theme="light"] .hero-testimonial {
    background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.06);
}
.hero-testimonial-stars { color: var(--brand-orange); font-size: 14px; margin-bottom: 8px; letter-spacing: 2px; }
.hero-testimonial-text { font-size: 13px; color: var(--color-text-secondary); font-style: italic; line-height: 1.6; margin-bottom: 8px; }
.hero-testimonial-author { font-size: 12px; font-weight: 600; color: var(--color-text-muted); }

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

/* === STEPS === */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
    text-align: center; padding: 36px 28px;
    background: var(--glass-bg); border: var(--glass-border);
    border-radius: var(--radius-lg); backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
}
.step-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow-orange);
}
.step-number {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral));
    color: #fff; font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(226,121,61,0.3);
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--color-text); }
.step-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* Large watermark number behind each step */
.step-card::before {
    content: attr(data-step);
    position: absolute; top: -10px; right: 15px;
    font-size: 120px; font-weight: 900; color: var(--color-text);
    opacity: 0.03; pointer-events: none; line-height: 1;
}

/* === CATEGORIES GRID === */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
    display: block; padding: 28px 24px;
    background: var(--glass-bg); border: var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    text-decoration: none; color: var(--color-text);
    position: relative; overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--cat-color, var(--color-primary));
    opacity: 0; transition: opacity var(--transition);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.category-card:hover {
    transform: translateY(-4px);
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
}
.category-card:hover::before { opacity: 1; }
.category-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.category-card h3 {
    font-size: 17px; font-weight: 600; margin-bottom: 6px;
    color: var(--color-text);
}
.category-card p { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }

/* === CTA SECTION === */
.section-cta {
    background: linear-gradient(135deg, rgba(226,121,61,0.1), rgba(217,70,168,0.08));
    text-align: center; color: var(--color-text);
    position: relative; overflow: hidden;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.section-cta::before {
    content: '';
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(226,121,61,0.15), transparent 70%);
    top: -200px; left: 50%; transform: translateX(-50%);
    filter: blur(80px); pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; color: var(--color-text); font-weight: 700; }
.cta-content p { font-size: 16px; color: var(--color-text-secondary); margin-bottom: 32px; }

/* === SERVICE SECTIONS (services.php) === */
.service-section {
    padding: 32px; margin-bottom: 24px;
    background: var(--glass-bg); border: var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out);
    position: relative; overflow: hidden;
}
.service-section::before {
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
    background: var(--cat-color, var(--color-primary));
    border-radius: 3px 0 0 3px;
}
.service-section:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.service-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.service-header h2 { font-size: 22px; font-weight: 700; color: var(--color-text); }
.service-icon { font-size: 28px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag {
    padding: 5px 14px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 500;
    background: var(--glass-bg-active); color: var(--color-primary);
    border: 1px solid rgba(226,121,61,0.15);
}
.service-price {
    font-size: 15px; font-weight: 700; color: var(--color-primary);
    font-family: var(--font-mono);
}

/* === FOOTER === */
.site-footer {
    background: #060810; border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
}
[data-theme="light"] .site-footer {
    background: var(--color-surface-solid);
    border-top: 1px solid var(--color-border);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand { margin-bottom: 12px; }
.footer-slogan { font-family: var(--font-accent); font-style: italic; color: var(--color-text-muted); font-size: 14px; }
.footer-description { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 16px; }
.footer-contact-info { font-size: 13px; color: var(--color-text-muted); }
.footer-contact-info p { margin-bottom: 4px; }
.footer-col h4 {
    font-size: 13px; font-weight: 600; margin-bottom: 16px;
    color: var(--color-text-secondary); text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: var(--color-text-muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--color-text); }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center; font-size: 13px; color: var(--color-text-muted);
}
[data-theme="light"] .footer-bottom {
    border-top-color: var(--color-border);
}

/* === FORMS === */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 500;
    margin-bottom: 6px; color: var(--color-text-secondary);
}
.form-input {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    color: var(--color-text); font-size: 14px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.form-input:focus {
    outline: none;
    border-color: rgba(226,121,61,0.5);
    box-shadow: 0 0 0 3px rgba(226,121,61,0.1), 0 0 20px rgba(226,121,61,0.05);
    background: var(--glass-bg-hover);
}
.form-input::placeholder { color: var(--color-text-faint); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info { padding: 32px; background: var(--glass-bg); border: var(--glass-border); border-radius: var(--radius-lg); backdrop-filter: blur(10px); }
.contact-info h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--color-text); }
.contact-item { margin-bottom: 20px; }
.contact-item strong { display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item p { color: var(--color-text-secondary); }
.contact-item a { color: var(--color-primary); }
.contact-form-wrapper { padding: 32px; background: var(--glass-bg); border: var(--glass-border); border-radius: var(--radius-lg); backdrop-filter: blur(10px); }

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--color-border);
    background: var(--glass-bg); border: var(--glass-border);
    border-radius: var(--radius-md); margin-bottom: 8px;
    overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255,255,255,0.12); }
.faq-question {
    display: flex; width: 100%; text-align: left; padding: 18px 20px;
    font-size: 16px; font-weight: 500; color: var(--color-text);
    cursor: pointer; transition: var(--transition);
    justify-content: space-between; align-items: center;
}
.faq-question::after {
    content: '+'; font-size: 20px; font-weight: 300; color: var(--color-primary);
    transition: transform 0.3s ease; flex-shrink: 0; margin-left: 12px;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { color: var(--color-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 20px 18px; font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* === LEGAL === */
.legal-content h2 {
    font-size: 20px; margin: 36px 0 12px; color: var(--color-primary);
    font-weight: 600;
}
.legal-content p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 12px; line-height: 1.7; }
.legal-content ul { margin: 8px 0 12px 20px; }
.legal-content li { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 6px; list-style: disc; }
.legal-content em { color: var(--color-text-muted); }
.legal-content a { color: var(--color-primary); }

/* === MODALS === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; backdrop-filter: blur(8px);
}
.modal {
    background: var(--color-surface-solid); border: var(--glass-border);
    border-radius: var(--radius-xl); padding: 36px;
    max-width: 480px; width: 90%; position: relative;
    box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
/* Gradient top bar on modal */
.modal::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-orange), var(--brand-coral), var(--brand-magenta));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-sm { max-width: 380px; }
.modal-close {
    position: absolute; top: 14px; right: 18px; font-size: 22px;
    color: var(--color-text-muted); cursor: pointer; background: none; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--color-text); }
.modal-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--color-text); }
.modal-subtitle { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 24px; }
.modal-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-surface-solid); border-top: var(--glass-border);
    padding: 16px 24px; z-index: 1500;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
}
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-content p { font-size: 13px; color: var(--color-text-secondary); }
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }

/* === BADGES === */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.badge-generated { background: rgba(59,130,246,0.15); color: #60A5FA; }
.badge-downloaded { background: rgba(34,197,94,0.15); color: #4ADE80; }
.badge-converted { background: rgba(234,179,8,0.15); color: #FACC15; }
.badge-draft { background: rgba(255,255,255,0.06); color: var(--color-text-muted); }
.badge-form { background: rgba(59,130,246,0.15); color: #60A5FA; }
.badge-forced { background: rgba(249,115,22,0.15); color: #FB923C; }
.badge-abandoned { background: rgba(239,68,68,0.15); color: #F87171; }
.badge-contact { background: rgba(168,85,247,0.15); color: #C084FC; }

/* === ALERTS === */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: rgba(239,68,68,0.1); color: #F87171; border: 1px solid rgba(239,68,68,0.2); }
.alert-success { background: rgba(34,197,94,0.1); color: #4ADE80; border: 1px solid rgba(34,197,94,0.2); }
.form-feedback { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 16px; font-size: 14px; }
.form-feedback.success { background: rgba(34,197,94,0.1); color: #4ADE80; border: 1px solid rgba(34,197,94,0.2); }
.form-feedback.error { background: rgba(239,68,68,0.1); color: #F87171; border: 1px solid rgba(239,68,68,0.2); }

/* === NOTIFICATIONS === */
.notification {
    position: fixed; top: 80px; right: 24px; z-index: 3000;
    padding: 14px 22px; border-radius: var(--radius-md);
    font-size: 14px; box-shadow: var(--shadow-lg);
    transform: translateX(120%); transition: transform 0.3s ease;
    backdrop-filter: blur(20px); border: var(--glass-border);
}
.notification.show { transform: translateX(0); }
.notification-info { background: var(--color-surface-solid); color: var(--color-text); }
.notification-success { background: rgba(34,197,94,0.15); color: #4ADE80; }
.notification-error { background: rgba(239,68,68,0.15); color: #F87171; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Section glow decorators */
.section-glow { position: relative; }
.section-glow::before {
    content: '';
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(226,121,61,0.1), transparent 70%);
    filter: blur(60px); pointer-events: none;
    top: -100px; left: -100px;
}
.section-glow::after {
    content: '';
    position: absolute; width: 350px; height: 350px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217,70,168,0.07), transparent 70%);
    filter: blur(60px); pointer-events: none;
    bottom: -100px; right: -100px;
}

/* === MOBILE NAV CONTROLS === */
/* Controls inside hamburger menu — hidden on desktop */
.navbar-menu-controls { display: none; }

/* === RESPONSIVE === */

/* --- Tablet (768–1024px) --- */
@media (max-width: 1024px) {
    /* Hero */
    .hero .container { text-align: left; }
    .hero-title { font-size: clamp(2.5rem, 7vw, 4rem); }
    .hero-subtitle { margin-left: 0; margin-right: auto; }
    .hero-buttons { justify-content: flex-start; }
    .hero-stats { justify-content: flex-start; }
    .stat-item { text-align: left; }

    /* Grids */
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* Contact: form first */
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-info { order: 2; }
    .contact-form-wrapper { order: 1; }
}

/* --- Mobile (<768px) --- */
@media (max-width: 768px) {

    /* ---- Navbar ---- */
    .navbar-toggle { display: flex; }
    .navbar-inner { height: 56px; }
    /* Hide desktop lang/currency dropdowns, keep theme toggle */
    .navbar-control-desktop { display: none; }
    .navbar-controls { gap: 6px; }
    .theme-toggle { width: 36px; height: 36px; /* 44px touch via padding */ }

    /* BUGFIX: removed bottom:0 — menu was covering the full screen,
       preventing click-outside from closing it */
    .navbar-menu {
        position: fixed; top: 56px; left: 0; right: 0;
        background: var(--color-surface-solid);
        border-bottom: var(--glass-border);
        flex-direction: column; padding: 12px 16px; gap: 2px;
        transform: translateY(-120%); transition: transform 0.3s ease;
        backdrop-filter: blur(20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 56px); /* BUGFIX: constrain height instead of bottom:0 */
    }
    .navbar-menu.open {
        transform: translateY(0);
        box-shadow: var(--shadow-lg);
    }
    /* Nav links: 44px touch targets */
    .nav-link {
        padding: 14px 16px; font-size: 16px; width: 100%;
        border-radius: var(--radius-sm);
        min-height: 44px; display: flex; align-items: center;
    }
    .nav-link.nav-cta { text-align: center; justify-content: center; margin-top: 8px; }

    /* Mobile-only controls inside hamburger */
    .navbar-menu-controls {
        display: flex; gap: 8px; padding: 16px 0 8px;
        margin-top: 8px; border-top: 1px solid var(--color-border);
    }
    .navbar-menu-controls .dropdown-toggle {
        padding: 10px 16px; font-size: 14px;
        min-height: 44px;
    }
    .navbar-menu-controls .dropdown-menu {
        bottom: 100%; top: auto; margin-bottom: 6px; margin-top: 0;
    }

    /* ---- Hero ---- */
    .hero { padding: 90px 0 50px; min-height: auto; }
    .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
    .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 20px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .stat-number { font-size: 22px; }
    .hero-buttons {
        flex-direction: column; align-items: stretch;
        margin-bottom: 32px; gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%; justify-content: center;
        min-height: 48px; font-size: 15px;
    }

    /* ---- Sections ---- */
    .section { padding: 50px 0; }
    .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
    .section-subtitle { font-size: 14px; margin-bottom: 28px; }
    .section-label { font-size: 0.7rem; }
    .container { padding: 0 16px; }
    .hero .container { padding: 0 16px; }
    .navbar-inner { padding: 0 16px; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; gap: 12px; }
    .step-card { padding: 22px 18px; }
    .step-card::before { font-size: 80px; }

    /* Categories */
    .categories-grid { grid-template-columns: 1fr; gap: 10px; }
    .category-card { padding: 18px 16px; display: flex; gap: 14px; align-items: center; }
    .category-icon { font-size: 28px; margin-bottom: 0; flex-shrink: 0; }
    .category-card h3 { font-size: 15px; margin-bottom: 2px; }
    .category-card p { font-size: 12px; }

    /* Services page */
    .service-section { padding: 20px; margin-bottom: 12px; }
    .service-header h2 { font-size: 17px; }
    .service-tags { gap: 6px; }
    .tag { font-size: 11px; padding: 4px 10px; }
    .service-price { font-size: 14px; }

    /* CTA */
    .section-cta { padding: 40px 0; }
    .cta-content h2 { font-size: 1.3rem; }
    .cta-content p { font-size: 14px; margin-bottom: 24px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-info { padding: 20px; order: 2; }
    .contact-form-wrapper { padding: 20px; order: 1; }

    /* FAQ */
    .faq-item { margin-bottom: 6px; }
    .faq-question { font-size: 14px; padding: 14px 16px; min-height: 48px; }
    .faq-question::after { font-size: 18px; }
    .faq-answer p { padding: 0 16px 14px; font-size: 13px; }

    /* Legal */
    .legal-content h2 { font-size: 17px; margin: 24px 0 10px; }
    .legal-content p, .legal-content li { font-size: 13px; }

    /* Page headers */
    .page-header { padding: 80px 0 24px; }
    .page-title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .page-subtitle { font-size: 14px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-col h4 { margin-bottom: 10px; font-size: 12px; }
    .footer-col ul a { font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
    .footer-bottom { font-size: 12px; }
    .footer-description { font-size: 13px; }

    /* Modals */
    .modal {
        padding: 24px 20px; border-radius: var(--radius-lg);
        width: 95%; max-width: none;
    }
    .modal-title { font-size: 18px; }
    .modal-subtitle { font-size: 13px; }
    .modal .form-input { min-height: 44px; font-size: 16px; /* prevents iOS zoom */ }
    .modal .btn { min-height: 48px; }

    /* Cookie */
    .cookie-banner { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .cookie-content { flex-direction: column; text-align: center; gap: 10px; }
    .cookie-content p { font-size: 12px; }
    .cookie-buttons .btn { min-height: 40px; }

    /* Notifications */
    .notification { right: 12px; left: 12px; top: 66px; }

    /* Main offset */
    .main-content { padding-top: 56px; }
}

/* --- Small phones (<375px) --- */
@media (max-width: 375px) {
    .hero-title { font-size: 1.75rem; }
    .hero-stats { gap: 14px; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 11px; }
    .btn-lg { padding: 12px 18px; font-size: 14px; }
    .section-title { font-size: 1.3rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 14px; }
    .hero .container { padding: 0 14px; }
    .navbar-inner { padding: 0 14px; }
}

/* === CHATBOT WIDGET === */
.chatbot-fab {
    position: fixed; bottom: 24px; left: 24px; z-index: 1800;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral));
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 6px 24px rgba(226,121,61,0.4);
    transition: all 0.3s var(--ease-out); border: none;
}
.chatbot-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 36px rgba(226,121,61,0.5);
}
.chatbot-fab.hidden { display: none; }

.chatbot-window {
    position: fixed; bottom: 90px; left: 24px; z-index: 1800;
    width: 380px; max-width: calc(100vw - 32px);
    height: 520px; max-height: calc(100vh - 120px);
    background: var(--color-surface-solid);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s var(--ease-out);
    overflow: hidden;
}
.chatbot-window.open {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--color-border);
    background: var(--glass-bg); backdrop-filter: blur(10px);
    flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral));
    display: flex; align-items: center; justify-content: center; color: #fff;
    flex-shrink: 0;
}
.chatbot-header-info strong { font-size: 14px; color: var(--color-text); display: block; }
.chatbot-header-info small { font-size: 11px; color: var(--color-primary); }
.chatbot-close {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.06); color: var(--color-text-muted);
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.chatbot-close:hover { background: rgba(239,68,68,0.1); color: #F87171; }

/* Messages */
.chatbot-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    -webkit-overflow-scrolling: touch;
}
.chatbot-messages::-webkit-scrollbar { width: 3px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.chatbot-msg {
    max-width: 85%; padding: 10px 14px;
    font-size: 13px; line-height: 1.6;
    border-radius: var(--radius-md);
    word-wrap: break-word;
}
.chatbot-msg-bot {
    align-self: flex-start;
    background: var(--glass-bg); border: var(--glass-border);
    color: var(--color-text);
}
.chatbot-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral));
    color: #fff;
}
.chatbot-msg-typing {
    align-self: flex-start;
    background: var(--glass-bg); border: var(--glass-border);
    color: var(--color-text-muted); font-style: italic;
    padding: 10px 14px; font-size: 13px;
}
.chatbot-msg-typing::after {
    content: ''; display: inline-block;
    animation: typingDots 1.2s infinite;
}
@keyframes typingDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}
.chatbot-msg-error {
    align-self: flex-start;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
    color: #F87171;
}

/* Input */
.chatbot-input {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px; border-top: 1px solid var(--color-border);
    background: var(--glass-bg); flex-shrink: 0;
}
.chatbot-input input {
    flex: 1; padding: 10px 14px;
    border: var(--glass-border); border-radius: var(--radius-pill);
    background: var(--color-surface-solid); color: var(--color-text);
    font-size: 13px; font-family: var(--font-body);
    outline: none; transition: var(--transition);
}
.chatbot-input input:focus {
    border-color: rgba(226,121,61,0.4);
    box-shadow: 0 0 0 2px rgba(226,121,61,0.1);
}
.chatbot-input input::placeholder { color: var(--color-text-faint); }
.chatbot-input button {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-coral));
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); flex-shrink: 0;
}
.chatbot-input button:hover { transform: scale(1.05); box-shadow: var(--shadow-glow-orange); }
.chatbot-input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Mobile */
@media (max-width: 768px) {
    .chatbot-fab {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        left: 16px; width: 50px; height: 50px;
    }
    .chatbot-window {
        bottom: 0; left: 0; right: 0;
        width: 100%; max-width: 100%;
        height: 85vh; max-height: 85vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        bottom: 0;
    }
    .chatbot-window.open { transform: translateY(0) scale(1); }
    .chatbot-input { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* === PRINT === */
@media print {
    .navbar, .gradient-bar, .site-footer, .cookie-banner, .fab-recap,
    .modal-overlay, .notification, .btn, .navbar-controls,
    .chatbot-fab, .chatbot-window { display: none !important; }
    .main-content { padding-top: 0 !important; }
    body { background: #fff; color: #000; }
    .section { padding: 20px 0; }
}

/* === MAIN CONTENT OFFSET === */
.main-content { padding-top: 68px; min-height: calc(100vh - 300px); }

/* === SERVICE INFO TOOLTIP === */
/* Allow tooltip to overflow the card */
.service-section { overflow: visible; }

.service-info {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
}

.service-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: var(--glass-bg-active);
    border: 1px solid rgba(226,121,61,0.25);
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.service-info-btn:hover,
.service-info-btn:focus-visible {
    background: rgba(226,121,61,0.18);
    box-shadow: 0 0 0 4px rgba(226,121,61,0.12);
    transform: scale(1.06);
    outline: none;
}
.service-info-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary);
}

.service-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    max-width: min(300px, calc(100vw - 48px));
    padding: 14px 16px;
    background: var(--color-surface-solid);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease-out),
                transform 0.2s var(--ease-out),
                visibility 0s linear 0.2s;
    pointer-events: none;
    z-index: 50;
}
/* Little arrow pointing to the info button */
.service-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: var(--color-surface-solid);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: rotate(45deg);
}

/* Show on hover (desktop), keyboard focus, or when opened via JS click */
.service-info:hover .service-tooltip,
.service-info:focus-within .service-tooltip,
.service-info.is-open .service-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.25s var(--ease-out) 0.12s,
                transform 0.25s var(--ease-out) 0.12s,
                visibility 0s linear 0s;
}

/* Mobile: open the tooltip by tap only, disable hover trigger */
@media (hover: none) {
    .service-info:hover .service-tooltip,
    .service-info:focus-within .service-tooltip {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        pointer-events: none;
    }
    .service-info.is-open .service-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .service-info { top: 12px; right: 12px; }
    .service-tooltip {
        width: calc(100vw - 64px);
        max-width: 320px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-info-btn,
    .service-tooltip { transition: none !important; }
}
