/* ─────────────────────────────────────────────────────────────
   VisaTH — design system
   Cutesy-minimal Thai aesthetic · mobile-first · single light theme
   Fonts: Prompt (headings) + Anuphan (body), Thai+Latin subsets
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-sky: #edf5fd;
  --bg-pink: #fdf1f6;
  --ink: #182a42;
  --muted: #5c6e86;
  --line: #dfe9f4;
  --sky: #2e7cd6;
  --sky-deep: #1d5ca6;
  --sky-soft: #d9eafb;
  --pink: #e56a9a;        /* decorative / large-text only (3.06:1 on white) */
  --pink-deep: #b8436f;   /* AA for small text on white */
  --pink-soft: #fadce8;
  --green: #06c755;
  --green-deep: #059a44;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(46, 124, 214, 0.12);
  --shadow-soft: 0 4px 14px rgba(46, 124, 214, 0.08);
  --font-head: "Prompt", "Anuphan", system-ui, sans-serif;
  --font-body: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; }
/* author display values (grid/flex) must never override the hidden attribute */
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  /* shows through when rubber-band overscrolling past the page edges */
  background: #e3effc;
  /* decorative layers (orbiting plane, looping carousel) must never
     widen the mobile layout viewport */
  overflow-x: hidden;
}

body {
  margin: 0;
  /* One continuous sky: the hero's tint, carried down the whole page.
     The first two washes reproduce the original hero gradient exactly;
     the rest repeat it softly every ~viewport-height. Viewport units so
     the strength holds on any screen size. */
  background:
    radial-gradient(120vw 80vh at 18% 0%, #d9eafb 0%, rgba(217,234,251,0) 66%),
    radial-gradient(110vw 65vh at 92% 8vh, #fadfec 0%, rgba(250,223,236,0) 62%),
    radial-gradient(105vw 60vh at -8% 115vh, #fadfec 0%, rgba(250,223,236,0) 64%),
    radial-gradient(110vw 62vh at 108% 205vh, #d9eafb 0%, rgba(217,234,251,0) 64%),
    radial-gradient(105vw 60vh at 40% 300vh, #fadfec 0%, rgba(250,223,236,0) 66%),
    radial-gradient(110vw 62vh at 95% 400vh, #d9eafb 0%, rgba(217,234,251,0) 66%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  /* 1.7 line-height chosen for Thai stacked vowels/tone marks — do not tighten */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* the sticky-bar clearance lives inside the footer so its tinted band
     reaches the very bottom of the page — no white strip beneath it */
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--sky-deep); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 8px;
}

.wrap { max-width: 600px; margin: 0 auto; padding: 0 20px; }

/* ── Top bar ─────────────────────────────────────────────── */
.top {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 0 0;
}
.lang-toggle {
  position: absolute; right: 0; top: 16px;
  display: flex; gap: 2px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  border: none; background: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  color: var(--muted);
  padding: 5px 10px; border-radius: 999px; min-height: 28px;
}
.lang-toggle button.on {
  background: var(--sky-soft); color: var(--sky-deep); cursor: default;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.25rem; color: var(--sky-deep);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.brand img { width: 46px; height: 46px; }
.brand .th { color: var(--pink); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-bottom: 8px;
}
.hero-inner { text-align: center; padding-top: 28px; }
/* titles wear the brand blue (matches the logo wordmark) */
.hero h1 {
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  font-weight: 700;
  color: var(--sky-deep);
}
.hero h1 .accent { color: var(--pink); }
.hero .sub {
  margin: 12px auto 0; max-width: 42ch;
  color: var(--muted); font-size: 1rem;
}
.hero .flags { margin-top: 10px; font-size: 1.15rem; letter-spacing: 4px; }

/* ── Globe scene: globe + hugging clouds + orbiting plane + flag pins ── */
.globe-holder {
  position: relative;
  width: min(94vw, 420px);
  aspect-ratio: 1;
  margin: 14px auto 0;
}
@media (min-width: 700px) {
  .globe-holder { width: 500px; }
}
.globe-holder canvas,
.globe-holder .globe-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  contain: layout paint size;
  z-index: 1; /* the plane dips to z-index 0 to fly behind the globe */
}
.globe-holder .globe-poster { object-fit: contain; }

.g-cloud {
  position: absolute; pointer-events: none; user-select: none;
  color: #fff; text-shadow: 0 8px 20px rgba(46, 124, 214, 0.22);
  z-index: 3;
  animation: float 7s ease-in-out infinite;
}
.g-cloud.gc1 { top: 9%; left: -2%; font-size: 2.6rem; }
.g-cloud.gc2 { bottom: 12%; right: -1%; font-size: 1.9rem; opacity: .85; animation-duration: 9s; animation-delay: -3s; }
.g-cloud.gc3 { top: 4%; right: 14%; font-size: 1.4rem; opacity: .7; animation-duration: 11s; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(5px, -7px); }
  66%      { transform: translate(-4px, 4px); }
}

/* plane on a smooth elliptical orbit: a tilted, squashed frame spins and
   carries the jet — sizes are percentages, so it scales with the holder */
.g-plane {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none; user-select: none;
  transform: rotate(-14deg) scaleY(0.52);
}
.g-orbit {
  position: absolute; inset: 0;
  animation: orbit-spin 14s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.g-jet {
  position: absolute; top: 50%; left: 102%;
  font-size: 1.5rem;
  display: inline-block;
  transform: translate(-50%, -50%) scaleY(1.9) rotate(90deg);
}
/* when the live globe runs, js/globe.js drives the jet directly (with
   depth: behind the globe on the top half of the orbit) */
.g-plane.js-driven { transform: none; }
.g-plane.js-driven .g-orbit { animation: none; position: absolute; inset: 0; }
.g-plane.js-driven .g-jet { top: 0; left: 0; }

/* soft light sweeping from Thailand along the flight arcs, one at a time */
.arc-light {
  position: absolute; top: 0; left: 0;
  width: 30px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 158, 190, 0.55) 45%,
    rgba(240, 158, 190, 0) 75%);
  filter: blur(0.5px);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .g-orbit, .g-cloud { animation: none; }
  .g-plane, .arc-light { visibility: hidden; }
  html { scroll-behavior: auto; }
}

/* interactive flag pins projected onto the globe by js/globe.js */
.globe-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.globe-pin {
  position: absolute; top: 0; left: 0;
  pointer-events: auto;
  border: none; background: none; padding: 0; cursor: pointer;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .2s ease;
  display: grid; justify-items: center; gap: 2px;
}
.globe-pin .pin-flag {
  display: grid; place-items: center;
  font-size: 24px; line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(24, 42, 66, 0.4));
  transition: transform .15s ease;
}
.globe-pin:hover .pin-flag, .globe-pin:focus-visible .pin-flag {
  transform: scale(1.25);
}
.globe-pin .pin-label {
  position: absolute; top: 100%; margin-top: 3px;
  white-space: nowrap;
  background: var(--ink); color: #fff;
  font-family: var(--font-head); font-size: .68rem; font-weight: 500;
  padding: 2px 9px; border-radius: 999px;
  opacity: 0; transform: translateY(-3px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.globe-pin:hover .pin-label, .globe-pin:focus-visible .pin-label {
  opacity: 1; transform: translateY(0);
}
.globe-pin.origin { pointer-events: none; }
.globe-pin.origin .pin-flag { font-size: 17px; }
@media (min-width: 700px) {
  .globe-pin .pin-flag { font-size: 30px; }
  .globe-pin.origin .pin-flag { font-size: 20px; }
  .globe-pin .pin-label { font-size: .78rem; }
}

/* ── Wizard card ─────────────────────────────────────────── */
.wizard {
  position: relative;
  margin-top: -34px; /* overlap the globe */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
}
.dots {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 14px; font-size: 0.8rem; color: var(--muted);
  flex-wrap: wrap;
}
.dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); flex: none;
}
.dots .dot.on { background: var(--green); }
.dots .dot-label { margin-right: 8px; }

.wizard h2 {
  text-align: center; font-size: 1.2rem; font-weight: 600;
  color: var(--sky-deep);
}
.wizard .step-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 2px; }

.country-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 16px;
}
.country-btn {
  display: grid; gap: 2px; justify-items: center; text-align: center;
  padding: 14px 8px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  min-height: 44px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.country-btn:active { transform: scale(.97); }
.country-btn:hover { border-color: var(--sky); background: var(--bg-sky); }
.country-btn .flag { font-size: 1.8rem; line-height: 1.2; }
.country-btn .name { font-family: var(--font-head); font-weight: 500; font-size: .92rem; }

/* step 2 */
.step2-head {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
}
.back-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--sky-deep);
  border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: .9rem;
  min-height: 44px;
}
.back-btn:hover { background: var(--bg-sky); }
.picked-country {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-soft); color: var(--sky-deep);
  border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
}
.visa-list { display: grid; gap: 10px; margin-top: 16px; }
.visa-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.visa-link:active { transform: scale(.98); }
.visa-link:hover { border-color: var(--green); background: #f2fcf6; }
.visa-link .v-label { font-family: var(--font-head); font-weight: 500; font-size: .98rem; }
.visa-link .v-hint { color: var(--muted); font-size: .84rem; }
.visa-link .v-go {
  margin-left: auto; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 1rem;
}
.entry-note {
  margin-top: 12px; font-size: .84rem; color: var(--muted);
  background: var(--bg-sky); border-radius: 12px; padding: 10px 14px;
}

/* ── Sections ────────────────────────────────────────────── */
section { padding: 52px 0 8px; }
.sec-label {
  font-family: var(--font-head);
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pink-deep);
  text-align: center;
}
/* Thai script has no uppercase and letter-spacing breaks its shaping */
html[lang="th"] .sec-label { letter-spacing: 0; text-transform: none; }
section h2.sec-title {
  text-align: center; font-size: 1.45rem; font-weight: 600; margin-top: 6px;
  color: var(--sky-deep);
}
.sec-sub { text-align: center; color: var(--muted); max-width: 46ch; margin: 8px auto 0; font-size: .95rem; }

