/* =====================================================================
   Dev Crow Egg · J Terminal ("Dev mode")
   The print farm's own console: phosphor green on a near-black CRT,
   amber for prices, warnings and the main actions.
   ===================================================================== */

:root {
  --bg: #0a0f0b;
  --bg-2: #0c130e;
  --panel: #0e1611;
  --panel-2: #121e17;
  --panel-3: #17271d;
  --line: #1b3224;
  --line-2: #29513a;
  --line-3: #3d8659;

  --g: #5dff9b;          /* phosphor: primary text and lines */
  --g-hi: #d2ffe3;       /* brightest: headings on hover, values */
  --g-soft: #a9ebc1;     /* body copy */
  --g-mid: #3fca7c;
  --g-dim: #86a891;      /* secondary text (6.9:1 on bg) */
  --g-faint: #4c6d58;
  --amber: #ffb547;      /* prices, warnings, main CTAs */
  --amber-hi: #ffd08a;
  --amber-lo: #c4892f;
  --red: #ff8070;
  --ink: #07100a;

  --glow: 0 0 .5em rgba(93, 255, 155, .42);
  --glow-a: 0 0 .55em rgba(255, 181, 71, .38);

  --f-ui: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Arabic", monospace;
  --f-disp: "VT323", "IBM Plex Mono", ui-monospace, "Noto Sans Arabic", monospace;

  --gut: clamp(16px, 3.4vw, 44px);
  --maxw: 1380px;
  --r: 2px;
  --hdr-h: 98px;

  /* "See it in your room" viewer theme (shared/room-view) */
  --rv-bg: #0a0f0b;
  --rv-surface: #0e1611;
  --rv-text: #d2ffe3;
  --rv-muted: #86a891;
  --rv-line: #29513a;
  --rv-accent: #ffb547;
  --rv-accent-text: #07100a;
  --rv-radius: 2px;
  --rv-font: "IBM Plex Mono", ui-monospace, Consolas, "Noto Sans Arabic", monospace;
  --rv-font-display: "VT323", "IBM Plex Mono", "Noto Sans Arabic", monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(93, 255, 155, .07), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(93, 255, 155, .05) 1px, transparent 1.5px);
  background-size: auto, 24px 24px;
  color: var(--g-soft);
  font: 400 15px/1.6 var(--f-ui);
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 16px; } }

/* CRT vignette (cheap: one fixed gradient layer, never over interactive hit areas) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 62%, rgba(0, 0, 0, .38) 100%);
}

::selection { background: var(--g); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--g); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--g-hi); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--g); }

:focus-visible { outline: 2px dashed var(--amber); outline-offset: 3px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dim { color: var(--g-dim); }
.amber { color: var(--amber); }
.pr { color: var(--g-dim); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Primitives ---------- */
.h-disp {
  font-family: var(--f-disp);
  color: var(--g);
  text-shadow: var(--glow);
  line-height: .92;
  letter-spacing: .005em;
  text-wrap: balance;
}

.cursor {
  display: inline-block;
  width: .55em; height: 1.05em;
  margin-inline-start: .15em;
  vertical-align: -.16em;
  background: var(--g);
  box-shadow: var(--glow);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.led {
  display: inline-block; flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--g-faint);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45);
  vertical-align: middle;
}
.led--on { background: var(--g); box-shadow: 0 0 8px var(--g), 0 0 2px var(--g); }
.led--amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.led--blink { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: blink 1s steps(1) infinite; }
.led--done { background: var(--g); box-shadow: 0 0 8px var(--g); animation: none; }
.led--idle { background: var(--g-faint); box-shadow: none; animation: none; }

