/* ── Reset & Base ─────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    :root {
      --bg:          #f0f6ff;
      --bg-alt:      #e8f0fc;
      --bg-section:  #eaf3ff;
      --card:        #ffffff;
      --card-alt:    #f5f9ff;
      --accent:      #1d5fd4;
      --accent-2:    #2563eb;
      --accent-pale: #dbeafe;
      --accent-glow: rgba(29,95,212,0.15);
      --text:        #0f172a;
      --text-mid:    #334155;
      --text-muted:  #64748b;
      --text-faint:  #94a3b8;
      --border:      #d1e0f7;
      --border-soft: #e8f0fc;
      --shadow:      0 4px 24px rgba(29,95,212,0.10);
      --shadow-lg:   0 8px 40px rgba(29,95,212,0.16);
      --radius-xl:   2rem;
      --radius-lg:   1.5rem;
      --radius-md:   1rem;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.6;
    }

    ::selection { background: var(--accent); color: #fff; }

    a { text-decoration: none; color: inherit; }
    img { display: block; max-width: 100%; }

    /* ── Utility ───────────────────────────────────────────────────── */
    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    @media (min-width: 640px)  { .container { padding: 0 2.5rem; } }
    @media (min-width: 1024px) { .container { padding: 0 3rem; } }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
      padding: 0.4rem 1rem;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      backdrop-filter: blur(8px);
    }

    .section-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      padding: 0.75rem 1.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .btn-primary:hover { transform: scale(1.03); box-shadow: 0 4px 20px var(--accent-glow); }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      background: var(--card);
      color: var(--text);
      padding: 0.75rem 1.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      border: 1.5px solid var(--border);
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
    }
    .btn-secondary:hover { border-color: var(--accent); background: var(--accent-pale); }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
    }

    /* ── Cookie Banner ──────────────────────────────────────────────── */
    #cookie-banner {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 100;
      border-top: 1px solid var(--border);
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(12px);
    }
    #cookie-banner .inner {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 1.25rem 1.5rem;
      max-width: 1280px;
      margin: 0 auto;
    }
    @media (min-width: 640px) {
      #cookie-banner .inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 2.5rem;
      }
    }
    #cookie-banner p { font-size: 0.875rem; color: var(--text-muted); max-width: 700px; }
    #cookie-banner .actions { display: flex; gap: 0.75rem; flex-shrink: 0; align-items: center; }
    #cookie-accept {
      border-radius: 999px;
      border: 1.5px solid var(--accent);
      background: var(--accent);
      color: #fff;
      padding: 0.5rem 1.25rem;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.15s;
    }
    #cookie-accept:hover { opacity: 0.88; }
    #cookie-reject {
      background: none;
      border: none;
      font-size: 0.875rem;
      color: var(--text-muted);
      cursor: pointer;
    }
    #cookie-reject:hover { color: var(--text); }

    /* ── Sticky Header ──────────────────────────────────────────────── */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 250;
      background: rgba(240, 246, 255, 0.96);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0.5rem 0;
    }

    /* ── Hero ──────────────────────────────────────────────────────── */
    #hero {
      position: relative;
      overflow: hidden;
      background: url('images/head-site.jpg') center center / cover no-repeat;
    }
    #hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(8, 18, 48, 0.75);
      pointer-events: none;
    }

    /* ── Navbar ─────────────────────────────────────────────────────── */
    .navbar-logo {
      height: 42px;
      width: auto;
      display: block;
    }

    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.80);
      backdrop-filter: blur(14px);
      padding: 0.9rem 2.5rem;
      box-shadow: var(--shadow);
      width: 100%;
    }
    .navbar-brand .brand-name {
      font-size: 0.7rem;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      font-weight: 700;
      color: var(--accent);
    }
    .navbar-brand .brand-sub {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.1rem;
    }
    .navbar-nav {
      display: none;
      gap: 1.5rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text-mid);
      list-style: none;
    }
    @media (min-width: 768px) { .navbar-nav { display: flex; } }
    .navbar-nav a { transition: color 0.15s; }
    .navbar-nav a:hover { color: var(--accent); }

    /* Hamburger toggle button */
    #nav-toggle {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      background: none;
      border: 1.5px solid var(--border);
      cursor: pointer;
      padding: 0.55rem 0.65rem;
      border-radius: 0.625rem;
      transition: background 0.15s, border-color 0.15s;
    }
    #nav-toggle:hover { background: var(--accent-pale); border-color: var(--accent); }
    #nav-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
    }
    @media (min-width: 768px) { #nav-toggle { display: none; } }

    /* Mobile backdrop */
    #mobile-backdrop {
      position: fixed;
      inset: 0;
      z-index: 299;
      background: rgba(0, 0, 0, 0.35);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    #mobile-backdrop.open { opacity: 1; pointer-events: all; }
    @media (min-width: 768px) { #mobile-backdrop { display: none !important; } }

    /* Mobile menu drawer (right side, half width) */
    #mobile-menu {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 300;
      width: 50%;
      min-width: 280px;
      background: #fff;
      display: flex;
      flex-direction: column;
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      overflow-y: auto;
      box-shadow: -4px 0 32px rgba(29, 95, 212, 0.14);
    }
    #mobile-menu.open { transform: translateX(0); }
    @media (min-width: 768px) { #mobile-menu { display: none !important; } }

    #mobile-menu-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--border);
    }

    #mobile-menu-close {
      background: var(--bg-alt);
      border: 1px solid var(--border);
      font-size: 1rem;
      cursor: pointer;
      color: var(--text);
      border-radius: 50%;
      width: 2.25rem;
      height: 2.25rem;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.15s;
    }
    #mobile-menu-close:hover { background: var(--accent-pale); }

    #mobile-nav {
      list-style: none;
      flex: 1;
    }
    #mobile-nav li { border-bottom: 1px solid var(--border-soft); }
    #mobile-nav li a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.1rem 1.5rem;
      font-size: 1.05rem;
      font-weight: 500;
      color: var(--text);
      transition: color 0.15s, background 0.15s, padding-left 0.15s;
    }
    #mobile-nav li a:hover {
      color: var(--accent);
      background: var(--accent-pale);
      padding-left: 1.75rem;
    }
    #mobile-nav li a::after {
      content: '›';
      font-size: 1.4rem;
      color: var(--text-faint);
      line-height: 1;
    }


    /* ── Hero ───────────────────────────────────────────────────────── */
    .hero-grid {
      display: grid;
      gap: 3.5rem;
      padding: 4rem 0 5rem;
      align-items: center;
      position: relative;
      z-index: 1;
    }
    @media (min-width: 768px) {
      .hero-grid { grid-template-columns: 1fr 1fr; padding: 5rem 0 6rem; }
    }
    @media (min-width: 1024px) { .hero-grid { padding: 6rem 0 7rem; } }

    .hero-title {
      font-size: clamp(2.5rem, 6vw, 4.5rem);
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -0.02em;
      margin-top: 1.25rem;
      color: #fff;
    }
    .hero-title .accent { color: #7eb8ff; display: block; }

    .hero-sub {
      margin-top: 1.5rem;
      font-size: 1.125rem;
      line-height: 1.75;
      color: #ffffff;
      max-width: 38rem;
      font-weight: 500;
      text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.7);
    }

    .hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

    .hero-chips {
      margin-top: 2.5rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      max-width: 32rem;
    }
    @media (min-width: 640px) { .hero-chips { grid-template-columns: repeat(4, 1fr); } }
    .hero-chip {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: var(--radius-md);
      padding: 0.875rem 1rem;
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.90);
      font-weight: 500;
      backdrop-filter: blur(8px);
    }

    /* ── Tilt card ──────────────────────────────────────────────────── */
    .tilt-wrap { position: relative; }
    .tilt-blob-1 {
      position: absolute;
      left: -1.5rem; top: 2.5rem;
      width: 8rem; height: 8rem;
      border-radius: 50%;
      background: var(--accent-glow);
      filter: blur(40px);
    }
    .tilt-blob-2 {
      position: absolute;
      right: 0; bottom: -2.5rem;
      width: 10rem; height: 10rem;
      border-radius: 50%;
      background: rgba(147,197,253,0.25);
      filter: blur(40px);
    }
    .stats-card {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.92);
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(10px);
      padding: 1.4rem 3rem;
      width: fit-content;
      margin: 0 auto;
    }
    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0 2.5rem;
    }
    .stat-value {
      font-size: 1.75rem;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }
    .stat-label {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.35rem;
      font-weight: 500;
    }
    .stat-divider {
      width: 1px;
      height: 2.5rem;
      background: var(--border);
      flex-shrink: 0;
    }

    /* ── About ──────────────────────────────────────────────────────── */
    #about {
      background: var(--bg-section);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .about-grid {
      display: grid;
      gap: 2.5rem;
      padding: 4rem 0;
    }
    @media (min-width: 1024px) {
      .about-grid { grid-template-columns: 1.2fr 0.8fr; padding: 6rem 0; }
    }
    .about-grid h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-top: 1rem; }
    .about-grid p  { margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
    .about-points { display: grid; gap: 0.75rem; }
    .about-point {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.25rem 1.5rem;
      font-size: 0.925rem;
      font-weight: 500;
      color: var(--text-mid);
      box-shadow: var(--shadow);
    }

    /* ── Gallery ────────────────────────────────────────────────────── */
    .section-header {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 2.5rem;
    }
    @media (min-width: 768px) {
      .section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    }
    .section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-top: 0.75rem; }
    .section-header p  { max-width: 30rem; font-size: 1rem; line-height: 1.7; color: var(--text-muted); }

    .gallery-grid { display: grid; gap: 2rem; }
    @media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

    .gallery-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 1.5rem;
      text-align: center;
      box-shadow: var(--shadow);
    }
    .gallery-img {
      width: 16rem;
      height: 16rem;
      border-radius: 50%;
      overflow: hidden;
      margin: 0 auto;
      border: 2px solid var(--accent-pale);
      background: var(--bg-section);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
    }
    .gallery-img img { width: 100%; height: 100%; object-fit: cover; }
    .gallery-card h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; }
    .gallery-card p  { margin-top: 0.75rem; line-height: 1.7; color: var(--text-muted); }

    /* ── Services ───────────────────────────────────────────────────── */
    .services-grid { display: grid; gap: 1.25rem; }
    @media (min-width: 768px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
    @media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

    .service-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 1.75rem;
      padding: 1.5rem;
      box-shadow: var(--shadow);
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .service-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent-pale);
      box-shadow: var(--shadow-lg);
    }
    .service-icon {
      width: 100%;
      height: 180px;
      border-radius: 1rem;
      overflow: hidden;
      margin-bottom: 1.5rem;
    }
    .service-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 1rem;
      transition: transform 0.35s ease;
    }
    .service-card:hover .service-icon img { transform: scale(1.04); }

    .service-card h3 { font-size: 1.1rem; font-weight: 700; }
    .service-card p  { margin-top: 0.75rem; font-size: 0.925rem; line-height: 1.7; color: var(--text-muted); }

    /* ── Features strip ─────────────────────────────────────────────── */
    .features-wrap {
      display: grid;
      gap: 1.5rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 2rem;
      box-shadow: var(--shadow);
      margin: 0 0 4rem;
    }
    @media (min-width: 1024px) { .features-wrap { padding: 2.5rem; } }
    @media (min-width: 768px)  { .features-wrap { grid-template-columns: repeat(3, 1fr); } }

    .feature-item { border-radius: var(--radius-lg); border: 1px solid var(--border-soft); background: var(--card-alt); padding: 1.5rem; }
    .feature-item h3 { font-size: 1.1rem; font-weight: 700; }
    .feature-item p  { margin-top: 0.75rem; font-size: 0.925rem; line-height: 1.7; color: var(--text-muted); }

    /* ── Reviews ────────────────────────────────────────────────────── */
    #reviews {
      background: var(--bg-section);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 4rem 0;
    }
    @media (min-width: 1024px) { #reviews { padding: 6rem 0; } }

    .reviews-header {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 2.5rem;
    }
    @media (min-width: 768px) {
      .reviews-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    }
    .reviews-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-top: 0.75rem; }
    .reviews-badge {
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--card);
      padding: 0.625rem 1.25rem;
      font-size: 0.875rem;
      color: var(--text-mid);
      font-weight: 500;
      box-shadow: var(--shadow);
      flex-shrink: 0;
    }

    .reviews-lang-label {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin: 2.5rem 0 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .reviews-grid { display: grid; gap: 1.25rem; }
    @media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

    .review-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 1.75rem;
      padding: 1.5rem;
      box-shadow: var(--shadow);
    }
    .review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 0.1em; }
    .review-card p { margin-top: 1rem; font-size: 1.05rem; line-height: 1.75; color: var(--text-mid); }
    .review-meta { margin-top: 1.5rem; border-top: 1px solid var(--border-soft); padding-top: 1rem; }
    .review-meta .name { font-weight: 700; }
    .review-meta .date { font-size: 0.825rem; color: var(--text-faint); margin-top: 0.2rem; }

    /* ── Contact ────────────────────────────────────────────────────── */
    #contact { padding: 4rem 0; }
    @media (min-width: 1024px) { #contact { padding: 6rem 0; } }

    .contact-wrap {
      display: grid;
      gap: 2rem;
      border-radius: var(--radius-xl);
      border: 1px solid var(--accent-pale);
      background: linear-gradient(135deg, rgba(219,234,254,0.5), rgba(255,255,255,0.9));
      padding: 2rem;
      box-shadow: var(--shadow-lg);
    }
    @media (min-width: 1024px) {
      .contact-wrap { grid-template-columns: 1fr 0.9fr; padding: 3rem; }
    }
    .contact-info h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-top: 0.75rem; }
    .contact-info p  { margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); max-width: 36rem; }
    .contact-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

    .contact-detail-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      box-shadow: var(--shadow);
    }
    .contact-detail-card .label {
      font-size: 0.7rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--text-faint);
      font-weight: 600;
    }
    .detail-row { margin-top: 1.25rem; }
    .detail-row .key   { font-size: 0.825rem; color: var(--text-faint); font-weight: 500; }
    .detail-row .value { font-size: 1.05rem; font-weight: 600; color: var(--text-mid); margin-top: 0.2rem; }

    /* ── Footer ─────────────────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem 1.5rem;
      text-align: center;
      font-size: 0.875rem;
      color: var(--text-faint);
    }

    /* ── Section spacing ────────────────────────────────────────────── */
    .section-pad { padding: 4rem 0; }
    @media (min-width: 1024px) { .section-pad { padding: 6rem 0; } }

    /* ── Mobile overrides ───────────────────────────────────────────── */
    @media (max-width: 767px) {
      .navbar { padding: 0.75rem 1.25rem; border-radius: 1.5rem; }
      .navbar-logo { height: 34px; }

      .stats-card { padding: 1rem 1.5rem; }
      .stat-item { padding: 0 1.25rem; }
      .stat-value { font-size: 1.4rem; }

      .gallery-img { width: 12rem; height: 12rem; }

      .service-icon { height: 140px; }

      .reviews-grid { grid-template-columns: 1fr; }

      .contact-wrap { padding: 1.5rem; }
    }

    @media (max-width: 480px) {
      .container { padding: 0 1rem; }

      .navbar { padding: 0.65rem 1rem; border-radius: 1.25rem; }
      .navbar-logo { height: 30px; }

      .hero-grid { padding: 3.5rem 0 4rem; gap: 2rem; }
      .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
      .hero-sub { font-size: 0.95rem; }
      .hero-actions { flex-direction: column; align-items: flex-start; }
      .hero-chips { grid-template-columns: 1fr 1fr; }

      .stats-card { padding: 0.85rem 1.25rem; }
      .stat-item { padding: 0 0.85rem; }
      .stat-value { font-size: 1.2rem; }
      .stat-label { font-size: 0.7rem; }

      .gallery-img { width: 10rem; height: 10rem; }

      .service-icon { height: 120px; }

      .about-grid { padding: 2.5rem 0; }

      .section-pad { padding: 2.5rem 0; }

      .review-card { padding: 1.25rem; }
      .review-card p { font-size: 0.95rem; }

      footer { padding: 1.5rem 1rem; font-size: 0.8rem; }
    }

