/* ==========================================================================
   ESSPIANO — inner pages
   Same dark system as the homepage; nothing here introduces a light surface.
   ========================================================================== */

/* ---------- page head / breadcrumb ---------- */
.phead {
  position: relative; overflow: hidden;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-dark);
  padding-block: calc(var(--h-header) + clamp(40px, 6vw, 84px)) clamp(40px, 6vw, 76px);
}
.phead::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 90% at 82% 0%, rgba(237, 27, 36, .13), transparent 62%);
}
.phead.has-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(7, 7, 7, .96) 12%, rgba(7, 7, 7, .72) 52%, rgba(7, 7, 7, .5));
}
.phead-bg { position: absolute; inset: 0; }
.phead-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) contrast(1.06); }
.phead-in { position: relative; z-index: 3; }
.phead h1 {
  font-size: clamp(1.9rem, 4vw, 3.6rem); font-weight: 900; letter-spacing: -.025em;
  margin-top: 16px;
}
.phead .lede { margin-top: 16px; }

.crumbs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
}
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--text-primary); }
.crumbs .sep { opacity: .45; }
.crumbs .now { color: var(--text-secondary); }

/* ---------- generic surfaces ---------- */
.panel {
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
  border-radius: 4px; padding: clamp(20px, 2.6vw, 34px);
}
.panel-tight { padding: clamp(16px, 2vw, 24px); }
.panel + .panel { margin-top: 14px; }
.panel h3 { font-size: 16px; font-weight: 700; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border-dark);
}
.sect-gap { padding-block: clamp(50px, 7vw, 96px); }

.kv { display: grid; gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 3px; overflow: hidden; }
.kv > div { background: var(--bg-elevated); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.kv .k { font-size: 12.5px; color: var(--text-muted); }
.kv .v { font-size: 13.5px; font-weight: 600; text-align: end; }

.note {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px; border-radius: 3px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--border-dark);
  font-size: 13px; color: var(--text-secondary); line-height: 1.9;
}
.note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--warm-accent); }
.note-red { border-color: rgba(237, 27, 36, .28); background: rgba(237, 27, 36, .07); }
.note-red svg { color: var(--brand-red); }

/* ---------- forms ---------- */
.field-row { display: grid; gap: 16px; }
.field-row.two { grid-template-columns: 1fr 1fr; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.lab { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 8px; }
.lab .req { color: var(--brand-red); }
/* .input declares font-family later than .num, so numeric fields need this to
   keep Latin digits (phone, postcode, order number) instead of Persian ones */
input.num, textarea.num, .input.num { font-family: var(--f-num); letter-spacing: .02em; }
textarea.input { height: auto; min-height: 130px; padding: 16px 20px; line-height: 1.9; resize: vertical; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8a3' stroke-width='1.8'%3E%3Cpath d='M5 8.5l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 15px;
  background-position: left 18px center;
  padding-inline-end: 20px; padding-inline-start: 46px;
}
select.input option { background: #131313; color: var(--text-primary); }
.err { display: block; font-size: 11.5px; color: var(--brand-red); margin-top: 7px; min-height: 15px; }
.input.bad { border-color: rgba(237, 27, 36, .6); }

.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 13px; color: var(--text-secondary); line-height: 1.85; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; border-radius: 3px;
  border: 1px solid var(--border-hover); background: rgba(255, 255, 255, .04);
  display: grid; place-items: center;
  transition: background .3s, border-color .3s;
}
.check .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--ease); }
.check input:checked + .box { background: var(--brand-red); border-color: var(--brand-red); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.check a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }

/* radio card — shipping / payment pickers */
.pick { display: grid; gap: 10px; }
.pick label {
  position: relative; display: flex; align-items: center; gap: 15px;
  padding: 18px 20px; border-radius: 3px; cursor: pointer;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--border-dark);
  transition: border-color .35s, background .35s var(--ease);
}
.pick label:hover { border-color: var(--border-hover); }
.pick input { position: absolute; opacity: 0; }
.pick .dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-hover); position: relative;
  transition: border-color .3s;
}
.pick .dot::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--brand-red); transform: scale(0); transition: transform .35s var(--ease);
}
.pick input:checked ~ .dot { border-color: var(--brand-red); }
.pick input:checked ~ .dot::after { transform: scale(1); }
.pick input:checked + .dot { border-color: var(--brand-red); }
.pick label:has(input:checked) { border-color: rgba(237, 27, 36, .45); background: rgba(237, 27, 36, .07); }
.pick .t { flex: 1; }
.pick .t b { display: block; font-size: 14px; font-weight: 700; }
.pick .t span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.pick .p { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ---------- products listing ---------- */
.shop { display: grid; grid-template-columns: 274px 1fr; gap: clamp(20px, 3vw, 42px); align-items: start; }
.filters { position: sticky; top: 100px; }
.fgroup { border-bottom: 1px solid var(--border-dark); padding-block: 20px; }
.fgroup:first-child { padding-top: 0; }
.fgroup > h4 {
  font-family: var(--f-num); font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px; direction: ltr;
}
.fopt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; margin-inline: -10px; border-radius: 3px;
  font-size: 13.5px; color: var(--text-secondary); cursor: pointer;
  transition: color .3s, background .3s;
}
.fopt:hover { color: var(--text-primary); background: rgba(255, 255, 255, .04); }
.fopt.on { color: var(--brand-red); }
.fopt .n { font-family: var(--f-num); font-size: 11px; color: var(--text-muted); direction: ltr; }
.fopt.on .n { color: var(--brand-red); }

.shop-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--border-dark);
}
.shop-count { font-size: 13px; color: var(--text-muted); }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shop-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.btn-filters { display: none; }

.chip-active {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 2px; font-size: 12.5px;
  background: rgba(237, 27, 36, .1); border: 1px solid rgba(237, 27, 36, .3); color: var(--text-primary);
}
.chip-active button { display: grid; place-items: center; color: var(--brand-red); }
.chip-active svg { width: 13px; height: 13px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 46px; }
.pager button, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 2px;
  display: grid; place-items: center;
  border: 1px solid var(--border-dark); color: var(--text-secondary);
  font-family: var(--f-num); font-size: 13px; direction: ltr;
  transition: color .3s, border-color .3s, background .35s;
}
.pager button:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255, 255, 255, .04); }
.pager .on { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.pager button[disabled] { opacity: .32; pointer-events: none; }
.pager svg { width: 16px; height: 16px; }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(26px, 4vw, 70px); align-items: start; }
.pd-media { position: sticky; top: 100px; }
.pd-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border-dark);
  display: grid; place-items: center; padding: clamp(26px, 4vw, 62px);
}
.pd-stage::before {
  content: ''; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 27, 36, .18), transparent 66%); filter: blur(46px);
}
.pd-stage img { position: relative; z-index: 2; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 36px 50px rgba(0, 0, 0, .7)); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb {
  width: 78px; height: 78px; border-radius: 3px; padding: 8px; flex-shrink: 0;
  background: var(--bg-card); border: 1px solid var(--border-dark);
  transition: border-color .35s, background .35s;
}
.pd-thumb.on { border-color: rgba(237, 27, 36, .5); background: var(--bg-elevated); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pd-brand {
  font-family: var(--f-num); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm-accent); direction: ltr;
}
.pd h1 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 800; line-height: 1.5; margin-top: 12px; }
.pd-rate { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }
.pd-rate .stars { display: inline-flex; gap: 2px; }
.pd-rate svg { width: 14px; height: 14px; color: var(--warm-accent); }
.pd-rate svg.off { color: rgba(255, 255, 255, .15); }
.pd-price {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-top: 26px; padding-block: 24px; border-block: 1px solid var(--border-dark);
}
.pd-price .now { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
.pd-price .now .u { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-inline-start: 7px; }
.pd-price .old { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.pd-buy { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-dark); border-radius: 2px; }
.pd-qty button { width: 46px; height: 52px; display: grid; place-items: center; color: var(--text-secondary); transition: color .25s, background .25s; }
.pd-qty button:hover { color: var(--text-primary); background: rgba(255, 255, 255, .05); }
.pd-qty svg { width: 15px; height: 15px; }
.pd-qty span { min-width: 44px; text-align: center; font-family: var(--f-num); font-size: 15px; direction: ltr; }
.pd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-dark); margin-top: 46px; flex-wrap: wrap; }
.pd-tab {
  padding: 15px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .3s, border-color .35s;
}
.pd-tab:hover { color: var(--text-secondary); }
.pd-tab.on { color: var(--text-primary); border-bottom-color: var(--brand-red); }
.pd-pane { display: none; padding-top: 28px; font-size: 14px; color: var(--text-secondary); line-height: 2.1; }
.pd-pane.on { display: block; }
.pd-pane p + p { margin-top: 14px; }

.rv-item { padding-block: 24px; border-bottom: 1px solid var(--border-dark); }
.rv-item:first-child { padding-top: 0; }
.rv-top { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.rv-top .who { font-size: 13.5px; font-weight: 700; }
.rv-top .when { font-size: 11.5px; color: var(--text-muted); }
.rv-item p { font-size: 13.5px; line-height: 2; color: var(--text-secondary); }

/* ---------- cart page ---------- */
.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cart-sum { position: sticky; top: 100px; }
.crow {
  display: grid; grid-template-columns: 96px 1fr auto auto; gap: 18px; align-items: center;
  padding: 18px; background: var(--bg-elevated); border: 1px solid var(--border-dark);
  border-radius: 4px; margin-bottom: 10px;
  transition: border-color .4s;
}
.crow:hover { border-color: var(--border-hover); }
.crow-img { width: 96px; height: 96px; background: #0d0d0d; border-radius: 3px; padding: 9px; display: grid; place-items: center; }
.crow-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.crow-t .b { font-family: var(--f-num); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); direction: ltr; }
.crow-t h3 { font-size: 14.5px; font-weight: 600; line-height: 1.65; margin-top: 6px; }
.crow-t h3 a:hover { color: var(--brand-red); }
.crow-p { text-align: end; white-space: nowrap; }
.crow-p .v { font-size: 15px; font-weight: 700; }
.crow-p .u { font-size: 11px; color: var(--text-muted); margin-inline-start: 4px; }
.crow-p .o { display: block; font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; }
.crow-x { color: var(--text-muted); transition: color .3s; }
.crow-x:hover { color: var(--brand-red); }
.crow-x svg { width: 17px; height: 17px; }

.sum-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13.5px; color: var(--text-secondary); padding-block: 9px; }
.sum-line .v { color: var(--text-primary); font-weight: 600; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--border-dark); }
.sum-total .l { font-size: 14.5px; font-weight: 700; }
.sum-total .v { font-size: 22px; font-weight: 800; }
.sum-total .u { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-inline-start: 5px; }
.coupon { display: flex; gap: 8px; margin-top: 18px; }
.coupon .input { height: 48px; }