.ok { color: var(--g); font-weight: 600; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.warn { color: var(--amber); font-weight: 600; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.deny { color: var(--red); font-weight: 600; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }

.prompt, .cmd {
  font-size: 14px;
  color: var(--g);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cmd .pr, .prompt .pr { margin-inline-end: .5ch; }
.type { display: inline-block; vertical-align: bottom; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--amber-lo);
  color: var(--amber);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 181, 71, .06);
}

.eyebrow {
  display: flex; align-items: center; gap: 1ch; flex-wrap: wrap;
  color: var(--g-dim);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  margin-block-end: 10px;
}
.eyebrow .pr { letter-spacing: 0; text-transform: none; color: var(--g-faint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: 600 14px/1.1 var(--f-ui);
  letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .14s, color .14s, box-shadow .14s, border-color .14s;
}
.btn--amber { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 1px var(--amber), 0 0 22px -4px rgba(255, 181, 71, .55); }
.btn--amber:hover { background: var(--amber-hi); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--g); border-color: var(--line-3); }
.btn--ghost:hover { background: var(--g); color: var(--ink); border-color: var(--g); box-shadow: 0 0 20px -4px rgba(93, 255, 155, .55); }
.btn__k { font-size: 1.15em; opacity: .7; }
.btn__pr { opacity: .75; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.tbtn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 12px;
  background: transparent; color: var(--g);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.tbtn:hover { background: var(--g); color: var(--ink); border-color: var(--g); }
.tbtn[aria-pressed="true"] { background: var(--g); color: var(--ink); border-color: var(--g); }
.tbtn__ico { font-size: 10px; letter-spacing: -.1em; }

/* Mat chips */
.mat {
  display: inline-block; padding: 1px 7px;
  border: 1px solid var(--line-3);
  color: var(--g);
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
}
.mat--petg { background: var(--g-mid); border-color: var(--g-mid); color: var(--ink); }

.price {
  font-family: var(--f-disp);
  font-size: 30px; line-height: 1;
  color: var(--amber);
  text-shadow: var(--glow-a);
  white-space: nowrap;
}

/* Segmented control */
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px;
  background: transparent; border: 0; color: var(--g-dim);
  font-size: 13px; font-weight: 600;
}
.seg button + button { border-inline-start: 1px solid var(--line-2); }
.seg button:hover { color: var(--g); background: var(--panel-2); }
.seg button[aria-pressed="true"] { background: var(--g); color: var(--ink); }

/* ---------- Windows ---------- */
.win {
  position: relative;
  background-color: var(--panel);
  background-image: repeating-linear-gradient(180deg, rgba(93, 255, 155, .03) 0 1px, transparent 1px 3px);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line), 0 20px 60px -30px rgba(0, 0, 0, .8), 0 0 50px -24px rgba(93, 255, 155, .25);
}
.win__bar {
  display: flex; align-items: center; gap: 12px;
  min-height: 34px; padding: 0 10px;
  border-bottom: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 4px) center / 100% 13px no-repeat,
    var(--panel-2);
  font-size: 12.5px;
  color: var(--g-dim);
}
.win__title, .win__meta, .win__dots { background: var(--panel-2); padding-inline: 8px; }
.win__title { color: var(--g); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__meta { margin-inline-start: auto; white-space: nowrap; }
.win__dots { display: inline-flex; gap: 5px; padding-inline: 6px; }
.win__dots i { width: 9px; height: 9px; border: 1px solid var(--line-3); }
.win__dots i:first-child { background: var(--g); border-color: var(--g); box-shadow: 0 0 6px var(--g); }
.win__dots i:nth-child(2) { background: var(--amber); border-color: var(--amber); }
.win__btn {
  margin-inline-start: auto;
  min-width: 34px; min-height: 30px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--g);
  font-size: 18px; line-height: 1;
}
.win__btn:hover { background: var(--g); color: var(--ink); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 13, 9, .975);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
}
.hdr__status { border-bottom: 1px solid var(--line); background: #08100b; font-size: 11.5px; color: var(--g-dim); }
.hdr__statusin { display: flex; align-items: center; gap: 0; min-height: 26px; overflow: hidden; white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 8px; padding-inline: 12px; border-inline-end: 1px solid var(--line); line-height: 26px; }
.st:first-child { background: var(--g); color: var(--ink); font-weight: 700; padding-inline: 10px; letter-spacing: .04em; }
.st:first-child .led { background: var(--ink); box-shadow: none; animation: blink 1.6s steps(1) infinite; }
.st--end { margin-inline-start: auto; border-inline-end: 0; border-inline-start: 1px solid var(--line); }
.clock { color: var(--g); }

.hdr__bar { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--g); flex: none; }
.logo__egg { width: 22px; height: 29px; filter: drop-shadow(0 0 4px rgba(93, 255, 155, .55)); }
.logo__egg .egg-edge { fill: var(--g); }
.logo__egg .egg-fill { fill: #12301f; }
.logo__egg .egg-spk { fill: var(--g-mid); }
.logo__word { font-family: var(--f-disp); font-size: 31px; line-height: 1; letter-spacing: .01em; text-shadow: var(--glow); white-space: nowrap; }
.logo .cursor { height: .8em; width: .45em; margin-inline-start: -4px; }
.logo:hover { color: var(--g-hi); }

.nav ul { display: flex; gap: 2px; }
.nav a {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 8px 10px;
  color: var(--g-soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  border-radius: var(--r);
}
.nav__k { font-size: 11px; color: var(--g-faint); }
.nav a:hover { background: var(--g); color: var(--ink); }
.nav a:hover .nav__k { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--g); box-shadow: inset 0 -2px 0 var(--g); }

.search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  min-width: 0;
}
.search:focus-within { border-color: var(--g); box-shadow: 0 0 0 1px var(--g); }
.search__prompt { color: var(--g-dim); font-size: 13px; flex: none; }
.search input {
  width: 100%; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--g); caret-color: var(--amber);
  font-size: 14px;
}
.search input::placeholder { color: var(--g-faint); opacity: 1; }
.search input::-webkit-search-cancel-button { filter: hue-rotate(90deg); }
.hdr__bar .search { flex: 1 1 220px; max-width: 290px; margin-inline-start: auto; }

.hdr__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line-2); }
.lang button {
  min-height: 36px; min-width: 44px; padding: 0 10px;
  background: transparent; border: 0; color: var(--g-dim);
  font-size: 13px; font-weight: 600;
}
.lang button[lang="ar"] { font-family: "Noto Sans Arabic", var(--f-ui); font-size: 14px; }
.lang button + button { border-inline-start: 1px solid var(--line-2); }
.lang button:hover { color: var(--g); background: var(--panel-2); }
.lang button[aria-pressed="true"] { background: var(--g); color: var(--ink); }

.cart {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 10px;
  border: 1px solid var(--amber-lo);
  color: var(--amber); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.cart__count {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 22px; padding: 0 5px;
  background: var(--amber); color: var(--ink);
  font-weight: 700; letter-spacing: 0;
}
.cart:hover { background: rgba(255, 181, 71, .1); color: var(--amber-hi); }
.cart.is-bump .cart__count { animation: bump .5s steps(4); }
@keyframes bump { 0% { background: var(--g-hi); } 50% { background: var(--g); } 100% { background: var(--amber); } }

.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 12px;
  background: transparent; color: var(--g);
  border: 1px solid var(--line-3);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.menu-btn__ico, .menu-btn__ico::before, .menu-btn__ico::after { display: block; width: 14px; height: 2px; background: currentColor; }
.menu-btn__ico { position: relative; }
.menu-btn__ico::before, .menu-btn__ico::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-btn__ico::before { top: -5px; }
.menu-btn__ico::after { top: 5px; }
.menu-btn:hover { background: var(--g); color: var(--ink); }

@media (max-width: 1180px) {
  .hdr__bar > .nav, .hdr__bar > .search { display: none; }
  .hdr__tools { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --hdr-h: 88px; }
  .hdr__bar { min-height: 60px; gap: 8px; }
  .logo { gap: 8px; }
  .logo__word { font-size: 25px; }
  .logo .cursor { display: none; }
  .logo__egg { width: 18px; height: 24px; }
  .hdr__tools { gap: 6px; }
  .cart__word, .menu-btn > span:last-child { display: none; }
  .cart, .menu-btn { padding: 0 8px; min-height: 40px; }
  .menu-btn { min-width: 40px; justify-content: center; }
  .lang button { min-width: 40px; padding: 0 7px; min-height: 40px; }
  .st--hide-sm { display: none; }
  .st { padding-inline: 8px; }
}
@media (max-width: 370px) { .logo__word { font-size: 22px; } }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 120; background: rgba(4, 8, 5, .72); display: flex; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet__panel { width: min(420px, 100%); height: 100%; overflow: auto; box-shadow: none; border-width: 0; border-inline-start: 1px solid var(--line-2); }
.sheet__body { padding: 20px 18px 28px; display: grid; gap: 20px; }
.sheet nav ul { display: grid; gap: 4px; }
.sheet nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  color: var(--g); text-decoration: none; font-size: 17px;
}
.sheet nav a:hover { background: var(--g); color: var(--ink); }
.sheet .search { height: 48px; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 104px) 0; }
.sec__head { margin-block-end: clamp(22px, 3vw, 34px); max-width: 980px; }
.sec__head h2 { font-size: clamp(44px, 5.2vw, 76px); }
.sec__sub { margin-block-start: 12px; color: var(--g-dim); max-width: 64ch; }
.sec__head--tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; max-width: none; }
.sec__head--tools > div:first-child { max-width: 980px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 3.6vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 4.2vw, 64px) clamp(20px, 3vw, 40px);
}
.hero__copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.hero__title { font-size: clamp(64px, 7.2vw, 118px); max-width: 9.5em; }
.hero__where { font-size: clamp(17px, 1.5vw, 21px); color: var(--g-hi); font-weight: 600; }
.hero__lede { max-width: 46ch; color: var(--g-soft); }
.hero .ctas { margin-block-start: 6px; }
.hero__stock { font-size: 13.5px; color: var(--g-dim); display: flex; gap: 10px; align-items: baseline; }

