/* FIX 9 website. Brand: dark stage, orange light (80% dark / 15% white / 5% orange), Readex Pro 400 + 700.
   The logo letters never glow or move; only the light around them does. */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;700&display=swap');

:root {
  --night: #0A0503;
  --ink: #0E0A07;
  --canvas: #110E0C;
  --panel: #181411;
  --panel-2: #1F1A16;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --amber: #F5A84E;
  --amber-light: #F8C07E;
  --rim: #EE7A22;
  --deep: #A8480C;
  --white: #FFFFFF;
  --text: #F3EEE9;
  --muted: rgba(243, 238, 233, 0.72);
  --faint: rgba(243, 238, 233, 0.5);
  --success: #5BC07A;
  --alert: #E2603A;
  --font: 'Readex Pro', 'Segoe UI', Tahoma, Arial, sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--text); font-family: var(--font); font-weight: 400;
  font-size: 17px; line-height: 1.65; overflow-x: hidden;
}
img, svg { max-width: 100%; }
main { overflow-x: clip; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-light); }
:focus-visible { outline: 2px solid var(--rim); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0; text-wrap: balance; color: var(--white); }
p { margin: 0; }
.latin { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.wrap {
  width: 100%; max-width: 1160px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.eyebrow { color: var(--amber); font-size: 14px; letter-spacing: 0.04em; margin-bottom: 12px; display: block; }
html[lang="en"] .eyebrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-lead { color: var(--muted); max-width: 56ch; margin-top: 14px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 700 16px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-light); color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s; border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10, 5, 3, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(245, 168, 78, 0.22); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand svg { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav + .header-actions { margin-inline-start: 0; }
.lang-btn {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); font: 700 13px/1 var(--font); cursor: pointer;
}
.lang-btn:hover { color: var(--white); border-color: var(--amber); }
.header-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 860px) { .nav { display: none; } .nav + .header-actions { margin-inline-start: auto; } }
@media (max-width: 420px) { .header-cta .cta-long { display: none; } }

/* ---------- hero */
.hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(56px, 8vw, 100px); overflow: hidden; position: relative; }
.hero::before { /* the stage light behind the phone (the glow lives in the background, never on the logo) */
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(238, 122, 34, 0.32), rgba(174, 72, 29, 0.12) 55%, transparent 75%);
  pointer-events: none; transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform 0.6s var(--ease);
}
html[dir="rtl"] .hero::before { inset: -20% auto auto -10%; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); letter-spacing: -0.01em; }
.hero h1 .word { display: inline-block; }
.hero h1 .accent { color: var(--amber); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 22px; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }
@media (max-width: 900px) {
  .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-top: 8px; }
  .hero-visual .phone { --w: min(210px, 52vw); }
  .hero-badge { inset-inline-start: 0; bottom: 6%; }
}

/* CSS-drawn iPhone with the orange rim light that traces its edge once. */
.hero-visual { display: grid; place-items: center; position: relative; min-height: 340px; }
.phone {
  --w: min(300px, 62vw); width: var(--w); aspect-ratio: 9 / 19.2; border-radius: calc(var(--w) * 0.17); position: relative;
  background: linear-gradient(160deg, #2A221C, #120D0A 45%, #1C1511); padding: calc(var(--w) * 0.035);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::before { /* rim light */
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--rim-angle, 200deg), transparent 0deg, rgba(238, 122, 34, 0) 40deg, var(--rim) 90deg, var(--amber-light) 110deg, rgba(238, 122, 34, 0) 170deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 10px rgba(238, 122, 34, 0.6));
}
@property --rim-angle { syntax: '<angle>'; inherits: false; initial-value: 200deg; }
.phone-screen {
  width: 100%; height: 100%; border-radius: calc(var(--w) * 0.14); overflow: hidden; position: relative;
  background: radial-gradient(120% 80% at 70% 15%, #4A2A14, #160C07 55%, #090504);
  display: grid; place-items: center;
}
.phone-island { position: absolute; top: 3.5%; left: 50%; transform: translateX(-50%); width: 30%; height: 3.6%; border-radius: 999px; background: #000; }
.phone-screen .screen-logo { width: 46%; opacity: 0.95; }
.phone-glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 35%); pointer-events: none; }
.hero-badge {
  position: absolute; bottom: 8%; inset-inline-start: 4%; background: rgba(24, 20, 17, 0.92); border: 1px solid rgba(245, 168, 78, 0.35);
  border-radius: 16px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted);
  backdrop-filter: blur(8px);
}
.hero-badge strong { color: var(--white); display: block; font-size: 15px; }
.seal { width: 38px; height: 38px; flex: none; }

/* ---------- trust strip */
.trust { border-block: 1px solid var(--line); background: var(--canvas); }
.trust-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-block: 26px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; min-width: 0; }
.trust-item svg { width: 26px; height: 26px; flex: none; color: var(--amber); }
.trust-item .big { font-weight: 700; color: var(--amber); font-size: 20px; }
@media (max-width: 900px) { .trust-row { grid-template-columns: repeat(2, 1fr); } .trust-item.followers { grid-column: span 2; } }

