/* النخبة فون — a jeweller's price list: engraved numerals, hairlines, one gold.
   Phone first; the desktop layout lives in @media (min-width: 761px). */

@font-face { font-family: "Plex"; src: url(/fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex"; src: url(/fonts/plex-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex"; src: url(/fonts/plex-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2026; }
@font-face { font-family: "Plex"; src: url(/fonts/plex-latin-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2026; }
@font-face { font-family: "Messiri"; src: url(/fonts/messiri-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Numerals"; src: url(/fonts/playfair-num-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --ink-950: #050b16;
  --ink-900: #081223;
  --ink-850: #0b1a30;
  --ink-800: #0f2240;
  --ink-700: #16304f;
  --ink-600: #2a4568;
  --gold-100: #fbf0cf;
  --gold-200: #f1dca0;
  --gold-300: #e3c67e;
  --gold-500: #c9a54c;
  --gold-700: #a8862f;
  --ivory: #f6f1e4;
  --mute: #aebbcf;
  --faint: #8c9bb3;
  --line: rgba(227, 198, 126, .16);
  --line-strong: rgba(227, 198, 126, .36);
  --field: rgba(169, 183, 203, .3);
  --ok: #63d0a0;
  --warn: #efbb57;
  --bad: #f49393;
  --foil: linear-gradient(105deg, #b08d38 0%, #e3c67e 22%, #fff3c9 38%, #c9a54c 56%, #f1dca0 74%, #b08d38 100%);
  --platinum: linear-gradient(105deg, #93a0b4 0%, #dfe5ef 24%, #ffffff 40%, #aeb9c9 58%, #e8edf5 76%, #93a0b4 100%);
  --ui: "Plex", "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --display: "Messiri", "Plex", "Segoe UI", Tahoma, serif;
  --numerals: "Numerals", "Times New Roman", serif;
  --r: 6px;
  --r-lg: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
/* A view transition widens the page by the scrollbar's width for a moment; no sideways scrollbar should flash. */
html { background: var(--ink-950); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink-900);
  color: var(--ivory);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.75;
}
main { flex: 1; }
main:empty { min-height: 60vh; display: grid; place-items: center; }
main:empty::before { content: ""; width: 120px; height: 2px; background: var(--foil); animation: breathe 1.2s ease-in-out infinite alternate; }
main:focus, [tabindex="-1"]:focus { outline: none; }
a { color: var(--gold-200); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.3; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 22px; margin-block-end: 12px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 2px; }
::selection { background: var(--gold-300); color: var(--ink-900); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: 16px; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.num .tail { color: var(--gold-200); }
.when { direction: rtl; unicode-bidi: isolate; font-variant-numeric: tabular-nums; white-space: nowrap; }

.skip {
  position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 60;
  padding: 8px 16px; border-radius: var(--r); background: var(--gold-300); color: var(--ink-900); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- top ---------- */
.demo-banner {
  background: linear-gradient(90deg, var(--gold-300), var(--gold-200) 50%, var(--gold-300));
  color: var(--ink-900);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  padding: 6px 16px;
  text-wrap: balance;
}
header.site { background: var(--ink-850); }
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand strong { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--gold-200); }
.logo-placeholder {
  width: 42px; height: 42px; flex: none;
  border: 1px dashed var(--gold-300); border-radius: var(--r);
  display: grid; place-items: center; text-align: center;
  font-size: 8px; line-height: 1.25; color: var(--gold-200); padding: 2px;
}
nav.main a { position: relative; text-decoration: none; color: var(--mute); transition: color .2s; }
nav.main a.active { color: var(--gold-200); }
.badge:empty { display: none; }
.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 4px;
  border-radius: 9px; background: var(--gold-300); color: var(--ink-900);
  font-family: var(--ui); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  padding-block: 22px 16px;
  background: radial-gradient(100% 70% at 50% 66%, #17325a 0%, #0d1f3a 52%, var(--ink-850) 100%);
  border-block-end: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 66%; left: 50%;
  width: max(620px, 104%); aspect-ratio: 1; translate: -50% -50%;
  background: url(/guilloche.svg) center / contain no-repeat;
  opacity: .3;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, .12) 16%, #000 42%, transparent 92%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, .12) 16%, #000 42%, transparent 92%);
  animation: spin 260s linear infinite;
  will-change: rotate;
}
/* Fades the engraving away from the headline and into the page. */
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(var(--ink-850) 0, rgba(11, 26, 48, .86) 26%, transparent 52%, transparent 82%, var(--ink-900) 100%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-200); font-size: 14px; font-weight: 600;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold-300); opacity: .7; }
.hero h1 { font-size: clamp(32px, 9.4vw, 54px); margin-block: 2px 2px; color: var(--ivory); text-wrap: balance; }
.hero .sub { max-width: 34em; margin-inline: auto; }
.sub { color: var(--mute); font-size: 15px; line-height: 1.7; }
.sub.small { font-size: 14px; margin-block-end: 14px; }

.showcase { position: relative; margin-block-start: 10px; }
.show-link { display: block; text-decoration: none; color: inherit; border-radius: var(--r-lg); padding-block: 2px 4px; }
.show-num {
  --odo: clamp(66px, 22vw, 150px);
  display: flex; justify-content: center; align-items: flex-end; gap: .5rem;
  direction: ltr;
  font-family: var(--numerals); font-weight: 500; font-variant-numeric: lining-nums;
}
.show-num .pre { font-size: clamp(14px, 4.1vw, 32px); letter-spacing: .1em; line-height: 1.2; margin-block-end: calc(var(--odo) * .29); color: var(--mute); white-space: nowrap; }
.odo { display: inline-flex; font-size: var(--odo); line-height: 1; }
.odo-d {
  --cell: 1.2em;
  display: block; width: .62em; height: var(--cell); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 13%, #000 87%, transparent);
  mask-image: linear-gradient(transparent, #000 13%, #000 87%, transparent);
}
.odo-strip {
  display: block;
  transform: translateY(calc(var(--v, 0) * var(--cell) * -1));
  transition: transform 1.15s var(--ease);
}
.odo-d:nth-child(2) .odo-strip { transition-delay: 70ms; }
.odo-d:nth-child(3) .odo-strip { transition-delay: 140ms; }
.odo-d:nth-child(4) .odo-strip { transition-delay: 210ms; }
.odo-strip span {
  display: block; height: var(--cell); line-height: var(--cell); text-align: center;
  background: var(--foil); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.show-meta {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px 12px;
  color: var(--mute); font-size: 14px; min-height: 26px;
}
.show-meta .price { font-size: 16px; }
.show-pause { position: absolute; inset-block-end: -6px; inset-inline-end: -8px; color: var(--mute); }
.show-pause .ico { width: 18px; height: 18px; }

/* ---------- shared bits ---------- */
.tier {
  display: inline-block; padding-inline: 7px; margin-inline-end: 8px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  color: var(--gold-200); font-size: 12px; line-height: 1.6; font-weight: 600;
}
.tier-silver .tier, .tier-silver .tier-mark { border-color: rgba(223, 229, 239, .34); color: #dfe5ef; }
.tag {
  display: inline-block; padding-inline: 8px; border: 1px solid var(--ink-600); border-radius: 3px;
  color: var(--mute); font-size: 12px; line-height: 1.7; white-space: nowrap;
}
.tag.reserved { border-color: var(--warn); color: var(--warn); }
.tag.available { border-color: var(--ok); color: var(--ok); }
.tag.sold { border-color: var(--bad); color: var(--bad); }
.note {
  font-size: 13px; color: var(--mute); line-height: 1.7;
  border-inline-start: 2px solid var(--gold-500); padding-inline-start: 10px;
}
.note.start { text-align: start; }
.err { color: var(--bad); font-size: 13px; line-height: 1.5; }
.err:empty { display: none; }
.preview-note {
  padding: 10px 12px; margin-block-end: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: rgba(227, 198, 126, .06); color: var(--gold-200); font-size: 14px; font-weight: 600;
}
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--gold-200); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.btn:hover { background: rgba(227, 198, 126, .1); border-color: var(--gold-300); }
.btn:active { transform: scale(.98); }
.btn.primary {
  border-color: transparent; color: var(--ink-900);
  background: linear-gradient(105deg, var(--gold-500), var(--gold-200) 48%, var(--gold-300));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -14px rgba(227, 198, 126, .7);
}
.btn.primary::after {
  content: ""; position: absolute; inset-block: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transition: left .7s var(--ease);
}
.btn.primary:hover::after { left: 120%; }
.btn.big { min-height: 52px; font-size: 16px; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { border-color: var(--field); color: var(--mute); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: var(--r); color: var(--gold-300); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.icon-btn:hover { background: rgba(227, 198, 126, .1); }
.fav[aria-pressed="true"] .ico { fill: var(--gold-300); }
.fav.pop .ico { animation: pop .42s var(--ease); }

/* ---------- fields ---------- */
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--mute); }
input:not([type="checkbox"], [type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font-size: 16px; color: var(--ivory);
  background: rgba(8, 18, 35, .72);
  border: 1px solid var(--field); border-radius: var(--r);
  transition: border-color .2s, background-color .2s;
}
input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) { border-color: rgba(169, 183, 203, .55); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 1px; border-color: var(--gold-300); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input:disabled, textarea:disabled { opacity: .55; }
textarea { resize: vertical; }
input[dir="ltr"] { text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.65; color: var(--mute); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 24px; height: 24px; margin: 0; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(8, 18, 35, .72);
  display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.check input::after {
  content: ""; width: 13px; height: 7px; margin-block-start: -3px;
  border-left: 2px solid var(--ink-900); border-bottom: 2px solid var(--ink-900);
  transform: rotate(-45deg) scale(0); transition: transform .18s var(--ease);
}
.check input:checked { background: var(--gold-300); border-color: var(--gold-300); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.stack { display: flex; flex-direction: column; gap: 14px; }
fieldset.bare, fieldset.group { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ---------- catalog: filters ---------- */
.shop { padding-block: 0 8px; }
.filters { display: contents; }
.filter-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 8px;
  margin-inline: -16px; padding: 10px 16px;
  background: var(--ink-900);
  box-shadow: 0 12px 16px -14px rgba(0, 0, 0, .9);
}
.search { position: relative; flex: 1; min-width: 0; display: block; }
.search .ico { position: absolute; inset-inline-start: 13px; top: 13px; color: var(--gold-300); pointer-events: none; }
.search input { min-height: 48px; padding-inline-start: 44px; }
.filter-open { flex: none; min-height: 48px; padding-inline: 12px; }
.filter-open .ico { color: var(--gold-300); }
.group legend { padding: 0; font-size: 13px; color: var(--mute); margin-block-end: 8px; }
.carriers legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips[data-chips="price"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips[data-chips="carrier"] { display: flex; flex-wrap: wrap; }
.chip { position: relative; display: flex; min-height: 42px; }
.carriers .chip { flex: 1 1 auto; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.chip span {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 7px 8px; border: 1px solid var(--field); border-radius: var(--r);
  color: var(--mute); font-size: 14px; line-height: 1.4; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:hover + span { border-color: var(--gold-300); color: var(--ivory); }
.chip input:checked + span { background: rgba(227, 198, 126, .07); border-color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--gold-300); color: var(--gold-200); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-200); outline-offset: 2px; }

.sheet { color: var(--ivory); }
.sheet-head, .sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h2 { margin: 0; }
.sheet .group { margin-block-start: 18px; }
.sheet-foot { margin-block-start: 22px; }
.sheet-foot .btn { flex: 1; }

/* ---------- catalog: results ---------- */
.results-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-block: 12px 6px; min-height: 40px; }
.count { color: var(--mute); font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 10px;
  background: rgba(227, 198, 126, .07); border: 1px solid var(--line-strong); border-radius: var(--r);
  color: var(--gold-200); font-size: 13px; cursor: pointer;
}
.pill .ico { width: 14px; height: 14px; }

ul.numbers { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
ul.numbers li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "num fav" "meta price";
  align-items: end;
  gap: 2px 12px;
  padding: 10px 2px 12px;
  border-block-end: 1px solid var(--line);
  transition: background-color .25s;
}
.big-num {
  grid-area: num; display: block; width: fit-content;
  text-decoration: none; color: var(--ivory);
  font-family: var(--numerals); font-weight: 500;
}
.big-num::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.big-num:focus-visible { outline: none; }
.big-num:focus-visible::after { outline: 2px solid var(--gold-200); outline-offset: -2px; }
.big-num .num { display: inline-flex; flex-direction: column; align-items: flex-end; letter-spacing: 0; }
.big-num .pre { font-size: 13px; letter-spacing: .14em; line-height: 1.5; color: var(--mute); }
.big-num .tail, .hero-num .tail {
  background: var(--foil) 0 0 / 170% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  letter-spacing: .035em;
  padding-inline: .03em 0;
}
.big-num .tail { font-size: 54px; line-height: 1.05; transition: background-position 1s var(--ease); }
.tier-silver .big-num .tail, .tier-silver .hero-num .tail, .tier-silver .odo-strip span { background-image: var(--platinum); }
.is-held .big-num .tail { opacity: .55; }
ul.numbers .meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.meta { color: var(--mute); font-size: 13px; line-height: 1.6; }
.meta .tag { margin-inline-start: 8px; }
.price { color: var(--ivory); white-space: nowrap; font-weight: 600; }
.price .amt { font-family: var(--numerals); font-weight: 500; font-size: 1.14em; letter-spacing: .01em; color: var(--gold-100); }
.price .cur { font-size: .8em; font-weight: 400; color: var(--mute); }
ul.numbers .price { grid-area: price; font-size: 16px; line-height: 1.6; }
.fav-slot { grid-area: fav; position: relative; z-index: 2; align-self: start; margin-inline-end: -8px; margin-block-start: -4px; }

.empty { color: var(--mute); padding: 40px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty strong { color: var(--ivory); font-family: var(--display); font-weight: 600; font-size: 20px; }
.empty .ico { width: 40px; height: 40px; color: var(--gold-300); stroke-width: 1; }
.empty .btn { margin-block-start: 8px; }
ul.numbers li.empty { display: flex; align-items: center; border-block-end: 0; }

/* ---------- steps ---------- */
.steps { padding-block: 34px 40px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; padding-block: 14px; border-block-start: 1px solid var(--line); }
.step-n { grid-row: span 2; font-family: var(--numerals); font-weight: 500; font-size: 40px; line-height: 1.1; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--mute); font-size: 14px; line-height: 1.7; }

/* ---------- page heads ---------- */
.page-head { padding-block: 26px 12px; }
.favorites { padding-block-end: 32px; }
.favorites .count { padding-block-end: 6px; }

/* ---------- number page ---------- */
.detail-page { padding-block: 6px 32px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--mute); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--gold-200); }
.back .ico { transform: scaleX(-1); width: 18px; height: 18px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.plaque {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 8px 14px 22px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: radial-gradient(100% 90% at 50% 50%, #1a3862 0%, #0e2140 60%, #0a172c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 28px 60px -34px rgba(0, 0, 0, .9);
}
.plaque::before {
  content: ""; position: absolute; z-index: -1; top: 52%; left: 50%;
  width: 150%; aspect-ratio: 1; translate: -50% -50%;
  background: url(/guilloche.svg) center / contain no-repeat;
  opacity: .3;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, .12) 16%, #000 44%, transparent 92%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, .12) 16%, #000 44%, transparent 92%);
  animation: spin 260s linear infinite;
  will-change: rotate;
}
.plaque::after { content: ""; position: absolute; z-index: -1; inset: 6px; border: 1px solid var(--line); border-radius: 6px; pointer-events: none; }
.plaque-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.plaque-top .fav { margin-inline-end: -4px; }
.tier-mark {
  margin-inline-start: 4px; padding-inline: 10px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  color: var(--gold-200); font-size: 13px; font-weight: 600; line-height: 1.8;
}
.hero-num { margin: 0; font-family: var(--numerals); font-weight: 500; }
.hero-num .num { display: inline-flex; flex-direction: column; align-items: center; letter-spacing: 0; view-transition-name: hero-number; }
.hero-num .pre { font-size: 20px; letter-spacing: .16em; line-height: 1.4; color: var(--mute); padding-inline-start: .16em; }
.hero-num .tail { font-size: clamp(84px, 27vw, 150px); line-height: 1.08; animation: shine 1.8s .25s var(--ease) both; }
.pattern-line { color: var(--mute); font-size: 14px; }
.pattern-line strong { color: var(--gold-200); font-weight: 600; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; }
dl.kv dt { color: var(--mute); }
dl.kv dd { margin: 0; }
dl.kv dd.num { justify-self: start; }
dl.facts { grid-template-columns: 1fr 1fr; gap: 0 16px; margin-block: 14px; }
.facts > div { padding-block: 9px; border-block-end: 1px solid var(--line); }
.facts dt { font-size: 13px; }
.facts .fact-price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 4px 12px; }
.fact-price dt { font-size: 14px; }
.fact-price .price { display: flex; align-items: baseline; gap: 6px; font-size: 22px; flex-wrap: wrap; }
.fact-price .tag { align-self: center; }

.panel {
  background: linear-gradient(180deg, rgba(22, 48, 79, .4), rgba(15, 34, 64, .22));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 16px;
}
.request h2 { margin-block-end: 4px; }

/* ---------- receipt & tracking ---------- */
.narrow-page { padding-block: 22px 40px; display: flex; flex-direction: column; align-items: center; }
.narrow-page > * { width: 100%; max-width: 520px; }
.panel.narrow { max-width: 520px; }
.panel.narrow h1 { margin-block-end: 6px; }
.panel.narrow .stack { margin-block-start: 8px; }
.receipt { position: relative; text-align: center; padding-block-start: 26px; }
.seal { width: 56px; height: 56px; fill: none; stroke: var(--gold-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal circle { stroke-dasharray: 183; animation: draw .9s var(--ease) both; transform: rotate(-90deg); transform-origin: center; }
.seal path { stroke-dasharray: 40; animation: draw .45s .55s var(--ease) both; }
.receipt h1 { margin-block: 6px 2px; }
.code {
  font-family: var(--numerals); font-weight: 500; font-size: clamp(34px, 10.5vw, 46px); line-height: 1.3;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.receipt #copy { margin-block: 8px 2px; }
.perf { position: relative; margin: 18px -16px; border-block-start: 1px dashed var(--line-strong); }
.perf::before, .perf::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-900); }
.perf::before { right: -11px; }
.perf::after { left: -11px; }
.ticket-num { margin-block-end: 12px; font-size: 15px; }
.ticket-num .num, .track-num .num { font-family: var(--numerals); font-weight: 500; font-size: 1.2em; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions.center { justify-content: center; margin-block-start: 16px; }
.track-card { margin-block-start: 18px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.track-num { font-size: 30px; line-height: 1.2; text-align: center; }
.track-num .tail { color: var(--gold-200); }
.track-num .pre { font-size: .55em; color: var(--mute); letter-spacing: .1em; margin-inline-end: .3em; }
ol.timeline { list-style: none; margin: 14px 0; padding: 0; }
ol.timeline li { position: relative; padding-block: 4px 12px; padding-inline-start: 24px; color: var(--mute); font-size: 14px; display: flex; flex-direction: column; }
ol.timeline .when { font-size: 12px; color: var(--faint); }
ol.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-600); }
ol.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 8px; top: 22px; bottom: -8px; width: 1px; background: var(--line-strong); }
ol.timeline li:last-child { color: var(--ivory); }
ol.timeline li:last-child::before { background: var(--gold-300); box-shadow: 0 0 0 4px rgba(227, 198, 126, .18); }

/* ---------- footer ---------- */
footer.site { border-block-start: 1px solid var(--line); color: var(--mute); font-size: 13px; line-height: 1.7; background: var(--ink-950); }
footer.site .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 20px; }
.foot-brand { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--gold-200); }

/* ---------- admin: quiet, same identity ---------- */
main.wrap { padding-block: 22px 48px; }
header.site .meta { font-size: 13px; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tabs button { background: transparent; border: 1px solid var(--field); color: var(--mute); border-radius: var(--r); padding: 8px 14px; min-height: 44px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.admin-tabs button:hover { border-color: var(--gold-300); color: var(--ivory); }
.admin-tabs button.active { color: var(--ink-900); background: var(--gold-300); border-color: var(--gold-300); font-weight: 600; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: end; }
.toolbar > * { flex: 1 1 140px; }
.toolbar .btn { flex: 0 0 auto; min-height: 48px; }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--gold-300) 50%), linear-gradient(-45deg, transparent 50%, var(--gold-300) 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: left 14px center, left 20px center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 12px; text-align: start; border-block-end: 1px solid var(--line); white-space: nowrap; }
th { color: var(--mute); font-weight: 600; background: var(--ink-850); }
tr.sel td { background: var(--ink-700); }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(227, 198, 126, .05); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.events { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.events li { border-block-end: 1px solid var(--line); padding: 6px 0; }
.events .who { color: var(--mute); font-size: 12px; }
#req-detail form { margin-block: 14px 18px; }
.ok-msg { color: var(--ok); }
dialog:not(.sheet) { background: var(--ink-850); color: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--r-lg); width: min(560px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(3, 7, 15, .72); }
textarea.csv { min-height: 140px; direction: ltr; font-family: Consolas, monospace; font-size: 16px; margin-block-end: 10px; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .store { padding-block-end: calc(62px + env(safe-area-inset-bottom)); }
  nav.main {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding-block-end: env(safe-area-inset-bottom);
    background: var(--ink-950);
    border-block-start: 1px solid var(--line-strong);
  }
  nav.main a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 62px; font-size: 12px; line-height: 1.4; }
  nav.main a.active::before { content: ""; position: absolute; top: -1px; inset-inline: 28%; height: 2px; background: var(--gold-300); }
  nav.main a.active .ico { fill: rgba(227, 198, 126, .18); }
  nav.main .badge { position: absolute; top: 6px; inset-inline-start: calc(50% + 6px); }
  .sheet {
    position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 86dvh;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto;
    border: 0; border-block-start: 1px solid var(--line-strong); border-radius: 14px 14px 0 0;
    background: var(--ink-850);
  }
  .sheet[open] { animation: sheet-up .32s var(--ease); }
  .sheet[open]::backdrop { animation: fade .25s linear; }
  .split, .grid2 { grid-template-columns: 1fr; }
  .site .wrap { flex-wrap: wrap; }
}

/* ---------- desktop ---------- */
@media (min-width: 761px) {
  .wrap { padding-inline: 32px; }
  h1 { font-size: 36px; }
  .demo-banner { padding-block: 5px; }
  header.site { position: relative; z-index: 2; }
  .site .wrap { padding-block: 12px; }
  .logo-placeholder { width: 46px; height: 46px; }
  .brand strong { font-size: 24px; }
  nav.main { display: flex; gap: 4px; }
  nav.main a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: var(--r); font-size: 15px; }
  nav.main a:hover { color: var(--ivory); background: rgba(227, 198, 126, .08); }
  nav.main a.active { background: none; box-shadow: inset 0 -2px 0 var(--gold-300); border-radius: var(--r) var(--r) 0 0; }
  nav.main .ico { width: 18px; height: 18px; }

  .hero { padding-block: 22px 14px; }
  .hero::before { width: 980px; top: 60%; }
  .sub { font-size: 16px; }
  .show-num { gap: 1rem; }
  .show-link { width: fit-content; margin-inline: auto; padding-inline: 12px; transition: background-color .3s; }
  .show-meta { font-size: 15px; }
  .show-pause { inset-block-end: 2px; inset-inline-end: 0; }

  .shop { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 0 36px; align-items: start; padding-block: 24px 16px; }
  .filters { display: block; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 4px; margin: -4px; scrollbar-width: thin; }
  .filter-top { position: static; margin: 0 0 18px; padding: 0; background: none; }
  .filter-open { display: none; }
  .carriers legend { position: static; width: auto; height: auto; clip-path: none; white-space: normal; }
  .chips[data-chips="carrier"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips[data-chips="price"] { grid-template-columns: minmax(0, 1fr); }
  .chips[data-chips="price"] .chip { min-height: 40px; }
  .sheet { display: block; position: static; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; overflow: visible; }
  .sheet .group { margin-block-start: 16px; }
  .sheet-head, .sheet-foot { display: none; }

  .results-head { padding-block-start: 0; }
  ul.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  ul.numbers li { padding: 14px 8px 14px; }
  ul.numbers li.empty { grid-column: 1 / -1; }
  .big-num .tail { font-size: 62px; }
  .big-num .pre { font-size: 14px; }

  .steps { padding-block: 48px 56px; }
  .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .steps li { padding-block: 18px; border-block-start: 1px solid var(--line-strong); }
  .steps h2 { margin-block-end: 20px; font-size: 26px; }

  .detail-page { padding-block: 10px 48px; }
  .detail { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .detail-side { position: sticky; top: 16px; }
  .plaque { padding: 12px 18px 30px; }
  .plaque::before { width: 130%; }
  .hero-num .pre { font-size: 22px; }
  .panel { padding: 24px; }
  footer.site .wrap { flex-direction: row; align-items: center; gap: 24px; }
  footer.site p { flex: 1; }
}

/* ---------- motion, only when wanted ---------- */
@media (hover: hover) {
  ul.numbers li:not(.empty):hover { background: rgba(227, 198, 126, .045); }
  ul.numbers li:hover .big-num .tail { background-position: 100% 0; }
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { from { opacity: .25; } to { opacity: 1; } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes pop { 0% { transform: scale(.6); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 183; } to { stroke-dashoffset: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.enter .hero-in > * { animation: rise .7s var(--ease) both; }
.enter .hero-in > :nth-child(2) { animation-delay: 60ms; }
.enter .hero-in > :nth-child(3) { animation-delay: 120ms; }
.enter .hero-in > :nth-child(4) { animation-delay: 180ms; }
.enter ul.numbers li:nth-child(-n+8) { animation: rise .6s var(--ease) both; }
.enter ul.numbers li:nth-child(2) { animation-delay: 50ms; }
.enter ul.numbers li:nth-child(3) { animation-delay: 100ms; }
.enter ul.numbers li:nth-child(4) { animation-delay: 150ms; }
.enter ul.numbers li:nth-child(5) { animation-delay: 200ms; }
.enter ul.numbers li:nth-child(6) { animation-delay: 250ms; }
.enter ul.numbers li:nth-child(7) { animation-delay: 300ms; }
.enter ul.numbers li:nth-child(8) { animation-delay: 350ms; }
@supports (animation-timeline: view()) {
  ul.numbers li:nth-child(n+9) { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
::view-transition-group(hero-number) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-group(*) { animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  .big-num .tail, .hero-num .tail, .odo-strip span, .code, .step-n { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