/* how it works */
.steps { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 460px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow-soft);
  display: grid; gap: 6px; justify-items: center; align-content: start;
}
.step-card .num {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600;
  background: var(--pink-soft); color: var(--pink-deep);
}
.step-card:nth-child(2) .num { background: var(--sky-soft); color: var(--sky-deep); }
.step-card:nth-child(3) .num { background: #dff7e9; color: var(--green-deep); }
.step-card h3 { font-size: .98rem; font-weight: 600; }
.step-card p { color: var(--muted); font-size: .87rem; }

/* destinations — 3D coverflow carousel */
.carousel {
  position: relative;
  margin-top: 22px;
  perspective: 1100px;
  height: 250px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden; /* side cards peek and clip — never widen the page */
}
.car-card {
  position: absolute; top: 50%; left: 50%;
  width: min(76%, 300px);
  height: 218px;
  display: grid; gap: 8px; grid-template-rows: auto 1fr auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .45s cubic-bezier(.22, .8, .3, 1), opacity .45s ease;
  will-change: transform;
  cursor: pointer;
}
.carousel.dragging .car-card { transition: none; }
.car-card .dest-head { display: flex; align-items: center; gap: 10px; }
.car-card .flag { font-size: 1.7rem; line-height: 1.3; flex: none; }
.car-card h3 { font-size: 1.02rem; font-weight: 600; }
.car-card p { color: var(--muted); font-size: .87rem; }
.car-card .go {
  justify-self: start; align-self: end;
  color: var(--sky-deep); background: var(--bg-sky);
  border: none; border-radius: 999px;
  padding: 8px 16px; font-weight: 500; font-size: .85rem;
  min-height: 44px; cursor: pointer;
}
.car-card .go:hover { background: var(--sky-soft); }
.car-card[aria-hidden="true"] { cursor: pointer; }

.car-nav {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 14px;
}
.car-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--sky-deep);
  font-size: 1.1rem; display: grid; place-items: center;
}
.car-arrow:hover { background: var(--bg-sky); }
.car-dots { display: flex; gap: 6px; }
.car-dots .cdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: none; padding: 0; cursor: pointer;
}
.car-dots .cdot.on { background: var(--pink); }