/* account row variants — kept in CSS (not inline) so media queries can reflow
   them; four columns will not fit a phone */
.crow-order { grid-template-columns: 64px 1fr auto auto; }
.crow-ticket { grid-template-columns: auto 1fr auto auto; }
.crow-addr { grid-template-columns: 1fr auto; }
@media (max-width: 720px) {
  .crow-order { grid-template-columns: 56px 1fr; row-gap: 12px; }
  .crow-ticket { grid-template-columns: 44px 1fr; row-gap: 12px; }
  .crow-order .pill, .crow-ticket .pill { grid-column: 1 / -1; justify-self: start; }
  .crow-order .crow-p, .crow-ticket .crow-p { grid-column: 1 / -1; text-align: start; }
  .crow-addr { grid-template-columns: 1fr; row-gap: 16px; }
}

/* mini line used in checkout / order detail */
.mini { display: flex; align-items: center; gap: 13px; padding-block: 12px; border-bottom: 1px solid var(--border-dark); }
.mini:last-child { border-bottom: 0; }
.mini-img { width: 54px; height: 54px; flex-shrink: 0; background: #0d0d0d; border-radius: 3px; padding: 6px; }
.mini-img img { width: 100%; height: 100%; object-fit: contain; }
.mini .t { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .q { font-family: var(--f-num); font-size: 11.5px; color: var(--text-muted); direction: ltr; }
.mini .p { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- checkout steps ---------- */
.steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.step { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--text-muted); }
.step .n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-dark); font-family: var(--f-num); font-size: 12px; direction: ltr;
}
.step.on { color: var(--text-primary); }
.step.on .n { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.step.done .n { border-color: rgba(237, 27, 36, .5); color: var(--brand-red); }
.step-sep { flex: 1; min-width: 20px; height: 1px; background: var(--border-dark); }

/* ==========================================================================
   AUTH — login · one-time code · register
   The art column is a fixed narrative panel; the form column scrolls on its own
   so a long register form never drags the artwork with it.
   ========================================================================== */
.auth { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-art > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.5) contrast(1.08) saturate(.9);
  transform: scale(1.06); animation: authDrift 24s ease-in-out infinite alternate;
}
@keyframes authDrift { to { transform: scale(1.14) translate3d(1.5%, -1.5%, 0); } }
@media (prefers-reduced-motion: reduce) { .auth-art > img { animation: none; } }
.auth-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 18% 8%, rgba(237, 27, 36, .22), transparent 58%),
    linear-gradient(90deg, rgba(7, 7, 7, .97) 0%, rgba(7, 7, 7, .58) 48%, rgba(7, 7, 7, .34) 100%);
}
/* grain-free hairline that separates the two columns without a hard rule */
.auth-art::before {
  content: ''; position: absolute; z-index: 4; inset-block: 0; inset-inline-start: 0;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .12), transparent);
}
.auth-art-in {
  position: relative; z-index: 3; display: flex; flex-direction: column; height: 100%;
  padding: clamp(28px, 3.4vw, 54px) clamp(28px, 4vw, 62px);
}
.auth-art-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-art-top img { height: 38px; width: auto; }
.auth-art-mid { margin-top: auto; padding-block: clamp(24px, 4vw, 48px) 0; }
.auth-art-mid h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.35rem); font-weight: 900; letter-spacing: -.025em;
  line-height: 1.55; max-width: 16ch;
}
.auth-art-mid h2 em { font-style: normal; color: var(--brand-red); }
.auth-perks { display: grid; gap: 14px; margin-top: clamp(24px, 3vw, 36px); }
.auth-perks li { display: flex; align-items: flex-start; gap: 13px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.85; }
.auth-perks .pk {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.auth-perks .pk svg { width: 16px; height: 16px; color: var(--warm-accent); }
.auth-perks b { display: block; color: var(--text-primary); font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.auth-quote {
  position: relative; z-index: 3; margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid rgba(255, 255, 255, .1);
}
.auth-quote p { font-size: clamp(.95rem, 1.25vw, 1.15rem); font-weight: 600; line-height: 1.95; max-width: 30ch; color: var(--text-primary); }
.auth-quote span { display: block; margin-top: 12px; font-size: 12px; color: var(--text-muted); }

.auth-form {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(30px, 4vw, 62px) clamp(20px, 4vw, 64px);
  background: var(--bg-main); position: relative;
}
.auth-box { width: 100%; max-width: 452px; }
.auth-box .brand-mark { width: 48px; margin-bottom: 26px; }
.auth-box h1 { font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.auth-box .sub { font-size: 13.5px; color: var(--text-secondary); margin-top: 11px; line-height: 1.9; }
.auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-dark); font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-alt a { color: var(--text-primary); font-weight: 600; }
.auth-alt a:hover { color: var(--brand-red); }
.auth-back {
  position: absolute; top: clamp(20px, 2.4vw, 30px); inset-inline-end: clamp(20px, 3vw, 40px); z-index: 6;
  font-size: 12.5px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 100px; border: 1px solid var(--border-dark);
  background: rgba(10, 10, 10, .6); backdrop-filter: blur(8px);
  transition: color .3s, border-color .3s, background .3s;
}
.auth-back:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(20, 20, 20, .8); }
.auth-back svg { width: 15px; height: 15px; }

/* segmented switch between password and one-time-code sign-in */
.auth-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 26px;
  padding: 4px; border-radius: 100px; background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border-dark);
}
.auth-seg a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 100px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); transition: color .3s, background .35s var(--ease);
}
.auth-seg a svg { width: 15px; height: 15px; }
.auth-seg a:hover { color: var(--text-secondary); }
.auth-seg a.on { color: var(--text-primary); background: rgba(255, 255, 255, .075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.auth-seg a.on svg { color: var(--brand-red); }

/* two-step progress rail on the register screen */
.auth-steps { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.auth-steps i {
  flex: 1; height: 3px; border-radius: 100px; background: rgba(255, 255, 255, .09);
  overflow: hidden; position: relative;
}
.auth-steps i.on::after { content: ''; position: absolute; inset: 0; background: var(--brand-red); animation: authFill .5s var(--ease); }
@keyframes authFill { from { transform: scaleX(0); transform-origin: inline-start; } }
.auth-steps span { font-family: var(--f-num); font-size: 11px; color: var(--text-muted); direction: ltr; }

/* field shell — owns the error slot so validation never targets a stray .err */
.fld { position: relative; }
.fld + .fld { margin-top: 2px; }
/* `.input` carries `flex:1` for the newsletter row; a select or textarea sitting
   directly in a block wrapper would otherwise shrink to its content width */
.fld > .input, .fld > select.input, .fld > textarea.input { width: 100%; }
.fld-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fld-top .lab { margin-bottom: 8px; }
.f-in { position: relative; display: block; }
.f-in > .f-ico {
  position: absolute; inset-inline-start: 17px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--text-muted); pointer-events: none;
  transition: color .35s;
}
.f-in .input { width: 100%; display: block; padding-inline-start: 46px; }
.f-in.no-ico .input { padding-inline-start: 20px; }
.f-in:focus-within > .f-ico { color: var(--brand-red); }
.f-in.ok > .f-ico { color: #57c98a; }
.input.good { border-color: rgba(87, 201, 138, .42); }
/* trailing affordances: eye toggle, inline tick */
.f-btn {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 3px; display: grid; place-items: center;
  color: var(--text-muted); transition: color .3s, background .3s;
}
.f-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, .05); }
.f-btn svg { width: 18px; height: 18px; }
.f-in.has-btn .input { padding-inline-end: 52px; }
.f-tick {
  position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%) scale(.5);
  width: 17px; height: 17px; color: #57c98a; opacity: 0;
  transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.f-in.ok .f-tick { opacity: 1; transform: translateY(-50%) scale(1); }
.f-in.ok.has-btn .f-tick { inset-inline-end: 52px; }

/* caps-lock nudge — the single most common Persian-keyboard login failure */
.caps {
  display: none; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 11.5px; color: var(--warm-accent);
}
.caps.on { display: flex; }
.caps svg { width: 14px; height: 14px; flex-shrink: 0; }

/* password strength */
.pw-meter { margin-top: 10px; }
.pw-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pw-bars i { height: 3px; border-radius: 100px; background: rgba(255, 255, 255, .09); transition: background .4s var(--ease); }
.pw-lvl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 11.5px; color: var(--text-muted); }
.pw-lvl b { font-weight: 700; }
.pw-s1 .pw-bars i:nth-child(-n+1) { background: var(--brand-red); }
.pw-s2 .pw-bars i:nth-child(-n+2) { background: #e08b3c; }
.pw-s3 .pw-bars i:nth-child(-n+3) { background: var(--warm-accent); }
.pw-s4 .pw-bars i { background: #57c98a; }
.pw-s1 .pw-lvl b { color: var(--brand-red); }
.pw-s2 .pw-lvl b { color: #e08b3c; }
.pw-s3 .pw-lvl b { color: var(--warm-accent); }
.pw-s4 .pw-lvl b { color: #57c98a; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.pw-rules li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-muted);
  padding: 5px 10px; border-radius: 100px;
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .025);
  transition: color .3s, border-color .3s, background .3s;
}
.pw-rules li svg { width: 11px; height: 11px; opacity: .5; transition: opacity .3s; }
.pw-rules li.hit { color: #57c98a; border-color: rgba(87, 201, 138, .3); background: rgba(87, 201, 138, .08); }
.pw-rules li.hit svg { opacity: 1; }

/* divider + demo shortcut */
.auth-or {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  font-family: var(--f-num); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted);
}
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border-dark); }
.auth-demo {
  display: flex; align-items: center; gap: 13px; width: 100%; margin-top: 16px;
  padding: 14px 16px; border-radius: 3px; text-align: start;
  border: 1px dashed rgba(200, 155, 99, .34); background: rgba(200, 155, 99, .05);
  transition: border-color .35s, background .35s;
}
.auth-demo:hover { border-color: rgba(200, 155, 99, .6); background: rgba(200, 155, 99, .09); }
.auth-demo svg { width: 18px; height: 18px; color: var(--warm-accent); flex-shrink: 0; }
.auth-demo b { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.auth-demo span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* trust strip under the form */
.auth-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.auth-trust div {
  text-align: center; padding: 13px 8px; border-radius: 3px;
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .02);
}
.auth-trust svg { width: 16px; height: 16px; color: var(--text-muted); margin-inline: auto; }
.auth-trust span { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 7px; line-height: 1.6; }

