    /* ============================================================
       SANCHARAKAYA (සංචාරකයා) — DESIGN TOKENS
       Signature: the "route rail" — a dotted journey line + waypoint
       dot that marks every day of a trip, echoing the app's core job
       of stitching regions of Sri Lanka into one route.
       ============================================================ */
    :root {
      /* color */
      --ink: #142621;
      --ink-soft: #4b615a;
      --paper: #FBF6EA;
      --surface: #FFFFFF;
      --surface-sunk: #F5F0E1;
      --ocean: #0E4B44;
      --on-ocean: #ffffff;
      --ocean-hover: #0d6257;
      --ocean-dark: #092E2A;
      --lagoon: #1E9C8C;
      --lagoon-soft: #E4F3EF;
      --spice: #DE9A2F;
      --spice-soft: #FBEBCF;
      --clay: #A85433;
      --clay-soft: #F6E4D8;
      --line: #E4DCC8;
      --line-cool: #D9E9E4;

      /* type */
      --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
      --f-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

      /* elevation */
      --shadow-sm: 0 2px 8px rgba(14, 75, 68, 0.06);
      --shadow-md: 0 12px 28px -8px rgba(14, 75, 68, 0.16);
      --shadow-lg: 0 24px 60px -18px rgba(9, 46, 42, 0.28);

      --radius-lg: 22px;
      --radius-md: 14px;
      --radius-sm: 10px;
    }

    html.dark {
      --ink: #e8f1ed;
      --ink-soft: #a9c0b8;
      --paper: #10201d;
      --surface: #18302b;
      --surface-sunk: #122722;
      --ocean: #35b8a5;
      --on-ocean: #10201d;
      --ocean-hover: #67d6c4;
      --ocean-dark: #edf8f4;
      --lagoon: #67d6c4;
      --lagoon-soft: #1d5149;
      --spice-soft: #5f451d;
      --clay-soft: #4a2b24;
      --line: #2d5149;
      --line-cool: #315e55;
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
      --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: var(--f-body);
      background:
        radial-gradient(900px 520px at 6% -12%, rgba(30, 156, 140, 0.12), transparent 60%),
        radial-gradient(820px 420px at 102% 20%, rgba(222, 154, 47, 0.12), transparent 58%),
        var(--paper);
      color: var(--ink);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    html.app-locked,
    html.app-locked body {
      overflow: hidden;
    }

    html.app-locked header,
    html.app-locked .nav-wrap,
    html.app-locked main,
    html.app-locked .site-footer {
      filter: blur(8px) saturate(0.8);
      pointer-events: none;
      user-select: none;
    }

    .site-preloader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: grid;
      place-items: center;
      padding: 24px;
      background:
        radial-gradient(circle at 30% 24%, rgba(255, 217, 138, 0.22), transparent 28%),
        radial-gradient(circle at 70% 70%, rgba(103, 214, 196, 0.22), transparent 30%),
        linear-gradient(145deg, #071512, #0e4b44 58%, #12382f);
      color: #f6fff9;
      transition: opacity 0.55s ease, visibility 0.55s ease;
    }

    .site-preloader.hide {
      opacity: 0;
      visibility: hidden;
    }

    .auth-gate {
      overflow-y: auto;
      position: fixed;
      inset: 0;
      z-index: 9990;
      display: grid;
      place-items: center;
      padding: 22px;
      background:
        radial-gradient(circle at 22% 18%, rgba(255, 217, 138, 0.28), transparent 28%),
        radial-gradient(circle at 78% 72%, rgba(103, 214, 196, 0.24), transparent 30%),
        rgba(7, 21, 18, 0.72);
      backdrop-filter: blur(18px) saturate(130%);
    }

    .auth-glass {
      max-height: calc(100dvh - 44px);
      overflow-y: auto;
      width: min(480px, 100%);
      padding: 28px;
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: 28px;
      background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(255,255,255,0.48));
      box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(24px) saturate(160%);
      animation: authCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    html.dark .auth-glass {
      background: linear-gradient(145deg, rgba(24,48,43,0.86), rgba(18,39,34,0.64));
    }

    @keyframes authCardIn {
      from { opacity: 0; transform: translateY(14px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .auth-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .auth-brand img {
      width: 58px;
      height: 58px;
      object-fit: contain;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.16);
    }

    .auth-glass h2 {
      margin: 0 0 8px;
      font-family: var(--f-display);
      font-size: clamp(30px, 5vw, 44px);
      line-height: 1;
      color: var(--ocean-dark);
    }

    .auth-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding: 5px;
      margin: 20px 0 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: color-mix(in srgb, var(--surface-sunk) 82%, transparent);
    }

    .auth-tabs button {
      border: 0;
      border-radius: 999px;
      padding: 10px;
      background: transparent;
      color: var(--ink-soft);
      font-weight: 800;
    }

    .auth-tabs button.active {
      background: var(--ocean);
      color: var(--on-ocean);
      box-shadow: var(--shadow-sm);
    }

    .auth-form {
      display: grid;
      gap: 10px;
    }

    .auth-form label {
      margin: 0;
    }

    .auth-google-btn {
      width: 100%;
      justify-content: center;
      margin-top: 10px;
    }

    .auth-status,
    .auth-config-notice {
      min-height: 20px;
      margin: 12px 0 0;
      color: var(--ink-soft);
      font-size: 13px;
    }

    .auth-status[data-type="error"] { color: var(--clay); font-weight: 800; }
    .auth-status[data-type="ok"] { color: var(--lagoon); font-weight: 800; }
    .auth-config-notice code {
      padding: 2px 5px;
      border-radius: 6px;
      background: var(--surface-sunk);
      color: var(--ocean-dark);
    }

    .preloader-glass {
      width: min(420px, 100%);
      display: grid;
      place-items: center;
      gap: 18px;
      padding: 34px 28px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 28px;
      background: rgba(255, 255, 255, 0.11);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
      backdrop-filter: blur(22px) saturate(150%);
    }

    .preloader-mark {
      position: relative;
      width: 116px;
      height: 116px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.32);
      color: #092e2a;
      font-family: var(--f-display);
      font-weight: 700;
      font-size: 25px;
      box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
    }

    .preloader-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 50%;
      filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.42));
    }

    .preloader-mark i {
      position: absolute;
      inset: -12px;
      border-radius: inherit;
      border: 2px solid transparent;
      border-top-color: rgba(255, 255, 255, 0.86);
      border-right-color: rgba(255, 217, 138, 0.72);
      animation: preloaderSpin 1.05s linear infinite;
    }

    .preloader-copy {
      display: grid;
      gap: 3px;
      text-align: center;
    }

    .preloader-copy strong {
      font-family: var(--f-display);
      font-size: 31px;
      line-height: 1;
    }

    .preloader-copy span {
      color: rgba(246, 255, 249, 0.72);
      font-size: 13px;
    }

    .preloader-route {
      position: relative;
      width: min(250px, 80%);
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .preloader-route::before {
      content: "";
      position: absolute;
      left: 8px;
      right: 8px;
      top: 50%;
      height: 2px;
      background: repeating-linear-gradient(to right, rgba(255,255,255,0.7) 0 8px, transparent 8px 14px);
      transform: translateY(-50%);
    }

    .preloader-route b {
      position: relative;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: #ffd98a;
      box-shadow: 0 0 0 6px rgba(255, 217, 138, 0.14);
      animation: preloaderPulse 1.2s ease-in-out infinite;
    }

    .preloader-route b:nth-child(2) { animation-delay: 0.18s; background: #67d6c4; }
    .preloader-route b:nth-child(3) { animation-delay: 0.36s; }

    @keyframes preloaderSpin {
      to { transform: rotate(360deg); }
    }

    @keyframes preloaderPulse {
      50% { transform: scale(1.32); }
    }

    ::selection { background: var(--spice-soft); color: var(--ocean-dark); }

    .container {
      width: min(1220px, calc(100% - 32px));
      margin: 0 auto;
    }

    .hero-logo {
      display: block;
      width: clamp(108px, 13vw, 172px);
      height: auto;
      margin: 16px 0 10px;
      filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
    }

    a { color: var(--ocean); }

    /* ---------------- focus & motion baseline ---------------- */
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    a:focus-visible {
      outline: 2.5px solid var(--spice);
      outline-offset: 2px;
      border-radius: 6px;
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* ============================================================
       HERO
       ============================================================ */
    .hero {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(120% 140% at 82% -10%, #1c7368 0%, transparent 55%),
        linear-gradient(160deg, var(--ocean-dark) 0%, var(--ocean) 62%, #146a5f 100%);
      color: #F3F8F1;
      padding: 56px 0 0;
    }

    .hero-glow {
      position: absolute;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: rgba(255, 217, 138, 0.16);
      filter: blur(8px);
      pointer-events: none;
      animation: floatGlow 7s ease-in-out infinite;
    }

    .hero-glow-one {
      right: 7%;
      top: 14%;
    }

    .hero-glow-two {
      width: 180px;
      height: 180px;
      left: 4%;
      bottom: 6%;
      background: rgba(103, 214, 196, 0.14);
      animation-delay: -2.5s;
    }

    @keyframes floatGlow {
      50% { transform: translate3d(14px, -18px, 0) scale(1.08); opacity: 0.72; }
    }

    .hero-dots {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
      background-size: 22px 22px;
      opacity: 0.5;
      mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      display: grid;
      grid-template-columns: 1.25fr 0.9fr;
      gap: 40px;
      align-items: center;
      padding-bottom: 40px;
      animation: heroIn 0.76s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes heroIn {
      from { opacity: 0; transform: translateY(14px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 900px) {
      .hero-inner { grid-template-columns: 1fr; padding-bottom: 24px; }
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 14px 7px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.22);
      font-size: 12.5px;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: #EAF3E9;
      margin-bottom: 22px;
    }

    .hero-eyebrow svg { flex-shrink: 0; }

    .hero h1 {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: clamp(38px, 5.4vw, 64px);
      line-height: 1.01;
      letter-spacing: -0.01em;
      margin: 0 0 18px;
    }

    .hero h1 em {
      font-style: italic;
      font-weight: 500;
      color: #FFD98A;
    }

    .hero-sub {
      margin: 0 0 30px;
      max-width: 620px;
      font-size: 17px;
      color: rgba(240, 248, 240, 0.86);
      line-height: 1.6;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 0 0 24px;
    }

    .hero-cta {
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    }

    .hero-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .hero-stat {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: var(--radius-md);
      padding: 14px 18px;
      min-width: 128px;
    }

    .hero-stat strong {
      display: block;
      font-family: var(--f-display);
      font-size: 26px;
      line-height: 1;
      color: #FFD98A;
      margin-bottom: 4px;
    }

    .hero-stat span {
      font-size: 12.5px;
      color: rgba(240, 248, 240, 0.78);
      font-weight: 500;
    }

    /* route card floating in the hero — mini preview of the signature motif */
    .hero-card {
      position: relative;
      background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07));
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: var(--radius-lg);
      padding: 22px 22px 18px;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
      backdrop-filter: blur(18px) saturate(140%);
      animation: routeCardFloat 5.6s ease-in-out infinite;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      pointer-events: none;
      background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 42%);
    }

    @keyframes routeCardFloat {
      50% { transform: translateY(-8px); }
    }

    .hero-card-label {
      font-size: 11.5px;
      text-transform: uppercase;
      letter-spacing: 0.11em;
      color: rgba(240,248,240,0.65);
      font-weight: 700;
      margin-bottom: 14px;
    }

    .hero-route { list-style: none; margin: 0; padding: 0; }

    .hero-route li {
      position: relative;
      padding: 0 0 20px 26px;
      font-size: 14.5px;
      color: #EAF3E9;
    }

    .hero-route li::before {
      content: "";
      position: absolute;
      left: 4px; top: 4px;
      width: 9px; height: 9px;
      border-radius: 50%;
      background: #FFD98A;
      box-shadow: 0 0 0 3px rgba(255, 217, 138, 0.22);
    }

    .hero-route li::after {
      content: "";
      position: absolute;
      left: 8px; top: 15px; bottom: -2px;
      width: 1.5px;
      background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.5) 0 4px, transparent 4px 8px);
    }

    .hero-route li:last-child::after { display: none; }
    .hero-route li b { color: #fff; font-weight: 700; }

    .hero-ridge {
      display: block;
      width: 100%;
      height: auto;
      position: relative;
      margin-top: 30px;
    }

    /* ============================================================
       STICKY NAV
       ============================================================ */
    .nav-wrap {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(251, 246, 234, 0.92);
      backdrop-filter: blur(18px) saturate(140%);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 10px 28px rgba(14, 75, 68, 0.07);
    }

    html.dark .nav-wrap {
      background: rgba(16, 32, 29, 0.92);
    }

    html.dark .hero-ridge path {
      fill: var(--paper);
    }

    .nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 12px 0;
    }

    .nav-theme-btn { margin-left: auto; }

    .nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border: 1px solid transparent;
      border-radius: 999px;
      padding: 9px 15px 9px 12px;
      background: transparent;
      color: var(--ink-soft);
      font: inherit;
      font-weight: 600;
      font-size: 13.5px;
      cursor: pointer;
      transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
    }

    .nav-btn svg { flex-shrink: 0; opacity: 0.85; }

    .nav-btn:hover {
      background: var(--lagoon-soft);
      color: var(--ocean-dark);
      transform: translateY(-1px);
    }

    .nav-btn.active {
      background: var(--ocean);
      color: var(--on-ocean);
      box-shadow: var(--shadow-sm);
    }

    .nav-btn.active svg { opacity: 1; }

    .nav-btn:active { transform: translateY(0) scale(0.97); }

    /* ============================================================
       LAYOUT / SECTIONS
       ============================================================ */
    main { padding-bottom: 50px; }

    section { margin-top: 22px; }

    section > .panel:first-child { margin-top: 0; }

    .hidden { display: none !important; }

    main > section:not(.hidden) { animation: sectionIn 0.42s cubic-bezier(0.16, 1, 0.3, 1); }

    @keyframes sectionIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .reveal-ready {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1), transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-ready.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .hero-stat.reveal-ready:nth-child(2),
    .trust-grid article:nth-child(2) { transition-delay: 0.08s; }
    .hero-stat.reveal-ready:nth-child(3),
    .trust-grid article:nth-child(3) { transition-delay: 0.16s; }

    .section-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 4px;
    }

    .eyebrow {
      display: inline-block;
      font-family: var(--f-mono);
      font-size: 11.5px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--lagoon);
      font-weight: 600;
      margin-bottom: 6px;
    }

    .panel {
      position: relative;
      overflow: hidden;
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 26px 26px 24px;
      margin-bottom: 18px;
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(18px) saturate(135%);
      transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }

    .panel::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      border-radius: inherit;
      background: linear-gradient(135deg, rgba(255,255,255,0.24), transparent 34%);
      opacity: 0.55;
    }

    .panel:hover {
      transform: translateY(-2px);
      border-color: color-mix(in srgb, var(--lagoon) 42%, var(--line));
      box-shadow: var(--shadow-md);
    }

    h2 {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: 25px;
      letter-spacing: -0.01em;
      margin: 0 0 8px;
      color: var(--ocean-dark);
    }

    h3 {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: 18px;
      margin: 20px 0 10px;
      color: var(--ocean-dark);
    }

    .muted { color: var(--ink-soft); }
    .status, .ok { color: var(--lagoon); font-weight: 700; }

    .grid { display: grid; gap: 14px; }
    .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    @media (max-width: 980px) {
      .three, .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 720px) {
      .two, .three, .four { grid-template-columns: 1fr; }
      .nav-theme-btn { margin-left: 0; }
      .nav { gap: 5px; }
      .nav-btn { padding-inline: 10px; font-size: 12.5px; }
    }

    /* ---------------- forms ---------------- */
    label {
      display: block;
      font-weight: 700;
      font-size: 13px;
      margin-bottom: 7px;
      color: var(--ink);
    }

    input, select, textarea {
      width: 100%;
      border: 1.5px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 11px 13px;
      font: inherit;
      font-size: 14.5px;
      background: var(--surface);
      color: var(--ink);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    input:hover, select:hover, textarea:hover { border-color: #c3d9d4; }

    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: var(--lagoon);
      box-shadow: 0 0 0 4px var(--lagoon-soft);
    }

    fieldset {
      border: 1.5px solid var(--line);
      border-radius: var(--radius-md);
      padding: 18px 18px 14px;
      margin: 20px 0 4px;
    }

    legend {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: 15px;
      padding: 0 8px;
      color: var(--ocean-dark);
    }

    .check {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--surface-sunk);
      border: 1.5px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 11px 13px;
      font-weight: 600;
      font-size: 13.5px;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease;
    }

    .check:has(input:checked) {
      border-color: var(--lagoon);
      background: var(--lagoon-soft);
      color: var(--ocean-dark);
    }

    .check input {
      width: auto;
      accent-color: var(--ocean);
      transform: scale(1.15);
    }

    /* ---------------- buttons ---------------- */
    .btn, .nav-btn.active, .chip-btn {
      font-family: var(--f-body);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 0;
      border-radius: 999px;
      padding: 12px 20px;
      background: var(--ocean);
      color: var(--on-ocean);
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.14s ease, background 0.14s ease;
    }

    .btn:hover { background: var(--ocean-hover); transform: translateY(-1.5px); box-shadow: var(--shadow-md); }
    .btn:active { transform: translateY(0) scale(0.97); }

    .btn-secondary {
      background: var(--spice);
      color: #142621;
    }

    .btn-secondary:hover {
      background: var(--spice-dark, #b75532);
      color: #fff;
    }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-top: 18px;
    }

    .custom-trip-builder {
      border-color: var(--spice);
      background: linear-gradient(135deg, var(--surface), var(--spice-soft));
    }

    .custom-trip-days {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
    }

    .custom-day-choice {
      display: grid;
      grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
      align-items: center;
      gap: 10px;
      padding: 11px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--surface);
    }

    .custom-day-choice span {
      display: grid;
      gap: 3px;
    }

    .custom-day-choice small {
      color: var(--muted);
      font-size: 11px;
    }

    .custom-day-choice select,
    .day-location-editor select {
      min-width: 0;
    }

    /* ---------------- itinerary output / day cards (signature) ---------------- */
    #itineraryOutput .panel:first-child {
      border-color: var(--lagoon);
      background: linear-gradient(180deg, var(--lagoon-soft) 0%, var(--surface) 130px);
    }

    .day-card {
      position: relative;
      padding-left: 44px;
      border-left: 0;
      overflow: visible;
    }

    .day-card::before {
      content: "";
      position: absolute;
      left: 22px; top: 30px; bottom: 26px;
      width: 2px;
      background: repeating-linear-gradient(to bottom, var(--lagoon) 0 5px, transparent 5px 11px);
    }

    .day-card::after {
      content: "";
      position: absolute;
      left: 16px; top: 24px;
      width: 14px; height: 14px;
      border-radius: 50%;
      background: var(--spice);
      border: 3px solid var(--surface);
      box-shadow: 0 0 0 2px var(--lagoon);
    }

    .day-top {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px dashed var(--line);
    }

    .day-top strong {
      font-family: var(--f-display);
      font-size: 17px;
      color: var(--ocean-dark);
    }

    .day-location-editor {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr);
      align-items: end;
      gap: 10px;
      margin: 0 0 15px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--surface-sunk);
    }

    .day-location-editor label {
      display: grid;
      gap: 5px;
      font-size: 12px;
      font-weight: 800;
      color: var(--ocean-dark);
    }

    .day-location-editor small {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .badge {
      display: inline-block;
      padding: 5px 12px;
      border-radius: 999px;
      background: var(--ocean);
      color: var(--on-ocean);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .hero-badge-static {
      background: rgba(255,255,255,0.14);
      color: #fff;
    }

    .meta-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    @media (max-width: 760px) {
      .meta-grid { grid-template-columns: 1fr; }
    }

    .meta-grid > div {
      background: var(--surface-sunk);
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 13px 14px;
      font-size: 14px;
    }

    .meta-grid > div strong {
      display: block;
      font-size: 11.5px;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--lagoon);
      margin-bottom: 5px;
    }

    .integration-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin: 18px 0;
    }

    .integration-card, .hotel-card, .source-preview {
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: color-mix(in srgb, var(--surface-sunk) 86%, transparent);
      padding: 16px;
      backdrop-filter: blur(12px);
    }

    .section-kicker {
      color: var(--lagoon);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .1em;
      margin-bottom: 5px;
    }

    .integration-card h4, .hotel-card h4 {
      margin: 0 0 6px;
    }

    .route-map-placeholder {
      min-height: 170px;
      margin-top: 14px;
      overflow: hidden;
      border-radius: var(--radius-sm);
      background: var(--surface);
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 13px;
    }

    .route-stop-list {
      width: 100%;
      padding: 12px 14px;
      display: grid;
      gap: 7px;
    }

    .route-stop-list strong {
      color: var(--ocean-dark);
      margin-bottom: 2px;
    }

    .route-stop-list span {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      line-height: 1.35;
    }

    .route-stop-list b {
      min-width: 20px;
      height: 20px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--spice);
      color: #fff;
      font-size: 11px;
    }

    .rate-list {
      display: grid;
      gap: 8px;
      font-size: 14px;
    }

    .rate-list span {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      border-bottom: 1px dashed var(--line);
      padding-bottom: 7px;
    }

    .section-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 14px;
    }

    .section-heading h3 {
      margin-bottom: 0;
    }

    .hotel-filters {
      margin-top: 0;
      align-items: flex-end;
    }

    .hotel-filters label {
      min-width: 190px;
    }

    .hotel-grid, .source-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .hotel-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .hotel-day-group {
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, var(--surface-sunk), var(--surface));
    }

    .hotel-day-heading {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 13px;
      padding-bottom: 11px;
      border-bottom: 1px dashed var(--line);
    }

    .hotel-day-heading h4 {
      margin: 8px 0 0;
      color: var(--ocean-dark);
    }

    .hotel-day-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .hotel-card {
      display: grid;
      gap: 12px;
    }

    .hotel-data-note {
      padding: 11px 13px;
      border-left: 3px solid var(--lagoon);
      background: var(--surface-sunk);
      border-radius: var(--radius-sm);
    }

    .hotel-source {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 0 0 5px;
      color: var(--ocean-dark);
      font-size: 13px;
      font-weight: 800;
    }

    .hotel-source img {
      width: 20px;
      height: 20px;
      border-radius: 5px;
    }

    .hotel-image {
      min-height: 72px;
      display: grid;
      place-items: center;
      border-radius: var(--radius-sm);
      background: linear-gradient(135deg, var(--ocean), var(--lagoon));
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .1em;
    }

    .hotel-stars {
      color: var(--spice);
      letter-spacing: .08em;
      font-size: 13px;
    }

    .text-link {
      display: inline-block;
      margin-top: 9px;
      color: var(--ocean);
      font-weight: 800;
      text-decoration: none;
    }

    .text-link:hover {
      text-decoration: underline;
    }

    .source-preview {
      display: grid;
      gap: 7px;
      color: inherit;
      text-decoration: none;
      transition: transform .14s ease, box-shadow .14s ease;
    }

    .source-preview:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }

    .preview-thumb {
      min-height: 52px;
      display: grid;
      place-items: center;
      border-radius: var(--radius-sm);
      background: var(--ocean-dark);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .1em;
    }

    .preview-thumb img {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: #fff;
      padding: 4px;
    }

    .source-preview small {
      color: var(--lagoon);
      font-weight: 800;
    }

    @media (max-width: 760px) {
      .integration-grid, .hotel-grid, .source-grid {
        grid-template-columns: 1fr;
      }

      .hotel-day-grid {
        grid-template-columns: 1fr;
      }

      .hotel-day-heading {
        display: block;
      }

      .custom-trip-days {
        grid-template-columns: 1fr;
      }

      .custom-day-choice,
      .day-location-editor {
        grid-template-columns: 1fr;
      }

      .section-heading {
        display: block;
      }
    }

    /* ---------------- chat ---------------- */
    .chat-box {
      min-height: 340px;
      max-height: 460px;
      overflow: auto;
      border: 1.5px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 18px 18px 6px;
      background: var(--surface-sunk);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .msg {
      position: relative;
      max-width: 82%;
      padding: 12px 15px;
      border-radius: 16px;
      white-space: pre-wrap;
      font-size: 14.5px;
      line-height: 1.55;
      animation: msgIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes msgIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .msg.user {
      align-self: flex-end;
      background: var(--ocean);
      color: white;
      border-bottom-right-radius: 4px;
    }

    .msg.bot {
      align-self: flex-start;
      background: var(--surface);
      border: 1px solid var(--line-cool);
      border-bottom-left-radius: 4px;
      color: var(--ink);
    }

    .chat-form {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      margin-top: 16px;
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 14px 0;
    }

    .chip-btn {
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 600;
      background: var(--surface);
      border: 1.5px solid var(--line-cool);
      color: var(--ocean-dark);
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .chip-btn:hover {
      background: var(--lagoon-soft);
      border-color: var(--lagoon);
      transform: translateY(-1px);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 13px;
      border-radius: 999px;
      background: var(--spice-soft);
      color: #7a5311;
      border: 1px solid #f0d9a4;
      font-size: 12.5px;
      font-weight: 700;
    }

    .pill::before {
      content: "";
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--spice);
    }

    .assistant-embed-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin: 0 0 14px;
    }

    .assistant-frame-wrap {
      border: 1.5px solid var(--line);
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: color-mix(in srgb, var(--surface-sunk) 86%, transparent);
      min-height: 760px;
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(16px);
    }

    .assistant-frame {
      display: block;
      width: 100%;
      min-height: 760px;
      border: 0;
      background: var(--surface);
    }

    .assistant-note {
      margin: 14px 2px 0;
      font-size: 13px;
    }

    .agentic-panel {
      background:
        linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.58)),
        radial-gradient(circle at 12% 14%, rgba(103,214,196,0.22), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(222,154,47,0.18), transparent 30%);
    }

    html.dark .agentic-panel {
      background:
        linear-gradient(135deg, rgba(24,48,43,0.9), rgba(18,39,34,0.72)),
        radial-gradient(circle at 12% 14%, rgba(103,214,196,0.14), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(222,154,47,0.11), transparent 30%);
    }

    .agentic-heading {
      align-items: flex-start;
      margin-bottom: 18px;
    }

    .agentic-flow {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 18px 0;
    }

    .agentic-flow article,
    .agentic-note {
      border: 1px solid rgba(255,255,255,0.52);
      border-radius: var(--radius-md);
      background: rgba(255,255,255,0.55);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(16px);
    }

    html.dark .agentic-flow article,
    html.dark .agentic-note {
      border-color: rgba(255,255,255,0.1);
      background: rgba(18,39,34,0.64);
    }

    .agentic-flow article {
      min-height: 174px;
      padding: 17px;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .agentic-flow article:hover {
      transform: translateY(-3px);
      border-color: var(--lagoon);
      box-shadow: var(--shadow-md);
    }

    .agentic-flow span {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      margin-bottom: 12px;
      border-radius: 14px;
      background: var(--ocean);
      color: var(--on-ocean);
      font-weight: 900;
      font-size: 12px;
    }

    .agentic-flow strong {
      display: block;
      font-family: var(--f-display);
      color: var(--ocean-dark);
      font-size: 19px;
      margin-bottom: 8px;
    }

    .agentic-flow p {
      margin: 0;
      color: var(--ink-soft);
      font-size: 13px;
      line-height: 1.6;
    }

    .agentic-note {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 15px 17px;
      color: var(--ink-soft);
      font-size: 13px;
    }

    .agentic-note strong {
      color: var(--ocean-dark);
      flex: 0 0 auto;
    }

    @media (max-width: 820px) {
      .assistant-frame-wrap,
      .assistant-frame {
        min-height: 860px;
      }

      .site-preloader {
        display: none;
      }

      .agentic-flow {
        grid-template-columns: 1fr;
      }

      .agentic-note {
        display: grid;
      }
    }

    .product-trust {
      margin-top: 22px;
    }

    .trust-band {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      gap: 22px;
      align-items: center;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background:
        linear-gradient(135deg, var(--surface), var(--lagoon-soft));
      box-shadow: var(--shadow-sm);
    }

    html.dark .custom-trip-builder,
    html.dark .trust-band {
      background: linear-gradient(135deg, var(--surface), var(--surface-sunk));
    }

    .trust-band h2 {
      max-width: 620px;
      margin-bottom: 10px;
    }

    .trust-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .trust-grid article {
      min-height: 126px;
      padding: 16px;
      border: 1px solid var(--line-cool);
      border-radius: var(--radius-md);
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      backdrop-filter: blur(12px);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .trust-grid article:hover {
      transform: translateY(-4px);
      border-color: var(--lagoon);
      box-shadow: var(--shadow-md);
    }

    .trust-grid strong {
      display: block;
      margin-bottom: 8px;
      font-family: var(--f-display);
      color: var(--ocean-dark);
      font-size: 18px;
    }

    .trust-grid span {
      color: var(--ink-soft);
      font-size: 13.5px;
    }

    .main-profile-panel {
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--lagoon-soft) 62%, transparent)),
        radial-gradient(circle at 90% 12%, rgba(222, 154, 47, 0.18), transparent 30%);
    }

    html.dark .main-profile-panel {
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, transparent), color-mix(in srgb, var(--surface-sunk) 74%, transparent)),
        radial-gradient(circle at 90% 12%, rgba(222, 154, 47, 0.12), transparent 30%);
    }

    .profile-main-heading {
      align-items: flex-start;
      margin-bottom: 20px;
    }

    .main-profile-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
      gap: 14px;
      margin: 18px 0;
    }

    .main-profile-card,
    .main-profile-stats,
    .main-badge-card {
      border: 1px solid rgba(255,255,255,0.52);
      background: rgba(255,255,255,0.55);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(18px) saturate(140%);
    }

    html.dark .main-profile-card,
    html.dark .main-profile-stats,
    html.dark .main-badge-card {
      border-color: rgba(255,255,255,0.1);
      background: rgba(18,39,34,0.64);
    }

    .main-profile-card {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 22px;
    }

    .main-profile-avatar {
      width: 86px;
      height: 86px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 50%;
      overflow: hidden;
      background: linear-gradient(135deg, var(--ocean), var(--lagoon));
      color: #fff;
      font: 700 28px var(--f-display);
      box-shadow: 0 14px 34px rgba(14, 75, 68, 0.24);
    }

    .main-profile-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .main-profile-card h3 {
      margin: 0 0 4px;
      font-size: clamp(25px, 3.8vw, 40px);
    }

    .profile-pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 12px;
    }

    .profile-pill-row span {
      border-radius: 999px;
      padding: 6px 9px;
      background: var(--lagoon-soft);
      color: var(--ocean-dark);
      font-size: 11px;
      font-weight: 800;
    }

    .main-profile-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      padding: 18px;
    }

    .main-profile-stats div {
      display: grid;
      place-items: center;
      text-align: center;
      border-right: 1px solid var(--line);
      padding: 8px;
    }

    .main-profile-stats div:last-child {
      border-right: 0;
    }

    .main-profile-stats strong {
      font: 700 34px var(--f-display);
      color: var(--ocean);
      line-height: 1;
    }

    .main-profile-stats span {
      margin-top: 6px;
      color: var(--ink-soft);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 800;
    }

    .main-badge-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .main-badge-card {
      min-height: 158px;
      padding: 17px;
      transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    }

    .main-badge-card:hover {
      transform: translateY(-3px);
      border-color: var(--lagoon);
    }

    .main-badge-card.locked {
      opacity: 0.56;
    }

    .main-badge-card span {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      margin-bottom: 11px;
      background: var(--ocean);
      color: var(--on-ocean);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.05em;
    }

    .main-badge-card strong {
      display: block;
      font-family: var(--f-display);
      color: var(--ocean-dark);
      font-size: 19px;
      margin-bottom: 5px;
    }

    .main-badge-card p {
      margin: 0;
      color: var(--ink-soft);
      font-size: 13px;
    }

    .main-badge-card small {
      display: inline-block;
      margin-top: 12px;
      border-radius: 999px;
      padding: 5px 8px;
      background: var(--surface-sunk);
      color: var(--ink-soft);
      font-size: 10px;
      font-weight: 900;
    }

    @media (max-width: 860px) {
      .trust-band,
      .trust-grid,
      .main-profile-grid,
      .main-badge-grid {
        grid-template-columns: 1fr;
      }

      .trust-band {
        padding: 22px;
      }

      .main-profile-stats {
        grid-template-columns: 1fr;
      }

      .main-profile-stats div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .main-profile-stats div:last-child {
        border-bottom: 0;
      }
    }

    /* ---------------- tables ---------------- */
    table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }

    th, td { border: 1px solid var(--line-cool); padding: 13px 14px; text-align: left; vertical-align: top; }

    th {
      background: var(--ocean);
      color: var(--on-ocean);
      font-weight: 600;
      font-size: 12.5px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      position: sticky;
      top: 0;
    }

    tbody tr:nth-child(even) { background: var(--surface-sunk); }
    tbody tr:hover { background: var(--lagoon-soft); }

    #priceTable td:nth-child(2),
    #priceTable td:nth-child(3),
    #priceTable td:nth-child(4) {
      font-family: var(--f-mono);
      font-size: 13px;
    }

    .price-guide-panel {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.62)),
        radial-gradient(circle at 8% 12%, rgba(103,214,196,0.22), transparent 32%),
        radial-gradient(circle at 90% 6%, rgba(222,154,47,0.2), transparent 30%);
      backdrop-filter: blur(18px) saturate(140%);
    }

    html.dark .price-guide-panel {
      background:
        linear-gradient(135deg, rgba(24,48,43,0.9), rgba(18,39,34,0.74)),
        radial-gradient(circle at 8% 12%, rgba(103,214,196,0.16), transparent 32%),
        radial-gradient(circle at 90% 6%, rgba(222,154,47,0.13), transparent 30%);
    }

    .price-heading {
      align-items: flex-start;
      margin-bottom: 20px;
    }

    .price-live-pill {
      flex: 0 0 auto;
      border: 1px solid rgba(30,156,140,0.28);
      background: rgba(30,156,140,0.12);
      color: var(--ocean-dark);
      border-radius: 999px;
      padding: 9px 12px;
      font-size: 12px;
      font-weight: 800;
    }

    .price-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
      gap: 16px;
      margin: 18px 0;
    }

    .price-check-card,
    .price-feature-card,
    .price-mini-card {
      border: 1px solid rgba(255,255,255,0.52);
      background: rgba(255,255,255,0.55);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(16px);
    }

    html.dark .price-check-card,
    html.dark .price-feature-card,
    html.dark .price-mini-card {
      border-color: rgba(255,255,255,0.1);
      background: rgba(18,39,34,0.64);
    }

    .price-check-card {
      border-radius: var(--radius-lg);
      padding: 22px;
    }

    .price-check-card h3 {
      margin: 4px 0 7px;
      font-family: var(--f-display);
      font-size: clamp(24px, 3vw, 38px);
      line-height: 1.02;
    }

    .price-check-card p {
      margin: 0 0 16px;
      color: var(--ink-soft);
      max-width: 640px;
    }

    .price-check-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .price-check-row .quote-description,
    .price-check-row > button { grid-column: 1 / -1; }
    .price-check-row label { min-width: 0; }

    .price-feature-grid {
      display: grid;
      gap: 10px;
    }

    .price-feature-card {
      border-radius: 18px;
      padding: 16px;
      transition: transform 0.18s ease, border-color 0.18s ease;
    }

    .price-feature-card:hover,
    .price-mini-card:hover {
      transform: translateY(-2px);
      border-color: var(--lagoon);
    }

    .price-feature-card strong,
    .price-mini-card strong {
      display: block;
      font-family: var(--f-display);
      color: var(--ocean-dark);
      margin-bottom: 5px;
    }

    .price-feature-card span,
    .price-mini-card small {
      color: var(--ink-soft);
      font-size: 13px;
    }

    .quote-result {
      display: grid;
      gap: 7px;
      margin-top: 13px;
      border: 1px solid var(--line-cool);
      border-radius: 16px;
      background: rgba(255,255,255,0.5);
      padding: 14px;
      color: var(--ink-soft);
      font-size: 13px;
    }

    .quote-result strong {
      color: var(--ocean-dark);
      font-family: var(--f-display);
      font-size: 18px;
    }

    .quote-result.low { border-color: rgba(30,156,140,0.45); background: rgba(30,156,140,0.11); }
    .quote-result.medium { border-color: rgba(222,154,47,0.5); background: rgba(222,154,47,0.13); }
    .quote-result.high { border-color: rgba(168,84,51,0.48); background: rgba(168,84,51,0.13); }

    .quote-ask-btn {
      justify-self: start;
      border: 0;
      background: var(--ocean);
      color: var(--on-ocean);
      border-radius: 999px;
      padding: 9px 12px;
      font-weight: 800;
      font-size: 12px;
    }

    .price-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
      gap: 12px;
      align-items: center;
      margin: 18px 0 14px;
    }

    .price-filter-row {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 3px;
    }

    .price-filter {
      border: 1px solid var(--line-cool);
      background: rgba(255,255,255,0.52);
      color: var(--ink-soft);
      border-radius: 999px;
      padding: 9px 12px;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .price-filter.active {
      background: var(--ocean);
      border-color: var(--ocean);
      color: #fff;
    }

    .price-card-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .price-mini-card {
      display: grid;
      gap: 7px;
      border-radius: 18px;
      padding: 15px;
      min-height: 150px;
    }

    .price-mini-card span,
    .price-type-pill {
      width: max-content;
      border-radius: 999px;
      background: var(--lagoon-soft);
      color: var(--ocean-dark);
      padding: 5px 8px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .price-mini-card b {
      color: var(--ocean);
      font-family: var(--f-mono);
      font-size: 13px;
    }

    .price-table-wrap {
      background: rgba(255,255,255,0.4);
      backdrop-filter: blur(12px);
    }

    .price-disclaimer {
      margin: 12px 0 0;
      color: var(--ink-soft);
      font-size: 12px;
    }

    .price-empty {
      grid-column: 1 / -1;
      color: var(--ink-soft);
      padding: 16px;
      border: 1px dashed var(--line-cool);
      border-radius: 16px;
    }

    @media (max-width: 980px) {
      .price-hero-grid,
      .price-toolbar {
        grid-template-columns: 1fr;
      }

      .price-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 620px) {
      .price-heading {
        display: grid;
      }

      .price-check-row,
      .price-card-grid {
        grid-template-columns: 1fr;
      }
    }

    .table-wrap {
      overflow: auto;
      border-radius: var(--radius-md);
      border: 1px solid var(--line);
      max-height: 520px;
    }

    /* ---------------- generic cards ---------------- */
    .card {
      background: var(--surface-sunk);
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      padding: 17px 18px;
      transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }

    .card:hover {
      border-color: var(--lagoon);
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }

    .card strong {
      display: block;
      margin-bottom: 7px;
      font-family: var(--f-display);
      font-size: 15.5px;
      color: var(--ocean-dark);
    }

    .card .badge { margin: 2px 0 8px; }

    .emergency {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--clay-soft);
      border: 1px solid #e3c1a8;
      color: #6e3616;
      border-radius: var(--radius-md);
      padding: 14px 18px;
      margin-bottom: 18px;
      font-weight: 700;
      font-size: 14px;
    }

    .safety-heading {
      margin-bottom: 18px;
    }

    .safety-heading p {
      margin: 0;
      max-width: 720px;
    }

    .safety-live-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--lagoon-soft);
      border: 1px solid var(--line-cool);
      color: var(--ocean-dark);
      font-size: 12px;
      font-weight: 800;
    }

    .safety-live-pill::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--lagoon);
      box-shadow: 0 0 0 5px color-mix(in srgb, var(--lagoon) 18%, transparent);
    }

    .safety-quick-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin: 16px 0;
    }

    .safety-action {
      display: grid;
      gap: 4px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: color-mix(in srgb, var(--surface-sunk) 84%, transparent);
      color: inherit;
      text-decoration: none;
      backdrop-filter: blur(14px);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .safety-action:hover {
      transform: translateY(-3px);
      border-color: var(--lagoon);
      box-shadow: var(--shadow-md);
    }

    .safety-action span {
      color: var(--ink-soft);
      font-size: 12px;
      font-weight: 800;
    }

    .safety-action strong {
      font-family: var(--f-display);
      color: var(--ocean-dark);
      font-size: clamp(21px, 2.1vw, 27px);
      line-height: 1;
      overflow-wrap: anywhere;
    }

    .emergency-action {
      background: linear-gradient(135deg, var(--clay-soft), var(--surface));
      border-color: color-mix(in srgb, var(--clay) 35%, var(--line));
    }

    .safety-source-note {
      margin: -6px 0 16px;
      color: var(--ink-soft);
      font-size: 12.5px;
    }

    .safety-toolkit {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
      gap: 14px;
      margin: 16px 0 18px;
    }

    .safety-checker,
    .safety-filter-panel {
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: color-mix(in srgb, var(--surface-sunk) 84%, transparent);
      backdrop-filter: blur(16px);
    }

    .safety-checker h3 {
      margin-top: 0;
    }

    .safety-check-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      margin: 14px 0 10px;
    }

    .scam-result {
      min-height: 54px;
      padding: 12px 14px;
      border: 1px dashed var(--line);
      border-radius: var(--radius-sm);
      background: var(--surface);
      color: var(--ink-soft);
      font-size: 13px;
    }

    .scam-result strong {
      color: var(--ocean-dark);
    }

    .scam-result.medium {
      border-color: var(--spice);
      background: var(--spice-soft);
      color: var(--ink);
    }

    .scam-result.high {
      border-color: var(--clay);
      background: var(--clay-soft);
      color: var(--ink);
    }

    .safety-filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .safety-filter {
      border: 1px solid var(--line-cool);
      border-radius: 999px;
      padding: 8px 12px;
      background: var(--surface);
      color: var(--ink-soft);
      font: inherit;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: transform .16s ease, background .16s ease, color .16s ease;
    }

    .safety-filter:hover {
      transform: translateY(-1px);
      background: var(--lagoon-soft);
      color: var(--ocean-dark);
    }

    .safety-filter.active {
      background: var(--ocean);
      color: var(--on-ocean);
      border-color: transparent;
    }

    .safety-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .safety-card {
      position: relative;
      overflow: hidden;
      display: grid;
      gap: 13px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(16px);
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .safety-card:hover {
      transform: translateY(-4px);
      border-color: var(--lagoon);
      box-shadow: var(--shadow-md);
    }

    .safety-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 36%);
    }

    .safety-card-top {
      position: relative;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .safety-icon {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--ocean), var(--lagoon));
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
    }

    .safety-card strong {
      display: block;
      color: var(--ocean-dark);
      font-family: var(--f-display);
      font-size: 17px;
      line-height: 1.22;
      margin-bottom: 8px;
    }

    .safety-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .safety-tags span {
      padding: 4px 8px;
      border-radius: 999px;
      background: var(--surface-sunk);
      color: var(--ink-soft);
      font-size: 10.5px;
      font-weight: 800;
    }

    .safety-card p {
      position: relative;
      margin: 0;
      color: var(--ink);
      font-size: 14px;
    }

    .safety-watch,
    .safety-next {
      position: relative;
      display: grid;
      gap: 4px;
      padding: 11px 12px;
      border: 1px solid var(--line-cool);
      border-radius: var(--radius-sm);
      background: var(--surface-sunk);
      font-size: 13px;
    }

    .safety-watch b,
    .safety-next b {
      color: var(--lagoon);
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .safety-ask-btn {
      position: relative;
      justify-self: start;
      border: 0;
      border-radius: 999px;
      padding: 9px 13px;
      background: var(--ocean);
      color: var(--on-ocean);
      font: inherit;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: transform .16s ease, background .16s ease;
    }

    .safety-ask-btn:hover {
      transform: translateY(-1px);
      background: var(--lagoon);
    }

    @media (max-width: 900px) {
      .safety-quick-grid,
      .safety-toolkit,
      .safety-grid {
        grid-template-columns: 1fr;
      }

      .safety-check-row {
        grid-template-columns: 1fr;
      }
    }

    .footer-note {
      margin: 20px 4px 40px;
      color: var(--ink-soft);
      font-size: 13.5px;
      border-top: 1px dashed var(--line);
      padding-top: 16px;
    }

    .split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }

    @media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

    ul, ol { padding-left: 20px; }
    li { margin-bottom: 4px; }

    /* ---------------- footer / brand strip ---------------- */
    .site-footer {
      background: #092e2a;
      color: rgba(240,248,240,0.72);
      padding: 26px 0;
      font-size: 13px;
      text-align: center;
    }

    .site-footer strong { color: #fff; }
    .site-footer a { color: #fff; }
    .skip-link { position: fixed; top: -100px; left: 16px; z-index: 10001; padding: 12px; background: #fff; color: #12382f; }
    .skip-link:focus { top: 12px; }
    :focus-visible { outline: 3px solid #128c84; outline-offset: 3px; }

    @media print {
      .nav-wrap, .toolbar, .chat-form, .chips, .footer-note, .hero, .site-footer {
        display: none !important;
      }
    }