/* reviews — self-scrolling marquee of client cards */
.marquee {
  overflow: hidden;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.m-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.marquee:hover .m-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .m-track { animation: none; }
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

.m-card {
  flex: none;
  width: clamp(220px, 62vw, 290px);
  min-height: 150px;
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.m-card .stars { color: #f5a623; font-size: .95rem; letter-spacing: 2px; }
.m-card .quote {
  color: var(--muted); font-size: .88rem; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* person details pinned to the card's bottom; country on its own line */
.m-card .who {
  margin-top: auto; padding-top: 8px;
  display: grid; grid-template-columns: 30px 1fr; column-gap: 8px;
  align-items: center;
}
.m-card .r-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sky-soft); color: var(--sky-deep);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  grid-row: span 2;
}
.m-card .r-name { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.m-card .r-dest { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* trust band */
.trust-band {
  background: rgba(253, 241, 246, 0.75);
  border: 1px solid rgba(236, 183, 205, 0.35);
  border-radius: 28px; margin-top: 22px; padding: 26px 20px;
  display: grid; gap: 18px;
}
.stat-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.stat {
  background: #fff; border-radius: 16px; padding: 10px 16px;
  text-align: center; min-width: 88px; box-shadow: var(--shadow-soft);
}
.stat b { font-family: var(--font-head); font-size: 1.05rem; color: var(--sky-deep); display: block; }
.stat span { font-size: .75rem; color: var(--muted); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proof-ph {
  aspect-ratio: 3/4; border-radius: 14px;
  border: 2px dashed #ecb7cd; background: #fff;
  display: grid; place-items: center; text-align: center;
  color: var(--pink-deep); font-size: .72rem; padding: 8px;
}

/* placeholder marker */
.placeholder-note {
  margin-top: 14px; text-align: center;
  font-size: .78rem; color: var(--pink-deep);
  background: var(--pink-soft); border-radius: 999px;
  display: table; padding: 4px 16px; margin-left: auto; margin-right: auto;
}

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 0 16px;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 14px 0;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; color: var(--pink);
  font-size: 1.2rem; font-family: var(--font-head);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 0 14px; color: var(--muted); font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  margin-top: 56px;
  background: var(--bg-sky);
  border-radius: 28px 28px 0 0;
  /* bottom padding includes clearance for the sticky LINE bar */
  padding: 34px 0 calc(26px + 96px + env(safe-area-inset-bottom, 0px));
}
.contact-row { display: grid; gap: 10px; justify-items: center; text-align: center; }
.line-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 500; color: var(--ink);
  min-height: 44px; border-style: dashed;
}
.social-row { display: flex; gap: 14px; justify-content: center; margin-top: 2px; }
.social-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line);
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease;
}
.social-btn:hover { transform: scale(1.08); }
.social-btn.line { color: #06c755; }
.social-btn.fb { color: #1877f2; }
.social-btn.soon { opacity: .45; cursor: default; }
.footer-links { display: flex; gap: 16px; justify-content: center; margin-top: 4px; font-size: .9rem; }
.footer-soon { color: var(--muted); }
.disclaimer {
  margin-top: 18px; color: var(--muted); font-size: .78rem;
  text-align: center; max-width: 52ch; margin-left: auto; margin-right: auto;
}
.credit {
  margin-top: 16px; text-align: center; font-size: .78rem; color: var(--muted);
}
.credit a { color: var(--sky-deep); font-weight: 500; text-decoration: none; }

/* ── Sticky LINE bar ─────────────────────────────────────── */
.line-bar {
  position: fixed; z-index: 40;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100vw - 32px));
}
.line-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  /* green-tinted glassmorphism pill; label deepened to #046b34 so the
     text passes WCAG AA on the tinted glass ground */
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.32), rgba(6, 199, 85, 0.16));
  color: #046b34;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px; padding: 15px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(6, 150, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .line-bar a {
    background: linear-gradient(135deg, rgba(6, 199, 85, 0.26), rgba(6, 199, 85, 0.1));
    -webkit-backdrop-filter: blur(16px) saturate(1.7);
    backdrop-filter: blur(16px) saturate(1.7);
  }
}
.line-bar a:active { transform: scale(.98); }
.line-logo { width: 22px; height: 22px; flex: none; }

