/* Dev Crow Egg · Yolk · product + sell page styles (loaded after yolk.css) */

.pd-price, .field__out, .earn__big, .receipt__min strong, .price-in input, .seg__face b, .qty__box input { font-family: var(--f-num); }

/* =========================================================
   PRODUCT PAGE
   ========================================================= */
.pd-hero { position: relative; background: var(--cream); padding-top: calc(var(--hdr-h) + 22px); padding-bottom: clamp(80px, 9vw, 120px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #A99FB5; }
.crumbs a { text-decoration: none; border-radius: 4px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 76px; align-items: start; }

.viewer { position: relative; }
.viewer__frame {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1.02; max-height: 740px;
  background: #FFF0CF; border: var(--line) solid var(--ink); border-radius: 34px;
  box-shadow: var(--sx) 8px 0 var(--ink);
  transition: background-color .9s ease;
}
.viewer__frame.is-night { background: #1D1830; }
.viewer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.viewer__canvas:active { cursor: grabbing; }
.viewer__fallback { display: none; }
.no-webgl .viewer__fallback { display: grid; place-items: center; position: absolute; inset: 8%; }
.viewer__hint {
  position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--shell); border: 2.5px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 14px; pointer-events: none;
  transition: opacity .4s ease, translate .4s var(--spring);
}
.viewer__hint svg { width: 18px; height: 18px; }
.viewer__hint.is-gone { opacity: 0; translate: 0 -8px; }
.viewer__tools { position: absolute; z-index: 2; bottom: 16px; inset-inline: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.led {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  border: var(--line) solid var(--ink); border-radius: 999px; background: var(--shell);
  font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: calc(var(--sx) * .6) 3px 0 var(--ink);
  transition: transform .25s var(--spring), box-shadow .25s var(--spring);
}
[dir="rtl"] .led { padding: 6px 6px 6px 16px; }
.led:active { transform: translate(calc(var(--sx) * .6), 3px) scale(.96); box-shadow: 0 0 0 var(--ink); }
.led__knob { position: relative; flex-shrink: 0; width: 48px; height: 28px; border-radius: 999px; background: var(--ink-2); border: 2.5px solid var(--ink); transition: background-color .3s ease; }
.led__knob::after {
  content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--cream); transition: translate .4s var(--spring), background-color .3s ease, box-shadow .3s ease;
}
.led[aria-pressed="true"] .led__knob { background: var(--crow); }
.led[aria-pressed="true"] .led__knob::after { translate: 20px 0; background: var(--yolk); box-shadow: 0 0 14px 4px rgba(255, 198, 41, .85); }
[dir="rtl"] .led[aria-pressed="true"] .led__knob::after { translate: -20px 0; }
.icon-btn {
  width: 50px; height: 50px; display: grid; place-items: center; flex-shrink: 0;
  border: var(--line) solid var(--ink); border-radius: 50%; background: var(--shell); cursor: pointer;
  box-shadow: calc(var(--sx) * .6) 3px 0 var(--ink); transition: rotate .6s var(--spring);
}
.icon-btn svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { rotate: -200deg; } }
.viewer__crow { position: absolute; z-index: 3; top: -98px; inset-inline-end: 6px; width: 112px; }
.viewer__crow .bubble { inset-inline-start: 74%; bottom: 62%; max-width: 200px; }
[dir="rtl"] .viewer__crow .crow { scale: -1 1; }

.buybox { padding-top: 4px; }
.pd-title {
  margin: 20px 0 14px;
  font-family: var(--f-brand); font-weight: 800; font-stretch: 75%;
  font-size: clamp(50px, 5.8vw, 94px); line-height: .86; letter-spacing: -.025em;
}
.pd-maker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; color: var(--ink-soft); }
.pd-maker a { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--tomato); }
.pd-maker__avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--yolk); border: 2.5px solid var(--ink); }
.pd-maker__avatar svg { width: 15px; height: 18px; }
.pd-price {
  display: inline-block; margin: 24px 0 26px; padding: 10px 22px 12px;
  font-weight: 800; font-stretch: 80%; font-size: clamp(40px, 4vw, 58px); line-height: 1;
  background: var(--tomato); border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: var(--shadow); rotate: -2.5deg;
}
.pd-row { display: grid; gap: 10px; padding-block: 18px; border-top: 2.5px dashed rgba(22, 19, 28, .28); }
.pd-row__label { font-family: var(--f-display); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
:lang(ar) .pd-row__label { text-transform: none; letter-spacing: 0; font-size: 17px; }
.pd-row__val { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip--lg { font-size: 15px; padding: 5px 14px; }
.pd-note { font-size: 15px; line-height: 1.4; color: var(--ink-soft); max-width: 38ch; }
.swatches { min-width: 0; margin: 0; padding: 18px 0 22px; border: 0; border-top: 2.5px dashed rgba(22, 19, 28, .28); }
.swatches legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; }
[dir="rtl"] .swatches legend { float: right; }
.swatches legend strong { color: var(--crow); text-transform: none; letter-spacing: 0; }
.swatches__row { clear: both; display: flex; flex-wrap: wrap; gap: 16px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch__dot {
  display: block; width: 54px; height: 54px; border-radius: 50%;
  background: var(--c); border: var(--line) solid var(--ink);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .14), inset 0 6px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--spring), outline-offset .25s var(--spring);
}
@media (hover: hover) and (pointer: fine) { .swatch:hover .swatch__dot { transform: translateY(-4px) rotate(-10deg); } }
.swatch input:checked + .swatch__dot { outline: 3px solid var(--ink); outline-offset: 4px; }
.swatch input:focus-visible + .swatch__dot { outline: 3px dashed var(--crow); outline-offset: 6px; }
.pod {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 12px 16px;
  background: var(--shell); border: 2.5px dashed var(--ink); border-radius: 18px; font-weight: 700;
}
.pod svg { width: 40px; height: 40px; flex-shrink: 0; }
.buy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.qty { display: grid; gap: 8px; }
.qty__box { display: flex; align-items: center; height: 62px; padding: 5px; background: var(--shell); border: var(--line) solid var(--ink); border-radius: 999px; }
.qty__box button { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--yolk-soft); cursor: pointer; transition: transform .2s var(--spring), background-color .2s; }
.qty__box button:hover { background: var(--yolk); }
.qty__box button:active { transform: scale(.88); }
.qty__box button svg { width: 18px; height: 18px; }
.qty__box input { width: 46px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 24px; -moz-appearance: textfield; appearance: textfield; }
.qty__box input::-webkit-inner-spin-button, .qty__box input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.btn--add { flex: 1; min-width: 220px; height: 62px; font-size: 21px; }
.btn--add svg { width: 26px; height: 26px; }
.btn--add.is-added { --bg: var(--leaf); --fg: #fff; }
.mini-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 14px; font-weight: 700; }
.mini-trust li { display: flex; align-items: center; gap: 6px; }
.mini-trust svg { width: 16px; height: 16px; color: var(--leaf); }

