        /* ─── THEMES ─────────────────────────────── */
        :root {
            --primary: #3b82f6;
            --secondary: #8b5cf6;
            --transition: 0.35s ease;
        }
        [data-theme="dark"] {
            --bg: #07101f;
            --bg2: #0d1a2e;
            --surface: rgba(255,255,255,0.04);
            --surface-hover: rgba(255,255,255,0.07);
            --border: rgba(255,255,255,0.08);
            --border-hover: rgba(99,163,255,0.35);
            --text: #f0f6ff;
            --text-muted: rgba(240,246,255,0.52);
            --text-faint: rgba(240,246,255,0.28);
            --card-shadow: 0 20px 50px rgba(0,0,0,0.35);
            --glow: rgba(59,130,246,0.28);
            --logo-grad: linear-gradient(135deg, #93c5fd, #c4b5fd);
            --orb-op: 1;
        }
        [data-theme="light"] {
            --bg: #f0f6ff;
            --bg2: #e6effc;
            --surface: rgba(255,255,255,0.85);
            --surface-hover: rgba(255,255,255,1);
            --border: rgba(59,130,246,0.13);
            --border-hover: rgba(59,130,246,0.4);
            --text: #0f172a;
            --text-muted: #475569;
            --text-faint: #94a3b8;
            --card-shadow: 0 10px 40px rgba(59,130,246,0.09);
            --glow: rgba(59,130,246,0.22);
            --logo-grad: linear-gradient(135deg, #2563eb, #7c3aed);
            --orb-op: 0.45;
        }

        *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
        html { scroll-behavior: smooth; }
        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'DM Sans', sans-serif;
            overflow-x: hidden;
            transition: background var(--transition), color var(--transition);
        }

        /* ─── BG ORBS ────────────────────────────── */
        .bg-orbs {
            position: fixed; inset: 0;
            pointer-events: none; z-index: 0; overflow: hidden;
            opacity: var(--orb-op);
            transition: opacity var(--transition);
        }
        .orb {
            position: absolute; border-radius: 50%;
            filter: blur(90px);
            animation: orbFloat 18s ease-in-out infinite;
        }
        .orb-1 {
            width: 700px; height: 700px;
            background: radial-gradient(circle, rgba(59,130,246,0.14), transparent 65%);
            top: -250px; right: -150px;
        }
        .orb-2 {
            width: 550px; height: 550px;
            background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 65%);
            bottom: 5%; left: -200px;
            animation-delay: -9s;
        }
        .orb-3 {
            width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(244,114,182,0.08), transparent 65%);
            top: 45%; right: 15%;
            animation-delay: -4s;
        }
        @keyframes orbFloat {
            0%,100% { transform: translate(0,0); }
            33% { transform: translate(25px,-35px); }
            66% { transform: translate(-20px,20px); }
        }

        /* ─── GRID ───────────────────────────────── */
        .grid-lines {
            position: fixed; inset: 0; pointer-events: none; z-index: 0;
            background-image:
                linear-gradient(var(--border) 1px, transparent 1px),
                linear-gradient(90deg, var(--border) 1px, transparent 1px);
            background-size: 64px 64px;
            transition: all var(--transition);
        }

        /* ─── NAVBAR ─────────────────────────────── */
        nav {
            display: flex; justify-content: space-between; align-items: center;
            padding: 1.1rem 5%;
            position: fixed; width: 100%; top: 0; z-index: 1000;
            transition: all 0.4s;
            border-bottom: 1px solid transparent;
        }
        nav.scrolled {
            background: rgba(7,16,31,0.88);
            backdrop-filter: blur(18px);
            border-bottom-color: var(--border);
        }
        [data-theme="light"] nav.scrolled {
            background: rgba(240,246,255,0.88);
        }
        .logo {
            font-family: 'Nunito', sans-serif;
            font-size: 1.55rem; font-weight: 900;
            background: var(--logo-grad);
            -webkit-background-clip: text; color: transparent;
            letter-spacing: -0.5px;
        }
        .nav-links a {
            text-decoration: none; color: var(--text-muted);
            margin-left: 1.8rem; font-size: 0.9rem; font-weight: 500;
            transition: color 0.2s;
        }
        .nav-links a:hover { color: var(--text); }
        .nav-right { display: flex; align-items: center; gap: 0.5rem; }
        .theme-toggle {
            width: 42px; height: 42px; border-radius: 50%;
            border: 1px solid var(--border);
            background: var(--surface);
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            font-size: 1.1rem; transition: all 0.3s; margin-left: 1.5rem;
        }
        .theme-toggle:hover {
            background: var(--surface-hover);
            border-color: var(--border-hover);
            transform: rotate(20deg);
        }
        .btn-nav {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white; padding: 0.6rem 1.3rem; border-radius: 50px;
            text-decoration: none; font-weight: 700; font-size: 0.88rem;
            transition: all 0.3s; margin-left: 1rem;
        }
        .btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--glow); }

        /* ─── HERO ───────────────────────────────── */
        header {
            min-height: 100vh;
            padding: 130px 5% 80px;
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 4rem; align-items: center;
            position: relative; z-index: 1;
        }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 0.5rem;
            background: rgba(59,130,246,0.12);
            border: 1px solid rgba(59,130,246,0.3);
            padding: 0.4rem 1rem; border-radius: 50px;
            font-size: 0.82rem; font-weight: 600; color: #93c5fd;
            margin-bottom: 1.5rem;
            animation: fadeUp 0.7s ease both;
        }
        [data-theme="light"] .hero-badge { color: #2563eb; }
        .hero-badge .dot {
            width: 7px; height: 7px; background: #4ade80;
            border-radius: 50%; box-shadow: 0 0 8px #4ade80;
            animation: blink 2s ease-in-out infinite;
            flex-shrink: 0;
        }
        @keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

        h1 {
            font-family: 'Nunito', sans-serif;
            font-size: 3.6rem; line-height: 1.1; font-weight: 900;
            margin-bottom: 1.4rem; letter-spacing: -1.5px;
            animation: fadeUp 0.7s 0.08s ease both;
        }
        .gradient-text {
            background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
            background-size: 200% 200%;
            -webkit-background-clip: text; color: transparent;
            animation: gradShift 5s ease infinite;
        }
        @keyframes gradShift {
            0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;}
        }

        .hero-text > p {
            color: var(--text-muted); font-size: 1.1rem; line-height: 1.75;
            margin-bottom: 2.2rem; max-width: 470px;
            animation: fadeUp 0.7s 0.16s ease both;
        }
        .hero-cta {
            display: flex; gap: 1rem; align-items: center;
            animation: fadeUp 0.7s 0.24s ease both; flex-wrap: wrap;
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white; padding: 0.85rem 1.9rem; border-radius: 50px;
            text-decoration: none; font-family: 'Nunito', sans-serif;
            font-weight: 800; font-size: 0.98rem;
            transition: all 0.3s; position: relative; overflow: hidden;
        }
        .btn-primary::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
            transform: translateX(-100%); transition: transform 0.5s;
        }
        .btn-primary:hover::after { transform: translateX(100%); }
        .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 35px var(--glow); }
        .btn-ghost {
            color: var(--text-muted); text-decoration: none; font-weight: 500;
            display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem;
            transition: color 0.3s;
        }
        .btn-ghost:hover { color: var(--text); }
        .btn-ghost .arrow {
            width: 34px; height: 34px; border: 1px solid var(--border);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 0.9rem; transition: all 0.3s;
        }
        .btn-ghost:hover .arrow { border-color: var(--primary); color: var(--primary); transform: translateX(4px); }

        .hero-stats {
            display: flex; gap: 2.5rem; margin-top: 2.8rem;
            padding-top: 2rem; border-top: 1px solid var(--border);
            animation: fadeUp 0.7s 0.32s ease both;
        }
        .stat-num {
            font-family: 'Nunito', sans-serif; font-size: 1.9rem; font-weight: 900;
            background: linear-gradient(to right, #60a5fa, #a78bfa);
            -webkit-background-clip: text; color: transparent;
        }
        .stat-label { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.15rem; }

        .hero-img { position: relative; animation: fadeUp 0.7s 0.15s ease both; }
        .hero-img-wrap {
            position: relative; border-radius: 22px; overflow: hidden;
            box-shadow: var(--card-shadow);
        }
        .hero-img-wrap img { width: 100%; display: block; transition: transform 0.6s ease; }
        .hero-img:hover .hero-img-wrap img { transform: scale(1.03); }
        .hero-img-glow {
            position: absolute; inset: -2px; border-radius: 24px;
            background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(139,92,246,0.35));
            z-index: -1; opacity: 0.6;
        }
        .float-tag {
            position: absolute; background: rgba(96, 99, 104, 0.82);
            backdrop-filter: blur(12px); border: 1px solid var(--border);
            border-radius: 14px; padding: 0.75rem 1rem;
            display: flex; align-items: center; gap: 0.6rem;
            font-size: 0.8rem; font-weight: 600; z-index: 3;
            box-shadow: 0 8px 24px rgba(0,0,0,0.25); color: #f0f6ff;
        }
        .float-tag .fi { font-size: 1.2rem; }
        .float-tag small { color: var(--text-faint); font-weight: 400; display:block; font-size:0.72rem; }
        .ft-1 { bottom: -18px; left: -22px; animation: floatY 4s ease-in-out infinite; }
        .ft-2 { top: -12px; right: -18px; animation: floatY 4s ease-in-out infinite; animation-delay: -2s; }
        @keyframes floatY { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
        @keyframes fadeUp { from{opacity:0;transform:translateY(28px);} to{opacity:1;transform:translateY(0);} }

        /* ─── TICKER ─────────────────────────────── */
        .ticker-wrap {
            padding: 1rem 0; overflow: hidden; white-space: nowrap;
            border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
            background: var(--surface); position: relative; z-index: 1;
            transition: background var(--transition);
        }
        .ticker { display: inline-flex; animation: ticker 28s linear infinite; }
        .ticker-item {
            padding: 0 2.5rem; font-size: 0.83rem; font-weight: 600;
            color: var(--text-faint);
            display: inline-flex; align-items: center; gap: 0.7rem; letter-spacing: 0.03em;
        }
        .ticker-item .ti { color: var(--primary); font-size: 1rem; }
        @keyframes ticker { from{transform:translateX(0);} to{transform:translateX(-50%);} }

        /* ─── SECTIONS SHARED ────────────────────── */
        section { position: relative; z-index: 1; }
        .section-label {
            display: inline-flex; align-items: center; gap: 0.5rem;
            font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
            text-transform: uppercase; color: var(--primary); margin-bottom: 0.9rem;
        }
        .section-label::before { content:''; width:18px; height:2px; background:var(--primary); border-radius:2px; }
        .section-title {
            font-family: 'Nunito', sans-serif;
            font-size: 2.6rem; font-weight: 900;
            letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 0.8rem;
        }
        .section-sub { color: var(--text-muted); font-size: 1rem; max-width: 480px; line-height: 1.7; }

        /* ─── SERVICES ───────────────────────────── */
        .services { padding: 7rem 5%; }
        .services-head {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 2rem; align-items: end; margin-bottom: 3.5rem;
        }
        .services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
        .card {
            background: var(--surface); border: 1px solid var(--border);
            padding: 2rem; border-radius: 20px;
            transition: all 0.4s ease; position: relative; overflow: hidden; cursor: default;
        }
        .card::after {
            content: ''; position: absolute; top:0; left:0; right:0; height:2px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
        }
        .card:hover::after { transform: scaleX(1); }
        .card:hover {
            background: var(--surface-hover); border-color: var(--border-hover);
            transform: translateY(-7px); box-shadow: var(--card-shadow);
        }
        .card-icon {
            width: 52px; height: 52px;
            background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
            border: 1px solid rgba(99,163,255,0.2); border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; margin-bottom: 1.3rem; transition: transform 0.3s;
        }
        .card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }
        .card h3 {
            font-family: 'Nunito', sans-serif; font-size: 1.05rem; font-weight: 800;
            margin-bottom: 0.6rem; color: var(--text);
        }
        .card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

        /* ─── PORTFOLIO ──────────────────────────── */
        .portfolio { padding: 7rem 5%; }
        .portfolio-head {
            text-align: center; margin-bottom: 4rem;
        }
        .portfolio-head .section-label { justify-content: center; }
        .portfolio-head .section-sub { margin: 0 auto; }
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        .port-card {
            background: var(--surface); border: 1px solid var(--border);
            border-radius: 22px; padding: 2rem;
            position: relative; transition: all 0.4s ease;
            display: flex; flex-direction: column;
            overflow: hidden;
        }
        .port-card::after {
            content: ''; position: absolute; top:0; left:0; right:0; height:2px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
        }
        .port-card:hover::after { transform: scaleX(1); }
        .port-card:hover {
            background: var(--surface-hover); border-color: var(--border-hover);
            transform: translateY(-8px); box-shadow: var(--card-shadow);
        }
        .port-card-top {
            display: flex; align-items: flex-start;
            justify-content: space-between; gap: 0.8rem;
            margin-bottom: 1.2rem;
        }
        .port-icon {
            width: 52px; height: 52px; flex-shrink: 0;
            background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
            border: 1px solid rgba(99,163,255,0.2); border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; transition: transform 0.3s;
        }
        .port-card:hover .port-icon { transform: scale(1.1) rotate(-4deg); }
        .port-tag {
            display: inline-flex; align-items: center;
            padding: 0.28rem 0.8rem; border-radius: 50px;
            font-family: 'Nunito', sans-serif; font-size: 0.72rem;
            font-weight: 800; white-space: nowrap; letter-spacing: 0.02em;
            margin-top: 0.2rem;
        }
        .tag-built {
            background: rgba(59,130,246,0.12);
            border: 1px solid rgba(59,130,246,0.3);
            color: #93c5fd;
        }
        [data-theme="light"] .tag-built { color: #2563eb; background: rgba(59,130,246,0.08); }
        .tag-custom {
            background: rgba(139,92,246,0.12);
            border: 1px solid rgba(139,92,246,0.3);
            color: #c4b5fd;
        }
        [data-theme="light"] .tag-custom { color: #7c3aed; background: rgba(139,92,246,0.08); }
        .port-card h3 {
            font-family: 'Nunito', sans-serif; font-size: 1.1rem; font-weight: 800;
            margin-bottom: 0.7rem; color: var(--text);
        }
        .port-card > p {
            color: var(--text-muted); font-size: 0.88rem; line-height: 1.65;
            margin-bottom: 1.3rem; flex-grow: 1;
        }
        .port-features {
            list-style: none;
            border-top: 1px solid var(--border);
            padding-top: 1rem;
            display: flex; flex-direction: column; gap: 0.45rem;
        }
        .port-features li {
            color: var(--text-muted); font-size: 0.83rem;
            display: flex; align-items: center; gap: 0.55rem;
        }
        .port-features li::before {
            content: "✓"; color: var(--primary); font-weight: 800;
            font-size: 0.78rem; flex-shrink: 0;
        }


        /* ─── FOOTER ─────────────────────────────── */
        footer { padding: 6rem 5% 3rem; position: relative; z-index: 1; }
        .footer-inner { max-width: 1100px; margin: 0 auto; }
        .footer-contact-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }

        /* ─── FOOTER FORM BOX ────────────────────── */
        .footer-form-box {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 4rem; align-items: center;
            margin-bottom: 3rem; padding: 3.5rem 4rem;
            background: linear-gradient(155deg, rgba(59,130,246,0.07), rgba(139,92,246,0.07));
            border: 1px solid rgba(99,163,255,0.2);
            border-radius: 28px; position: relative; overflow: hidden;
        }
        .footer-form-box::before {
            content: ''; position: absolute; top:-50%; left:30%;
            width:500px; height:500px;
            background: radial-gradient(circle, rgba(59,130,246,0.09), transparent 65%);
            pointer-events: none;
        }
        .form-left h2 {
            font-family: 'Nunito', sans-serif; font-size: 2.4rem; font-weight: 900;
            letter-spacing: -1.2px; margin-bottom: 0.8rem; line-height: 1.15;
        }
        .form-left > p {
            color: var(--text-muted); font-size: 1rem; line-height: 1.7;
        }
        #contactForm { display: flex; flex-direction: column; gap: 0.75rem; }
        .form-field input,
        .form-field textarea {
            width: 100%; background: var(--bg); border: 1px solid var(--border);
            border-radius: 12px; padding: 0.8rem 1rem;
            color: var(--text); font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
            outline: none; transition: border-color 0.25s; resize: none;
        }
        .form-field input::placeholder,
        .form-field textarea::placeholder { color: var(--text-faint); }
        .form-field input:focus,
        .form-field textarea:focus { border-color: var(--primary); }
        .form-actions { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
        .btn-form-wa, .btn-form-email {
            flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.55rem;
            padding: 0.9rem 1rem; border-radius: 12px; border: none; cursor: pointer;
            font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.93rem;
            transition: all 0.3s;
        }
        .btn-form-wa { background: linear-gradient(135deg, #16a34a, #15803d); color: white; }
        .btn-form-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,163,74,0.3); }
        .btn-form-email { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
        .btn-form-email:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--glow); }

        /* ─── LANG TOGGLE ────────────────────────── */
        .lang-toggle {
            height: 42px; padding: 0 0.9rem; border-radius: 50px;
            border: 1px solid var(--border); background: var(--surface);
            color: var(--text-muted); cursor: pointer;
            font-family: 'Nunito', sans-serif; font-size: 0.78rem; font-weight: 800;
            letter-spacing: 0.05em; transition: all 0.3s; margin-left: 1.5rem;
        }
        .lang-toggle:hover { background: var(--surface-hover); border-color: var(--border-hover); color: var(--text); }
        .btn-wa {
            display: inline-flex; align-items: center; gap: 0.7rem;
            background: linear-gradient(135deg, #16a34a, #15803d);
            color: white; padding: 0.85rem 1.7rem; border-radius: 50px;
            text-decoration: none; font-family: 'Nunito', sans-serif;
            font-weight: 800; font-size: 0.93rem; transition: all 0.3s;
        }
        .btn-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,163,74,0.3); }
        #emailBtn {
            display: inline-flex; align-items: center; gap: 0.7rem;
            background: var(--surface-hover); border: 1.5px solid var(--border);
            color: var(--text); padding: 0.85rem 1.7rem; border-radius: 50px;
            text-decoration: none; font-family: 'Nunito', sans-serif;
            font-weight: 700; font-size: 0.93rem; transition: all 0.3s; cursor: pointer;
        }
        #emailBtn:hover { border-color: var(--primary); transform: translateY(-3px); }
        .footer-bottom {
            display: flex; justify-content: space-between; align-items: center;
            padding-top: 2rem; border-top: 1px solid var(--border);
            color: var(--text-faint); font-size: 0.82rem;
        }
        .footer-logo {
            font-family: 'Nunito', sans-serif; font-weight: 900;
            background: var(--logo-grad); -webkit-background-clip: text; color: transparent;
            font-size: 1.25rem;
        }

        /* ─── REVEAL ─────────────────────────────── */
        .reveal { opacity:0; transform:translateY(35px); transition: opacity 0.65s ease, transform 0.65s ease; }
        .reveal.visible { opacity:1; transform:translateY(0); }
        .d1 { transition-delay:0.1s; } .d2 { transition-delay:0.2s; } .d3 { transition-delay:0.3s; }

        /* ─── RESPONSIVE ─────────────────────────── */
        @media(max-width:1100px) {
            .footer-form-box { gap: 2.5rem; padding: 3rem 3rem; }
            .form-left h2 { font-size: 2rem; }
        }
        @media(max-width:900px) {
            header { grid-template-columns:1fr; padding-top:110px; text-align:center; }
            h1 { font-size:2.5rem; }
            .hero-text > p { margin:0 auto 2rem; }
            .hero-cta { justify-content:center; }
            .hero-stats { justify-content:center; }
            .hero-img { max-width:480px; margin:0 auto; }
            .ft-1,.ft-2 { display:none; }
            .nav-links { display:none; }
            .services-head { grid-template-columns:1fr; }
            .services-grid { grid-template-columns:repeat(2,1fr); }
            .portfolio-grid { grid-template-columns:repeat(2,1fr); }
            .footer-form-box { grid-template-columns:1fr; gap:2rem; padding:2.5rem 2rem; }
            .form-left { text-align:center; }
            .form-left h2 { font-size:1.9rem; }
            .footer-bottom { flex-direction:column; gap:0.5rem; text-align:center; }
        }
        @media(max-width:600px) {
            h1 { font-size:2rem; }
            .services-grid { grid-template-columns:1fr; }
            .portfolio-grid { grid-template-columns:1fr; }
            .footer-form-box { padding:2rem 1.5rem; }
            .form-actions { flex-direction:column; }
            .hero-stats { gap:1.5rem; }
        }

        #chat-bubble {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer; z-index: 8000;
    box-shadow: 0 8px 30px var(--glow);
    transition: transform 0.3s;
}
#chat-bubble:hover { transform: scale(1.1); }