/* form-level banner (wrong credentials, lockout, success) */
.auth-msg {
  display: none; align-items: flex-start; gap: 11px; margin-top: 20px;
  padding: 13px 15px; border-radius: 3px; font-size: 12.5px; line-height: 1.85;
  border: 1px solid rgba(237, 27, 36, .3); background: rgba(237, 27, 36, .08); color: #ffb3b6;
}
.auth-msg.on { display: flex; animation: authShake .45s var(--ease-io); }
.auth-msg svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--brand-red); }
.auth-msg.ok { border-color: rgba(87, 201, 138, .32); background: rgba(87, 201, 138, .08); color: #9fe0bb; }
.auth-msg.ok svg { color: #57c98a; }
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); } 75% { transform: translateX(5px); }
}

/* button busy state — shared by every simulated submit on the site */
.btn.busy { pointer-events: none; opacity: .78; }
.btn.busy .ar, .btn.busy > span { opacity: 0; }
.btn.busy::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .28); border-top-color: currentColor;
  animation: btnSpin .65s linear infinite; z-index: 3;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* OTP boxes */
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; margin-top: 8px; }
.otp input {
  width: 58px; height: 66px; text-align: center;
  font-family: var(--f-num); font-size: 24px; font-weight: 600;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-dark); border-radius: 4px;
  color: var(--text-primary); caret-color: var(--brand-red);
  transition: border-color .3s, background .3s, transform .35s var(--ease);
}
.otp input:focus { outline: none; border-color: rgba(237, 27, 36, .6); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.otp input.filled { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .06); }
.otp.bad input { border-color: rgba(237, 27, 36, .6); }
.otp.bad { animation: authShake .45s var(--ease-io); }
.otp-timer { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.otp-timer b { font-family: var(--f-num); color: var(--text-primary); direction: ltr; }
.otp-hint {
  display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px;
  padding: 11px 14px; border-radius: 3px; font-size: 12px; color: var(--text-secondary);
  border: 1px dashed rgba(200, 155, 99, .3); background: rgba(200, 155, 99, .05);
}
.otp-hint b { font-family: var(--f-num); font-size: 15px; letter-spacing: .32em; color: var(--warm-accent); direction: ltr; }
.otp-phone { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.otp-phone b { font-family: var(--f-num); direction: ltr; color: var(--text-primary); }

/* ---------- account ---------- */
.acc { display: grid; grid-template-columns: 268px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.acc-side { position: sticky; top: 100px; }
.acc-user { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 10px; border-bottom: 1px solid var(--border-dark); }
.acc-av {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(237, 27, 36, .12); border: 1px solid rgba(237, 27, 36, .26);
  color: var(--brand-red); font-size: 17px; font-weight: 800;
}
.acc-user .n { font-size: 14.5px; font-weight: 700; }
.acc-user .m { font-family: var(--f-num); font-size: 12px; color: var(--text-muted); direction: ltr; }
.acc-nav a {
  display: flex; align-items: center; gap: 13px; padding: 13px 14px; margin-inline: -14px;
  border-radius: 3px; font-size: 14px; color: var(--text-secondary);
  transition: color .3s, background .35s, padding .4s var(--ease);
}
.acc-nav a:hover { color: var(--text-primary); background: rgba(255, 255, 255, .04); }
.acc-nav a.on { color: var(--text-primary); background: rgba(237, 27, 36, .09); }
.acc-nav a.on svg { color: var(--brand-red); }
.acc-nav svg { width: 17px; height: 17px; opacity: .85; }
.acc-nav .n { margin-inline-start: auto; font-family: var(--f-num); font-size: 11px; color: var(--text-muted); direction: ltr; }
.acc-nav .sep { height: 1px; background: var(--border-dark); margin: 12px 0; }

/* `1fr` is minmax(auto, 1fr): the spend card's un-breakable Latin figure sets a
   min-content width that pushes the whole row past the content column. */
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card { background: var(--bg-elevated); border: 1px solid var(--border-dark); border-radius: 4px; padding: 22px; transition: border-color .4s; }
.stat-card:hover { border-color: var(--border-hover); }
.stat-card .k { font-family: var(--f-num); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; direction: ltr; }
.stat-card .v { font-size: 12.5px; color: var(--text-muted); margin-top: 7px; }
.stat-card svg { width: 18px; height: 18px; color: var(--brand-red); margin-bottom: 14px; }

/* tables that stay dark and readable */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: start; padding: 14px 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-dark);
}
.tbl td { padding: 18px 16px; border-bottom: 1px solid var(--border-dark); color: var(--text-secondary); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .35s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .022); }
.tbl .id { font-family: var(--f-num); direction: ltr; color: var(--text-primary); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 100px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .04); color: var(--text-secondary);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { color: #57c98a; border-color: rgba(87, 201, 138, .3); background: rgba(87, 201, 138, .09); }
.pill-wait { color: var(--warm-accent); border-color: rgba(200, 155, 99, .3); background: rgba(200, 155, 99, .09); }
.pill-ship { color: #6aa6ff; border-color: rgba(106, 166, 255, .3); background: rgba(106, 166, 255, .09); }
.pill-bad { color: var(--brand-red); border-color: rgba(237, 27, 36, .34); background: rgba(237, 27, 36, .09); }

/* order timeline */
.tline { position: relative; padding-inline-start: 26px; }
.tline::before { content: ''; position: absolute; inset-block: 6px 6px; inset-inline-start: 5px; width: 1px; background: var(--border-dark); }
.tstep { position: relative; padding-bottom: 26px; }
.tstep:last-child { padding-bottom: 0; }
.tstep::before {
  content: ''; position: absolute; inset-inline-start: -26px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-main); border: 1px solid var(--border-hover);
}
.tstep.done::before { background: var(--brand-red); border-color: var(--brand-red); }
.tstep.now::before { background: var(--brand-red); border-color: var(--brand-red); box-shadow: 0 0 0 4px rgba(237, 27, 36, .18); }
.tstep .t { font-size: 14px; font-weight: 700; }
.tstep .d { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* tickets */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 76%; padding: 18px 20px; border-radius: 4px; font-size: 13.5px; line-height: 2; }
.msg .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11.5px; color: var(--text-muted); }
.msg-me { align-self: flex-start; background: var(--bg-elevated); border: 1px solid var(--border-dark); }
.msg-them { align-self: flex-end; background: rgba(237, 27, 36, .07); border: 1px solid rgba(237, 27, 36, .2); }
.msg-them .meta b { color: var(--brand-red); }

/* ---------- payment result ---------- */
.result { min-height: 78vh; display: grid; place-items: center; padding-block: clamp(70px, 10vw, 130px); text-align: center; }
.result-in { max-width: 620px; }
.result-ring {
  width: 108px; height: 108px; border-radius: 50%; margin-inline: auto;
  display: grid; place-items: center; position: relative;
}
.result-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid currentColor; opacity: .32;
}
.result-ring::after {
  content: ''; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, currentColor, transparent 62%); opacity: .14; filter: blur(14px);
}
.result-ring svg { width: 42px; height: 42px; }
.result-ok { color: #57c98a; }
.result-bad { color: var(--brand-red); }
.result h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 900; margin-top: 30px; }
.result p { color: var(--text-secondary); font-size: 14.5px; line-height: 2; margin-top: 16px; }
.result .kv { margin-top: 34px; text-align: start; }
.result .acts { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- legal / prose ---------- */
.prose-wrap { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: 100px; }
.toc h4 {
  font-family: var(--f-num); font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px; direction: ltr;
}
.toc a {
  display: block; padding: 9px 12px; margin-inline: -12px; border-radius: 3px;
  font-size: 13px; color: var(--text-muted);
  transition: color .3s, background .3s;
}
.toc a:hover, .toc a.on { color: var(--text-primary); background: rgba(255, 255, 255, .04); }
.prose h2 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; margin-top: 46px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .ix { font-family: var(--f-num); font-size: 12px; color: var(--brand-red); margin-inline-end: 12px; direction: ltr; }
.prose p { font-size: 14px; line-height: 2.15; color: var(--text-secondary); margin-top: 16px; }
.prose ul { margin-top: 16px; display: grid; gap: 11px; }
.prose li { position: relative; padding-inline-start: 20px; font-size: 13.5px; line-height: 2; color: var(--text-secondary); }
.prose li::before { content: ''; position: absolute; inset-inline-start: 0; top: 13px; width: 6px; height: 1px; background: var(--brand-red); }
.prose .updated { font-size: 12px; color: var(--text-muted); padding-bottom: 26px; border-bottom: 1px solid var(--border-dark); margin-bottom: 34px; }

/* ---------- contact / stores ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.cinfo { display: grid; gap: 12px; }
.cinfo-row {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border-dark); border-radius: 4px;
  transition: border-color .4s, background .4s;
}
.cinfo-row:hover { border-color: var(--border-hover); background: var(--bg-soft); }
.cinfo-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 3px; display: grid; place-items: center; background: rgba(237, 27, 36, .1); border: 1px solid rgba(237, 27, 36, .22); color: var(--brand-red); }
.cinfo-ic svg { width: 18px; height: 18px; }
.cinfo-row .k { font-size: 11.5px; color: var(--text-muted); }
.cinfo-row .v { font-size: 14px; font-weight: 600; margin-top: 5px; line-height: 1.8; }

.map-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border-dark); background: var(--bg-elevated);
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) grayscale(.35) contrast(1.05); }
.map-pin {
  position: absolute; top: 50%; left: 50%; translate: -50% -100%; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-red); color: #fff; box-shadow: 0 0 0 8px rgba(237, 27, 36, .18);
}
.map-pin svg { width: 15px; height: 15px; }

.store-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.store-card .art { position: relative; min-height: 280px; }
.store-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.store-card .body { padding: clamp(24px, 3vw, 40px); }

/* ---------- custom blend builder ---------- */
.builder { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.bstep { padding-block: 30px; border-bottom: 1px solid var(--border-dark); }
.bstep:first-child { padding-top: 0; }
.bstep-h { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.bstep-h .n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(237, 27, 36, .12); border: 1px solid rgba(237, 27, 36, .3); color: var(--brand-red);
  font-family: var(--f-num); font-size: 12px; direction: ltr;
}
.bstep-h h3 { font-size: 17px; font-weight: 700; }
.bstep-h p { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.bopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bopt {
  padding: 18px; border-radius: 3px; text-align: start; cursor: pointer;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--border-dark);
  transition: border-color .35s, background .35s var(--ease), transform .4s var(--ease);
}
.bopt:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.bopt.on { border-color: rgba(237, 27, 36, .5); background: rgba(237, 27, 36, .08); }
.bopt b { display: block; font-size: 14.5px; font-weight: 700; }
.bopt span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.7; }
.bopt .tag { display: inline-block; margin-top: 10px; font-family: var(--f-num); font-size: 10.5px; letter-spacing: .1em; color: var(--warm-accent); direction: ltr; }

.range-wrap { padding-top: 6px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); }
.range-head b { font-family: var(--f-num); font-size: 16px; color: var(--text-primary); direction: ltr; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-red) var(--pct, 50%), rgba(255, 255, 255, .1) var(--pct, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-primary); border: 4px solid var(--brand-red); cursor: pointer;
  transition: transform .25s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-primary); border: 4px solid var(--brand-red); cursor: pointer;
}