.pd-info__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.info-card { background: var(--cream); border: var(--line) solid var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 42px); box-shadow: var(--shadow); }
.info-card p { font-size: 18px; line-height: 1.6; max-width: 58ch; }
.info-card p + p { margin-top: 14px; }
.info-card__title { margin-bottom: 18px; font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.info-card--specs { background: var(--yolk); rotate: 1deg; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 2.5px dashed rgba(22, 19, 28, .3); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; text-align: end; font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: 18px; }

/* =========================================================
   SELL PAGE
   ========================================================= */
.sell-hero { position: relative; isolation: isolate; overflow: clip; background: var(--crow); color: var(--cream); padding-top: calc(var(--hdr-h) + 16px); padding-bottom: clamp(70px, 8vw, 120px); --focus: var(--yolk); }
.sell-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 244, 220, .16) 1.5px, transparent 1.7px); background-size: 24px 24px;
}
.sell-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); min-height: clamp(560px, calc(100svh - var(--hdr-h) - 40px), 760px); }
.page-hero__title {
  margin: 8px 0 24px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(54px, 7.2vw, 114px); line-height: .86; letter-spacing: -.025em;
}
.page-hero__title .line { display: block; }
.line--yolk { color: var(--yolk); }
:lang(ar) .page-hero__title { font-stretch: 100%; line-height: 1.12; letter-spacing: 0; font-size: clamp(46px, 6vw, 92px); }
.sell-hero__lede { max-width: 38ch; font-size: clamp(18px, 1.45vw, 21px); color: #EEEAFF; }
.nopes { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.nope {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 9px;
  background: var(--shell); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 999px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: 17px; line-height: 1.1;
  box-shadow: calc(var(--sx) * .6) 3px 0 var(--ink);
}
[dir="rtl"] .nope { padding: 8px 9px 8px 16px; }
.nope:nth-child(1) { rotate: -2deg; }
.nope:nth-child(2) { rotate: 1.5deg; }
.nope:nth-child(3) { rotate: -1deg; }
.nope svg { width: 24px; height: 24px; flex-shrink: 0; }
.printer-stage { position: relative; height: clamp(440px, 64svh, 640px); }
.printer-stage__blob {
  position: absolute; inset: 7% 3% 9%;
  background: var(--yolk); border: var(--line) solid var(--ink);
  border-radius: 46% 54% 52% 48% / 54% 44% 56% 46%;
  box-shadow: var(--sx) 9px 0 var(--ink);
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob {
  50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; }
  100% { border-radius: 50% 50% 56% 44% / 50% 48% 52% 50%; }
}
.printer-stage__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.printer-status {
  position: absolute; z-index: 2; bottom: 3%; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; padding: 9px 18px;
  background: var(--ink); color: var(--cream); border: var(--line) solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.printer-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 3px rgba(255, 74, 46, .3); animation: pulse 1s ease-in-out infinite; }
.is-done .printer-status__dot { background: #7CF0B8; box-shadow: 0 0 0 3px rgba(124, 240, 184, .3); }
.printer-status__pct { min-width: 3.4ch; text-align: end; font-family: var(--f-num); font-weight: 800; color: var(--yolk); }
@keyframes pulse { 50% { opacity: .35; } }

/* board game */
.board { position: relative; }
.board__path { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.board__tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(32px, 7vw, 110px); }
.tile--1 { grid-area: 1 / 1; --bg: var(--yolk-soft); rotate: -1.2deg; }
.tile--2 { grid-area: 1 / 2; --bg: var(--crow-soft); rotate: 1deg; }
.tile--3 { grid-area: 1 / 3; --bg: var(--shell); rotate: -.8deg; }
.tile--4 { grid-area: 2 / 3; --bg: var(--tomato-soft); rotate: 1.3deg; }
.tile--5 { grid-area: 2 / 2; --bg: #DDF5E7; rotate: -1deg; }
.tile--6 { grid-area: 2 / 1; --bg: var(--yolk); rotate: .8deg; }
.tile {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 8px;
  padding: 28px 22px 26px; text-align: center;
  background: var(--bg); border: var(--line) solid var(--ink); border-radius: 26px;
  box-shadow: var(--shadow);
}
.tile__num {
  position: absolute; top: -21px; inset-inline-start: 20px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--yolk); border-radius: 50%;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 21px; line-height: 1;
}
.tile__flag {
  position: absolute; top: -19px; inset-inline-end: 18px; padding: 3px 12px 5px;
  background: var(--tomato); border: 2.5px solid var(--ink); border-radius: 9px;
  font-family: var(--f-hand); font-weight: 700; font-size: 23px; line-height: 1; rotate: 6deg;
}
:lang(ar) .tile__flag { font-size: 17px; padding: 5px 12px; }
.tile__flag--end { background: #7CF0B8; }
.tile__icon { width: 66px; height: 66px; margin-top: 6px; }
.tile h3 { max-width: 18ch; font-family: var(--f-display); font-weight: 800; font-stretch: 86%; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.08; }
:lang(ar) .tile h3 { line-height: 1.35; }
.tile p { max-width: 30ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.board__token { position: absolute; left: 0; top: 0; z-index: 2; width: 46px; height: 55px; margin: -28px 0 0 -23px; pointer-events: none; filter: drop-shadow(3px 4px 0 var(--ink)); }

/* calculator */
.calc-sec { background: var(--yolk); }
.calc { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.calc__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(22px, 3vw, 38px); background: var(--shell); border: var(--line) solid var(--ink); border-radius: 30px; box-shadow: var(--sx) 7px 0 var(--ink); }
.rates { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; background: var(--crow); color: var(--cream); border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
:lang(ar) .rates { letter-spacing: 0; font-size: 15px; }
.rates svg { width: 16px; height: 16px; }
.field__label { font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: 19px; }
.field__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.field__out { min-width: 4.6ch; padding: 3px 12px; text-align: center; font-weight: 800; font-stretch: 85%; font-size: 24px; line-height: 1.15; background: var(--yolk-soft); border: 2.5px solid var(--ink); border-radius: 12px; }
.seg { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend { padding: 0; margin-bottom: 10px; }
.seg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg__face {
  display: grid; gap: 4px; padding: 14px 18px;
  background: var(--cream); border: var(--line) solid var(--ink); border-radius: 18px;
  transition: transform .35s var(--spring), background-color .2s ease, box-shadow .35s var(--spring), color .2s ease;
}
.seg__face b { font-weight: 800; font-stretch: 82%; font-size: 28px; line-height: 1; }
.seg__face small { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.seg__opt input:checked + .seg__face { background: var(--ink); color: var(--yolk); box-shadow: calc(var(--sx) * .9) 5px 0 var(--tomato); transform: rotate(-1.5deg); }
.seg__opt input:checked + .seg__face small { color: var(--cream); }
.seg__opt input:focus-visible + .seg__face { outline: 3px solid var(--crow); outline-offset: 3px; }
.seg__opt:active .seg__face { transform: scale(.96); }

.range { --p: 50%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 38px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: linear-gradient(to right, var(--tomato) var(--p), var(--cream) var(--p)); }
[dir="rtl"] .range::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--tomato) var(--p), var(--cream) var(--p)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 37px; margin-top: -13px;
  background: var(--yolk); border: var(--line) solid var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 2px 3px 0 var(--ink); transition: transform .25s var(--spring);
}
.range:active::-webkit-slider-thumb { transform: scale(1.18) rotate(-10deg); }
.range::-moz-range-track { height: 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--cream); }
.range::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--tomato); }
.range::-moz-range-thumb { width: 26px; height: 32px; background: var(--yolk); border: var(--line) solid var(--ink); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--crow); outline-offset: 3px; }
.range:focus-visible::-moz-range-thumb { outline: 3px solid var(--crow); outline-offset: 3px; }
.range__ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.price-in { display: flex; align-items: stretch; height: 66px; margin-top: 10px; overflow: hidden; background: #fff; border: var(--line) solid var(--ink); border-radius: 18px; transition: border-color .2s ease, background-color .2s ease; }
.price-in:focus-within { outline: 3px solid var(--crow); outline-offset: 3px; }
.price-in__cur { display: grid; place-items: center; padding-inline: 16px; background: var(--yolk-soft); border-inline-end: var(--line) solid var(--ink); font-weight: 800; }
.price-in input { flex: 1; width: 0; min-width: 0; padding-inline: 16px; border: 0; background: transparent; font-weight: 800; font-size: 30px; }
.price-in input:focus { outline: none; }
.is-below .price-in { border-color: #C2280F; background: #FFF0EC; animation: shake .4s var(--ease-out); }
@keyframes shake { 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 15px; font-weight: 700; }
.suggest__btn { padding: 4px 13px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--yolk); font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .25s var(--spring); }
.suggest__btn:active { transform: scale(.92); }
.calc__msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #FFE1D9; border: 2.5px solid #C2280F; color: #A41F0B; font-weight: 800; }
.calc__msg:empty { display: none; }

.receipt {
  position: relative; padding: 28px 28px 30px;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 22px;
  box-shadow: var(--sx) 7px 0 var(--ink); rotate: 1deg;
  font-variant-numeric: tabular-nums;
}
.receipt__title { margin-bottom: 12px; font-family: var(--f-hand); font-weight: 700; font-size: 29px; line-height: 1; color: var(--crow); }
:lang(ar) .receipt__title { font-size: 21px; }
.receipt__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 2px dotted rgba(22, 19, 28, .3); font-weight: 600; }
.receipt__rows dd { margin: 0; font-weight: 800; white-space: nowrap; }
.receipt__rows .receipt__sub { border-bottom: 2.5px solid var(--ink); }
.receipt__sub dt, .receipt__sub dd { font-weight: 800; }
.receipt__min { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 16px; background: var(--ink); color: var(--cream); border-radius: 14px; font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.receipt__min strong { font-weight: 800; font-stretch: 85%; font-size: 34px; line-height: 1; color: var(--yolk); white-space: nowrap; }
.earn { position: relative; margin: 26px -28px -30px; padding: 26px 28px 30px; background: var(--yolk-soft); border-top: 3px dashed var(--ink); border-radius: 0 0 19px 19px; }
.earn::before, .earn::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--yolk); border: var(--line) solid var(--ink); }
.earn::before { left: -17px; clip-path: inset(0 0 0 50%); }
.earn::after { right: -17px; clip-path: inset(0 50% 0 0); }
.earn__label { font-family: var(--f-display); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
:lang(ar) .earn__label { text-transform: none; letter-spacing: 0; font-size: 18px; }
.earn__big { margin: 6px 0 8px; font-weight: 800; font-stretch: 75%; font-size: clamp(58px, 6vw, 92px); line-height: .9; letter-spacing: -.02em; transition: color .3s ease; }
.is-below .earn__big { color: #A79FB4; }
.earn__note { font-size: 15px; font-weight: 600; line-height: 1.45; }
.split { display: flex; height: 22px; margin-top: 18px; overflow: hidden; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 999px; }
.split__seg { flex: 0 0 0; transition: flex-grow .45s var(--ease-out); }
.split__seg--min { background: var(--ink); }
.split__seg--you { background: var(--tomato); }
.split__seg--us { background: var(--crow); }
.split__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.split__legend li { display: flex; align-items: center; gap: 6px; }
.k { width: 13px; height: 13px; border: 2px solid var(--ink); border-radius: 4px; }
.k--min { background: var(--ink); }
.k--you { background: var(--tomato); }
.k--us { background: var(--crow); }
.calc__crow { position: absolute; z-index: 3; bottom: -132px; inset-inline-start: 26px; width: 108px; }
.calc__crow .bubble { inset-inline-start: 88%; bottom: 50%; max-width: 250px; }
[dir="rtl"] .calc__crow .crow { scale: -1 1; }
.calc-sec { padding-bottom: clamp(170px, 14vw, 210px); }

/* rules */
.rules__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 84px); }
.rules__kicker { margin-bottom: 14px; font-family: var(--f-hand); font-weight: 700; font-size: 31px; line-height: 1; color: var(--yolk); }
:lang(ar) .rules__kicker { font-size: 22px; }
.nope-cards { display: grid; gap: 18px; }
.nope-card {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; padding-inline-end: 132px;
  background: var(--shell); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 22px;
  box-shadow: var(--sx) 6px 0 var(--ink);
}
.nope-card:nth-child(1) { rotate: -1deg; }
.nope-card:nth-child(2) { margin-inline-start: 30px; rotate: .8deg; }
.nope-card:nth-child(3) { margin-inline-start: 10px; rotate: -.6deg; }
.nope-card > svg { width: 58px; height: 58px; flex-shrink: 0; }
.nope-card h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 86%; font-size: 21px; line-height: 1.1; }
:lang(ar) .nope-card h3 { line-height: 1.35; }
.nope-card p { font-size: 15px; color: var(--ink-2); }
.stamp {
  position: absolute; top: 50%; inset-inline-end: 20px; translate: 0 -50%; rotate: -12deg;
  padding: 3px 12px 4px; border: 3px solid #C2280F; border-radius: 10px; color: #C2280F;
  font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: .1em; text-transform: uppercase;
}
:lang(ar) .stamp { letter-spacing: 0; }