#chat-window {
    position: fixed; bottom: 6.5rem; right: 2rem;
    width: 340px; height: 480px;
    background: var(--bg2, #0d1a2e);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: none; flex-direction: column;
    z-index: 8000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}
#chat-window.open { display: flex; }

#chat-header {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; font-family: 'Nunito', sans-serif;
    font-weight: 800; display: flex;
    justify-content: space-between; align-items: center;
}
#chat-header button {
    background: none; border: none; color: white;
    font-size: 1rem; cursor: pointer; opacity: 0.8;
}
#chat-header button:hover { opacity: 1; }

#chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.7rem;
}
.msg {
    padding: 0.65rem 0.9rem; border-radius: 14px;
    font-size: 0.88rem; line-height: 1.5; max-width: 85%;
}
.msg.bot {
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); align-self: flex-start;
}
.msg.user {
    background: var(--primary); color: white;
    align-self: flex-end;
}
.msg.typing { opacity: 0.6; font-style: italic; }

#chat-input-area {
    padding: 0.8rem; border-top: 1px solid var(--border);
    display: flex; gap: 0.5rem;
}
#chat-input {
    flex: 1; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.6rem 0.8rem;
    color: var(--text); font-size: 0.88rem; font-family: 'DM Sans', sans-serif;
    outline: none;
}
#chat-input:focus { border-color: var(--primary); }
#chat-input-area button {
    background: var(--primary); color: white; border: none;
    border-radius: 10px; padding: 0.6rem 0.9rem;
    cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
#chat-input-area button:hover { background: var(--secondary); }