.recipe { position: sticky; top: 100px; }
.recipe-visual {
  position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border-dark); background: var(--bg-elevated);
  display: grid; place-items: center;
}
.recipe-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.recipe-visual .badge-mix {
  position: absolute; z-index: 3; inset-inline-start: 20px; bottom: 20px;
  font-family: var(--f-num); font-size: 11px; letter-spacing: .2em; direction: ltr;
  padding: 8px 13px; background: rgba(8, 8, 8, .78); backdrop-filter: blur(10px);
  border: 1px solid var(--border-dark); border-radius: 2px; color: var(--warm-accent);
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; text-align: center; }
.nf-bg { position: absolute; inset: 0; }
.nf-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.34) contrast(1.06); }
.nf-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(85% 70% at 50% 46%, transparent 22%, rgba(5, 5, 5, .9) 100%); }
.nf-in { position: relative; z-index: 3; padding: 40px 22px; }
.nf-code {
  font-family: var(--f-num); font-size: clamp(5rem, 20vw, 15rem); font-weight: 700; line-height: .86;
  letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .26); direction: ltr;
}
.nf h1 { font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 800; margin-top: 22px; }
.nf p { color: var(--text-secondary); font-size: 14px; line-height: 2; margin-top: 16px; max-width: 46ch; margin-inline: auto; }
.nf .acts { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- brands index ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.brand-tile {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 26px;
  background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: 4px;
  transition: border-color .4s, background .4s var(--ease), transform .5s var(--ease);
}
.brand-tile:hover { border-color: var(--border-hover); background: var(--bg-elevated); transform: translateY(-3px); }
.brand-tile img {
  max-width: 78%; max-height: 62%; object-fit: contain;
  filter: grayscale(1) brightness(1.6) contrast(.88); opacity: .62;
  transition: opacity .4s, filter .4s, transform .5s var(--ease);
}
.brand-tile:hover img { opacity: 1; filter: grayscale(0) brightness(1.1); transform: scale(1.05); }
.brand-tile .n { position: absolute; }
.alpha-bar { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 30px; }
.alpha {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 2px; display: grid; place-items: center;
  border: 1px solid var(--border-dark); color: var(--text-muted);
  font-family: var(--f-num); font-size: 12px; direction: ltr;
  transition: color .3s, border-color .3s, background .3s;
}
.alpha:hover { color: var(--text-primary); border-color: var(--border-hover); }
.alpha.on { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

/* ---------- about ---------- */
.about-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; }
.about-num > div { background: var(--bg-elevated); padding: clamp(24px, 3vw, 38px); }
.about-num .k { font-family: var(--f-num); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; direction: ltr; }
.about-num .k em { font-style: normal; color: var(--brand-red); }
.about-num .v { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.tl { display: grid; gap: 0; }
.tl-row { display: grid; grid-template-columns: 130px 1fr; gap: clamp(18px, 3vw, 44px); padding-block: 30px; border-top: 1px solid var(--border-dark); }
.tl-row:last-child { border-bottom: 1px solid var(--border-dark); }
.tl-year { font-family: var(--f-num); font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; color: var(--brand-red); direction: ltr; }
.tl-row h3 { font-size: 17px; font-weight: 700; }
.tl-row p { font-size: 13.5px; color: var(--text-secondary); line-height: 2; margin-top: 10px; max-width: 62ch; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.team-card { background: var(--bg-elevated); border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; transition: border-color .4s; }
.team-card:hover { border-color: var(--border-hover); }
.team-art { aspect-ratio: 1; position: relative; overflow: hidden; background: #0d0d0d; }
.team-art img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) grayscale(.5); transition: filter .6s, transform 1s var(--ease); }
.team-card:hover .team-art img { filter: brightness(.9) grayscale(0); transform: scale(1.05); }
.team-card .body { padding: 20px; }
.team-card .n { font-size: 14.5px; font-weight: 700; }
.team-card .r { font-family: var(--f-num); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--warm-accent); direction: ltr; margin-top: 6px; }
.team-card .q { font-size: 12.5px; color: var(--text-muted); line-height: 1.95; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-dark); }

/* monogram variant — used where we have a person but no portrait to show */
.team-card.mono .body { padding: clamp(22px, 2.4vw, 30px); }
.team-av {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--text-primary);
  background: linear-gradient(140deg, rgba(237, 27, 36, .24), rgba(200, 155, 99, .12));
  border: 1px solid var(--border-dark);
  transition: transform .5s var(--ease), border-color .45s;
}
.team-card:hover .team-av { transform: translateY(-3px); border-color: rgba(237, 27, 36, .45); }

/* ---------- about — extended editorial blocks ----------
   Everything below is written with logical properties so the RTL page and any
   future LTR mirror share one rule set. Bars and counters animate off the
   shared .rv → .rv-in reveal, so no page-specific scroll JS is needed. */

/* chips under the page-head title */
.phead-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.phead-tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px;
  background: rgba(0, 0, 0, .34); backdrop-filter: blur(7px);
  font-size: 12px; color: var(--text-secondary); transition: border-color .4s, color .4s;
}
.phead-tag:hover { border-color: rgba(255, 255, 255, .34); color: var(--text-primary); }
.phead-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-red); flex-shrink: 0; }

/* stat strip — 4-up variant of .about-num, counts up on reveal */
.about-num.four { grid-template-columns: repeat(4, 1fr); }
.about-num > div { position: relative; transition: background .45s; }
.about-num > div:hover { background: var(--bg-soft); }
/* ::before, not ::after — these cells carry .spot, which owns ::after */
.about-num > div::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 3;
  background: var(--brand-red); transform: scaleX(0); transform-origin: inline-end;
  transition: transform .6s var(--ease);
}
.about-num > div:hover::before { transform: scaleX(1); }
.about-num .s { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.9; }

/* manifesto — the one full-width statement on the page */
.manif { text-align: center; max-width: 1000px; margin-inline: auto; position: relative; }
.manif .mark {
  font-family: var(--f-display); font-weight: 900; line-height: .62;
  font-size: clamp(4.5rem, 12vw, 10rem); color: var(--brand-red); opacity: .14;
  user-select: none; margin-bottom: -.18em;
}
.manif blockquote {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.15rem, 2.9vw, 2.35rem); line-height: 1.75; letter-spacing: -.02em;
}
.manif .hl {
  background-image: linear-gradient(var(--brand-red), var(--brand-red));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 3px;
  padding-bottom: 2px;
}
.manif .sig { margin-top: 34px; display: inline-flex; align-items: center; gap: 14px; }
.manif .sig .ln { width: clamp(28px, 6vw, 66px); height: 1px; background: var(--border-hover); }
.manif .sig .t { font-size: 12.5px; color: var(--text-muted); }
.manif .sig .t b { display: block; color: var(--text-primary); font-size: 13.5px; }

/* rich timeline — rail + marker per row */
.tlx { display: grid; }
.tlx-row { display: grid; grid-template-columns: clamp(64px, 9vw, 108px) 1fr; gap: clamp(14px, 2.4vw, 34px); }
.tlx-year {
  font-family: var(--f-num); direction: ltr; font-weight: 700;
  font-size: clamp(1.05rem, 1.9vw, 1.55rem); color: var(--brand-red);
  padding-top: clamp(20px, 2.6vw, 30px); line-height: 1.3;
}
.tlx-year small { display: block; font-size: 10.5px; letter-spacing: .16em; color: var(--text-muted); font-weight: 400; margin-top: 4px; }
.tlx-body {
  position: relative; border-inline-start: 1px solid var(--border-dark);
  padding: clamp(20px, 2.6vw, 30px) 0 clamp(20px, 2.6vw, 30px) 0;
  padding-inline-start: clamp(20px, 2.6vw, 38px);
}
.tlx-row:last-child .tlx-body { border-inline-start-color: transparent; }
.tlx-row:last-child .tlx-body::after {
  content: ''; position: absolute; inset-block-start: 0; height: clamp(20px, 2.6vw, 30px);
  inset-inline-start: -1px; width: 1px; background: var(--border-dark);
}
.tlx-body::before {
  content: ''; position: absolute; inset-block-start: clamp(26px, 3vw, 36px); inset-inline-start: -5px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--bg-main);
  border: 2px solid var(--border-hover); transition: border-color .45s, transform .45s var(--ease), box-shadow .45s;
}
.tlx-row:hover .tlx-body::before { border-color: var(--brand-red); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(237, 27, 36, .12); }
.tlx-body h3 { font-size: clamp(15.5px, 1.5vw, 18px); font-weight: 700; }
.tlx-body p { font-size: 13.5px; color: var(--text-secondary); line-height: 2.05; margin-top: 10px; max-width: 66ch; }
.tlx-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tlx-tag {
  font-family: var(--f-num); direction: ltr; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border-dark); border-radius: 99px; padding: 5px 11px;
}

/* value grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bento-cell {
  position: relative; overflow: hidden; background: var(--bg-elevated);
  border: 1px solid var(--border-dark); border-radius: 4px;
  padding: clamp(22px, 2.6vw, 34px);
  transition: border-color .45s, transform .55s var(--ease), background .45s;
}
/* the hover glow lives in .spot::after (shared by every card surface) — a
   second ::after here would fight it for the same pseudo-element */
.bento-cell:hover { border-color: var(--border-hover); transform: translateY(-3px); }
/* head row keeps the icon at the inline start and the index at the inline end
   without absolute positioning, so RTL and LTR can never collide */
.bento-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; z-index: 2; }
.bento-cell .ic {
  width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(237, 27, 36, .1); color: var(--brand-red); transition: background .45s, transform .5s var(--ease);
}
.bento-cell:hover .ic { background: rgba(237, 27, 36, .2); transform: translateY(-2px); }
.bento-cell .ic svg { width: 21px; height: 21px; }
.bento-cell .ix { font-family: var(--f-num); direction: ltr; font-size: 11px; letter-spacing: .18em; color: var(--text-muted); }
.bento-cell h3 { font-size: 16.5px; font-weight: 700; margin-top: 22px; position: relative; z-index: 2; }
.bento-cell p { font-size: 13.5px; color: var(--text-secondary); line-height: 2; margin-top: 11px; position: relative; z-index: 2; }
.bento-cell .kicker {
  display: inline-block; margin-top: 16px; font-family: var(--f-num); direction: ltr;
  font-size: 11px; letter-spacing: .14em; color: var(--warm-accent);
}

/* sourcing process — an <ol>, so the list chrome is reset here */
.proc {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden;
  margin: 0; padding: 0; list-style: none;
}
.proc-step { position: relative; background: var(--bg-elevated); padding: clamp(24px, 2.8vw, 38px); transition: background .45s; }
.proc-step:hover { background: var(--bg-soft); }
/* latin runs stay inline-level so the RTL parent keeps them on the start edge,
   the same trick .eyebrow uses — a block with direction:ltr would drift left */