.job { min-width: 0; }
.job__screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 236px); }
.job__view {
  position: relative;
  height: clamp(380px, 56vh, 590px);
  background:
    radial-gradient(ellipse 60% 55% at 50% 58%, rgba(93, 255, 155, .09), transparent 70%),
    #070d09;
  overflow: hidden;
}
.job__canvas { position: absolute; inset: 0; }
.job__canvas canvas { width: 100%; height: 100%; cursor: grab; }
.job__canvas canvas:active { cursor: grabbing; }
.job__view::after {
  /* scanlines + glass vignette over the 3D view only */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 85% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.job__view::before {
  /* slow refresh band */
  content: ""; position: absolute; inset-inline: 0; top: -30%; height: 30%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(93, 255, 155, .045), transparent);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { transform: translateY(440%); } }
.job__state, .job__hint {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 9px;
  background: rgba(7, 13, 9, .82);
  border: 1px solid var(--line-2);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none;
}
.job__state { top: 12px; inset-inline-start: 12px; color: var(--amber); }
.job__state.is-done { color: var(--g); }
.job__hint { bottom: 12px; inset-inline-end: 12px; color: var(--g-dim); }
.job__gcode {
  margin: 0;
  height: clamp(380px, 56vh, 590px);
  padding: 12px 12px 10px;
  border-inline-start: 1px solid var(--line-2);
  background: #08100b;
  font: 400 11.5px/1.62 var(--f-ui);
  color: var(--g-mid);
  overflow: hidden;
  white-space: pre;
  display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0, #000 34%);
  text-align: left;
}
.job__gcode code { display: block; font: inherit; }
.gc-cm { color: var(--g-faint); }
.gc-m { color: var(--amber-lo); }
.gc-ly { color: var(--amber); }
.gc-g0 { color: #2e7d50; }
.gc-g1 { color: var(--g-mid); }
.gc-ok { color: var(--g); }
.job__stats {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 22px;
  padding: 11px 14px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
}
.stat { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.stat__k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-dim); }
.stat__v { color: var(--g); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat__v.amber { color: var(--amber); }
.stat--bar .stat__v { color: var(--g); font-weight: 500; letter-spacing: -.02em; }
.job__ctrl { display: flex; gap: 8px; margin-inline-start: auto; }
.job.no-3d .job__view { display: grid; place-items: center; }
.job.no-3d .job__view .wire { width: 70%; height: 80%; }
.job.no-3d .job__hint { display: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 12em; }
}
@media (max-width: 760px) {
  .job__screen { grid-template-columns: minmax(0, 1fr); }
  .job__view { height: min(92vw, 420px); }
  .job__gcode { height: 132px; border-inline-start: 0; border-top: 1px solid var(--line-2); font-size: 11px; }
  .stat--temp { display: none; }
  .job__stats { gap: 6px 16px; font-size: 12.5px; }
  .job__ctrl { margin-inline-start: 0; width: 100%; }
  .job__ctrl .tbtn { flex: 1; justify-content: center; min-height: 40px; }
  .hero__title { font-size: clamp(54px, 15vw, 84px); }
}

/* ---------- How it works ---------- */
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.how__log { counter-reset: none; }
.step { padding: 20px clamp(16px, 2.4vw, 28px) 22px; border-bottom: 1px dashed var(--line-2); display: grid; gap: 6px; }
.step:last-child { border-bottom: 0; }
.step .cmd { font-size: 14.5px; }
.out { padding-inline-start: 2ch; }
.mach { font-size: 12.5px; color: var(--g-faint); white-space: pre; overflow: hidden; text-overflow: ellipsis; line-height: 1.55; }
.okline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-size: 19px; font-weight: 600; color: var(--g-hi); margin-block-start: 4px; }
.step__n { color: var(--amber); font-size: 14px; font-weight: 600; }
.desc { max-width: 60ch; color: var(--g-soft); }
.how__panel {
  border-inline-start: 1px solid var(--line-2);
  padding: 22px 22px 24px;
  background: rgba(7, 13, 9, .55);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.how__ptitle { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--g-dim); }
.lamps { display: grid; gap: 12px; }
.lamp { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; color: var(--g-faint); font-size: 14px; transition: color .2s; }
.lamp__n { font-size: 12px; }
.lamp.is-on { color: var(--g-hi); }
.lamp.is-on .led { background: var(--g); box-shadow: 0 0 8px var(--g); }
.how__bar { margin-block-start: auto; font-size: 13px; color: var(--g); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; }
@media (max-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .how__panel { order: -1; border-inline-start: 0; border-bottom: 1px solid var(--line-2); padding: 14px 16px; gap: 10px; }
  .lamps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .lamp { grid-template-columns: auto 1fr; gap: 6px; }
  .lamp > span:last-child { display: none; }
  .how__bar { display: none; }
}
@media (max-width: 560px) {
  .mach { font-size: 11.5px; }
  .step .cmd { font-size: 13px; }
  .okline { font-size: 17px; }
}

