:root {
  --blue: #1167e8;
  --blue-deep: #0a2342;
  --blue-soft: #e9f2ff;
  --orange: #ff8a00;
  --orange-soft: #fff0db;
  --paper: #f4f7fb;
  --white: #ffffff;
  --ink: #0a2342;
  --muted: #5b6b80;
  --line: #dce5f1;
  --field: #7d8fa5;
  --green: #19b878;
  --green-soft: #e3f7ee;
  --red: #c62a2f;
  --red-soft: #fdecec;
  --radius: 16px;
  --shadow: 0 12px 36px rgba(10, 35, 66, .08);
  --font: 'Sarabun', Tahoma, 'Leelawadee UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2 { margin: 0; line-height: 1.3; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.15rem; }
p { margin: 0; }

.shop-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.shop-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; text-decoration: none; }
.shop-brand img { display: block; width: 36px; height: 36px; flex: none; }
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand-name span { color: var(--blue); }
.shop-account { display: flex; align-items: center; gap: 12px; }
.wallet-chip { padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); font-size: .92rem; white-space: nowrap; }
.shop-account .link-button { white-space: nowrap; }
@media (max-width: 480px) {
  .wallet-label { display: none; }
  .shop-brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.2rem; }
  .shop-top { gap: 8px; padding: 8px 12px; }
  .shop-account { gap: 6px; }
}
.wallet-chip strong { color: var(--blue); }

.shop-main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 48px; }
.shop-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .wallet-card { grid-column: 1; grid-row: 1 / span 2; }
  .services-card, .order-card, .orders-card { grid-column: 2; }
}

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; overflow-wrap: anywhere; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.balance { font-size: 1.6rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: .92rem; }

.notice { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: var(--orange-soft); }
.notice.ok { background: var(--green-soft); }
.notice.bad { background: var(--red-soft); }
.notice a { color: var(--blue); font-weight: 600; }
#notice { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; max-width: 560px; margin: 0 auto; box-shadow: 0 10px 30px rgba(10, 35, 66, .22); cursor: pointer; }

.auth-card { max-width: 440px; margin: 24px auto; }
.shop-grid + .auth-card { margin-top: 16px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: 12px; }
.tabs button { flex: 1; min-height: 44px; border: 0; background: transparent; padding: 8px; border-radius: 9px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--white); box-shadow: 0 1px 4px rgba(10, 35, 66, .12); font-weight: 600; }

.field { display: grid; gap: 6px; }
.field > span, .field-label { font-weight: 600; font-size: .95rem; }
input[type="email"], input[type="password"], input[type="text"], input[type="url"], input[type="number"], input[type="date"], input[type="month"] {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--white);
}
::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#authForm, #orderForm, #forgotForm, #resetForm { display: grid; gap: 14px; }

.button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 600; cursor: pointer; white-space: nowrap; }
.button.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.button.wide { width: 100%; white-space: normal; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.link-button { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; color: var(--blue); cursor: pointer; padding: 10px 8px; font-weight: 600; text-decoration: none; }
.form-error, .field-error { color: var(--red); font-size: .92rem; min-height: 1em; }
.form-error:empty, .field-error:empty { display: none; }
.form-error a, .field-error a { color: var(--blue); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.show-password { font-size: .92rem; }

.topup-form { display: grid; gap: 10px; }
.preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preset-row button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 600; }
.preset-row button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(17, 103, 232, .2); }
#packRow button { display: grid; gap: 1px; padding: 6px 4px; line-height: 1.25; }
#packRow button small { color: var(--blue-deep); font-size: .9rem; font-weight: 600; }
#orderRange, #passwordHint { font-size: .9rem; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field.wrap { flex-wrap: wrap; }
@media (max-width: 480px) {
  .topup-form .inline-field, #slipForm { flex-direction: column; }
  .topup-form .inline-field .button, #slipForm .button { width: 100%; }
}