/* ---------- devices */
.devices-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.filters { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); flex-wrap: wrap; }
.filters button {
  border: 0; background: transparent; color: var(--muted); font: 400 14px/1 var(--font); padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--amber); color: var(--ink); font-weight: 700; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--canvas)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.card::before { /* the rim light traces the card on hover */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity 0.35s;
  background: conic-gradient(from var(--card-angle, 0deg), transparent 0 60%, var(--rim) 75%, var(--amber-light) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@property --card-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.card:hover { transform: translateY(-4px); }
.card:hover::before { opacity: 1; animation: card-rim 2.4s linear infinite; }
@keyframes card-rim { to { --card-angle: 360deg; } }
.tag { display: inline-flex; align-self: flex-start; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(245, 168, 78, 0.12); color: var(--amber-light); }
.tag.used { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.card h3 { font-size: 20px; font-weight: 700; }
.card .specs { color: var(--muted); font-size: 14px; }
.card .price { font-weight: 700; font-size: 26px; color: var(--amber); margin-top: auto; padding-top: 8px; }
.card .ask { margin-top: 6px; min-height: 44px; font-size: 14px; }
.devices-note { margin-top: 18px; color: var(--faint); font-size: 14px; }
.devices-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap;
  gap: 24px; align-items: center; justify-content: space-between; background: var(--canvas);
}
.devices-empty h3 { font-size: 24px; }
.devices-empty p { color: var(--muted); margin-top: 8px; }

/* ---------- new vs used */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.split-panel { border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.split-panel.new { background: radial-gradient(120% 120% at 100% 0%, rgba(238, 122, 34, 0.18), transparent 60%), var(--panel); }
.split-panel h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.split-panel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; color: var(--muted); }
.split-panel li { display: flex; gap: 10px; align-items: flex-start; }
.split-panel li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 10px; flex: none; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- warranty band */
.warranty-band {
  border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 48px);
  align-items: center; background: radial-gradient(90% 140% at 0% 50%, rgba(245, 168, 78, 0.16), transparent 60%), var(--canvas);
  border: 1px solid rgba(245, 168, 78, 0.25);
}
html[dir="rtl"] .warranty-band { background: radial-gradient(90% 140% at 100% 50%, rgba(245, 168, 78, 0.16), transparent 60%), var(--canvas); }
.big-seal { width: clamp(96px, 14vw, 140px); height: auto; }
@media (max-width: 860px) { .warranty-band { grid-template-columns: 1fr; text-align: start; } }

/* ---------- accessories strip */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-top: 28px; scrollbar-width: thin; }
.strip .card { flex: 0 0 min(260px, 78vw); scroll-snap-align: start; }

/* ---------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; position: relative; list-style: none; padding: 0; }
.steps::before {
  content: ''; position: absolute; top: 27px; inset-inline-start: 28px; height: 2px; width: calc(100% - 56px);
  background: linear-gradient(90deg, var(--rim), var(--amber-light)); transform-origin: right; transform: scaleX(var(--progress, 1));
  transition: transform 1.4s var(--ease); opacity: 0.8;
}
html[dir="ltr"] .steps::before { transform-origin: left; }
.step { position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--night);
  border: 2px solid var(--amber); color: var(--amber); font-weight: 700; font-size: 20px; position: relative; z-index: 1;
}
.step h3 { font-size: 21px; margin-top: 18px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 28px; bottom: 28px; height: auto; width: 2px; inset-inline-start: 27px; transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step h3 { margin-top: 12px; }
  .step p { grid-column: 2; }
}

/* ---------- instagram */
.ig-panel {
  border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--panel), var(--canvas)); border: 1px solid var(--line);
}
.ig-stats { display: flex; gap: 32px; margin-top: 18px; }
.ig-stats div { display: flex; flex-direction: column; }
.ig-stats strong { font-size: 30px; color: var(--amber); font-weight: 700; }
.ig-stats span { color: var(--muted); font-size: 14px; }