/* ---------- Product tiles ---------- */
.grid { display: grid; gap: 20px; }
.grid--big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  min-width: 0;
}
.tile:hover, .tile:focus-within { border-color: var(--g); box-shadow: 0 0 0 1px var(--g), 0 0 34px -10px rgba(93, 255, 155, .5); }
.tile__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 32px; padding: 0 10px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 12px; color: var(--g-dim);
}
.tile__file, .tile__owner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile__file { color: var(--g); }
.tile__perm { color: var(--g-faint); }
.tile__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 8% 12%;
  background:
    radial-gradient(ellipse 55% 50% at 50% 55%, rgba(93, 255, 155, .1), transparent 72%),
    linear-gradient(rgba(93, 255, 155, .05) 1px, transparent 1px) 0 0 / 100% 20px,
    linear-gradient(90deg, rgba(93, 255, 155, .05) 1px, transparent 1px) 0 0 / 20px 100%,
    #08100b;
  border-bottom: 1px solid var(--line);
}
.tile--big .tile__thumb { aspect-ratio: 1 / 1; padding: 10%; }
.wire { width: 100%; height: 100%; overflow: visible; }
.wire path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.wire__front { stroke: var(--g); stroke-width: 1.25; filter: drop-shadow(0 0 2px rgba(93, 255, 155, .55)); }
.wire__back { stroke: var(--g-faint); stroke-width: 1; opacity: .7; }
.tile__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 14px; flex: 1; }
.tile__by { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--g-dim); }
.tile__name { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--g-hi); }
.tile__name a { color: inherit; text-decoration: none; }
.tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__name a:hover { text-decoration: underline; }
.tile__name a:focus-visible { outline: none; }
.tile:has(.tile__name a:focus-visible) { outline: 2px dashed var(--amber); outline-offset: 3px; }
.tile__desc { font-size: 14px; color: var(--g-dim); line-height: 1.55; }
.tile__seller { font-size: 13px; color: var(--g-dim); }
.tile__row { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.tile__row .price { margin-inline-end: auto; }
.tile .mat { order: -1; }
.add {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 12px;
  background: transparent; color: var(--g);
  border: 1px solid var(--line-3); border-radius: var(--r);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.add:hover { background: var(--g); color: var(--ink); border-color: var(--g); }
.add.is-done { background: var(--amber); border-color: var(--amber); color: var(--ink); }

@media (max-width: 1100px) {
  .grid--big, .grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid { gap: 14px; }
  .grid--big { grid-template-columns: minmax(0, 1fr); }
  .tile--big { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
  .tile--big .tile__bar { grid-column: 1 / -1; }
  .tile--big .tile__thumb { aspect-ratio: auto; height: 100%; padding: 12px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .tile--big .tile__desc { font-size: 13px; }
  .grid--small { grid-template-columns: minmax(0, 1fr); }
  .grid--small .tile { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .grid--small .tile__bar { grid-column: 1 / -1; }
  .grid--small .tile__thumb { aspect-ratio: auto; height: 100%; min-height: 112px; padding: 12px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .tile__body { padding: 12px; }
  .tile__name { font-size: 16px; }
  .price { font-size: 27px; }
}

/* ls -l list view */
.lsline { font-size: 13.5px; color: var(--g); margin-block-end: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsline .pr { margin-inline-end: .5ch; }
.search-msg:empty { display: none; }
.search-msg { margin-block-end: 14px; color: var(--amber); font-size: 14px; }
.grid--list { display: block; }
.ls { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line-2); background: var(--panel); }
.ls th, .ls td { padding: 8px 12px; text-align: start; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.ls thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g-dim); background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.ls thead td { background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.ls tbody tr { transition: background-color .12s; }
.ls tbody tr:hover { background: var(--panel-3); }
.ls__perm { color: var(--g-faint); font-size: 12.5px; white-space: nowrap; }
.ls__thumb { width: 64px; }
.ls__thumb .wire { width: 46px; height: 46px; }
.ls__name { font-weight: 600; }
.ls__name a { color: var(--g-hi); text-decoration: none; display: block; }
.ls__name a:hover { text-decoration: underline; }
.ls__file { display: block; font-weight: 400; font-size: 12px; color: var(--g-dim); }
.ls__seller, .ls__city { color: var(--g-dim); white-space: nowrap; }
.ls .price { font-size: 26px; }
.ls__add { text-align: end; }
@media (max-width: 900px) {
  .ls__perm, .ls__city { display: none; }
}
@media (max-width: 600px) {
  .ls { font-size: 13px; }
  .ls th, .ls td { padding: 8px 6px; }
  .ls__seller, .ls__thumb, .ls thead { display: none; }
  .ls .mat { display: none; }
  .ls .price { font-size: 22px; }
  .ls .add > span:last-child { display: none; }
  .ls .add { min-width: 40px; justify-content: center; }
}

/* ---------- Categories (command chips) ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 4px 12px;
  padding: 14px;
  min-height: 92px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
.cat .wire { grid-row: span 2; width: 48px; height: 48px; }
.cat__cmd { font-size: 12.5px; color: var(--g-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat__cmd b { color: var(--g); font-weight: 600; }
.cat__label { font-size: 15.5px; font-weight: 600; color: var(--g-hi); line-height: 1.3; }
.cat:hover, .cat:focus-visible { background: var(--g); border-color: var(--g); }
.cat:hover .cat__cmd, .cat:hover .cat__cmd b, .cat:hover .cat__label,
.cat:focus-visible .cat__cmd, .cat:focus-visible .cat__cmd b, .cat:focus-visible .cat__label { color: var(--ink); }
.cat:hover .wire__front, .cat:focus-visible .wire__front { stroke: var(--ink); filter: none; }
.cat:hover .wire__back, .cat:focus-visible .wire__back { stroke: #1c5232; }
@media (max-width: 1250px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 4px; }
  .cat .wire { grid-row: auto; width: 40px; height: 40px; margin-block-end: 4px; }
  .cat__cmd { font-size: 11.5px; }
  .cat__label { font-size: 14.5px; }
}

/* ---------- Seller band ---------- */
.band { padding-block-start: clamp(56px, 8vw, 104px); }
.band__win { border-color: var(--amber-lo); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(255, 181, 71, .35), 0 0 70px -24px rgba(255, 181, 71, .35); }
.band__win .win__bar { border-bottom-color: var(--amber-lo); }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(22px, 3.4vw, 46px); }
.band__copy { display: grid; gap: 16px; justify-items: start; align-content: start; }
.band__copy .eyebrow { margin: 6px 0 0; }
.band__title { font-size: clamp(58px, 6.6vw, 104px); color: var(--amber); text-shadow: var(--glow-a); }
.band__text { font-size: clamp(16px, 1.4vw, 19px); color: var(--g-hi); max-width: 40ch; }
.band__copy .ctas { margin-block-start: 8px; }
.band__script { display: grid; gap: 22px; align-content: start; position: relative; }
.checks--mini li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line-2); color: var(--g-hi); }
.split { display: grid; gap: 8px; }
.split__k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-dim); }
.split__bar { display: flex; height: 26px; border: 1px solid var(--line-2); padding: 3px; gap: 3px; }
.split__you { flex: 0 0 calc(90% - 2px); background: repeating-linear-gradient(90deg, var(--g) 0 7px, transparent 7px 9px); box-shadow: 0 0 10px rgba(93, 255, 155, .4); }
.split__us { flex: 1; background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 9px); }
.split__legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.split__legend .g { color: var(--g); }
.split__legend .a { color: var(--amber); }
.big90 { font-family: var(--f-disp); font-size: clamp(120px, 14vw, 210px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-3); text-align: end; user-select: none; }
.big90 span { font-size: .5em; }
@media (max-width: 900px) {
  .band__grid { grid-template-columns: minmax(0, 1fr); }
  .big90 { display: none; }
}

/* ---------- Trust (system checks) ---------- */
.trust__body { padding: clamp(20px, 3vw, 40px); display: grid; gap: 14px; }
.trust__title { font-size: clamp(40px, 4.4vw, 62px); margin-block: 4px 8px; }
.checks--trust { display: grid; grid-template-columns: auto auto minmax(40px, 1fr) minmax(0, 32em); column-gap: 14px; }
.checks--trust li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline; row-gap: 6px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.checks--trust h3 { font-size: 17px; font-weight: 600; color: var(--g-hi); }
.checks--trust p { color: var(--g-dim); font-size: 14.5px; }
.leader { border-bottom: 2px dotted var(--line-2); transform: translateY(-5px); }
.pass { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--g); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 800px) {
  .checks--trust { grid-template-columns: auto minmax(0, 1fr); }
  .leader { display: none; }
  .checks--trust p { grid-column: 2; }
}