/* ── Floating greeter bubble ─────────────────────────────── */
.greeter {
  position: fixed; z-index: 39;
  right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: flex-end; gap: 8px;
  max-width: 78vw;
}
.greeter.show { display: flex; }
/* greeter matches the sticky LINE bar's green glassmorphism exactly */
.greeter .g-bubble {
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.32), rgba(6, 199, 85, 0.16));
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 10px 30px rgba(6, 150, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 10px 14px;
  font-size: .85rem; color: #046b34; font-weight: 500;
  text-decoration: none;
}
.greeter .g-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  padding: 3px; box-sizing: border-box;
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.32), rgba(6, 199, 85, 0.16));
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(6, 150, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .greeter .g-bubble, .greeter .g-avatar {
    background: linear-gradient(135deg, rgba(6, 199, 85, 0.26), rgba(6, 199, 85, 0.1));
    -webkit-backdrop-filter: blur(16px) saturate(1.7);
    backdrop-filter: blur(16px) saturate(1.7);
  }
}
.greeter .g-close {
  position: absolute; top: -10px; right: 34px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: .75rem; line-height: 1; display: grid; place-items: center;
  padding: 0;
}
/* invisible 44px hit area around the small visual circle */
.greeter .g-close::before {
  content: ""; position: absolute; inset: -11px; border-radius: 50%;
}