/* cta band */
.cta-band { position: relative; overflow: clip; padding-block: clamp(80px, 9vw, 130px); text-align: center; background: var(--tomato); border-top: var(--line) solid var(--ink); }
.cta-band__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.cta-band__crow { width: 118px; margin-bottom: -6px; }
.cta-band__title { max-width: 14ch; font-family: var(--f-display); font-weight: 800; font-stretch: 76%; font-size: clamp(46px, 6.4vw, 100px); line-height: .9; letter-spacing: -.02em; text-wrap: balance; }
:lang(ar) .cta-band__title { font-stretch: 100%; line-height: 1.15; letter-spacing: 0; font-size: clamp(38px, 5vw, 76px); }
.cta-band__lede { max-width: 40ch; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }
.cta-band .btn { margin-top: 8px; }

/* =========================================================
   RESPONSIVE (product + sell)
   ========================================================= */
@media (max-width: 1100px) {
  .rules__grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .receipt { rotate: 0deg; }
}
@media (max-width: 960px) {
  .pd-grid { grid-template-columns: 1fr; margin-top: 90px; }
  .pd-info__grid { grid-template-columns: 1fr; }
  .info-card--specs { rotate: 0deg; }
  .sell-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .printer-stage { height: clamp(380px, 100vw, 520px); }
  .board__tiles { grid-template-columns: 1fr 1fr; }
  .board__tiles > .tile { grid-area: auto; }
  .board__path, .board__token { display: none; }
}
@media (max-width: 560px) {
  .pd-title { font-size: 52px; }
  .viewer__frame { border-radius: 26px; }
  .viewer__crow { width: 92px; top: -82px; inset-inline-end: 24px; }
  .viewer__crow .bubble { max-width: 170px; inset-inline-start: auto; inset-inline-end: 72%; bottom: 6%; transform-origin: 100% 100%; }
  .viewer__crow .bubble::after { inset-inline-start: auto; inset-inline-end: 16px; }
  .viewer__hint { font-size: 12.5px; padding: 6px 11px; }
  .led { font-size: 13.5px; }
  .buy-row { align-items: stretch; }
  .btn--add { min-width: 0; }
  .board__tiles { grid-template-columns: 1fr; row-gap: 40px; }
  .nope-card { padding-inline-end: 22px; padding-top: 30px; }
  .nope-card:nth-child(n) { margin-inline-start: 0; }
  .stamp { top: 0; translate: 0 -40%; font-size: 16px; }
  .calc__crow { width: 86px; inset-inline-start: 4px; bottom: -124px; }
  .calc__crow .bubble { max-width: 200px; }
  .earn { margin-inline: -20px; padding-inline: 20px; }
  .receipt { padding-inline: 20px; }
  .printer-status { font-size: 13px; padding: 7px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .printer-stage__blob, .printer-status__dot { animation: none; }
}

/* =========================================================
   CALCULATOR v2: file drop + slicer estimate + note
   ========================================================= */
.calc__left { display: grid; gap: 34px; align-content: start; min-width: 0; }
.step-dot {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 9px;
  border-radius: 50%; background: var(--ink); color: var(--yolk);
  font-family: var(--f-num); font-weight: 800; font-size: 14px; line-height: 1; vertical-align: 3px;
}
.dropzone { min-width: 0; margin: 0; padding: 0; border: 0; }
.dropzone legend { padding: 0; margin-bottom: 12px; }
.dropzone__box {
  padding: 16px; border: 3px dashed var(--ink); border-radius: 22px;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(22, 19, 28, .1) 1.3px, transparent 1.4px); background-size: 14px 14px;
  transition: background-color .2s ease, border-color .2s ease, transform .35s var(--spring);
}
.dropzone__box.is-over { background-color: var(--yolk-soft); border-color: var(--tomato); transform: scale(1.015); }
.dropzone__hint { display: flex; align-items: center; gap: 14px; }
.dropzone__icon { width: 40px; height: 47px; flex-shrink: 0; }
.dropzone__title { font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: 19px; line-height: 1.15; }
.dropzone__proto { margin-top: 2px; font-family: var(--f-hand); font-weight: 700; font-size: 21px; line-height: 1.1; color: var(--crow); transition: color .2s ease; }
:lang(ar) .dropzone__proto { font-size: 16px; line-height: 1.5; }
.dropzone__proto.is-nudge { color: #C2280F; }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.file { position: relative; cursor: pointer; min-width: 0; }
.file input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.file__face {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px;
  background: var(--shell); border: 2.5px solid var(--ink); border-radius: 16px;
  transition: transform .35s var(--spring), background-color .2s ease, color .2s ease, box-shadow .35s var(--spring);
}
[dir="rtl"] .file__face { padding: 7px 7px 7px 10px; }
@media (hover: hover) and (pointer: fine) { .file:hover .file__face { transform: translateY(-2px); } }
.file:active .file__face { transform: scale(.96); }
.file__art { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; background: var(--yolk-soft); border: 2px solid var(--ink); border-radius: 11px; }
.file__art svg { width: 112%; height: auto; }
.file__txt { display: grid; min-width: 0; }
.file__name { font-weight: 800; font-size: 15px; line-height: 1.15; }
.file__ext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.file input:checked + .file__face { background: var(--ink); color: var(--cream); box-shadow: calc(var(--sx) * .8) 4px 0 var(--tomato); transform: rotate(-1deg); }
.file input:checked + .file__face .file__ext { color: #CFC6DD; }
.file input:checked + .file__face .file__art { background: var(--cream); }
.file input:focus-visible + .file__face { outline: 3px solid var(--crow); outline-offset: 3px; }

.estimate {
  position: relative; margin-top: 14px; min-height: 78px; padding: 14px 16px;
  background: var(--ink); color: var(--cream); border-radius: 16px;
  font-size: 15.5px; line-height: 1.5;
}
.estimate b { font-family: var(--f-num); font-weight: 800; font-size: 1.28em; color: var(--yolk); white-space: nowrap; }
.estimate__slicing { display: none; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; }
.estimate.is-slicing .estimate__slicing { display: flex; }
.estimate.is-slicing .estimate__text { display: none; }
.estimate__bar { flex: 1; height: 14px; overflow: hidden; border: 2px solid var(--cream); border-radius: 999px; background: rgba(255, 244, 220, .12); }
.estimate__bar i {
  display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center;
  background: repeating-linear-gradient(-45deg, var(--yolk) 0 8px, var(--tomato) 8px 16px);
}
[dir="rtl"] .estimate__bar i { transform-origin: right center; }
.estimate.is-slicing .estimate__bar i { animation: slice .72s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes slice { to { transform: scaleX(1); } }

.mat-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-weight: 800; font-size: 15px; color: var(--ink); border-radius: 6px;
  text-decoration: underline wavy var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.mat-link svg { width: 18px; height: 18px; transition: translate .3s var(--spring); }
@media (hover: hover) and (pointer: fine) { .mat-link:hover { color: var(--crow); } .mat-link:hover svg { translate: 0 3px; } }

.slicer-note {
  position: relative; padding: 28px 26px 22px;
  background: var(--crow-soft); border: var(--line) solid var(--ink); border-radius: 22px;
  box-shadow: var(--shadow); rotate: -1deg;
}
.slicer-note::before {
  content: ""; position: absolute; top: -15px; left: 50%; width: 112px; height: 26px; margin-left: -56px;
  background: rgba(255, 198, 41, .92); border: 2px solid var(--ink); border-radius: 4px; rotate: 3deg;
}
.slicer-note__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--f-display); font-weight: 800; font-stretch: 86%; font-size: 21px; line-height: 1.15; }
.slicer-note__title svg { width: 32px; height: 32px; flex-shrink: 0; }
.slicer-note p { font-size: 15.5px; line-height: 1.55; }
.slicer-note__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.slicer-note__chips li { padding: 3px 11px; background: var(--shell); border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 13px; }
.receipt__rows dt { display: grid; }
.receipt__note { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }

/* =========================================================
   MATERIAL GUIDE
   ========================================================= */
.materials .sec-title { max-width: 22ch; margin-inline: auto; }
.mat-card { overflow: hidden; background: var(--shell); border: var(--line) solid var(--ink); border-radius: 30px; box-shadow: var(--sx) 8px 0 var(--ink); }
.mat-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.mat-corner { width: 21%; padding: 20px 22px; vertical-align: bottom; background: var(--shell); border-bottom: var(--line) solid var(--ink); }
.mat-corner__vs { display: inline-block; font-family: "Caveat", cursive; font-weight: 700; font-size: 36px; line-height: 1; color: var(--tomato); rotate: -8deg; }
.mat-head {
  padding: 20px 26px; text-align: start; vertical-align: middle; white-space: nowrap;
  border-inline-start: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
}
.mat-head--pla { background: var(--yolk); }
.mat-head--petg { background: var(--crow); color: var(--cream); }
.spool { display: inline-block; width: 64px; height: 64px; margin-inline-end: 14px; vertical-align: middle; transition: rotate .9s var(--spring); }
@media (hover: hover) and (pointer: fine) { .mat-head:hover .spool { rotate: 200deg; } }
.mat-head__name { display: inline-block; vertical-align: middle; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-stretch: 78%; font-size: clamp(42px, 4.4vw, 66px); line-height: 1; letter-spacing: -.01em; }
.mat-table tbody th {
  padding: 18px 22px; text-align: start; vertical-align: top;
  font-family: var(--f-hand); font-weight: 700; font-size: 25px; line-height: 1.05; color: var(--crow);
  background: var(--shell);
}
:lang(ar) .mat-table tbody th { font-size: 18px; line-height: 1.45; }
.mat-table tbody td { padding: 18px 26px; vertical-align: top; font-size: 16.5px; line-height: 1.5; border-inline-start: var(--line) solid var(--ink); }
.mat-table tbody td:nth-child(2) { background: #FFF2C8; }
.mat-table tbody td:nth-child(3) { background: #ECE8FF; }
.mat-table tbody tr + tr > * { border-top: 2.5px dashed rgba(22, 19, 28, .22); }
.mat-row--lead td { font-family: var(--f-display); font-weight: 800; font-stretch: 88%; font-size: 20px; line-height: 1.25; }
:lang(ar) .mat-row--lead td { line-height: 1.5; }
.mat-price { font-family: var(--f-num); font-weight: 800; font-stretch: 86%; font-size: 23px; }
.thermo { position: relative; display: block; max-width: 250px; height: 15px; margin-top: 12px; overflow: hidden; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; }
.thermo i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--t); background: linear-gradient(to right, var(--yolk), var(--tomato)); border-inline-end: 2.5px solid var(--ink); }
[dir="rtl"] .thermo i { background: linear-gradient(to left, var(--yolk), var(--tomato)); }

.mat-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.tip { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); font-size: 16.5px; line-height: 1.5; }
.tip svg { width: 48px; height: 48px; flex-shrink: 0; }
.tip strong { margin-inline-end: 4px; font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.tip--sure { background: var(--yolk); rotate: -.8deg; }
.tip--know { background: var(--tomato-soft); rotate: .8deg; }

@media (max-width: 1100px) {
  .calc__left { display: contents; }
  .calc__panel { order: 1; }
  .receipt { order: 2; }
  .slicer-note { order: 3; margin-top: 12px; }
}
@media (max-width: 760px) {
  .mat-table, .mat-table thead, .mat-table tbody { display: block; }
  .mat-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mat-corner { display: none; }
  .mat-head { padding: 14px; white-space: normal; }
  .mat-head--pla { border-inline-start: 0; }
  .spool { width: 40px; height: 40px; margin-inline-end: 8px; }
  .mat-head__name { font-size: 34px; }
  .mat-table tbody th { grid-column: 1 / -1; padding: 14px 16px 6px; font-size: 22px; }
  .mat-table tbody td { padding: 8px 14px 16px; font-size: 15px; }
  .mat-table tbody td:nth-child(2) { border-inline-start: 0; }
  .mat-table tbody tr + tr > td { border-top: 0; }
  .mat-row--lead td { font-size: 17px; }
  .mat-price { font-size: 18px; }
  .mat-tips { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .files { grid-template-columns: 1fr; }
}

/* ---------- see it in your room (shared module: ../shared/room-view) ---------- */
:root {
  --rv-bg: #FFFAEE;
  --rv-surface: #FFF4DC;
  --rv-text: #16131C;
  --rv-muted: #5A5366;
  --rv-line: rgba(22, 19, 28, .85);
  --rv-accent: #FFC629;
  --rv-accent-text: #16131C;
  --rv-radius: 22px;
  --rv-font: var(--f-body);
  --rv-font-display: var(--f-display);
}
.room-cta { margin-top: 18px; display: grid; gap: 10px; }
.btn--room { width: 100%; height: 58px; font-size: 19px; }
.btn--room svg { width: 26px; height: 26px; }
.room-cta__note { text-align: center; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
