/* CASE1122 — "Classified dossier" identity
   Ink black + aged paper + evidence red stamp + brass. Logical properties throughout for RTL/LTR. */
:root {
  --ink: #0f0e0c; --ink-2: #171512; --ink-3: #221f1a; --ink-line: #3a342b;
  --paper: #ece3cf; --paper-2: #e3d7bd; --paper-3: #d6c7a6; --paper-line: #c2b08b;
  --kraft: #b8915c; --kraft-2: #9c7744;
  --text: #1c1813; --text-2: #5b5141; --text-on-dark: #e9dfc9; --muted-on-dark: #a99d86;
  --stamp: #b3261e; --stamp-2: #8f1d17;
  --gold: #c9a55a; --gold-2: #e0c07a; --gold-ink: #23190a;
  --ok: #3f6b3a; --warn: #a8701c;
  --f-display: "Fraunces", "Noto Kufi Arabic", Georgia, serif;
  --f-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-mono: "Special Elite", "Courier New", monospace;
  --r: 4px; --r-lg: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px -22px rgba(20,14,6,.55);
  --shadow-dark: 0 30px 60px -30px rgba(0,0,0,.8);
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1240px;
  --nav-h: 68px;
  color-scheme: light;
}
:lang(ar) { --f-display: "Noto Kufi Arabic", "Fraunces", serif; --f-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
/* Arabic letters must join: no tracking, and Arabic glyphs come from Plex (typewriter font is Latin-only) */
:lang(ar) .mono, :lang(ar) .kicker, :lang(ar) .footer h3 { letter-spacing: 0 !important; font-family: "Special Elite", "IBM Plex Sans Arabic", monospace; }
.muted { color: var(--text-2); } .small { font-size: .875rem; } .center { text-align: center; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 32px); } .wrap.narrow-sm { width: min(460px, 100% - 32px); }
[hidden] { display: none !important; }
main { overflow-x: clip; }