/* ── Demo-mode dialog (until the real LINE OA ID is set) ── */
.demo-dialog { border: none; border-radius: 20px; box-shadow: var(--shadow); padding: 0; max-width: min(92vw, 420px); }
.demo-dialog::backdrop { background: rgba(24, 42, 66, 0.45); }
.demo-inner { padding: 22px 20px; display: grid; gap: 10px; }
.demo-inner h3 { font-size: 1.05rem; }
.demo-inner .msg {
  background: #e8f7ee; border-radius: 14px 14px 14px 4px;
  padding: 12px 14px; font-size: .95rem;
}
.demo-inner .note { color: var(--muted); font-size: .82rem; }
.demo-inner button {
  background: var(--sky-deep); color: #fff; border: none; border-radius: 999px;
  padding: 10px 18px; font-weight: 500; justify-self: center; min-height: 44px;
}

/* ── Admin panel (admin.html) ────────────────────────────── */
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-soft); padding: 20px;
  margin-top: 18px; display: grid; gap: 14px;
}
.admin-card h1 { font-size: 1.3rem; color: var(--sky-deep); }
.admin-card h2 { font-size: 1rem; color: var(--sky-deep); }
.admin-note { color: var(--muted); font-size: .85rem; }
.admin-error { color: #b8436f; font-size: .88rem; }
.admin-review {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  display: grid; gap: 6px;
}
.admin-review .meta { color: var(--muted); font-size: .8rem; }
.admin-review .stars { color: #f5a623; letter-spacing: 2px; }
.admin-review .cmt { font-size: .92rem; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-approve, .btn-hide, .btn-plain {
  border: none; border-radius: 999px; padding: 9px 18px;
  font: inherit; font-weight: 500; cursor: pointer; min-height: 44px;
}
.btn-approve { background: var(--green); color: #0b3d22; }
.btn-hide { background: var(--pink-soft); color: var(--pink-deep); }
.btn-plain { background: var(--bg-sky); color: var(--sky-deep); }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: 2px 10px; border-radius: 999px;
  background: var(--warn-soft, #fbf1e2); color: #a05e10;
}
.badge.ok { background: var(--green-soft, #e4f7ec); color: var(--green-deep); }

/* ── Client evaluation page (review.html) ────────────────── */
.rate-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 24px 20px;
  margin-top: 22px;
  display: grid; gap: 20px;
}
.rate-head { text-align: center; display: grid; gap: 6px; }
.rate-head h1 { font-size: 1.5rem; font-weight: 700; color: var(--sky-deep); }
.rate-head p { color: var(--muted); font-size: .92rem; }
.rate-row { display: grid; gap: 4px; }
.rate-row .r-label { font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.stars-input { display: flex; gap: 4px; }
.stars-input button {
  border: none; background: none; padding: 4px;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  color: var(--line); min-width: 44px; min-height: 44px;
  transition: transform .12s ease, color .12s ease;
}
.stars-input button.lit { color: #f5a623; }
/* smart hover: stars up to the hovered one glow before you commit */
.stars-input button.hov { color: #f7c14d; }
.stars-input button.hov-tip { transform: scale(1.25) rotate(8deg); }
.stars-input button:active { transform: scale(1.3); }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .name-row { grid-template-columns: 1fr; } }
.rate-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 11px 14px; font: inherit; color: var(--ink); background: #fff;
  min-height: 44px;
}
/* focus ring: thin and flush with the field's own border */
.rate-input:focus-visible {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 1px var(--sky);
}
.field-hint { color: var(--muted); font-size: .78rem; }

.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-sky); border-radius: 14px; padding: 12px 14px;
}
.consent-row input[type="checkbox"] {
  width: 22px; height: 22px; margin: 2px 0 0; flex: none;
  accent-color: var(--sky);
}
.consent-row label { font-size: .88rem; }

.rate-success {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  padding: 26px 6px;
}
.rate-success .big { font-size: 2.6rem; }
.rate-success h2 { font-size: 1.25rem; }
.rate-success p { color: var(--muted); font-size: .92rem; max-width: 40ch; }
.dest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dest-chips button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 13px; font-size: .87rem; min-height: 44px; cursor: pointer;
  color: var(--ink);
}
.dest-chips button.picked { border-color: var(--pink); background: var(--pink-soft); }
.rate-comment {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 10px 14px; font: inherit; resize: vertical; min-height: 70px;
  color: var(--ink); background: #fff;
}
.rate-comment:focus-visible {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 1px var(--sky);
}
.rate-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  /* brand pink primary button (AA: white on this gradient) */
  background: linear-gradient(180deg, #c04a77, #a83c65);
  color: #fff;
  border: none; width: 100%; cursor: pointer;
  border-radius: 999px; padding: 15px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(196, 77, 127, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .12s ease;
}
.rate-submit:active { transform: scale(.98); }
.rate-submit[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
/* pink variant for standalone primary actions (e.g. admin sign-in) */
.btn-pink {
  background: linear-gradient(180deg, #c04a77, #a83c65);
  color: #fff; border: none; border-radius: 999px;
  padding: 12px 20px; font-family: var(--font-head); font-weight: 600;
  font-size: 1rem; cursor: pointer; min-height: 44px;
  box-shadow: 0 8px 24px rgba(196, 77, 127, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .12s ease;
}
.btn-pink:active { transform: scale(.98); }
.rate-note { text-align: center; color: var(--muted); font-size: .8rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