/* ---------- visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; margin-top: 36px; align-items: stretch; }
.visit-info { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: clamp(24px, 4vw, 36px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.visit-row { display: flex; gap: 14px; align-items: flex-start; }
.visit-row svg { width: 24px; height: 24px; color: var(--amber); flex: none; margin-top: 3px; }
.visit-row .label { color: var(--faint); font-size: 13px; display: block; }
.visit-row .value { color: var(--white); font-size: 17px; }
.phones { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; position: relative; background: var(--panel); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.6) invert(0.92) hue-rotate(180deg) brightness(0.9) contrast(0.9); }
.map-pin { position: absolute; top: 50%; left: 50%; width: 40px; transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--night); }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-row .brand svg { height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--white); }
.copy { color: var(--faint); font-size: 13px; }

/* ---------- reveal on scroll (only when JS runs; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-side { opacity: 0; transform: translateX(var(--from, 40px)); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal-side.in { opacity: 1; transform: none; }
.js .stamp { opacity: 0; transform: scale(1.35) rotate(-12deg); transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
.js .stamp.in { opacity: 1; transform: none; }
.js .pin-drop { opacity: 0; transform: translate(-50%, -260%); transition: opacity 0.4s, transform 0.8s cubic-bezier(0.2, 1.4, 0.4, 1); }
.js .pin-drop.in { opacity: 1; transform: translate(-50%, -100%); }
.js .steps:not(.in) { --progress: 0; }

/* hero load sequence */
.js .hero .phone::before { animation: rim-sweep 1.6s var(--ease) 0.15s both; }
@keyframes rim-sweep { from { --rim-angle: -60deg; opacity: 0; } 15% { opacity: 1; } to { --rim-angle: 200deg; opacity: 1; } }
.js .hero h1 .word { opacity: 0; transform: translateY(0.4em); animation: word-in 0.7s var(--ease) both; animation-delay: calc(0.45s + var(--i) * 0.08s); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.js .hero .fade-in { opacity: 0; animation: fade-up 0.8s var(--ease) both; animation-delay: var(--d, 0.9s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .brand .leaf { animation: leaf-settle 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) 0.3s both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes leaf-settle { from { opacity: 0; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-side, .js .stamp, .js .pin-drop, .js .hero h1 .word, .js .hero .fade-in { opacity: 1 !important; transform: none !important; }
  .js .pin-drop { transform: translate(-50%, -100%) !important; }
  .js .steps { --progress: 1 !important; }
}

/* ============================================================ warranty checker page */
.wpage { min-height: 100vh; padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 80px; position: relative; overflow: hidden; }
.wpage::before {
  content: ''; position: absolute; top: -10%; left: 50%; width: 900px; height: 900px; max-width: 140vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(238, 122, 34, 0.22), rgba(174, 72, 29, 0.08) 55%, transparent 75%); pointer-events: none;
}
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; position: relative; }
@media (max-width: 900px) { .wgrid { grid-template-columns: 1fr; } }
.wpage h1 { font-size: clamp(32px, 5vw, 54px); }
.wform { margin-top: 30px; display: grid; gap: 12px; }
.wform label { font-weight: 700; color: var(--white); }
.imei-field { display: flex; gap: 10px; flex-wrap: wrap; }
.imei-input {
  flex: 1 1 260px; min-width: 0; height: 60px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--white); font: 700 22px/1 var(--font); letter-spacing: 0.08em; padding: 0 18px; direction: ltr; text-align: left;
  font-variant-numeric: tabular-nums; transition: border-color 0.2s, box-shadow 0.2s;
}
.imei-input::placeholder { color: var(--faint); letter-spacing: 0.04em; font-weight: 400; }
.imei-input:focus { outline: none; border-color: var(--rim); box-shadow: 0 0 0 4px rgba(238, 122, 34, 0.18); }
.imei-input.bad { border-color: var(--alert); }
.imei-input.good { border-color: var(--success); }
.wform .btn { height: 60px; }
.hint { color: var(--muted); font-size: 14px; }
.hint code { direction: ltr; unicode-bidi: isolate; color: var(--amber-light); font-family: var(--font); font-weight: 700; }
.field-msg { min-height: 22px; font-size: 14px; color: var(--alert); }
.field-msg.ok { color: var(--success); }
.counter { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

/* scanner + result */
.wstage { position: relative; min-height: 420px; display: grid; place-items: center; }
.scan-phone {
  width: 210px; aspect-ratio: 9 / 19; border-radius: 36px; border: 2px solid rgba(255, 255, 255, 0.12); position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2A1A10, #0E0906 60%); display: grid; place-items: center;
}
.scan-phone svg { width: 46%; opacity: 0.9; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px; top: 0; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--rim), var(--amber-light), var(--rim), transparent);
  box-shadow: 0 0 18px 4px rgba(238, 122, 34, 0.5);
}
.scanning .scan-line { opacity: 1; animation: scan 1.1s var(--ease) infinite alternate; }
@keyframes scan { from { top: 4%; } to { top: 94%; } }
.scanning .scan-phone { border-color: rgba(245, 168, 78, 0.5); }

.result {
  width: 100%; border-radius: 24px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--panel), var(--canvas));
  padding: clamp(22px, 4vw, 32px); display: grid; gap: 20px; transform-origin: top center;
}
.js .result { animation: result-in 0.6s var(--ease) both; }
@keyframes result-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.result-top { display: flex; gap: 20px; align-items: center; }
.ring { width: 110px; height: 110px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: rgba(255, 255, 255, 0.08); }
.ring .bar { stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring-label strong { font-size: 28px; font-weight: 700; display: block; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 12px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.st-active { --c: var(--success); }
.st-expiring { --c: var(--amber); }
.st-expired, .st-void { --c: rgba(243, 238, 233, 0.55); }
.status-pill { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.result h2 { font-size: 26px; margin-top: 8px; }
.result h2 .latin { direction: ltr; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--faint); font-size: 13px; }
.facts dd { margin: 2px 0 0; color: var(--white); font-weight: 700; overflow-wrap: anywhere; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result.empty { text-align: center; justify-items: center; }
.result.empty svg { width: 48px; height: 48px; color: var(--amber); }
.result p { color: var(--muted); }
.wbox-note { margin-top: 26px; color: var(--faint); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.wbox-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--amber); }