/* ---------- Footer ---------- */
.foot { margin-block-start: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line-2); background: #070c08; padding-block: 30px 34px; font-size: 14px; }
.foot__prompt { color: var(--g); font-size: 13.5px; margin-block-end: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot__prompt .pr { margin-inline-end: .5ch; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot__brand { display: grid; gap: 12px; align-content: start; }
.foot__brand p { color: var(--g-dim); max-width: 30ch; }
.foot__domain { color: var(--g) !important; }
.foot h2 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-dim); margin-block-end: 12px; font-weight: 600; }
.foot ul { display: grid; gap: 4px; }
.foot nav a { color: var(--g-soft); text-decoration: none; display: inline-block; padding: 4px 0; }
.foot nav a:hover { color: var(--ink); background: var(--g); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-block-start: 34px; padding-block-start: 20px; border-top: 1px dashed var(--line-2); color: var(--g-dim); font-size: 13px; }
.foot__note { color: var(--g-dim); }
.foot__lang { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
@media (max-width: 800px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .foot__lang { margin-inline-start: 0; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 150;
  inset-inline-start: 16px; bottom: 16px;
  max-width: calc(100vw - 32px);
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--g);
  box-shadow: 0 0 0 3px var(--bg), 0 0 30px -6px rgba(93, 255, 155, .5);
  color: var(--g-hi); font-size: 14px;
  transform: translateY(calc(100% + 30px));
  transition: transform .22s steps(5);
}
.toast.is-on { transform: none; }

/* ---------- Arabic ---------- */
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .h-disp { font-weight: 700; line-height: 1.32; text-shadow: 0 0 .35em rgba(93, 255, 155, .3); }
html[lang="ar"] .hero__title { font-size: clamp(40px, 4.6vw, 70px); }
html[lang="ar"] .sec__head h2 { font-size: clamp(30px, 3.3vw, 48px); }
html[lang="ar"] .band__title { font-size: clamp(40px, 4.4vw, 66px); }
html[lang="ar"] .trust__title { font-size: clamp(28px, 3vw, 42px); }
html[lang="ar"] .eyebrow, html[lang="ar"] .chip, html[lang="ar"] .btn, html[lang="ar"] .stat__k, html[lang="ar"] .tbtn,
html[lang="ar"] .add, html[lang="ar"] .cart, html[lang="ar"] .menu-btn, html[lang="ar"] .tile__by, html[lang="ar"] .job__state,
html[lang="ar"] .job__hint, html[lang="ar"] .foot h2, html[lang="ar"] .split__k, html[lang="ar"] .ls thead th { text-transform: none; }
html[lang="ar"] .eyebrow, html[lang="ar"] .stat__k { font-size: 14px; }
html[lang="ar"] .btn { font-size: 16px; }
html[lang="ar"] .add, html[lang="ar"] .tbtn { font-size: 14px; }
html[lang="ar"] .okline { font-size: 20px; }
html[lang="ar"] .btn__k { transform: scaleX(-1); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition-duration: 0s !important; }
html.rm .job__view::before { display: none; }
@media (prefers-reduced-motion: reduce) { .job__view::before { display: none; } }

@media (prefers-contrast: more) {
  :root { --g-dim: #b5d4c0; --g-faint: #8fb39c; --line-2: #4c9b6a; }
  .job__view::after { background: none; }
  body::after { display: none; }
}

/* =====================================================================
   Product page
   ===================================================================== */
.crumbs { padding-block: 22px 18px; font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; color: var(--g-dim); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--g-faint); margin-inline: .6ch; }
.crumbs a { color: var(--g-dim); text-decoration: none; }
.crumbs a:hover { color: var(--g); text-decoration: underline; }
.crumbs [aria-current] { color: var(--g); }


.pdp { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.viewer { position: sticky; top: calc(var(--hdr-h) + 14px); }
.viewer__stage {
  position: relative;
  height: clamp(420px, 66vh, 680px);
  background: #070d09;
  overflow: hidden;
}
.viewer__stage:focus-visible { outline-offset: -4px; }
.viewer__canvas { position: absolute; inset: 0; }
.viewer__canvas canvas { width: 100%; height: 100%; cursor: grab; }
.viewer__canvas canvas:active { cursor: grabbing; }
.viewer__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 90% 85% at 50% 50%, transparent 60%, rgba(0, 0, 0, .5) 100%);
}
.viewer__loading { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 10px; align-items: center; color: var(--g-dim); font-size: 14px; }
.viewer__loading[hidden] { display: none; }
.viewer__hint { transition: opacity .3s; }
.viewer.is-touched .viewer__hint { opacity: 0; }
.viewer__tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); }
.viewer__tools [data-zoom] { min-width: 40px; justify-content: center; font-size: 18px; }
.viewer__tools #lightBtn { margin-inline-start: auto; }
.viewer__tools #lightBtn[aria-pressed="false"] .led { background: var(--g-faint); box-shadow: none; }
.viewer__tools #lightBtn[aria-pressed="true"] .led { background: var(--ink); box-shadow: none; }
.swatch-dot { display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border: 1px solid var(--line-3); vertical-align: -1px; }