.proc-step .n {
  display: inline-block;
  font-family: var(--f-num); direction: ltr; font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .08); transition: color .5s;
}
.proc-step:hover .n { color: rgba(237, 27, 36, .55); }
.proc-step h3 { font-size: 16px; font-weight: 700; margin-top: 16px; }
.proc-step p { font-size: 13px; color: var(--text-secondary); line-height: 2; margin-top: 10px; }
.proc-step .meta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--f-num); direction: ltr; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted);
}
.proc-step .meta svg { width: 14px; height: 14px; color: var(--brand-red); }

/* roast / quality bars — fill when the wrapper reveals */
.spec { display: grid; gap: 20px; margin-top: 32px; }
.spec-row .t { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.spec-row .t b { font-size: 13.5px; font-weight: 600; }
.spec-row .t span { font-family: var(--f-num); direction: ltr; font-size: 12px; color: var(--text-muted); }
.spec-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 10px; }
/* the fill grows from the inline start, so the gradient runs red → gold outward */
.spec-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(270deg, var(--brand-red), var(--warm-accent)); transition: width 1.5s var(--ease) .15s; }
.rv-in .spec-bar i { width: var(--w, 0); }

/* origin table */
.origins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; }
.origin { background: var(--bg-elevated); padding: clamp(20px, 2.2vw, 28px); transition: background .45s; }
.origin:hover { background: var(--bg-soft); }
.origin .fl { display: inline-block; font-family: var(--f-num); direction: ltr; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.origin .c { font-size: 15.5px; font-weight: 700; margin-top: 8px; }
.origin .d { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; margin-top: 7px; }

/* certification pills */
.cert-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cert {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
  border: 1px solid var(--border-dark); border-radius: 99px; background: var(--bg-elevated);
  font-size: 12.5px; color: var(--text-secondary); transition: border-color .4s, color .4s, background .4s;
}
.cert:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-soft); }
.cert svg { width: 16px; height: 16px; color: var(--brand-red); flex-shrink: 0; }

/* press quotes */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.press-card {
  position: relative; background: var(--bg-elevated); border: 1px solid var(--border-dark);
  border-radius: 4px; padding: clamp(24px, 2.6vw, 34px); transition: border-color .45s, transform .55s var(--ease);
}
.press-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.press-card::before {
  content: '”'; position: absolute; inset-block-start: 4px; inset-inline-end: 22px;
  font-family: var(--f-display); font-weight: 900; font-size: 76px; line-height: 1;
  color: var(--brand-red); opacity: .16;
}
.press-card blockquote { margin: 0; font-size: 14px; line-height: 2.1; color: var(--text-secondary); position: relative; z-index: 2; }
.press-who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-dark); }
.press-av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(237, 27, 36, .12); color: var(--brand-red);
  font-family: var(--f-num); direction: ltr; font-size: 13px; font-weight: 600;
}
.press-who .n { display: block; font-size: 13.5px; font-weight: 700; }
.press-who .c { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* closing band */
.ab-cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 6px;
  border: 1px solid var(--border-dark); background: linear-gradient(135deg, #151515, #0a0a0a 62%);
  padding: clamp(36px, 5.5vw, 78px) clamp(20px, 4vw, 60px);
}
.ab-cta::before {
  content: ''; position: absolute; inset-block-start: -55%; inset-inline-start: 50%;
  transform: translateX(-50%); width: min(760px, 120%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 27, 36, .17), transparent 66%); pointer-events: none;
}
.ab-cta > * { position: relative; z-index: 2; }
.ab-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- about — chrome, effects, extra components ---------- */

/* reading progress — sits above the header so it survives the header's
   hide-on-scroll transform */
.rprog {
  position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 850;
  background: rgba(255, 255, 255, .06); pointer-events: none;
}
.rprog i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-red), var(--warm-accent));
  box-shadow: 0 0 14px rgba(237, 27, 36, .55);
}

/* sticky in-page section nav */
.secnav {
  position: sticky; top: var(--h-header); z-index: 40;
  background: rgba(7, 7, 7, .82); backdrop-filter: blur(16px) saturate(1.1);
  border-block: 1px solid var(--border-dark);
}
.secnav-in { display: flex; align-items: center; gap: 18px; height: 58px; }
.secnav-lbl {
  flex-shrink: 0; font-size: 11.5px; color: var(--text-muted);
  padding-inline-end: 18px; border-inline-end: 1px solid var(--border-dark);
}
.secnav-track {
  display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; min-width: 0;
  /* fade the cut edges so a half-scrolled chip reads as "more this way" */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
}
.secnav-track::-webkit-scrollbar { display: none; }
.secchip {
  flex-shrink: 0; scroll-snap-align: center;
  display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding-inline: 13px; border-radius: 99px;
  font-size: 12px; color: var(--text-secondary); white-space: nowrap;
  border: 1px solid transparent;
  transition: color .35s, background .35s, border-color .35s;
}
.secchip svg { width: 16px; height: 16px; opacity: .75; transition: opacity .35s, color .35s; }
.secchip:hover { color: var(--text-primary); background: rgba(255, 255, 255, .045); }
.secchip:hover svg { opacity: 1; }
.secchip.on { color: var(--text-primary); background: rgba(237, 27, 36, .1); border-color: rgba(237, 27, 36, .38); }
.secchip.on svg { color: var(--brand-red); opacity: 1; }
/* anchored sections must clear the fixed header AND this bar */
[id].sect-gap, [id].sec { scroll-margin-top: calc(var(--h-header) + 64px); }

/* pointer-tracked spotlight — one shared effect across every card surface */
.spot { position: relative; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(237, 27, 36, .15), transparent 62%);
  opacity: 0; transition: opacity .45s;
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 2; }

/* divider ornament between narrative beats */
.orn { display: flex; align-items: center; justify-content: center; gap: 18px; }
.orn .ln { height: 1px; width: min(180px, 22vw); background: linear-gradient(90deg, transparent, var(--border-hover)); }
.orn .ln:last-child { background: linear-gradient(270deg, transparent, var(--border-hover)); }
.orn svg { width: 22px; height: 22px; color: var(--brand-red); opacity: .85; }

/* conic progress gauge — NOT .gauge: that is a Tailwind CDN utility (blue box-shadow), same trap as .cue-ring in site.css */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.gauge {
  --p: 0;
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(from -90deg, var(--brand-red) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0);
  transition: --p 1.6s var(--ease) .2s;
}
.gauge::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-elevated); }
.gauge .v { position: relative; z-index: 2; font-family: var(--f-num); direction: ltr; font-size: 17px; font-weight: 700; }
.rv-in .gauge { --p: var(--pv, 0); }

/* comparison table */
.cmp { border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(12px, 2vw, 26px); align-items: center; }
.cmp-head {
  background: var(--bg-secondary); padding: 16px clamp(16px, 2.2vw, 26px);
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--f-num); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
}
/* ltr lives on the labels, never on the grid container — otherwise the header
   columns mirror while the rows below stay RTL */
.cmp-head span { display: inline-flex; align-items: center; gap: 8px; direction: ltr; unicode-bidi: isolate; }
.cmp-head .on { color: var(--text-primary); }
.cmp-head .on svg { width: 15px; height: 15px; color: var(--brand-red); }
.cmp-row { padding: clamp(16px, 2vw, 22px) clamp(16px, 2.2vw, 26px); border-bottom: 1px solid var(--border-dark); transition: background .4s; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row:hover { background: rgba(255, 255, 255, .022); }
.cmp .k { font-size: 14px; font-weight: 600; }
.cmp .v { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.85; }
.cmp .v svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.cmp .yes { color: var(--text-secondary); }
.cmp .yes svg { color: var(--brand-red); }
.cmp .yes b { color: var(--text-primary); font-weight: 600; }
.cmp .no { color: var(--text-muted); }
.cmp .no svg { color: rgba(255, 255, 255, .28); }

/* a day in the roastery */
.daily {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.daily::before {
  content: ''; position: absolute; top: 26px; inset-inline: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dark) 12%, var(--border-dark) 88%, transparent);
}
.daily-step { position: relative; text-align: center; }
.daily-step .ic {
  width: 52px; height: 52px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-elevated); border: 1px solid var(--border-dark); color: var(--brand-red);
  transition: border-color .45s, transform .55s var(--ease), background .45s;
}
.daily-step:hover .ic { border-color: rgba(237, 27, 36, .5); background: rgba(237, 27, 36, .1); transform: translateY(-3px); }
.daily-step .ic svg { width: 22px; height: 22px; }
.daily-step .t {
  display: inline-block; margin-top: 16px;
  font-family: var(--f-num); direction: ltr; font-size: 12.5px; font-weight: 600; color: var(--warm-accent);
}
.daily-step h3 { font-size: 14.5px; font-weight: 700; margin-top: 8px; }
.daily-step p { font-size: 12.5px; color: var(--text-muted); line-height: 1.95; margin-top: 8px; }

/* sustainability cards */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.eco-card {
  background: var(--bg-elevated); border: 1px solid var(--border-dark); border-radius: 4px;
  padding: clamp(24px, 2.8vw, 36px); text-align: center;
  transition: border-color .45s, transform .55s var(--ease);
}
.eco-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.eco-card .gauge { margin-inline: auto; }
.eco-card h3 { font-size: 15.5px; font-weight: 700; margin-top: 22px; }
.eco-card p { font-size: 13px; color: var(--text-secondary); line-height: 2; margin-top: 10px; }
.eco-card .tag {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--f-num); direction: ltr; font-size: 10.5px; letter-spacing: .14em; color: var(--text-muted);
}
.eco-card .tag svg { width: 14px; height: 14px; color: var(--warm-accent); }

/* small icon slot reused by stat cells and origin rows */
.mini-ic {
  width: 34px; height: 34px; border-radius: 3px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-dark);
  color: var(--warm-accent); transition: color .4s, border-color .4s, background .4s;
}
.mini-ic svg { width: 17px; height: 17px; }
.about-num > div:hover .mini-ic, .origin:hover .mini-ic { color: var(--brand-red); border-color: rgba(237, 27, 36, .4); background: rgba(237, 27, 36, .08); }
.about-num .n-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.origin .o-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* slow drift on the page-head still */
@keyframes ph-kb { from { transform: scale(1); } to { transform: scale(1.09); } }
.phead.has-img .phead-bg img { animation: ph-kb 30s ease-in-out infinite alternate; will-change: transform; }