.qr-box { display: grid; gap: 14px; justify-items: center; padding: 16px; border: 1px dashed var(--blue); border-radius: 14px; background: var(--blue-soft); }
.qr-box img { width: 220px; height: 220px; background: var(--white); border-radius: 12px; padding: 6px; }
.qr-detail { display: grid; gap: 6px; width: 100%; text-align: center; }
#slipUploadLabel { display: flex; align-items: center; justify-content: center; cursor: pointer; white-space: normal; text-align: center; line-height: 1.35; }
#slipUploadLabel.busy { opacity: .6; pointer-events: none; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qr-actions .button { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.quick-nav { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; }
.quick-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
@media (min-width: 900px) { .quick-nav { display: none; } }
.shop-main .card { scroll-margin-top: 76px; }
.pay-amount { font-size: 1.8rem; font-weight: 700; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
#slipForm { margin-top: 6px; }

summary { cursor: pointer; padding: 10px 0; }
.history summary { color: var(--muted); }
.plain-list li .link-button { min-height: 36px; padding: 4px 8px; }
.plain-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.plain-list li { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }

.chip-row { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 64px; z-index: 4; margin: 0 -4px; padding: 8px 4px; background: var(--white); }
@media (max-width: 480px) { .chip-row { top: 60px; } }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row button { flex: none; min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.chip-row button[aria-pressed="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }

.service-list, .order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Name, pack prices, then description, stacked: the price line never pushes the card off a phone screen. */
.service-list > li > button { width: 100%; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.service-list > li > button[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(17, 103, 232, .2); }
.service-list > li > button .name { font-weight: 600; }
.service-list > li > button .price { color: var(--blue); font-weight: 700; }
.service-list > li > button .desc { color: var(--muted); font-size: .9rem; }
.list-heading { margin: 10px 0 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.list-heading span { color: var(--muted); font-weight: 400; }
@media (max-width: 759px) {
  .service-list > li > button .desc, .home-services .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.service-list li > .order-card { margin-top: 10px; }

.price-line { font-size: 1.1rem; }
.price-line strong { color: var(--blue); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.truth { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--orange-soft); font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

.order-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.order-list .meta { color: var(--muted); font-size: .9rem; grid-column: 1 / -1; overflow-wrap: anywhere; }
.pill { justify-self: end; align-self: start; padding: 2px 10px; border-radius: 999px; font-size: .9rem; font-weight: 600; background: var(--blue-soft); color: var(--blue); }
@media (max-width: 480px) {
  .order-list li { grid-template-columns: minmax(0, 1fr); }
  .order-list li > .pill { justify-self: start; }
}
.pill.done { background: var(--green-soft); color: #0f7a50; }
.pill.bad { background: var(--red-soft); color: #b42318; }
.pill.wait { background: var(--orange-soft); color: #9a5200; }

/* ---------- back office (admin.html) ---------- */
.admin-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { gap: 4px; padding: 16px; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.switch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.switch-row button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 600; }
.switch-row button[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); color: #0f7a50; }
.row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.row-actions input { flex: 1; min-width: 140px; }
.row-actions .button { min-height: 44px; padding: 6px 14px; }
.button.confirming { background: var(--orange); border-color: var(--orange); color: var(--white); }
.status-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .85rem; color: var(--muted); }
.status-line .pill { justify-self: auto; }
.upstream-pool { grid-column: 1 / -1; margin-top: 4px; }
.upstream-pool[open] { display: grid; gap: 10px; }
.upstream-pool .order-list li { background: var(--paper); }
.upstream-bar { align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 12px; }
.service-form { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.service-form h3 { margin: 0; font-size: 1.05rem; }
.two-col { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
select, textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--white); font: inherit; color: inherit; }
input[type="search"] { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--white); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 40; padding: 8px 14px; border-radius: 10px; background: var(--white); color: var(--blue); font-weight: 600; }
.skip-link:focus { left: 16px; }
.brand-tag { padding: 2px 10px; border-radius: 999px; background: var(--orange-soft); color: #9a5200; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.admin-main { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
/* Four sections in a bottom bar on phones (thumb reach), a row under the header on wide screens. */
.admin-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10, 35, 66, .06); }
.admin-tabs a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; padding: 4px 2px; border-radius: 12px; color: var(--muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.admin-tabs a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.admin-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--white); font-size: .75rem; line-height: 20px; text-align: center; }
.tab-badge.warn { background: var(--orange); color: var(--blue-deep); }
.has-tabs #notice { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .has-tabs { scroll-padding-top: 132px; }
  .admin-tabs { position: sticky; top: 57px; bottom: auto; display: flex; justify-content: center; gap: 8px; padding: 6px 16px; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .admin-tabs a { grid-auto-flow: column; gap: 8px; min-height: 44px; padding: 6px 18px; font-size: .95rem; }
  .tab-badge { position: static; }
  .admin-main { padding-bottom: 48px; }
  .has-tabs #notice { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.admin-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.admin-view .card { scroll-margin-top: 76px; }
@media (min-width: 900px) { .admin-view .card { scroll-margin-top: 132px; } }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2, .view-head h1 { min-width: 0; }
.card-head > .link-button, .view-head > .link-button { flex: none; white-space: nowrap; }
.card-head.wrap { flex-wrap: wrap; align-items: center; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.todo-list li.bad { border-left-color: var(--red); }
.todo-list li.done { border-left-color: var(--green); }
.todo-list li span { flex: 1 1 200px; font-weight: 600; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper); }
.segmented button { min-height: 40px; padding: 4px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(10, 35, 66, .12); }
.card .stat-row .stat { box-shadow: none; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; align-content: start; }
.stat small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.stat-row.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 380px) { .stat-row.pair { grid-template-columns: minmax(0, 1fr); } }
.order-list .meta.link { color: var(--blue); text-decoration: none; }
.row-actions .full { flex: 1 1 100%; }
.results { display: grid; gap: 10px; }
.results:empty { display: none; }
.balance-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.balance-line span { color: var(--muted); }
.adjust-form { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--paper); }
.adjust-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.adjust-form legend { padding: 0; margin-bottom: 8px; }
.preset-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-list li { font-size: .9rem; }
.entry-list .plus { color: #0f7a50; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-list .minus { color: #b42318; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .entry-list li { flex-direction: column; gap: 0; } }
.switch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.switch-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.switch-list small { grid-column: 1; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.switch-list .toggle { grid-column: 2; grid-row: 1 / span 2; min-width: 104px; }
.toggle.on { background: var(--green-soft); border-color: var(--green); color: #0f7a50; }
.toggle.off { background: var(--red-soft); border-color: #f3b8b8; color: #b42318; }
.toggle.confirming { background: var(--orange); border-color: var(--orange); color: var(--white); }
.setting-list { display: grid; gap: 16px; }
.setting-list .field small { font-size: .85rem; }
.chip-row.static { position: static; margin: 0; padding: 0 0 2px; flex-wrap: wrap; overflow: visible; }
.guide { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.money-in-hint { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.money-in-setup { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.money-in-setup input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.guide strong { display: block; }
#passwordForm { display: grid; gap: 14px; }

.shop-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; padding: 24px 16px 96px; color: var(--muted); font-size: .9rem; }
.shop-footer a { display: inline-block; padding: 10px 6px; }
.shop-footer a, .auth-card a { color: var(--blue); }
#forgotLink { justify-self: start; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 1.5rem; }
.legal h2 { margin-top: 8px; }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal .draft { padding: 10px 14px; border-radius: 10px; background: var(--orange-soft); font-size: .92rem; }

/* ---------- home ---------- */
.home-nav { display: none; gap: 20px; }
.home-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.home-nav a:hover { color: var(--blue); }
@media (min-width: 760px) { .home-nav { display: flex; } }
.shop-top > .button { display: inline-flex; align-items: center; text-decoration: none; }
.home { display: grid; gap: 16px; }
.home section[id] { scroll-margin-top: 84px; }
.home-hero { display: grid; gap: 10px; justify-items: start; padding: 28px 4px 8px; }
.home-hero h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.15; }
.lead { font-size: 1.1rem; color: var(--muted); }
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.home-cta .button, .home-services .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.home-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-points li { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: #0f7a50; font-size: .92rem; font-weight: 600; }
.home-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: step; }
.home-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 2px; counter-increment: step; }
.home-steps li::before { content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.home-steps span { color: var(--muted); }
.home-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-services li { display: grid; gap: 4px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.home-services .name { font-weight: 700; }
.home-services .price { color: var(--blue); font-weight: 700; }
.home-services .desc { color: var(--muted); font-size: .9rem; }
.home-services .button { margin-top: 6px; justify-self: start; }
.home-services li.list-heading { display: block; padding: 8px 2px 0; border: 0; }
@media (min-width: 760px) { .home-services li.list-heading { grid-column: 1 / -1; } }
#faq details { border-top: 1px solid var(--line); padding: 0 0 4px; }
#faq summary { cursor: pointer; font-weight: 600; }
#faq details p { margin-top: 6px; color: var(--muted); }
.truth-note { padding: 12px 16px; border-radius: 12px; background: var(--orange-soft); font-size: .92rem; }

/* Visitors who are not signed in see the services first; the order form sits beside them. */
@media (min-width: 900px) {
  .shop-grid.guest .services-card { grid-column: 1; grid-row: 1; }
  .shop-grid.guest .order-card { grid-column: 2; grid-row: 1; }
  .shop-grid.guest:has(#orderCard[hidden]) .services-card { grid-column: 1 / -1; }
}

/* ---------- cookie consent (marketing.js) ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; max-width: 560px; margin: 0 auto; display: grid; gap: 10px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10, 35, 66, .22); }
.consent p { margin: 0; font-size: .92rem; }
.consent a { color: var(--blue); font-weight: 600; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- platform pages (facebook.html, instagram.html, ...) ---------- */
.crumbs { padding: 4px 4px 0; color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--blue); }
.platform-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.platform-list li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.platform-list span { color: var(--muted); font-size: .92rem; }
.risk-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.platform-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platform-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-weight: 600; text-decoration: none; }