.buy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.buy .eyebrow { margin: 0; }
.buy__title { font-size: clamp(60px, 6.4vw, 98px); }
.buy__by { color: var(--g-dim); margin-top: -6px; }
.buy__price .price { font-size: clamp(48px, 4.6vw, 64px); }
.buy__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-dim); margin: 0 0 8px; padding: 0; }
.buy__k b { color: var(--g-hi); letter-spacing: .04em; text-transform: none; font-size: 14px; }
.buy__mat { padding: 14px 16px; border: 1px solid var(--line-2); background: var(--panel); }
.buy__matrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-end: 8px; }
.buy__note { color: var(--g-dim); font-size: 13.5px; }
.buy__petg { color: var(--g-soft); font-size: 14.5px; }
.buy__guide { display: inline-block; margin-top: 8px; font-size: 14px; }

.swatches { border: 0; margin: 0; padding: 0; min-width: 0; }
.swatches__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.swatch { position: relative; display: grid; gap: 8px; justify-items: center; padding: 10px 6px 9px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; text-align: center; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch__chip { width: 100%; height: 34px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -10px 16px rgba(0, 0, 0, .18); }
.swatch__name { font-size: 12.5px; color: var(--g-dim); line-height: 1.2; }
.swatch:hover { border-color: var(--line-3); }
.swatch:has(input:checked) { border-color: var(--g); box-shadow: 0 0 0 1px var(--g), 0 0 18px -6px rgba(93, 255, 155, .6); }
.swatch:has(input:checked) .swatch__name { color: var(--g); font-weight: 600; }
.swatch:has(input:checked)::before { content: "[x]"; position: absolute; top: -9px; inset-inline-end: 6px; padding: 0 4px; background: var(--bg); color: var(--g); font-size: 11px; line-height: 16px; }
.swatch:has(input:focus-visible) { outline: 2px dashed var(--amber); outline-offset: 3px; }

.pod { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed var(--amber-lo); color: var(--amber); font-weight: 600; font-size: 14.5px; background: rgba(255, 181, 71, .05); }
.buy__row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.qty__box { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); }
.qty__box button { min-width: 46px; min-height: 46px; background: transparent; border: 0; color: var(--g); font-size: 20px; }
.qty__box button:hover { background: var(--g); color: var(--ink); }
.qty__box output { display: grid; place-items: center; min-width: 56px; border-inline: 1px solid var(--line-2); font-family: var(--f-disp); font-size: 30px; color: var(--g-hi); }
.buy__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.buy__actions .btn { min-height: 56px; padding-inline: 14px; }
.btn.is-done { background: var(--g); box-shadow: 0 0 0 1px var(--g), 0 0 22px -4px rgba(93, 255, 155, .6); }
.rv-ico { width: 20px; height: 20px; flex: none; }
.rv-note { margin-top: -8px; color: var(--g-dim); font-size: 13px; text-align: end; }
.echo { font-size: 13px; color: var(--g-mid); padding: 10px 12px; background: #08100b; border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.echo .pr { margin-inline-end: .5ch; }

.pdp__info { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 52px); margin-top: clamp(32px, 4vw, 52px); }
.info__body { padding: 20px clamp(16px, 2vw, 26px) 24px; display: grid; gap: 12px; }
.info__h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-dim); font-weight: 600; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.specs dt { color: var(--g-dim); }
.specs dd { margin: 0; color: var(--g-hi); font-weight: 600; text-align: end; }

@media (max-width: 1000px) {
  .pdp, .pdp__info { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: relative; top: 0; }
  .viewer__stage { height: min(96vw, 520px); }
}
@media (max-width: 480px) {
  .buy__actions { grid-template-columns: minmax(0, 1fr); }
  .swatches__row { gap: 8px; }
  .swatch__name { font-size: 11.5px; }
  .viewer__tools .tbtn { min-height: 40px; }
  .rv-note { text-align: start; }
}
html[lang="ar"] .buy__title { font-size: clamp(40px, 4.4vw, 64px); }
html[lang="ar"] .buy__k, html[lang="ar"] .info__h { text-transform: none; font-size: 14px; }

/* =====================================================================
   Sell page
   ===================================================================== */