/* about responsive */
@media (max-width: 1180px) {
  .about-num.four { grid-template-columns: repeat(2, 1fr); }
  .bento, .proc, .press-grid { grid-template-columns: repeat(2, 1fr); }
  .origins { grid-template-columns: repeat(2, 1fr); }
  .daily { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .daily::before { display: none; }
}
@media (max-width: 860px) {
  .eco { grid-template-columns: 1fr; }
  .secnav-lbl { display: none; }
  /* the comparison grid stacks, so each cell carries its own column label */
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; gap: 12px; }
  .cmp .v::before {
    content: attr(data-l) ' — '; color: var(--text-muted);
    font-family: var(--f-num); direction: ltr; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  }
}
@media (max-width: 660px) {
  .daily { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .phead.has-img .phead-bg img { animation: none; }
  .gauge { transition: none; }
  .spot::after { display: none; }
}
@media (max-width: 860px) {
  .about-num.four { grid-template-columns: repeat(2, 1fr); }
  .tlx-row { grid-template-columns: clamp(56px, 16vw, 84px) 1fr; }
}
@media (max-width: 660px) {
  .about-num.four { grid-template-columns: 1fr; }
  .bento, .proc, .press-grid, .origins { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .shop { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 900;
    width: min(340px, 88vw); background: #0c0c0c; border-inline-end: 1px solid var(--border-dark);
    padding: 24px; overflow-y: auto; top: 0;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .55s var(--ease), visibility .55s;
  }
  html[dir="rtl"] .filters { transform: translateX(100%); }
  .filters.on { transform: none !important; visibility: visible; }
  .btn-filters { display: inline-flex; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: 1fr; }
  .pd-media { position: static; }
  .cart-page { grid-template-columns: 1fr; }
  .cart-sum { position: static; }
  /* `1fr` resolves to minmax(auto, 1fr): a wide child grows the track past the
     viewport. minmax(0, 1fr) + min-width:0 keeps single-column grids contained. */
  .shop, .acc, .cart-page, .prose-wrap, .contact-grid, .builder, .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop > *, .acc > *, .cart-page > *, .prose-wrap > *, .contact-grid > *, .builder > * { min-width: 0; }
  .acc-side { position: static; }
  .acc-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .acc-nav a { margin-inline: 0; padding-inline: 12px; }
  .prose-wrap { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .recipe { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; }
  .auth-quote { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .store-card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shop-grid, .shop-grid.cols3 { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .field-row.two, .field-row.three { grid-template-columns: 1fr; }
  .about-num { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 10px; }
  .msg { max-width: 92%; }
  /* tables collapse into stacked rows rather than scrolling off-screen */
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { border: 1px solid var(--border-dark); border-radius: 4px; padding: 8px 4px; margin-bottom: 10px; }
  .tbl td { border: 0; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .tbl td::before { content: attr(data-th); font-size: 11.5px; color: var(--text-muted); }
}
@media (max-width: 560px) {
  .shop-grid, .shop-grid.cols3 { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 74px 1fr auto; gap: 14px; }
  .crow-img { width: 74px; height: 74px; }
  .crow-x { grid-column: 3; }
  .otp input { width: 44px; height: 54px; font-size: 19px; }
  .team-grid { grid-template-columns: 1fr; }
}

/* 3-up trust row (about page) — collapses like the base grid on small screens */
.trust-grid.trust-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .trust-grid.trust-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px)  { .trust-grid.trust-3 { grid-template-columns: 1fr; } }

/* the full-bleed scroll strip is for section-level tabs; inside a panel it must
   stay within the panel's padding */
.panel .tabs, .panel-head .tabs { margin-inline: 0; padding-inline: 0; }
.panel-head { flex-wrap: wrap; }
/* a nowrap scroll strip is a flex item with min-width:auto by default, so it
   refuses to shrink and pushes the panel wider than the viewport */
.panel-head .tabs { min-width: 0; max-width: 100%; }

/* ==========================================================================
   COFFEE ICON SET v2 — placement
   Duotone marks on a 32-unit grid. `--ic-a` is the second ink; it inherits
   into the <use> shadow tree, so setting it here colours the accent inside
   every symbol. Class is `.tic`, not `.ci` — `.ci` is the cart-drawer row.
   Sized generously: these are illustrations, not UI furniture.
   ========================================================================== */
.tic, .cat-ic, .bopt-ic, .bstep-ic, .trust-ic, .cinfo-ic, .empty { --ic-a: var(--brand-red); }

/* inline mark beside a label */
.tic {
  width: 21px; height: 21px; flex-shrink: 0;
  display: inline-block; vertical-align: -5px;
  margin-inline-end: 11px;
  color: rgba(255, 255, 255, .5);
  transition: color .35s var(--ease), transform .4s var(--ease);
}
.mega-list a .tic { color: rgba(255, 255, 255, .46); }
.mega-list a:hover .tic,
.fopt:hover .tic, .fopt.on .tic,
.f-col a:hover .tic,
.tab.on .tic { color: var(--text-primary); }
.fopt.on .tic, .tab.on .tic { transform: scale(1.06); }
.mega-list .mi { display: inline-flex; align-items: center; min-width: 0; }
.kv .k .tic, .brew-specs .k .tic { color: var(--text-secondary); --ic-a: var(--warm-accent); }
.f-col a .tic { width: 18px; height: 18px; margin-inline-end: 9px; opacity: .72; }
.f-col a:hover .tic { opacity: 1; }
.mnav-sub a .tic { width: 22px; height: 22px; margin-inline-end: 0; color: var(--text-secondary); }
.mnav-sub a:hover .tic { color: var(--text-primary); }
.tab .tic { width: 19px; height: 19px; margin-inline-end: 9px; }

/* category tile — the mark is a graphic element, so give it room */
.cat-ic {
  display: block; width: 44px; height: 44px; margin-bottom: 14px;
  color: rgba(255, 255, 255, .92);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .9));
  transition: transform .55s var(--ease), filter .5s var(--ease);
}
.cat-ic svg { width: 100%; height: 100%; }
.cat:hover .cat-ic { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .95)); }

/* blend builder option cards */
.bopt-ic {
  display: block; width: 34px; height: 34px; margin-bottom: 14px;
  color: var(--text-secondary);
  transition: color .4s var(--ease), transform .45s var(--ease);
}
.bopt-ic svg { width: 100%; height: 100%; }
.bopt:hover .bopt-ic { color: var(--text-primary); transform: translateY(-3px); }
.bopt.on .bopt-ic { color: var(--text-primary); transform: scale(1.06); }

/* builder step badge */
.bstep-ic { width: 30px; height: 30px; flex-shrink: 0; color: var(--text-secondary); }
.bstep-ic svg { width: 100%; height: 100%; }

/* brew method tabs */
.brew-tab svg { width: 26px; height: 26px; opacity: 1; }
.brew-tab { --ic-a: rgba(255, 255, 255, .3); }
.brew-tab.on, .brew-tab:hover { --ic-a: var(--brand-red); }

/* Trust + contact chips: the chip is already red-tinted, so paint the mark's
   body warm white and let --ic-a carry the red — otherwise it is red on red
   and all the interior detail disappears. */
.trust-ic { width: 56px; height: 56px; color: var(--text-primary); }
.trust-ic svg { width: 30px; height: 30px; }
.trust-cell:hover .trust-ic { transform: translateY(-2px) scale(1.03); }
.cinfo-ic { width: 52px; height: 52px; color: var(--text-primary); }
.cinfo-ic svg { width: 26px; height: 26px; }

/* spec + info rows */
.brew-specs .k, .kv .k { display: inline-flex; align-items: center; }
.fopt > span:first-child { display: inline-flex; align-items: center; min-width: 0; }
.note svg { width: 22px; height: 22px; }
.visit-rows svg { width: 22px; height: 22px; }

/* empty states — here the mark carries the whole message */
.empty svg { width: 78px; height: 78px; color: #333; --ic-a: #4a1418; }
.empty h4 { margin-top: 24px; }

/* blend builder step badge */

/* ==========================================================================
   custom blend builder — percentage mixer
   The customer distributes 100% across single-origin lots, so every control
   here is a share of one budget: steppers clamp against the remainder, the
   summary bar reads that budget back, and the price is the weighted mean of
   the chosen lots' per-kilo prices.
   ========================================================================== */

.mix-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mix-col { background: var(--bg-elevated); border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; }
.mix-col > header {
  display: flex; align-items: center; gap: 11px;
  padding: 15px clamp(14px, 1.8vw, 20px); border-bottom: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, .022);
}
.mix-col > header svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--brand-red); }
.mix-col > header h3 { font-size: 14.5px; font-weight: 700; }
.mix-col > header .sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.mix-col > header .c {
  margin-inline-start: auto; flex-shrink: 0;
  font-family: var(--f-num); direction: ltr; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.mix-col.has > header .c { color: var(--brand-red); }

.mixrow {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 13px clamp(14px, 1.8vw, 20px); border-bottom: 1px solid var(--border-dark);
  transition: background .35s;
}
.mixrow:last-child { border-bottom: 0; }
.mixrow.on { background: rgba(237, 27, 36, .055); }
.mixrow .t b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.6; }
/* direct children only — a descendant selector here would also block-ify the
   inline .num inside the price line and break it onto its own row */
.mixrow .t > span { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.75; margin-top: 3px; }
.mixrow .t .p { font-size: 11.5px; color: var(--warm-accent); margin-top: 5px; white-space: nowrap; }

/* shortcut button on the origin cards further down the page */
.origin .mix-add {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 12px;
  padding-inline: 15px; border: 1px solid var(--border-dark); border-radius: 99px;
  background: rgba(255, 255, 255, .03); font-size: 12.5px; color: var(--text-secondary);
  transition: color .3s, border-color .3s, background .3s;
}
.origin .mix-add svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--brand-red); }
.origin .mix-add:hover { color: var(--text-primary); border-color: rgba(237, 27, 36, .45); background: rgba(237, 27, 36, .1); }

/* stepper — 44px targets, hit area never smaller than the touch minimum */
.step { display: inline-flex; align-items: center; border: 1px solid var(--border-dark); border-radius: 99px; background: var(--bg-main); overflow: hidden; }
.step button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-secondary); transition: color .3s, background .3s; }
.step button:hover { color: var(--text-primary); background: rgba(255, 255, 255, .055); }
.step button[disabled] { opacity: .28; pointer-events: none; }
.step svg { width: 14px; height: 14px; }
.step .v { min-width: 54px; text-align: center; font-family: var(--f-num); direction: ltr; font-size: 14px; font-weight: 600; }
.mixrow.on .step { border-color: rgba(237, 27, 36, .4); }
.mixrow.on .step .v { color: var(--text-primary); }