#chat-bubble {
      position: fixed;
      bottom: 1.75rem;
      right: 1.75rem;
      z-index: 200;
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(29,95,212,0.35);
      font-size: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.15s, box-shadow 0.15s;
    }
    #chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(29,95,212,0.45); }

    #chat-panel {
      position: fixed;
      bottom: 6rem;
      right: 1.75rem;
      z-index: 200;
      width: min(380px, calc(100vw - 2rem));
      border-radius: var(--radius-xl);
      border: 1px solid var(--border);
      background: var(--card);
      box-shadow: var(--shadow-lg);
      display: none;
      flex-direction: column;
      overflow: hidden;
    }
    #chat-panel.open { display: flex; }

    #chat-panel-header {
      background: var(--accent);
      color: #fff;
      padding: 1rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 600;
      font-size: 0.925rem;
    }
    #chat-panel-header span { opacity: 0.75; font-size: 0.75rem; font-weight: 400; }
    #chat-close {
      background: none;
      border: none;
      color: #fff;
      font-size: 1.25rem;
      cursor: pointer;
      line-height: 1;
      opacity: 0.8;
    }
    #chat-close:hover { opacity: 1; }

    #chat-messages {
      flex: 1;
      max-height: 320px;
      overflow-y: auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .chat-msg {
      max-width: 85%;
      padding: 0.625rem 0.875rem;
      border-radius: 1.25rem;
      font-size: 0.9rem;
      line-height: 1.5;
    }
    .chat-msg.user {
      align-self: flex-end;
      background: var(--accent);
      color: #fff;
      border-bottom-right-radius: 0.35rem;
    }
    .chat-msg.bot {
      align-self: flex-start;
      background: var(--bg-alt);
      color: var(--text);
      border-bottom-left-radius: 0.35rem;
    }
    .chat-msg.typing { opacity: 0.6; font-style: italic; }

    #chat-input-row {
      padding: 0.75rem 1rem;
      border-top: 1px solid var(--border-soft);
      display: flex;
      gap: 0.5rem;
    }
    #chat-input-row input {
      flex: 1;
      border: 1.5px solid var(--border);
      border-radius: 999px;
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
      font-family: inherit;
      outline: none;
      background: var(--card-alt);
      color: var(--text);
      transition: border-color 0.15s;
    }
    #chat-input-row input:focus { border-color: var(--accent); }
    #chat-send {
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      border: none;
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.15s;
    }
    #chat-send:hover { opacity: 0.88; }