.shero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(26px, 4vw, 64px); align-items: center; padding-block: clamp(30px, 4.6vw, 70px) 0; }
.shero__copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.shero__copy .eyebrow { margin: 0; }
.shero__title { font-size: clamp(60px, 6.8vw, 110px); max-width: 10em; }
.shero__text { max-width: 48ch; font-size: clamp(15.5px, 1.25vw, 17.5px); color: var(--g-soft); }
.nolist { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nolist li { display: inline-flex; gap: 10px; align-items: baseline; color: var(--g-hi); font-weight: 600; }

.radar { min-width: 0; }
.radar__scope { padding: 14px 14px 4px; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(93, 255, 155, .08), transparent 62%), #070d09; }
.radar__scope svg { width: min(100%, 420px); height: auto; overflow: visible; direction: ltr; }
.rd-ring { fill: none; stroke: var(--line-2); stroke-width: .6; }
.rd-tick, .rd-axis { stroke: var(--line-2); stroke-width: .5; }
.rd-axis { stroke-dasharray: 1.5 2.5; }
.rd-sweep { transform-origin: 0 0; animation: radar 5.5s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.rd-path { stroke: var(--g-mid); stroke-width: .7; stroke-dasharray: 2 3; opacity: .7; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.rd-blip { fill: var(--g); filter: drop-shadow(0 0 2px var(--g)); animation: ping 2.7s ease-out infinite; animation-delay: var(--d); }
@keyframes ping { 0%, 70%, 100% { opacity: 1; } 85% { opacity: .35; } }
.rd-label { fill: var(--g-soft); font: 500 7px var(--f-ui); }
.rd-label--home { fill: var(--amber); font-weight: 700; }
.rd-home { fill: var(--amber); filter: drop-shadow(0 0 3px var(--amber)); }
.rd-home2 { fill: none; stroke: var(--amber); stroke-width: .7; opacity: .7; }
.radar__log {
  margin: 0; padding: 12px 14px 14px;
  border-top: 1px solid var(--line-2);
  font: 400 12px/1.7 var(--f-ui);
  color: var(--g-dim);
  white-space: pre; overflow: hidden;
  background: #08100b;
  text-align: left;
}
.fd-line { display: block; }
.fd-line.is-new { color: var(--g-hi); animation: newline .5s steps(3); }
@keyframes newline { from { background: rgba(93, 255, 155, .2); } to { background: transparent; } }
.fd-in { color: var(--g); }
.fd-file { color: var(--g-soft); }
.fd-est { color: var(--amber-lo); }
.fd-out { color: var(--amber); }
@media (max-width: 1000px) { .shero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .radar__log { font-size: 10.5px; padding-inline: 10px; } }

/* Six steps */
.ssteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sstep { display: grid; gap: 8px; align-content: start; padding: 18px 18px 20px; background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--g-mid); }
.sstep__n { font-size: 13px; color: var(--g-dim); }
.sstep__n .ok { margin-inline-end: 6px; }
.sstep h3 { font-size: 17.5px; font-weight: 600; color: var(--g-hi); line-height: 1.35; }
.sstep p:last-child { color: var(--g-dim); font-size: 14.5px; }
@media (max-width: 1000px) { .ssteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ssteps { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Calculator */
.badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--amber); color: var(--amber); background: rgba(255, 181, 71, .08); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.calc__in { display: grid; gap: 26px; padding: clamp(18px, 2.6vw, 32px); border-inline-end: 1px solid var(--line-2); min-width: 0; }
.calc__f { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.calc__lg { padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.drop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line-3); background: rgba(93, 255, 155, .03); color: var(--g-dim); }
.drop.is-over { border-color: var(--amber); background: rgba(255, 181, 71, .06); }
.drop__ico { color: var(--g); font-weight: 600; white-space: nowrap; }
.drop__txt { display: grid; gap: 2px; }
.drop__txt b { color: var(--g-hi); font-weight: 600; }
.drop__txt small { font-size: 13px; color: var(--amber); }
.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sample { position: relative; cursor: pointer; min-width: 0; }
.sample input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sample__card { display: grid; gap: 4px; justify-items: center; text-align: center; height: 100%; padding: 10px 6px 10px; border: 1px solid var(--line-2); background: var(--panel); transition: border-color .12s, background-color .12s; }
.sample__art { display: block; width: 64px; height: 64px; margin-block-end: 4px; }
.sample__name { font-size: 13px; font-weight: 600; color: var(--g-hi); line-height: 1.3; }
.sample__file { font-size: 10.5px; color: var(--g-dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample:hover .sample__card { border-color: var(--line-3); }
.sample input:checked + .sample__card { border-color: var(--g); background: var(--panel-3); box-shadow: 0 0 0 1px var(--g), 0 0 18px -6px rgba(93, 255, 155, .6); }
.sample input:focus-visible + .sample__card { outline: 2px dashed var(--amber); outline-offset: 3px; }
.est { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; background: #08100b; border: 1px solid var(--line); color: var(--g); font-size: 14px; line-height: 1.55; }
.est.is-reading { color: var(--amber); }
.matpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.matopt { position: relative; cursor: pointer; }
.matopt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.matopt__box { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--panel); }
.matopt__box b { font-family: var(--f-disp); font-size: 34px; font-weight: 400; line-height: 1; color: var(--g); }
.matopt__box small { color: var(--g-dim); font-size: 12.5px; }
.matopt input:checked + .matopt__box { background: var(--g); border-color: var(--g); }
.matopt input:checked + .matopt__box b, .matopt input:checked + .matopt__box small { color: var(--ink); }
.matopt input:focus-visible + .matopt__box { outline: 2px dashed var(--amber); outline-offset: 3px; }
.calc__help { font-size: 14px; justify-self: start; }
.price-in { display: flex; align-items: stretch; border: 1px solid var(--line-3); background: #08100b; max-width: 340px; }
.price-in:focus-within { border-color: var(--g); box-shadow: 0 0 0 1px var(--g); }
.price-in.is-bad { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.price-in__cur { display: grid; place-items: center; padding-inline: 14px; border-inline-end: 1px solid var(--line-2); color: var(--amber); font-weight: 700; }
.price-in input { flex: 1; width: 100%; min-width: 0; padding: 10px 14px; background: transparent; border: 0; outline: 0; font-family: var(--f-disp); font-size: 40px; line-height: 1; color: var(--amber); caret-color: var(--g); }
.linkbtn { justify-self: start; padding: 4px 0; background: none; border: 0; color: var(--g); text-decoration: underline; text-underline-offset: .2em; font-size: 14px; text-align: start; }
.linkbtn:hover { color: var(--g-hi); }

.calc__out { display: grid; gap: 16px; align-content: start; padding: clamp(18px, 2.6vw, 32px); background: rgba(7, 13, 9, .5); min-width: 0; }
.calc__lg--out { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.minbox { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--amber-lo); background: rgba(255, 181, 71, .05); }
.minbox__k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-lo); font-weight: 600; }
.minbox__v { font-family: var(--f-disp); font-size: clamp(56px, 5vw, 76px); line-height: .95; color: var(--amber); text-shadow: var(--glow-a); }
.results { margin: 0; display: grid; }
.results div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.results dt { color: var(--g-dim); }
.results dd { margin: 0; color: var(--g-hi); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results__earn dt { color: var(--g); font-weight: 600; }
.results__earn dd { font-family: var(--f-disp); font-size: 42px; font-weight: 400; line-height: 1; color: var(--g); text-shadow: var(--glow); }
.sbar { display: grid; gap: 6px; }
.sbar__k { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-dim); }
.sbar__track { display: flex; height: 22px; padding: 3px; gap: 2px; border: 1px solid var(--line-2); }
.sbar__track span { flex: 0 0 0; min-width: 0; transition: flex-basis .35s steps(8); }
.sbar__min { background: repeating-linear-gradient(90deg, var(--g-faint) 0 6px, transparent 6px 8px); }
.sbar__you { background: repeating-linear-gradient(90deg, var(--g) 0 6px, transparent 6px 8px); box-shadow: 0 0 8px rgba(93, 255, 155, .35); }
.sbar__us { background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 8px); }
.sbar__lg { display: flex; gap: 16px; font-size: 12.5px; }
.sbar__lg span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; vertical-align: -1px; }
.sbar__lg .m { color: var(--g-dim); }
.sbar__lg .m::before { background: var(--g-faint); }
.sbar__lg .y { color: var(--g); }
.sbar__lg .y::before { background: var(--g); }
.sbar__lg .u { color: var(--amber); }
.sbar__lg .u::before { background: var(--amber); }
.msg { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; font-size: 14.5px; line-height: 1.5; }
.msg--ok { border: 1px solid var(--line-3); color: var(--g-hi); }
.msg--bad { border: 1px solid var(--red); color: #ffc2b8; background: rgba(255, 128, 112, .06); }
.brk { border: 1px solid var(--line-2); }
.brk summary { cursor: pointer; padding: 10px 12px; color: var(--g); font-size: 14px; list-style: none; }
.brk summary::-webkit-details-marker { display: none; }
.brk summary::before { content: "[+] "; color: var(--g-dim); }
.brk[open] summary::before { content: "[-] "; }
.brk__list { margin: 0; padding: 0 12px 10px; display: grid; font-size: 13.5px; }
.brk__list div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--line-2); }
.brk__list dt { color: var(--g-dim); }
.brk__list dt small { color: var(--g-dim); font-size: 12px; }
.brk__list dd { margin: 0; color: var(--g-soft); white-space: nowrap; }
.brk__list .sub dd, .brk__list .sub dt { color: var(--g-hi); }
.brk__list .total { border-bottom: 0; }
.brk__list .total dt, .brk__list .total dd { color: var(--amber); font-weight: 700; }
.calc__note { display: grid; gap: 8px; padding: 18px clamp(18px, 2.6vw, 32px) 22px; border-top: 1px solid var(--line-2); background: #08100b; }
.calc__noteh { font-size: 12.5px; }
.calc__note h3 { font-size: 16px; font-weight: 600; color: var(--g-hi); }
.calc__note p:last-child { color: var(--g-dim); max-width: 90ch; font-size: 14.5px; }
@media (max-width: 1000px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
  .calc__in { border-inline-end: 0; border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 600px) {
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-in { max-width: none; }
  .drop { padding: 12px; }
}

/* Material guide */
.guide { overflow: hidden; }
.mg { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mg th, .mg td { padding: 14px clamp(12px, 1.8vw, 22px); text-align: start; vertical-align: top; border-bottom: 1px dashed var(--line-2); }
.mg thead th, .mg thead td { border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.mg__corner { width: 22%; }
.mg__name { font-family: var(--f-disp); font-size: clamp(44px, 4.4vw, 64px); font-weight: 400; line-height: 1; }
.mg__pla .mg__name { color: var(--g); text-shadow: var(--glow); }
.mg__petg .mg__name { color: var(--amber); text-shadow: var(--glow-a); }
.mg tbody th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--g-dim); font-weight: 600; }
.mg tbody td { color: var(--g-soft); font-size: 15px; }
.mg tbody td + td { border-inline-start: 1px solid var(--line-2); }
.mg thead th + th { border-inline-start: 1px solid var(--line-2); }
.mg__lead td { color: var(--g-hi) !important; font-weight: 600; }
.mg__price { font-family: var(--f-disp); font-size: 26px !important; color: var(--amber) !important; }
.mg__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px clamp(12px, 1.8vw, 22px) 20px; }
.note { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; font-size: 14.5px; }
.note b { color: var(--g-hi); }
.note--tip { border: 1px solid var(--line-3); color: var(--g-soft); }
.note--warn { border: 1px solid var(--amber-lo); color: var(--amber-hi); background: rgba(255, 181, 71, .05); }
.note--warn b { color: var(--amber); }
@media (max-width: 760px) {
  .mg, .mg tbody, .mg tr { display: block; }
  .mg thead { display: block; }
  .mg thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg__corner { display: none; }
  .mg tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
  .mg tbody th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 2px; background: transparent; }
  .mg tbody td { border-bottom: 0; font-size: 14px; padding-top: 6px; }
  .mg tbody td:first-of-type { border-inline-start: 0; }
  .mg__name { font-size: 42px; }
  .mg__notes { grid-template-columns: minmax(0, 1fr); }
}

/* Rules */
.rules__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 60px); padding: clamp(20px, 3vw, 40px); }
.rules__title { font-size: clamp(40px, 4.4vw, 64px); margin-block: 6px 14px; }
.rules__text { color: var(--g-soft); max-width: 48ch; }
.rules__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rules__h { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-dim); font-weight: 600; margin-block-end: 6px; }
.rules__h--deny { color: var(--red); }
.checks--deny li { color: #ffd3cc; }
@media (max-width: 1000px) { .rules__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .rules__lists { grid-template-columns: minmax(0, 1fr); } }

/* CTA */
.scta { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: clamp(70px, 10vw, 130px) 0; }
.scta__title { font-size: clamp(50px, 6vw, 96px); max-width: 14em; }
.scta__text { color: var(--g-soft); font-size: clamp(16px, 1.4vw, 19px); }
.btn--xl { min-height: 60px; padding-inline: 34px; font-size: 16px; }
.scta__note { color: var(--g-dim); font-size: 13px; }

html[lang="ar"] .shero__title { font-size: clamp(40px, 4.6vw, 70px); }
html[lang="ar"] .rules__title, html[lang="ar"] .scta__title { font-size: clamp(30px, 3.4vw, 50px); }
html[lang="ar"] .calc__lg, html[lang="ar"] .minbox__k, html[lang="ar"] .sbar__k, html[lang="ar"] .badge,
html[lang="ar"] .mg tbody th, html[lang="ar"] .rules__h { text-transform: none; font-size: 14px; }
html[lang="ar"] .calc__lg { font-size: 15px; }

@media (max-width: 560px) {
  .viewer__hint { font-size: 10.5px; letter-spacing: .02em; inset-inline-end: 8px; bottom: 8px; }
  .viewer__tools #lightBtn { margin-inline-start: 0; }
  .viewer__tools { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr); }
  .viewer__tools #pathBtn { grid-column: 1 / -1; justify-content: center; }
  .viewer__tools #lightBtn { justify-content: center; }
}

/* Long commands wrap like a real terminal on narrow screens */
@media (max-width: 760px) {
  .cmd, .prompt { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
  .cmd .type, .prompt .type { display: inline; }
}