/* running total — colour is backed by an icon + words, never colour alone */
.mixsum {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px;
  padding: 15px clamp(14px, 1.8vw, 20px); border: 1px solid var(--border-dark); border-radius: 4px;
  background: var(--bg-elevated); transition: border-color .4s;
}
.mixsum .lbl { font-size: 12.5px; color: var(--text-muted); }
.mixsum .tot { font-family: var(--f-num); direction: ltr; font-size: 21px; font-weight: 700; }
.mixsum .track { flex: 1; min-width: 150px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.mixsum .track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(270deg, var(--brand-red), var(--warm-accent)); transition: width .45s var(--ease); }
.mixsum .msg { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.mixsum .msg svg { width: 16px; height: 16px; flex-shrink: 0; }
.mixsum.ok { border-color: rgba(200, 155, 99, .38); }
.mixsum.ok .tot, .mixsum.ok .msg { color: var(--warm-accent); }
.mixsum.bad { border-color: rgba(237, 27, 36, .34); }
.mixsum.bad .tot, .mixsum.bad .msg { color: var(--brand-red); }

/* one-tap starting points */
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding-inline: 16px;
  border: 1px solid var(--border-dark); border-radius: 99px; background: var(--bg-elevated);
  font-size: 12.5px; color: var(--text-secondary); white-space: nowrap;
  transition: color .35s, background .35s, border-color .35s;
}
.preset svg { width: 15px; height: 15px; color: var(--brand-red); }
.preset:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-soft); }
.preset.on { color: var(--text-primary); border-color: rgba(237, 27, 36, .45); background: rgba(237, 27, 36, .1); }
.preset .r { font-family: var(--f-num); direction: ltr; font-size: 10.5px; color: var(--text-muted); }
.preset.on .r { color: var(--warm-accent); }

/* recipe panel — stacked composition read-out */
.compbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.compbar i { display: block; height: 100%; transition: width .5s var(--ease); }
.complist { display: grid; gap: 9px; margin-top: 14px; }
.complist > div { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-secondary); }
.complist .sw { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.complist .pc { margin-inline-start: auto; font-family: var(--f-num); direction: ltr; color: var(--text-primary); font-weight: 600; }
.comp-empty { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; }

/* the add button stays clickable while incomplete so the tap can explain why */
.btn.is-off { opacity: .5; }

/* grind guide */
.gtable .dev { font-size: 13px; color: var(--text-secondary); }
.gtable .why { font-size: 12.5px; color: var(--text-muted); }
.gtable .gname { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.gtable .gname svg { width: 17px; height: 17px; color: var(--brand-red); flex-shrink: 0; }

@media (max-width: 900px) {
  .mix-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mixrow { grid-template-columns: 1fr; gap: 10px; }
  .mixrow .step { justify-self: start; }
}

/* ==========================================================================
   ACCOUNT DASHBOARD
   Everything below is scoped to the signed-in area. The sidebar, the greeting
   banner, the quick-action grid and the modal are shared by all nine screens,
   so they are defined once here rather than per page.
   ========================================================================== */

/* A grid item with visible overflow gets an automatic minimum size equal to its
   min-content width, so one un-breakable figure or a horizontal strip inside the
   dashboard would widen the `1fr` track and push the whole page sideways. The
   mobile block already did this; the desktop layout needs it just as much. */
.acc > * { min-width: 0; }

/* ---------- sidebar ---------- */
.acc-side { padding: clamp(18px, 2vw, 24px); }
.acc-user { position: relative; }
.acc-av { position: relative; }
/* tier ring around the avatar — colour comes from the tier class on .acc-user */
.acc-av::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .3;
}
.tierlab {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.tierlab svg { width: 12px; height: 12px; }
.tier-bronze { color: #c07d4e; }
.tier-silver { color: #b9c0c8; }
.tier-gold   { color: var(--warm-accent); }

.acc-nav a { position: relative; }
.acc-nav a.on::before {
  content: ''; position: absolute; inset-block: 8px; inset-inline-start: 0;
  width: 2px; border-radius: 100px; background: var(--brand-red);
}
.acc-nav .n {
  min-width: 20px; height: 19px; padding-inline: 6px; border-radius: 100px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); color: var(--text-secondary);
  font-size: 10.5px; font-weight: 600;
}
.acc-nav a.on .n { background: rgba(237, 27, 36, .18); color: #ff8b90; }
.acc-nav .danger { color: var(--text-muted); }
.acc-nav .danger:hover { color: var(--brand-red); background: rgba(237, 27, 36, .07); }
.acc-side-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-dark);
  font-size: 11.5px; color: var(--text-muted); line-height: 1.9;
}
.acc-side-foot a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.acc-side-foot a:hover { color: var(--brand-red); }

/* ---------- greeting banner ---------- */
.dash-hi {
  position: relative; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--border-dark); background: var(--bg-elevated);
  padding: clamp(22px, 2.8vw, 32px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.dash-hi > * { min-width: 0; }
.dash-hi::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 140% at 92% 0%, rgba(237, 27, 36, .16), transparent 62%);
}
.dash-hi > * { position: relative; z-index: 2; }
.dash-hi .eyebrow { color: var(--warm-accent); }
.dash-hi h2 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; margin-top: 14px; }
.dash-hi p { font-size: 13px; color: var(--text-secondary); margin-top: 10px; line-height: 1.9; max-width: 46ch; }
.dash-hi-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* loyalty rail */
.tier { margin-top: 22px; max-width: 460px; }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); }
.tier-top b { color: var(--text-primary); font-weight: 700; font-size: 12.5px; }
.tier-bar { height: 5px; border-radius: 100px; background: rgba(255, 255, 255, .08); margin-top: 9px; overflow: hidden; }
.tier-bar i {
  display: block; height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--brand-red), var(--warm-accent));
  transform-origin: inline-start; animation: tierGrow 1.1s var(--ease);
}
@keyframes tierGrow { from { transform: scaleX(0); } }
.tier-note { margin-top: 9px; font-size: 11.5px; color: var(--text-muted); }

/* ---------- stat cards ---------- */
.stat-card { position: relative; overflow: hidden; min-width: 0; }
.stat-card .k { overflow: hidden; text-overflow: ellipsis; }
.stat-card::after {
  content: ''; position: absolute; inset-inline-end: -30px; top: -30px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 27, 36, .1), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.stat-card:hover::after { opacity: 1; }
.stat-card .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.stat-card .hd svg { margin-bottom: 0; }
.stat-card .trend {
  font-family: var(--f-num); font-size: 10.5px; font-weight: 600; direction: ltr;
  padding: 3px 8px; border-radius: 100px;
  color: #57c98a; background: rgba(87, 201, 138, .1); border: 1px solid rgba(87, 201, 138, .22);
}
.stat-card .trend.flat { color: var(--text-muted); background: rgba(255, 255, 255, .04); border-color: var(--border-dark); }