/* film grain over everything (very subtle) */
.grain { pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn { --bg: var(--paper); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: .6em 1.2em;
  border: 1px solid transparent; border-radius: var(--r); background: var(--bg); color: var(--fg); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 52px; padding: .75em 1.6em; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: .4em .9em; font-size: .9rem; }
.btn-xs { min-height: 30px; padding: .2em .7em; font-size: .8rem; }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { --bg: #000; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.btn-gold { --bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --fg: var(--gold-ink); background: var(--bg); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 30px -14px rgba(201,165,90,.7); }
.btn-outline { --bg: transparent; --fg: var(--text-on-dark); border-color: rgba(233,223,201,.35); }
.btn-outline:hover { border-color: var(--gold); --fg: var(--gold-2); }
.btn-ghost { --bg: transparent; --fg: var(--text); border-color: var(--paper-line); }
.btn-ghost:hover { --bg: var(--paper-2); }
.btn.block { display: flex; width: 100%; }
.btn-wa { --bg: #1fa855; --fg: #fff; }
.btn-wa:hover { --bg: #178a45; }
.btn.grow { flex: 1 1 auto; }
.btn svg { width: 1.1em; height: 1.1em; }
[dir=rtl] .btn svg use[href="#i-arrow"], [dir=rtl] .link-arrow svg, [dir=rtl] .crumbs svg, [dir=rtl] .hero-scroll svg { transform: scaleX(-1); }
[dir=rtl] .btn > svg:last-child:not(:first-child) { transform: scaleX(-1); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.icon-btn:hover { background: rgba(127,110,80,.16); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--stamp); color: #fff; font: 600 11px/18px var(--f-body); text-align: center; }
.icon-btn.wish.on { color: var(--stamp); }
.icon-btn.wish.on svg use { fill: currentColor; }
.icon-btn.wish.on svg { fill: var(--stamp); }
.icon-btn.lg { width: 52px; height: 52px; border: 1px solid var(--paper-line); border-radius: var(--r); }
.icon-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { color: var(--stamp); }
.link-arrow.center { display: flex; justify-content: center; border: 0; margin-top: 14px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); color: var(--text-on-dark); background: rgba(15,14,12,.82); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid rgba(233,223,201,.08); transition: background .3s; }
.nav-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; color: var(--text-on-dark); text-decoration: none; }
.logo-svg { width: 150px; height: 40px; }
.logo-img { height: 40px; width: auto; }
.logo-word { font: 800 30px/1 "Fraunces", Georgia, serif; letter-spacing: .02em; }
.logo-num { font: 400 20px/1 var(--f-mono); letter-spacing: .08em; }
.nav-links { display: none; gap: 4px; margin-inline-start: 10px; }
.nav-links a { padding: 8px 12px; text-decoration: none; color: var(--muted-on-dark); border-radius: var(--r); font-weight: 500; position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text-on-dark); }
.nav-links a[aria-current]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--stamp); }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; margin-inline: 4px; border: 1px solid rgba(233,223,201,.25); border-radius: 18px; text-decoration: none; font-size: .85rem; font-weight: 600; transition: border-color .2s, color .2s; }
.lang-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:lang(ar) span { font-family: "IBM Plex Sans Arabic", sans-serif; }
.hide-sm { display: none; }
.lb-short { display: none; }
@media (max-width: 480px) {
  .nav-in { gap: 6px; }
  .logo-svg { width: 116px; height: 32px; }
  .lb-long { display: none; } .lb-short { display: inline; }
  .lang-btn { padding: 0 9px; margin-inline: 0; }
  .nav-tools .icon-btn { width: 38px; height: 38px; }
}
@media (min-width: 720px) { .hide-sm { display: inline-grid; } }
@media (min-width: 1040px) { .nav-links { display: flex; } .nav-burger { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); animation: fade .25s; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(340px, 86vw); background: var(--ink-2); color: var(--text-on-dark); display: flex; flex-direction: column; padding: 16px 20px 24px; animation: slideIn .3s var(--ease); border-inline-end: 1px solid var(--ink-line); }
[dir=rtl] .drawer-panel { animation-name: slideInR; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { padding: 14px 4px; border-bottom: 1px dashed var(--ink-line); text-decoration: none; font: 600 1.15rem var(--f-display); }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
.drawer-foot a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--muted-on-dark); }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes slideInR { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

.search-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10,9,8,.86); backdrop-filter: blur(6px); display: grid; align-items: start; padding-top: 14vh; animation: fade .2s; }
.search-box { width: min(720px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-dark); }
.search-box > svg { width: 26px; height: 26px; color: var(--text-2); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.25rem; padding: 10px 0; outline: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; overflow: hidden; color: var(--text-on-dark);
  background: radial-gradient(ellipse at 70% 30%, #2a241b 0%, var(--ink) 60%), var(--ink); --mx: 70%; --my: 40%; isolation: isolate; padding-block: 48px 90px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image: radial-gradient(rgba(233,223,201,.09) 1px, transparent 1px); background-size: 22px 22px; }
.hero-board { position: absolute; inset: 0; z-index: -1; }
.hero-strings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-strings path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-print { position: absolute; width: min(60vw, 620px); height: auto; inset-inline-start: -8%; bottom: -18%; color: rgba(233,223,201,.05); }
.hero-note { position: absolute; font-size: .8rem; padding: 4px 10px; color: var(--ink); background: #e8dcb9; transform: rotate(-4deg); box-shadow: 0 6px 16px rgba(0,0,0,.45); opacity: .75; }
.hero-note.n1 { top: 14%; inset-inline-start: 40%; } .hero-note.n2 { top: 74%; inset-inline-start: 8%; transform: rotate(3deg); } .hero-note.n3 { top: 22%; inset-inline-end: 6%; transform: rotate(6deg); background: #f1e6c8; }
.hero-light { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 260px at var(--mx) var(--my), rgba(255,236,190,.13), rgba(255,236,190,.04) 40%, transparent 70%); mix-blend-mode: screen; transition: background-position .1s; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; text-transform: uppercase; color: var(--stamp); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.hero .kicker { color: var(--gold); }
.hero-title { font-size: clamp(2.2rem, 6.4vw, 4.6rem); font-weight: 800; margin-bottom: .35em; }
.hero-title { background: linear-gradient(180deg, #f6eedb 30%, #c9b994); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.02rem, 1.8vw, 1.25rem); color: var(--muted-on-dark); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta.center { justify-content: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px dashed rgba(233,223,201,.2); color: var(--muted-on-dark); font-size: .92rem; }
.hero-stats li { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats strong { font: 800 1.6rem/1 var(--f-display); color: var(--gold-2); }
.hero-stats svg { color: var(--gold); width: 20px; height: 20px; }
.hero-visual { position: relative; justify-self: center; width: min(420px, 82vw); }
.dossier { position: relative; transform: rotate(-3deg); border-radius: 6px; box-shadow: 0 50px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04); animation: floaty 7s ease-in-out infinite; }
.dossier img { border-radius: 6px; }
@keyframes floaty { 50% { transform: rotate(-2deg) translateY(-10px); } }
.polaroid { position: absolute; width: 120px; height: 140px; background: #efe9da; padding: 8px 8px 28px; box-shadow: 0 20px 30px -12px rgba(0,0,0,.7); display: grid; place-items: center; color: #2b2620; }
.polaroid::before { content: ""; position: absolute; inset: 8px 8px 28px; background: linear-gradient(135deg, #2c2822, #15130f); }
.polaroid > * { position: relative; }
.polaroid .mono { position: absolute; bottom: 6px; font-size: .8rem; color: #2b2620; }
.polaroid svg { width: 60px; height: 60px; color: rgba(233,223,201,.5); }
.polaroid.p1 { top: -26px; inset-inline-end: -30px; transform: rotate(8deg); }
.polaroid.p2 { bottom: -30px; inset-inline-start: -40px; transform: rotate(-9deg); }
.stamp { position: absolute; z-index: 2; display: inline-block; padding: .25em .6em; border: 2.5px solid currentColor; color: var(--stamp); font: 400 .82rem/1.1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; transform: rotate(-8deg); background: rgba(236,227,207,.08);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E"); }
.stamp-hero { top: 18%; inset-inline-end: -18px; font-size: 1.1rem; transform: rotate(12deg); animation: stampIn .5s 1.2s var(--ease) both; }
@keyframes stampIn { from { transform: rotate(12deg) scale(2.2); opacity: 0; } }
.hero-scroll { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted-on-dark); font-size: .75rem; z-index: 1; }
[dir=rtl] .hero-scroll { transform: translateX(50%); }
.hero-scroll svg { transform: rotate(90deg) !important; animation: nudge 1.6s infinite; }
@keyframes nudge { 50% { translate: 0 5px; } }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr .85fr; } }

.tape { overflow: hidden; background: repeating-linear-gradient(-45deg, #d9b23c 0 22px, #1b1814 22px 44px); padding: 6px 0; transform: rotate(-1deg) scale(1.03); position: relative; z-index: 2; margin-top: -18px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tape-track { display: flex; width: max-content; animation: marquee 40s linear infinite; background: #e2bb40; color: #15120d; font-size: .82rem; padding: 4px 0; white-space: nowrap; }
.tape-track span { padding-inline: 8px; }
[dir=rtl] .tape-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 110px); position: relative; }
.section.tight { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.paper { background: var(--paper); color: var(--text);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.35), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.dark { background: var(--ink); color: var(--text-on-dark); }
.dark .muted, .on-dark { color: var(--muted-on-dark); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 30px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin: 0; }
.sec-head p { margin: .5em 0 0; color: var(--text-2); max-width: 40em; }
.dark .sec-head p { color: var(--muted-on-dark); }
.dark .kicker { color: var(--gold); }
.empty-note { padding: 28px; border: 1px dashed var(--paper-line); border-radius: var(--r-lg); text-align: center; color: var(--text-2); }
.empty-note.on-dark { border-color: var(--ink-line); }

.page-hero { background: var(--ink); color: var(--text-on-dark); padding-block: clamp(48px, 8vw, 96px) clamp(36px, 6vw, 70px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -60px; top: -40px; width: 320px; height: 320px; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23e9dfc9' stroke-width='.6'%3E%3Cpath d='M6.5 7.5A7 7 0 0 1 18.8 10M5 12a7 7 0 0 1 .4-2.3M8.5 19.5A10 10 0 0 0 9 12a3 3 0 0 1 6 0c0 2 0 4-.7 6M12 12c0 3.3-.5 6-1.6 8.5M6.4 17.5A12 12 0 0 0 7 12a5 5 0 0 1 10 0c0 1.3 0 2.6-.2 3.8'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .25em; }
.page-hero p { color: var(--muted-on-dark); max-width: 40em; margin: 0; }
.page-hero .kicker { color: var(--gold); }
.page-hero.slim { padding-block: clamp(36px, 6vw, 64px) clamp(26px, 4vw, 44px); }

/* ---------- case cards (manila folders) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(26px, 3vw, 38px) clamp(18px, 2.4vw, 28px); }
.case-card { position: relative; display: flex; flex-direction: column; }
.case-link { display: block; text-decoration: none; }
.folder { position: relative; padding: 30px 12px 12px; background: linear-gradient(170deg, #cfa86f, var(--kraft) 55%, var(--kraft-2)); border-radius: 3px 10px 6px 6px; box-shadow: var(--shadow); transform: rotate(var(--tilt, 0deg)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.folder::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 2px, transparent 2px 5px); pointer-events: none; }
.folder-tab { position: absolute; top: -14px; inset-inline-start: 14px; padding: 6px 14px 10px; background: #c79f66; border-radius: 6px 6px 0 0; font-size: .74rem; color: #3b2a14; }
.folder-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; background: var(--ink-3); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); }
.folder-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.folder-photo img.alt { position: absolute; inset: 0; opacity: 0; }
.clip { position: absolute; top: -8px; inset-inline-end: 22px; width: 16px; height: 46px; border: 3px solid #9aa0a6; border-radius: 9px; border-bottom-color: transparent; z-index: 2; }
.no-img { display: grid; place-items: center; height: 100%; color: rgba(233,223,201,.25); }
.no-img svg { width: 40%; height: 40%; }
.no-img.big { aspect-ratio: 4/5; background: var(--ink-3); }
.case-card:hover .folder { transform: rotate(0deg) translateY(-6px); box-shadow: 0 30px 50px -24px rgba(20,14,6,.7); }
.case-card:hover .folder-photo img { transform: scale(1.05); }
.case-card:hover .folder-photo img.alt { opacity: 1; }
.folder .stamp { top: 46px; inset-inline-end: 4px; }
.stamp-out { color: var(--stamp); background: rgba(236,227,207,.9); }
.stamp-new { color: #1f5a8a; background: rgba(236,227,207,.92); } .stamp-bestseller { color: var(--stamp); background: rgba(236,227,207,.92); }
.stamp-limited, .stamp-hot { color: #7a3a00; background: rgba(236,227,207,.92); } .stamp-sale { color: var(--ok); background: rgba(236,227,207,.92); }
.stamp.big { font-size: 1.1rem; top: 22px; inset-inline-end: 22px; }
.case-body { padding: 18px 4px 0; display: flex; flex-direction: column; flex: 1; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--text-2); }
.dark .case-meta { color: var(--muted-on-dark); }
.case-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.case-meta svg { width: 15px; height: 15px; }
.diff { display: inline-flex; align-items: center; gap: 2px; }
.diff i { width: 6px; height: 12px; border-radius: 1px; background: currentColor; opacity: .2; }
.diff i:last-of-type { margin-inline-end: 6px; }
.diff-1 i:nth-child(-n+1), .diff-2 i:nth-child(-n+2), .diff-3 i:nth-child(-n+3), .diff-4 i:nth-child(-n+4) { opacity: 1; background: var(--stamp); }
.case-title { font-size: 1.32rem; margin: .45em 0 .3em; }
.case-title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
[dir=rtl] .case-title a { background-position: 100% 100%; }
.case-card:hover .case-title a { background-size: 100% 1px; }
.case-short { font-size: .92rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.case-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--paper-line); }
.price { display: flex; flex-direction: column; line-height: 1.25; }
.price strong { font: 700 1.1rem var(--f-display); }
.price del { font-size: .8rem; color: var(--text-2); }
.case-actions { display: flex; gap: 4px; align-items: center; }
.case-actions .btn span { display: none; }
@media (min-width: 420px) { .case-actions .btn span { display: inline; } }

/* ---------- featured ---------- */
.feature-list { display: grid; gap: 28px; }
.feature { display: grid; gap: 22px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: 16px; transition: border-color .3s; }
.feature:hover { border-color: rgba(201,165,90,.5); }
.feature-img { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4/5; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.04); }
.feature-body { display: flex; flex-direction: column; justify-content: center; padding: 6px; }
.feature-no { color: var(--gold); font-size: .8rem; }
.feature h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .3em 0; }
.feature h3 a { text-decoration: none; }
.feature p { color: var(--muted-on-dark); }
.feature-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--ink-line); }
.price-lg { font: 700 1.5rem var(--f-display); color: var(--gold-2); }
@media (min-width: 760px) { .feature { grid-template-columns: 320px 1fr; padding: 22px; } .feature:nth-child(even) { grid-template-columns: 1fr 320px; } .feature:nth-child(even) .feature-img { order: 2; } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--ink-line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--ink-2), var(--ink)); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.step:hover { border-color: rgba(179,38,30,.6); transform: translateY(-4px); }
.step-no { position: absolute; top: 12px; inset-inline-end: 16px; font-size: 2.6rem; color: rgba(233,223,201,.07); }
.step-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(201,165,90,.4); color: var(--gold); margin-bottom: 16px; }
.step-icon svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.15rem; } .step p { color: var(--muted-on-dark); font-size: .93rem; margin: 0; }

/* ---------- why ---------- */
.why { display: grid; gap: 30px; }
.why-head h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.why-card { padding: 24px; background: rgba(255,255,255,.35); border: 1px solid var(--paper-line); border-radius: var(--r-lg); position: relative; }
.why-card::after { content: ""; position: absolute; top: -7px; inset-inline-start: 50%; width: 60px; height: 16px; background: rgba(226,196,120,.55); transform: translateX(-50%) rotate(-3deg); }
.why-card svg { width: 30px; height: 30px; color: var(--stamp); margin-bottom: 12px; }
.why-card h3 { font-size: 1.12rem; } .why-card p { color: var(--text-2); margin: 0; font-size: .93rem; }
@media (min-width: 980px) { .why { grid-template-columns: .7fr 1.3fr; align-items: start; } }

/* ---------- testimonials ---------- */
.testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.testi { margin: 0; padding: 26px; background: #e9dfc6; color: var(--text); border-radius: 2px; box-shadow: var(--shadow-dark); position: relative; transform: rotate(-.6deg); }
.testi:nth-child(even) { transform: rotate(.8deg); }
.testi::before { content: ""; position: absolute; top: -10px; inset-inline-start: 24px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e85a4f, var(--stamp-2)); box-shadow: 0 3px 4px rgba(0,0,0,.4); }
.testi-label { display: block; font-size: .72rem; color: var(--text-2); margin-bottom: 8px; }
.testi blockquote { margin: 10px 0 14px; font-size: 1rem; }
.testi figcaption { font-size: .88rem; color: var(--text-2); }
.testi figcaption a { color: var(--stamp); }
.stars { display: inline-flex; gap: 2px; color: #c7b48c; }
.stars svg { width: 16px; height: 16px; }
.stars svg.on { color: #c08a1e; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--paper-line); border-radius: var(--r-lg); background: rgba(255,255,255,.3); overflow: hidden; }
.dark .faq-item { border-color: var(--ink-line); background: var(--ink-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 600; font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform .3s var(--ease); color: var(--stamp); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 20px 20px; color: var(--text-2); }
.dark .faq-a { color: var(--muted-on-dark); }
@media (min-width: 980px) { .faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: start; } }

.cta-band { background: var(--stamp-2); background: radial-gradient(ellipse at 30% 0%, #c0352b, var(--stamp-2) 60%, #5e120e); color: #f8eedc; padding-block: clamp(60px, 9vw, 110px); position: relative; overflow: hidden; text-align: center; }
.cta-in { position: relative; }
.cta-in h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.cta-in p { color: rgba(248,238,220,.8); max-width: 34em; margin-inline: auto; margin-bottom: 26px; }
.stamp-cta { position: absolute; top: -30px; inset-inline-end: 6%; font-size: 2.6rem; color: rgba(248,238,220,.2); background: transparent; border-width: 4px; transform: rotate(14deg); }

/* ---------- footer ---------- */
.footer { background: #0a0908; color: var(--muted-on-dark); padding-top: 64px; border-top: 1px solid var(--ink-line); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.footer-brand p { margin-top: 14px; font-size: .92rem; max-width: 28em; }
.footer h3 { font: 600 .82rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; transition: color .2s; } .footer a:hover { color: var(--text-on-dark); }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list svg { color: var(--gold); }
.contact-list.big { gap: 16px; font-size: 1.05rem; }
.stamp-line { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border: 1px dashed rgba(201,165,90,.4); border-radius: var(--r); color: var(--gold-2); font-size: .85rem; }
.socials { display: flex; gap: 6px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink-line); border-radius: 50%; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-block: 24px; margin-top: 40px; border-top: 1px solid var(--ink-line); font-size: .82rem; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.req { color: var(--stamp); } .opt { color: var(--text-2); font-weight: 400; font-size: .8rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--paper-line); border-radius: var(--r); background: #fbf7ee; color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201,165,90,.35); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--stamp); background: #fff4f1; }
.err { color: var(--stamp); font-size: .84rem; margin: 0; }
.hint { color: var(--text-2); font-size: .8rem; margin: 0; }
.grid2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .full { grid-column: 1 / -1; } }
.check { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--stamp); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.card-paper { background: #f6efdf; border: 1px solid var(--paper-line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); color: var(--text); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); margin-bottom: 18px; font-weight: 500; }
.alert svg { margin-top: 3px; }
.alert.error { background: #f7dcd6; color: #6f150f; border: 1px solid #e2a79c; }
.alert.warn { background: #f6e6c4; color: #5c3d07; border: 1px solid #dfc08a; }
.alert.ok { background: #dfe9d4; color: #23401f; border: 1px solid #a8c497; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.f-search { position: relative; flex: 1 1 260px; }
.f-search svg { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--text-2); }
.f-search input { padding-inline-start: 42px; }
.f-more { flex: 1 1 100%; order: 3; }
.f-more summary { list-style: none; width: max-content; }
.f-more summary::-webkit-details-marker { display: none; }
.f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.f-row label, .f-sort { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.f-sort { flex: 0 1 220px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; padding: 7px 14px; border: 1px solid var(--paper-line); border-radius: 20px; text-decoration: none; font-size: .88rem; background: transparent; cursor: pointer; }
.chip.on, .chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.results-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 22px; color: var(--text-2); font-size: .88rem; }
.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 16px; color: var(--text-2); }
.empty > svg { width: 56px; height: 56px; color: var(--paper-line); margin-bottom: 12px; }
.empty.sm { padding: 28px; }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 18px; font-size: .85rem; color: var(--muted-on-dark); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--gold-2); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.product { display: grid; gap: 36px; color: var(--text-on-dark); padding-bottom: 64px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; } .gallery { position: sticky; top: calc(var(--nav-h) + 16px); } }
.gallery-main { position: relative; aspect-ratio: 4/5; background: var(--ink-3); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-dark); touch-action: pan-y; }
.g-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s var(--ease); }
.g-slide.on { opacity: 1; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(15,14,12,.65); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.g-nav.prev { inset-inline-start: 12px; } .g-nav.next { inset-inline-end: 12px; }
.g-nav.prev svg { transform: scaleX(-1); }
[dir=rtl] .g-nav.prev svg { transform: none; } [dir=rtl] .g-nav.next svg { transform: scaleX(-1); }
.g-count { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(15,14,12,.7); color: var(--text-on-dark); padding: 3px 10px; border-radius: 12px; font-size: .78rem; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb { flex: none; width: 72px; aspect-ratio: 4/5; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: opacity .2s, border-color .2s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.on { border-color: var(--gold); opacity: 1; }
.p-no { color: var(--gold); font-size: .82rem; } .p-no a { color: inherit; }
.p-info h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: .3em 0 .2em; }
.p-rating { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--muted-on-dark); font-size: .88rem; }
.p-short { color: var(--muted-on-dark); font-size: 1.08rem; margin-top: 14px; }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0; }
.p-price strong { font: 800 2.1rem var(--f-display); color: var(--gold-2); }
.p-price del { color: var(--muted-on-dark); }
.save { background: var(--stamp); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 24px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r-lg); overflow: hidden; }
.specs > div { background: var(--ink-2); padding: 14px 16px; }
.specs dt { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted-on-dark); }
.specs dt svg { width: 15px; height: 15px; color: var(--gold); }
.specs dd { margin: 4px 0 0; font-weight: 600; }
.avail.in { color: #9cc58f; } .avail.low { color: #f0b555; } .avail.out { color: #f0877d; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.buy .icon-btn.lg { border-color: var(--ink-line); color: var(--text-on-dark); }
.buy .btn-ink { --bg: var(--paper); --fg: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink-line); border-radius: var(--r); background: var(--ink-2); height: 52px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: inherit; }
.qty input { width: 48px !important; min-height: 0 !important; height: 100%; text-align: center; border: 0 !important; background: transparent !important; color: inherit !important; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; font-weight: 700; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 42px; border-color: var(--paper-line); background: #fbf7ee; }
.qty.sm button { width: 36px; }
.cod-note { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; font-size: .9rem; color: var(--gold-2); }
.paper .cod-note, .card-paper .cod-note { color: var(--ok); font-weight: 600; }
.cod-note.big { font-size: 1rem; }
.p-details { display: grid; gap: 40px; }
@media (min-width: 980px) { .p-details { grid-template-columns: 1.2fr .8fr; gap: 60px; } }
.p-desc h2, .inside h2, .reviews h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.2em; }
.no-spoil { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border: 1px dashed var(--stamp); color: var(--stamp-2); border-radius: var(--r); font-size: .9rem; margin-top: 24px; }
.inside { background: var(--ink); color: var(--text-on-dark); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); position: relative; box-shadow: var(--shadow-dark); align-self: start; }
.inside::before { content: ""; position: absolute; top: -12px; inset-inline-start: 30px; width: 90px; height: 24px; background: rgba(226,196,120,.65); transform: rotate(-4deg); }
.inside .kicker { color: var(--gold); }
.inside-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.inside-list li { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r); }
.inside-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 6px; background: rgba(179,38,30,.12); color: #e5776d; }
.inside-ic svg { width: 22px; height: 22px; }
.inside-list small { display: block; font-size: .72rem; color: var(--muted-on-dark); }
.reviews { display: grid; gap: 36px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 380px 1fr; } }
.review-list { display: grid; gap: 18px; align-content: start; }
.big-rating { display: flex; align-items: center; gap: 12px; color: var(--muted-on-dark); }
.big-rating strong { font: 800 2.6rem var(--f-display); color: var(--gold-2); }
.review-form { margin-top: 20px; }
.review-form h3 { font-size: 1.15rem; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; }
.rate-stars label { cursor: pointer; color: #c9bb9b; } .rate-stars label svg { width: 30px; height: 30px; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: #c08a1e; }
.rate-stars input:focus-visible + label { outline: 2px solid var(--gold); }
[dir=rtl] .rate-stars { flex-direction: row-reverse; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; gap: 30px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; grid-template-areas: "img info rm" "img qty total"; gap: 8px 14px; align-items: center; padding: 14px; background: #f6efdf; border: 1px solid var(--paper-line); border-radius: var(--r-lg); transition: opacity .3s; }
.cart-line.bad { border-color: var(--stamp); }
.cl-img { grid-area: img; } .cl-img img { border-radius: 4px; aspect-ratio: 4/5; object-fit: cover; }
.cl-info { grid-area: info; display: flex; flex-direction: column; } .cl-name { font: 700 1.05rem var(--f-display); text-decoration: none; }
.cart-line .qty { grid-area: qty; justify-self: start; }
.cl-total { grid-area: total; justify-self: end; font-family: var(--f-display); }
.cart-line > .icon-btn { grid-area: rm; justify-self: end; }
.cart-line.removing { opacity: 0; transform: translateX(20px); }
@media (min-width: 640px) { .cart-line { grid-template-columns: 90px 1fr auto 120px auto; grid-template-areas: "img info qty total rm"; } }
.summary h2 { font-size: 1.3rem; }
.summary dl { margin: 16px 0; display: grid; gap: 10px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 10px; }
.summary dt { color: var(--text-2); } .summary dd { margin: 0; font-weight: 600; text-align: end; }
.summary .grand { padding-top: 12px; border-top: 2px solid var(--ink); font-size: 1.2rem; }
.summary .grand dt { color: var(--text); font-weight: 700; }
.summary .grand dd { font-family: var(--f-display); font-weight: 800; }
.summary .sticky, .sticky { position: sticky; top: calc(var(--nav-h) + 16px); }
.checkout { display: grid; gap: 28px; }
@media (min-width: 980px) { .checkout { grid-template-columns: 1fr 400px; align-items: start; } }
.co-block { background: #f6efdf; border: 1px solid var(--paper-line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.co-block legend { float: inline-start; width: 100%; display: flex; align-items: center; gap: 12px; font: 700 1.25rem var(--f-display); margin-bottom: 18px; }
.co-block legend + * { clear: both; }
.co-block legend .mono { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .85rem; }
.saved-addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.pay-cod { display: grid; gap: 10px; }
.pay-option { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border: 2px solid var(--paper-line); border-radius: var(--r-lg); background: #fffaf0; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pay-option.on { border-color: var(--ink); box-shadow: 0 8px 20px -14px rgba(0,0,0,.5); }
.pay-option:not(.on) .pay-check { opacity: 0; }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pay-ic.qi { background: #1a3a6b; color: #f2d36b; }
.pay-redirect { text-align: center; }
.pay-redirect .spinner { width: 46px; height: 46px; margin: 10px auto 18px; border: 4px solid var(--paper-line); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
.pay-box { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 1px dashed var(--paper-line); background: #fffaf0; margin-top: 14px; text-align: start; }
.pay-box form { display: inline; }
.pay-box .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-option input { position: absolute; opacity: 0; }
.pay-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--ink); color: var(--gold-2); }
.pay-ic svg { width: 26px; height: 26px; }
.pay-option strong { display: block; font-size: 1.05rem; } .pay-option small { display: block; color: var(--text-2); margin-top: 2px; }
.pay-check { margin-inline-start: auto; width: 26px; height: 26px; color: var(--ok); }
.sum-lines { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.sum-lines li { display: flex; gap: 12px; align-items: center; }
.sl-img { position: relative; flex: none; } .sl-img img { width: 52px; border-radius: 4px; aspect-ratio: 4/5; object-fit: cover; }
.sl-img b { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: .72rem; display: grid; place-items: center; }
.sl-name { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: .94rem; }
.sl-name small { font-weight: 400; }
.sum-lines.plain li { padding-bottom: 10px; border-bottom: 1px dashed var(--paper-line); }
.coupon { padding-block: 12px; border-block: 1px dashed var(--paper-line); }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; } .coupon-row input { min-height: 40px; }
[data-coupon-msg].ok { color: var(--ok); } [data-coupon-msg].bad { color: var(--stamp); }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- order done / tracking ---------- */
.done { position: relative; text-align: center; overflow: hidden; }
.stamp-done { top: 22px; inset-inline-end: 22px; font-size: 1.2rem; color: var(--ok); transform: rotate(10deg); animation: stampIn .5s .3s var(--ease) both; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 10px auto 18px; animation: pop .5s var(--ease); }
.done-ic svg { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done-msg { font: 700 clamp(1.15rem, 2.4vw, 1.45rem)/1.5 var(--f-display); max-width: 30em; margin: 0 auto 22px; }
.order-no { display: inline-flex; flex-direction: column; gap: 4px; padding: 16px 26px; border: 2px dashed var(--ink); border-radius: var(--r-lg); background: #fffaf0; margin-bottom: 26px; }
.order-no strong { font-size: 1.7rem; letter-spacing: .08em; }
.done-grid { display: grid; gap: 26px; text-align: start; margin-top: 10px; }
.done-grid h3 { font-size: 1.05rem; margin-top: 10px; }
.done-grid dl { display: grid; gap: 8px; margin: 10px 0; }
.done-grid dl > div { display: flex; justify-content: space-between; }
.done-grid dd { margin: 0; font-weight: 600; } .done-grid .grand { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 1.15rem; }
address { font-style: normal; line-height: 1.8; }
@media (min-width: 760px) { .done-grid { grid-template-columns: 1fr 1fr; } }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 14px; font-size: .8rem; font-weight: 600; background: var(--paper-2); color: var(--text); white-space: nowrap; }
.st-new { background: #dbe7f3; color: #1f4a73; } .st-reviewing { background: #efe3f6; color: #5a2a73; } .st-confirmed { background: #dcefe9; color: #1f5f4f; }
.st-preparing { background: #f6e8c9; color: #6b4a0b; } .st-shipped { background: #dbe2f7; color: #283f8a; } .st-delivered { background: #d9ecd2; color: #2c5a24; }
.st-cancelled { background: #f5d7d2; color: #7b1d14; } .pay-unpaid { background: #f6e3cf; color: #7a4313; } .pay-paid { background: #d9ecd2; color: #2c5a24; }
.track-form { display: grid; gap: 4px 14px; align-items: end; margin-bottom: 22px; }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; } .track-form .btn { margin-bottom: 14px; min-height: 48px; } }
.tr-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; padding-bottom: 18px; border-bottom: 1px dashed var(--paper-line); margin-bottom: 18px; }
.tr-head > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.progress { --p: 0%; list-style: none; padding: 0; margin: 20px 0 30px; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.progress::before, .progress::after { content: ""; position: absolute; top: 15px; inset-inline-start: 8.33%; height: 3px; background: var(--paper-line); width: 83.33%; }
.progress::after { background: var(--ok); width: calc(83.33% * var(--p) / 100%); width: calc(var(--p) * .8333); transition: width 1s var(--ease); }
.progress li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.progress .dot { width: 32px; height: 32px; border-radius: 50%; background: #fbf7ee; border: 3px solid var(--paper-line); display: grid; place-items: center; color: #fff; }
.progress .dot svg { width: 16px; height: 16px; }
.progress .done .dot { background: var(--ok); border-color: var(--ok); }
.progress .now .dot { background: var(--ok); border-color: #b6d6aa; box-shadow: 0 0 0 6px rgba(63,107,58,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(63,107,58,.05); } }
.progress .lbl { font-size: .74rem; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.progress .now .lbl { color: var(--text); }
.progress.sm { margin: 14px 0 18px; } .progress.sm .dot { width: 24px; height: 24px; border-width: 2px; } .progress.sm::before, .progress.sm::after { top: 11px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-inline-start: 2px solid var(--paper-line); padding-inline-start: 16px; }
.timeline li { display: flex; flex-direction: column; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* ---------- account / auth / misc ---------- */
.auth-sec { min-height: 70vh; display: grid; align-items: center; }
.auth-card h1 { font-size: 2rem; }
.acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.acc { display: grid; gap: 30px; }
@media (min-width: 980px) { .acc { grid-template-columns: 1fr 380px; align-items: start; } }
.acc-side { display: grid; gap: 20px; }
.acc-order { margin-bottom: 14px; padding: 0; }
.acc-order summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 16px 20px; list-style: none; }
.acc-order summary > strong:last-child { margin-inline-start: auto; }
.acc-order > :not(summary) { margin-inline: 20px; }
.acc-order > :last-child { margin-bottom: 18px; }
.addr { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--paper-line); }
.addr-act { display: flex; gap: 4px; align-items: center; }
.add-addr { margin-top: 14px; } .add-addr summary { list-style: none; width: max-content; margin-bottom: 14px; }
.contact { display: grid; gap: 30px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.3fr .7fr; } }
.doc { font-size: 1.04rem; }
.err-page { min-height: 70vh; display: grid; align-items: center; }
.err-page .stamp { position: relative; display: inline-block; margin-bottom: 20px; inset: auto; }
.err-code { font-size: clamp(4rem, 14vw, 8rem); color: var(--gold); margin: 0; line-height: 1; }

/* how to play */
.how-path { list-style: none; margin: 0 auto 40px; padding: 0; max-width: 900px; position: relative; display: grid; gap: 26px; }
.how-path::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 28px; border-inline-start: 2px dashed var(--stamp); opacity: .5; }
.how-step { position: relative; padding-inline-start: 72px; }
.how-step::before { content: ""; position: absolute; inset-inline-start: 19px; top: 30px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e85a4f, var(--stamp-2)); box-shadow: 0 3px 5px rgba(0,0,0,.35); }
.how-card { position: relative; }
.how-no { color: var(--stamp); font-size: .8rem; }
.how-ic { position: absolute; top: 20px; inset-inline-end: 22px; color: var(--paper-line); } .how-ic svg { width: 48px; height: 48px; }
.how-card h2 { font-size: 1.4rem; margin-top: .4em; }
.how-card p { color: var(--text-2); margin: 0; max-width: 34em; }
@media (min-width: 860px) {
  .how-path::before { inset-inline-start: 50%; }
  .how-step { padding: 0; width: calc(50% - 40px); }
  .how-step:nth-child(even) { margin-inline-start: auto; }
  .how-step::before { inset-inline-start: auto; inset-inline-end: -50px; }
  .how-step:nth-child(even)::before { inset-inline-end: auto; inset-inline-start: -50px; }
}

/* toasts */
.toasts { position: fixed; z-index: 95; inset-inline: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; max-width: 440px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--ink); color: var(--text-on-dark); box-shadow: var(--shadow-dark); border-inline-start: 4px solid var(--ok); animation: toastIn .35s var(--ease); }
.toast.error { border-color: var(--stamp); } .toast svg { color: var(--gold); }
.toast a { color: var(--gold-2); font-weight: 600; margin-inline-start: 6px; }
.toast.out { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-light { display: none; }
}
@media print { .nav, .footer, .toasts, .grain, .drawer { display: none !important; } body { background: #fff; } }
