/* True Cafe — Apple-style landing. Mobile-first. */
:root {
  --brand: #8E1F2C;
  --brand-hover: #a3263a;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .08);
  --bg: #ffffff;
  --gray: #f5f5f7;
  --warm: #fbf7f2;
  --dark: #0b0708;
  --gold: #E8C9A0;
  --ok: #248a3d;
  --err: #d70015;
  --radius: 22px;
  --radius-sm: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.47; letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.home { padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -.022em; line-height: 1.08; }
h3 { font-size: 21px; letter-spacing: -.016em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted-2); }
.muted-light { color: #a1a1a6; }
.fine { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ---------- typography ---------- */
.kicker { font-size: 17px; font-weight: 600; color: var(--brand); margin-bottom: 10px; letter-spacing: -.01em; }
.kicker--light { color: var(--gold); }
.display { font-size: clamp(44px, 12vw, 96px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 16px; }
.headline { font-size: clamp(32px, 8.4vw, 64px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 18px; }
.lede { font-size: clamp(21px, 5.4vw, 28px); line-height: 1.25; color: var(--muted); font-weight: 500; letter-spacing: -.02em; margin-bottom: 26px; }
.body-lg { font-size: clamp(17px, 4.4vw, 21px); line-height: 1.45; color: var(--muted); max-width: 640px; margin: 0 auto 8px; }

/* ---------- buttons ---------- */
.pill, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 12px 26px; border-radius: 980px; border: 0;
  background: var(--brand); color: #fff; font: 600 17px/1.1 var(--sans); letter-spacing: -.01em;
  cursor: pointer; text-decoration: none !important; transition: background .2s, transform .15s var(--ease), opacity .2s;
}
.pill:hover, .btn:hover { background: var(--brand-hover); }
.pill:active, .btn:active { transform: scale(.97); }
.pill--sm { min-height: 30px; padding: 5px 14px; font-size: 13px; }
.pill--block, .btn--block { display: flex; width: 100%; }
.pill--ghost, .btn--outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pill--ghost:hover, .btn--outline:hover { background: rgba(142, 31, 44, .06); }
.btn--primary { background: var(--brand); }
.pill[disabled], .btn[disabled] { opacity: .5; cursor: progress; }
.more { font-size: 17px; font-weight: 500; }
.more::after { content: " ›"; }
.cta-row { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.mt { margin-top: 2.2em; }
.mt-s { margin-top: 14px; }

/* ---------- liquid glass ---------- */
.glass {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 10px 40px rgba(60, 20, 25, .10), 0 1px 2px rgba(0, 0, 0, .04);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .94); }
}

/* ---------- nav (Apple global nav) ---------- */
.nav, .topbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav__in, .topbar__in { max-width: 980px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo img, .logo img { width: 96px; height: auto; }
.nav__links { display: none; gap: 26px; font-size: 13px; }
.nav__links a { color: var(--ink); opacity: .8; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.topbar__call { font-size: 13px; font-weight: 600; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; position: relative; }
.sec--gray { background: var(--gray); }
.sec--cream { background: var(--warm); }
.sec--dark { background: var(--dark); color: #f5f5f7; }
.sec--dark .headline { color: #f5f5f7; }
.sec--dark a { color: var(--gold); }

/* hero */
.hero { padding: 56px 0 40px; overflow: hidden; background: linear-gradient(#fbfbfd, #fff 60%); }
.price-line { font-size: 14px; color: var(--muted); margin: 0; }
.hero__stage { position: relative; height: clamp(300px, 86vw, 620px); margin: 28px auto 8px; max-width: 980px; }
.hero__glow { position: absolute; left: 50%; top: 55%; width: 120%; max-width: 900px; aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(142, 31, 44, .16), rgba(232, 201, 160, .14) 55%, transparent 75%); filter: blur(10px); }
.can { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 30px 30px rgba(40, 10, 15, .22)); }
.can--c { left: 50%; width: 46%; max-width: 440px; transform: translateX(-50%); z-index: 2; }
.can--l, .can--r { width: 34%; max-width: 330px; bottom: 2%; }
.can--l { left: 50%; transform: translateX(-118%); }
.can--r { left: 50%; transform: translateX(18%); }
.proof { list-style: none; margin: 24px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 640px; }
.proof li { text-align: center; padding: 0 6px; border-left: 1px solid var(--hair); }
.proof li:first-child { border-left: 0; }
.proof b { display: block; font-size: 22px; letter-spacing: -.02em; }
.proof span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }

/* pain */
.bignum { margin: 36px auto 30px; max-width: 640px; }
.bignum b { display: block; font-size: clamp(110px, 34vw, 220px); line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bignum span { display: block; margin-top: 14px; font-size: 19px; color: #a1a1a6; line-height: 1.4; }
.stats3, .stats4 { display: grid; gap: 22px; margin: 28px auto; max-width: 820px; text-align: center; }
.stats3 { grid-template-columns: 1fr 1fr; }
.stats4 { grid-template-columns: 1fr 1fr; }
.stats3 b, .stats4 b { display: block; font-size: clamp(28px, 7.4vw, 44px); letter-spacing: -.03em; line-height: 1.05; }
.stats3 span, .stats4 span { font-size: 14px; color: var(--muted-2); line-height: 1.35; display: block; margin-top: 6px; }
.sec--dark .stats3 span { color: #a1a1a6; }
.stats3--ink { grid-template-columns: repeat(3, 1fr); }
.stats3--ink b { color: var(--brand); font-size: clamp(19px, 5.4vw, 40px); white-space: nowrap; }
.pains { list-style: none; padding: 0; margin: 36px auto 22px; max-width: 520px; text-align: left; }
.pains li { font-size: 21px; font-weight: 600; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); letter-spacing: -.015em; }
.pains li::before { content: "✕"; color: #ff6961; margin-right: 12px; font-weight: 700; }
.src { font-size: 12px; color: #86868b; }

/* tiles */
.tiles4, .tiles2 { display: grid; gap: 14px; margin-top: 34px; }
.tiles4 { grid-template-columns: 1fr 1fr; }
.tile { background: #fff; border-radius: var(--radius); padding: 24px 20px; }
.sec:not(.sec--gray) .tile { background: var(--gray); }
.tile i { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 18px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.45; }
.tile--big h3 { font-size: 24px; }
.tile--img { padding: 0; overflow: hidden; display: block; }

/* wide figure */
.wide { margin: 40px auto 0; max-width: 1180px; padding: 0 20px; }
.wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.wide figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 20px; counter-reset: n; display: grid; gap: 0; }
.steps li { counter-increment: n; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--hair); }
.steps li::before { content: counter(n); position: absolute; left: 0; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 600 14px/32px var(--sans); text-align: center; }
.steps b { display: block; font-size: 19px; letter-spacing: -.015em; }
.steps span { color: var(--muted); font-size: 15px; }

/* rail gallery */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 20px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 76%; max-width: 360px; margin: 0; scroll-snap-align: center; }
.rail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.rail figcaption { font-size: 14px; font-weight: 600; margin-top: 10px; }

/* certificates */
.score { margin: 30px auto 8px; max-width: 560px; }
.score b { display: block; font-size: clamp(96px, 28vw, 180px); line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--brand) 20%, #c0485a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score span { display: block; color: var(--muted); font-size: 17px; margin-top: 12px; }
.cert-card { max-width: 240px; margin: 26px auto 0; }
.cert-card img { border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .12); }
.chips { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips li { background: var(--gray); border-radius: var(--radius-sm); padding: 14px 16px; }
.chips b { display: block; font-size: 16px; }
.chips span { font-size: 13px; color: var(--muted); }
.cert-row { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.cert-row::-webkit-scrollbar { display: none; }
.cert-row img { height: 160px; width: auto; flex: 0 0 auto; border-radius: 8px; border: 1px solid var(--hair); background: #fff; }

/* products */
.products { display: grid; gap: 14px; margin: 36px 0 22px; }
.product { background: #fff; border-radius: var(--radius); padding: 26px 22px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.product__img { width: 58%; max-width: 220px; margin: 4px auto 18px; filter: drop-shadow(0 16px 18px rgba(40, 10, 15, .18)); transition: transform .6s var(--ease); }
.product:hover .product__img { transform: translateY(-4px) scale(1.02); }
.product__tag { font-size: 12px; font-weight: 600; color: #b64400; margin-bottom: 6px; }
.product h3 { font-size: 24px; margin-bottom: 4px; }
.product__notes { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.product__price { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.product__price small { font-weight: 400; color: var(--muted); font-size: 14px; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.offer { position: relative; background: #fff; border-radius: var(--radius-sm); padding: 18px 8px 14px; text-align: center; }
.offer b { display: block; font-size: 19px; letter-spacing: -.015em; }
.offer span { display: block; font-weight: 600; color: var(--brand); }
.offer small { font-size: 12px; color: var(--muted); }
.offer em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font: 600 11px var(--sans); font-style: normal; background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 980px; white-space: nowrap; }
.offer--hot { box-shadow: inset 0 0 0 2px var(--brand); }
.offer--hot em { background: var(--brand); }
.offer--gift { grid-column: 1 / -1; padding: 20px 14px 16px; }
.offer--gift em { background: var(--ok); }

/* spec (Apple tech specs) */
.spec { margin: 30px 0 0; }
.spec > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.spec dd { margin: 0; font-size: 17px; }

/* guides */
.guides { display: grid; gap: 14px; margin-top: 34px; }
.guides__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* order + form */
.order { overflow: hidden; background: var(--warm); }
.order__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(142, 31, 44, .20), transparent 70%),
    radial-gradient(45% 40% at 90% 40%, rgba(232, 201, 160, .55), transparent 70%),
    radial-gradient(50% 40% at 40% 95%, rgba(142, 31, 44, .14), transparent 70%); }
.order .wrap { position: relative; }
.wrap--form { max-width: 560px; }
.form { border-radius: 28px; padding: 22px 18px; margin-top: 30px; color: var(--ink); }
.form__items { border: 0; padding: 0; margin: 0 0 6px; }
.form__items legend { font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.qty-row__name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.qty-row__name small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.stepper { display: flex; align-items: center; background: rgba(255, 255, 255, .7); border: 1px solid var(--hair); border-radius: 980px; flex-shrink: 0; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; color: var(--brand); cursor: pointer; border-radius: 50%; }
.stepper button:active { background: rgba(142, 31, 44, .08); }
.stepper output { min-width: 24px; text-align: center; font-weight: 600; }
.summary { background: rgba(255, 255, 255, .7); border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 14px 16px; margin: 14px 0 18px; font-size: 15px; }
.summary b { color: var(--brand); font-size: 21px; letter-spacing: -.02em; }
.summary .ship-ok { color: var(--ok); font-weight: 600; }
.summary .ship-hint { color: var(--brand); font-weight: 500; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field > span small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: 17px var(--sans); padding: 14px 16px; color: var(--ink);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(142, 31, 44, .14); }
.field .invalid { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { color: var(--err); font-weight: 600; font-size: 15px; }
.form__msg:empty { display: none; }
.form .fine { margin: 12px 0 0; }
.callbox { display: flex; flex-direction: column; align-items: center; border-radius: 22px; padding: 16px; margin-top: 14px; color: var(--ink) !important; text-decoration: none !important; }
.callbox span { font-size: 14px; color: var(--muted); }
.callbox b { font-size: 21px; color: var(--ok); letter-spacing: -.01em; }

/* faq */
.faq { margin-top: 26px; border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; letter-spacing: -.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 24px; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
.footer { background: var(--gray); color: var(--muted); font-size: 12px; padding: 34px 0 30px; border-top: 1px solid var(--hair); }
.footer p { margin: 0 0 10px; line-height: 1.6; }
.footer a { color: var(--ink); }

/* dock (sticky CTA, glass) */
.dock { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-radius: 980px; transition: transform .45s var(--ease), opacity .3s; }
.dock > div { margin-right: auto; line-height: 1.2; }
.dock b { display: block; font-size: 17px; letter-spacing: -.02em; }
.dock small { font-size: 11px; color: var(--muted); }
.dock .pill { min-height: 42px; padding: 10px 20px; font-size: 15px; }
.dock.is-hidden { transform: translateY(140%); opacity: 0; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- larger screens ---------- */
@media (min-width: 734px) {
  .sec { padding: 120px 0; }
  .hero { padding-top: 80px; }
  .tiles4 { grid-template-columns: repeat(4, 1fr); }
  .tiles2 { grid-template-columns: 1fr 1fr; }
  .stats4 { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .offers { grid-template-columns: repeat(4, 1fr); }
  .offer--gift { grid-column: auto; padding: 18px 8px 14px; }
  .chips { grid-template-columns: repeat(5, 1fr); }
  .spec > div { grid-template-columns: 200px 1fr; gap: 24px; }
  .rail { padding-left: max(20px, calc((100vw - 940px) / 2)); }
  .rail figure { flex-basis: 340px; }
  .form { padding: 32px 30px; }
  .wide img { aspect-ratio: 16 / 9; }
}
@media (min-width: 1068px) {
  body.home { padding-bottom: 0; }
  .nav__links { display: flex; }
  .dock { display: none; }
}

/* ============ trang phụ: cảm ơn / tra cứu / quản trị ============ */
.page { background: var(--gray); }
.page__main { min-height: calc(100vh - var(--nav-h)); padding: 48px 0 80px; }
.page .wrap { max-width: 640px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.h1-sm { font-size: clamp(30px, 8vw, 44px); letter-spacing: -.028em; }
.h2-sm { font-size: 24px; margin-top: 34px; }
.page .form, .ok-card, .track { background: #fff; border-radius: 24px; padding: 26px 20px; margin-top: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.ok-card { text-align: center; }
.ok-card__icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 30px; line-height: 60px; }
.order-code { font: 700 32px/1.1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--brand); background: var(--gray); border-radius: 14px; padding: 14px; margin: 6px 0 8px; user-select: all; }
.ok-card .summary { text-align: left; background: var(--gray); }
.callout { background: #fff4e5; color: #8a4b00; border-radius: 14px; padding: 12px 16px; font-weight: 500; }
.track__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.track__head b { display: block; font: 700 24px ui-monospace, "SF Mono", Menlo, monospace; color: var(--brand); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 980px; background: var(--gray); color: var(--ink); white-space: nowrap; }
.badge--new { background: #f2e7e9; color: var(--brand); }
.badge--confirmed { background: #e8f1fd; color: #0060c7; }
.badge--shipping { background: #fff4e5; color: #8a4b00; }
.badge--delivered { background: #e6f4ea; color: var(--ok); }
.badge--cancelled, .badge--warn { background: #fde8ea; color: var(--err); }
.progress { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.progress li { counter-increment: s; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 36px; }
.progress li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: #fff; font: 600 13px/28px var(--sans); z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::after { display: none; }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done::before, .progress li.done::after { background: var(--ok); }
.progress li.now::before { box-shadow: 0 0 0 5px rgba(36, 138, 61, .2); }
.ship { background: var(--gray); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.ship b { display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.track .summary { background: var(--gray); }
.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff; }
.timeline span { display: block; font-size: 13px; color: var(--muted); }

.admin__main { max-width: 1100px; margin: 0 auto; padding: 20px; }
.admin__bar { display: flex; flex-wrap: wrap; gap: 8px; }
.admin__bar input, .admin__bar select, .ocard__edit input, .ocard__edit select { font: 15px var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin__bar input { flex: 1 1 240px; }
.admin .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.admin__table { overflow-x: auto; background: #fff; border-radius: 14px; }
.admin__table table { border-collapse: collapse; font-size: 14px; width: 100%; }
.admin__table td, .admin__table th { padding: 8px 10px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
.ocard { border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.ocard header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ocard p { margin: 8px 0; font-size: 14.5px; }
.ocard__edit { display: flex; flex-wrap: wrap; gap: 6px; }
.ocard__edit input { flex: 1 1 140px; }

.display, .headline, .lede, .body-lg, .h1-sm, .bignum span { text-wrap: balance; }

/* ---------- giới thiệu / QR / upsell / chính sách ---------- */
.ref-banner { position: fixed; z-index: 70; left: 12px; right: 12px; top: calc(var(--nav-h) + 10px); max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 14px 40px 14px 16px; border-radius: 22px;
  opacity: 0; transform: translateY(-14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ref-banner.in { opacity: 1; transform: none; }
.ref-banner__icon { font-size: 28px; grid-row: span 2; }
.ref-banner p { margin: 0; font-size: 15px; line-height: 1.4; }
.ref-banner .pill { justify-self: start; }
.ref-banner__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; width: 32px; height: 32px; }
.summary .was { color: var(--muted); font-size: 14px; margin-left: 6px; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 18px; padding: 14px 16px; margin: -6px 0 18px;
  background: linear-gradient(135deg, rgba(232, 201, 160, .45), rgba(255, 255, 255, .7)); }
.upsell b { display: block; font-size: 16px; letter-spacing: -.015em; }
.upsell span { font-size: 13px; color: var(--muted); }
.upsell .pill { flex-shrink: 0; }
.sheet { border: 0; border-radius: 28px; padding: 28px 22px 22px; max-width: 420px; width: calc(100% - 32px); text-align: center; color: var(--ink); }
.sheet::backdrop { background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__emoji { font-size: 44px; margin: 0 0 6px; }
.sheet h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.025em; }
.sheet p { color: var(--muted); font-size: 15px; }
.sheet__btns { display: grid; gap: 10px; margin-top: 18px; }
.qr-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 24px; padding: 18px; margin-top: 16px; }
.qr-card .qr { width: 132px; height: 132px; flex-shrink: 0; image-rendering: pixelated; border-radius: 10px; }
.qr-card b { display: block; font-size: 17px; }
.qr-card p { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.refer { border-radius: 24px; padding: 22px 20px; margin-top: 18px; text-align: center;
  background: linear-gradient(135deg, rgba(142, 31, 44, .10), rgba(232, 201, 160, .35)); }
.refer h3 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 6px; }
.refer p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.refer__link { font: 600 14px ui-monospace, "SF Mono", Menlo, monospace; background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 10px; margin-bottom: 12px; word-break: break-all; }
.refer__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.refer__btns .pill { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.recent { background: #fff; border-radius: 20px; padding: 8px 16px; margin: 18px 0 4px; }
.recent__title { font-size: 13px; color: var(--muted); margin: 6px 0; }
.recent__item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid var(--hair); background: none; padding: 12px 0; font: 15px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.recent__item b { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--brand); }
.recent__item span { color: var(--muted); font-size: 13px; margin-right: auto; }
.recent__item i { font-style: normal; color: var(--muted); font-size: 20px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 14px !important; }
.footer__links a { color: var(--ink); }
.legal h2 { font-size: 24px; margin-top: 26px; }
.legal ul { padding: 0; list-style: none; margin: 0; }
.legal li { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.legal li b { display: block; margin-bottom: 2px; }

.tiles4--3 { grid-template-columns: 1fr; }
@media (min-width: 734px) { .tiles4.tiles4--3 { grid-template-columns: repeat(3, 1fr); } }
.ref-banner__mini { display: none; font-size: 14px; color: var(--ink) !important; text-decoration: none !important; }
.ref-banner.mini { grid-template-columns: 1fr; padding: 8px 40px 8px 16px; border-radius: 980px; max-width: 420px; }
.ref-banner.mini > p, .ref-banner.mini > .pill, .ref-banner.mini > .ref-banner__icon { display: none; }
.ref-banner.mini .ref-banner__mini { display: block; }
.ref-banner.mini .ref-banner__x { top: 2px; }

@media (min-width: 734px) { .tile--wide { grid-column: 1 / -1; } }