/* ---------- quick actions ---------- */
.qa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qa a {
  display: flex; align-items: center; gap: 13px; padding: 16px 17px;
  border-radius: 4px; border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .022);
  transition: border-color .4s, background .4s, transform .5s var(--ease);
}
.qa a:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, .045); transform: translateY(-2px); }
.qa .qa-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 3px; display: grid; place-items: center;
  background: rgba(237, 27, 36, .1); border: 1px solid rgba(237, 27, 36, .2);
}
.qa .qa-ic svg { width: 17px; height: 17px; color: var(--brand-red); }
.qa b { display: block; font-size: 13px; font-weight: 600; }
.qa span { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ---------- live shipment card ---------- */
.ship {
  border-radius: 4px; border: 1px solid rgba(106, 166, 255, .22);
  background: linear-gradient(180deg, rgba(106, 166, 255, .07), rgba(106, 166, 255, .02));
  padding: clamp(18px, 2.2vw, 24px);
}
.ship-top { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.ship-top .ic {
  width: 40px; height: 40px; border-radius: 3px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(106, 166, 255, .12); border: 1px solid rgba(106, 166, 255, .26);
}
.ship-top .ic svg { width: 19px; height: 19px; color: #6aa6ff; }
.ship-top b { font-size: 13.5px; font-weight: 700; }
.ship-top .s { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.ship-rail { position: relative; height: 3px; border-radius: 100px; background: rgba(255, 255, 255, .09); margin-top: 24px; }
.ship-rail > i { display: block; height: 100%; border-radius: 100px; background: #6aa6ff; }
.ship-rail .dot {
  position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  transform: translate(50%, -50%); background: var(--bg-main); border: 1px solid rgba(255, 255, 255, .2);
}
.ship-rail .dot.hit { background: #6aa6ff; border-color: #6aa6ff; }
.ship-legend { display: flex; justify-content: space-between; margin-top: 14px; font-size: 10.5px; color: var(--text-muted); }
.ship-legend .hit { color: #6aa6ff; }

/* ---------- panel toolbar (search + sort) ---------- */
.ptool { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ptool .srch { position: relative; flex: 1; min-width: 180px; }
.ptool .srch svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.ptool .srch .input { width: 100%; height: 44px; padding-inline-start: 40px; font-size: 13px; }
.ptool select.input { flex: 0 0 auto; height: 44px; font-size: 13px; width: auto; min-width: 176px; }
.ptool .btn { flex: 0 0 auto; }

/* ---------- order rows ---------- */
.orow {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  padding: 16px 18px; background: var(--bg-elevated); border: 1px solid var(--border-dark);
  border-radius: 4px; margin-bottom: 10px; transition: border-color .4s, background .4s;
}
.orow:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, .022); }
.orow-th { position: relative; width: 64px; height: 64px; background: #0d0d0d; border-radius: 3px; padding: 8px; display: grid; place-items: center; }
.orow-th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.orow-th .more {
  position: absolute; inset-block-end: -6px; inset-inline-start: -6px;
  min-width: 22px; height: 22px; padding-inline: 5px; border-radius: 100px;
  display: grid; place-items: center; font-family: var(--f-num); font-size: 10px; direction: ltr;
  background: var(--bg-soft); border: 1px solid var(--border-dark); color: var(--text-secondary);
}
.orow-b { min-width: 0; }
.orow-b .code { font-family: var(--f-num); font-size: 11px; letter-spacing: .18em; color: var(--text-muted); direction: ltr; }
.orow-b h3 { font-size: 14px; font-weight: 600; margin-top: 6px; line-height: 1.65; }
.orow-b h3 a:hover { color: var(--brand-red); }
.orow-meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 9px; font-size: 11.5px; color: var(--text-muted); }
.orow-meta .num { direction: ltr; }
.orow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; }
.orow-price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.orow-price .u { font-size: 11px; color: var(--text-muted); margin-inline-start: 4px; }
.orow-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.mini-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; color: var(--text-secondary);
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .03);
  transition: color .3s, border-color .3s, background .3s;
}
.mini-btn:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255, 255, 255, .07); }
.mini-btn svg { width: 13px; height: 13px; }
.mini-btn.hot { color: #ff9195; border-color: rgba(237, 27, 36, .3); background: rgba(237, 27, 36, .08); }
.mini-btn.hot:hover { color: #fff; background: rgba(237, 27, 36, .18); }
.mini-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- address cards ---------- */
.adr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adr {
  position: relative; padding: 20px; border-radius: 4px;
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .022);
  transition: border-color .4s, background .4s;
}
.adr:hover { border-color: var(--border-hover); }
.adr.def { border-color: rgba(237, 27, 36, .3); background: rgba(237, 27, 36, .045); }
.adr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.adr-top .ic { width: 32px; height: 32px; border-radius: 3px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.adr-top .ic svg { width: 15px; height: 15px; color: var(--text-secondary); }
.adr.def .adr-top .ic { background: rgba(237, 27, 36, .12); }
.adr.def .adr-top .ic svg { color: var(--brand-red); }
.adr-top b { font-size: 13.5px; font-weight: 700; }
.adr-top .pill { margin-inline-start: auto; padding: 4px 9px; font-size: 10px; }
.adr p { font-size: 13px; color: var(--text-secondary); line-height: 2; }
.adr .who { margin-top: 12px; font-size: 11.5px; color: var(--text-muted); line-height: 1.9; }
.adr .who .num { direction: ltr; }
.adr-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-dark); }
.adr-add {
  display: grid; place-items: center; align-content: center; gap: 12px; min-height: 190px; text-align: center;
  border: 1px dashed var(--border-hover); border-radius: 4px; color: var(--text-muted);
  transition: color .35s, border-color .35s, background .35s;
}
.adr-add:hover { color: var(--text-primary); border-color: var(--brand-red); background: rgba(237, 27, 36, .05); }
.adr-add svg { width: 26px; height: 26px; }
.adr-add .t { font-size: 13px; font-weight: 600; }

/* ---------- modal ---------- */
.mdl {
  position: fixed; inset: 0; z-index: 220; display: grid; place-items: center;
  padding: 20px; opacity: 0; visibility: hidden;
  background: rgba(4, 4, 4, .78); backdrop-filter: blur(6px);
  transition: opacity .4s var(--ease), visibility .4s;
}
.mdl.on { opacity: 1; visibility: visible; }
.mdl-panel {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-elevated); border: 1px solid var(--border-hover); border-radius: 5px;
  padding: clamp(22px, 3vw, 34px);
  transform: translateY(18px) scale(.98); transition: transform .5s var(--ease);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.mdl.on .mdl-panel { transform: none; }
.mdl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border-dark); }
.mdl-head h3 { font-size: 16.5px; font-weight: 700; }
.mdl-head p { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.mdl-x { color: var(--text-muted); transition: color .3s; }
.mdl-x:hover { color: var(--brand-red); }
.mdl-x svg { width: 20px; height: 20px; }
.mdl-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.mdl-danger { text-align: center; }
.mdl-danger .ic { width: 54px; height: 54px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; background: rgba(237, 27, 36, .1); border: 1px solid rgba(237, 27, 36, .26); }
.mdl-danger .ic svg { width: 24px; height: 24px; color: var(--brand-red); }
.mdl-danger h3 { font-size: 17px; margin-top: 18px; }
.mdl-danger p { font-size: 13px; color: var(--text-secondary); margin-top: 10px; line-height: 1.9; }
.mdl-danger .mdl-foot { justify-content: center; }

/* ---------- ticket thread ---------- */
.thread { padding-block: 6px; }
.msg .meta b { font-size: 12px; color: var(--text-primary); }
.msg-day {
  align-self: center; max-width: none; padding: 0; margin-block: 6px;
  background: none; border: 0; font-family: var(--f-num); font-size: 10.5px;
  letter-spacing: .16em; color: var(--text-muted); direction: ltr;
}
.tk-rate { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tk-rate button { color: #3a3a3a; transition: color .25s, transform .3s var(--ease); }
.tk-rate button svg { width: 22px; height: 22px; }
.tk-rate button:hover { transform: translateY(-2px); }
.tk-rate button.on { color: var(--warm-accent); }
.tk-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tk-chips button {
  padding: 8px 13px; border-radius: 100px; font-size: 12px; color: var(--text-secondary);
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .03);
  transition: color .3s, border-color .3s, background .3s;
}
.tk-chips button:hover { color: var(--text-primary); border-color: var(--border-hover); }
.tk-count { font-family: var(--f-num); font-size: 11px; color: var(--text-muted); direction: ltr; }

/* ---------- profile extras ---------- */
.pf-av { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pf-av .acc-av { width: 62px; height: 62px; font-size: 22px; }
.pf-av .t { flex: 1; min-width: 0; }
.pf-av .t b { display: block; font-size: 15.5px; font-weight: 700; }
.pf-av .t .tierlab { margin-top: 8px; }
.pf-facts { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-facts > span {
  display: flex; flex-direction: column; gap: 5px; text-align: center;
  min-width: 92px; padding: 11px 14px; border-radius: 3px;
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .025);
  font-size: 11px; color: var(--text-muted);
}
.pf-facts b { font-family: var(--f-num); font-size: 15px; font-weight: 700; color: var(--text-primary); direction: ltr; }

/* the ring picks up the tier, while the initial stays brand red */
.tier-bronze .acc-av::after { border-color: #c07d4e; }
.tier-silver .acc-av::after { border-color: #b9c0c8; }
.tier-gold   .acc-av::after { border-color: var(--warm-accent); }
.pref { display: grid; gap: 2px; }
.pref label {
  display: flex; align-items: flex-start; gap: 13px; padding: 15px 0;
  border-bottom: 1px solid var(--border-dark); cursor: pointer;
}
.pref label:last-child { border-bottom: 0; }
.pref .t { flex: 1; min-width: 0; }
.pref .t b { display: block; font-size: 13.5px; font-weight: 600; }
.pref .t span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.8; }

/* switch */
.sw { position: relative; width: 40px; height: 23px; flex-shrink: 0; margin-top: 2px; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw i {
  position: absolute; inset: 0; border-radius: 100px; pointer-events: none;
  background: rgba(255, 255, 255, .09); border: 1px solid var(--border-dark);
  transition: background .35s, border-color .35s;
}
.sw i::after {
  content: ''; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--text-muted);
  transition: transform .35s var(--ease), background .35s;
}
.sw input:checked + i { background: rgba(237, 27, 36, .28); border-color: rgba(237, 27, 36, .5); }
.sw input:checked + i::after { background: #fff; transform: translateX(-17px); }
html[dir="ltr"] .sw input:checked + i::after { transform: translateX(17px); }
.sw input:focus-visible + i { outline: 2px solid var(--brand-red); outline-offset: 2px; }

.danger-zone { border-color: rgba(237, 27, 36, .24); }
.danger-zone .panel-head h3 { color: #ff9195; }

/* ---------- reorder strip ---------- */
.restrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.restrip::-webkit-scrollbar { display: none; }
.restrip .rs {
  flex: 0 0 auto; width: 168px; padding: 14px; border-radius: 4px;
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .022);
  transition: border-color .4s, transform .5s var(--ease);
}
.restrip .rs:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.restrip .rs .im { height: 88px; display: grid; place-items: center; background: #0d0d0d; border-radius: 3px; padding: 8px; }
.restrip .rs .im img { max-width: 100%; max-height: 100%; object-fit: contain; }
.restrip .rs h4 { font-size: 12.5px; font-weight: 600; line-height: 1.7; margin-top: 12px; height: 2.7em; overflow: hidden; }
.restrip .rs .p { font-size: 12.5px; font-weight: 700; margin-top: 8px; }
.restrip .rs .mini-btn { width: 100%; justify-content: center; margin-top: 11px; }

/* ---------- pager reused inside panels ---------- */
.acc-pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.acc-pager button {
  min-width: 36px; height: 36px; padding-inline: 10px; border-radius: 3px;
  font-family: var(--f-num); font-size: 12.5px; color: var(--text-secondary); direction: ltr;
  border: 1px solid var(--border-dark); background: rgba(255, 255, 255, .025);
  transition: color .3s, border-color .3s, background .3s;
}
.acc-pager button:hover:not([disabled]) { color: var(--text-primary); border-color: var(--border-hover); }
.acc-pager button.on { color: #fff; background: var(--brand-red); border-color: var(--brand-red); }
.acc-pager button[disabled] { opacity: .35; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .auth-art-mid h2 { font-size: 1.5rem; }
  .auth-perks { gap: 11px; }
}
/* a laptop viewport is short, not narrow: drop the quote before the perks */
@media (min-width: 1025px) and (max-height: 960px) { .auth-quote { display: none; } }
@media (min-width: 1025px) and (max-height: 820px) {
  .auth-art-mid h2 { font-size: 1.35rem; }
  .auth-perks li { font-size: 12.5px; }
  .auth-perks { gap: 10px; }
}
@media (max-width: 1024px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { min-height: 300px; }
  .auth-art-in { padding: 26px 24px 30px; }
  .auth-quote { display: none; }
  .auth-perks { grid-auto-flow: column; grid-template-columns: repeat(3, 1fr); }
  .auth-perks li { flex-direction: column; gap: 9px; font-size: 12px; }
  .auth-form { padding-block: 40px 60px; }
  .dash-hi { grid-template-columns: 1fr; }
  .adr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orow { grid-template-columns: 56px 1fr; row-gap: 14px; }
  .orow-th { width: 56px; height: 56px; }
  .orow-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .auth-perks { grid-auto-flow: row; grid-template-columns: 1fr; }
  .auth-perks li { flex-direction: row; }
  .auth-art { min-height: 220px; }
  .auth-art-mid h2 { font-size: 1.3rem; }
}
@media (max-width: 560px) {
  .qa { grid-template-columns: 1fr; }
  .auth-seg a { font-size: 12px; }
  .otp input { width: 46px; height: 56px; font-size: 20px; }
  .auth-trust { grid-template-columns: 1fr; }
  .auth-trust div { display: flex; align-items: center; gap: 10px; text-align: start; }
  .auth-trust svg { margin-inline: 0; }
  .auth-trust span { margin-top: 0; }
  .pw-rules li { font-size: 10.5px; }
  .orow-side { flex-wrap: wrap; }
}

/* ---------- print: order invoice ---------- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .header, .footer, .acc-side, .phead, .totop, .grain, .vignette, .sprog,
  .cursor, .cursor-ring, .toasts, .mdl, .scrim, .no-print, .loader { display: none !important; }
  .panel { border: 1px solid #ccc !important; background: #fff !important; break-inside: avoid; }
  .acc { display: block !important; }
  .sect-gap { padding: 0 !important; }
  * { color: #000 !important; }
  .pill { border: 1px solid #999 !important; background: #fff !important; }
}

/* contact rows: .k/.v are inline spans, so without this the label and the
   value run together ("تلفن پشتیبانی021 — 8888 0000") */
.cinfo-row .k { display: block; }
.cinfo-row .v { display: block; margin-top: 5px; }
