/* =====================================================================
   hi1.ir — design system
   Hand written, no framework, no build step.
   Identity: a shop profile is a credential document, not a web card.
   Palette: lapis / turquoise / saffron — the Persian triad.
   ===================================================================== */

/* ---------------------------------------------------------- fonts */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gandom';
  src: url('/fonts/Gandom.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------- tokens */
:root {
  /* brand ramps — fixed, never themed */
  --lapis-900: #0A1832;
  --lapis-800: #0F2450;
  --lapis-700: #14306B;
  --lapis-600: #1B3B7A;
  --lapis-400: #3E5FA6;
  --lapis-200: #A9BCE0;
  --turq-700: #0B6B62;
  --turq-600: #10897E;
  --turq-500: #21C0B0;
  --turq-300: #6FDCD0;
  --turq-100: #D7F4F0;
  --saffron-700: #9C6212;
  --saffron-600: #C77F1B;
  --saffron-500: #F2A93B;
  --saffron-200: #FBE3B8;
  --rose-600: #B2354C;
  --rose-500: #D9455F;
  --green-600: #24714F;
  --green-500: #2E8B62;

  /* semantic — light is the public default */
  --bg:            #F4F7FB;
  --bg-alt:        #EAF0F8;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5FA;
  --surface-sunk:  #E7EDF6;
  --line:          #DAE2EE;
  --line-strong:   #C3D0E2;
  --text:          #0C1424;
  --text-2:        #3B4A63;
  --text-3:        #6B7C97;
  --accent:        var(--turq-600);
  --accent-ink:    #FFFFFF;
  --accent-soft:   var(--turq-100);
  --gold:          var(--saffron-600);
  --gold-soft:     #FCF1DC;
  --danger:        var(--rose-600);
  --good:          var(--green-600);
  --deep:          var(--lapis-600);
  --deep-ink:      #EAF0FB;

  --shadow-sm: 0 1px 2px rgba(12, 20, 36, .06);
  --shadow:    0 2px 4px rgba(12, 20, 36, .05), 0 12px 28px -20px rgba(12, 20, 36, .45);
  --shadow-lg: 0 4px 10px rgba(12, 20, 36, .07), 0 28px 60px -34px rgba(12, 20, 36, .55);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --gut: clamp(16px, 4vw, 32px);
  --page: 1200px;
  --header-h: 64px;
}

/* dark: the default for panels, and for anyone whose system asks for it */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg:            #070B12;
    --bg-alt:        #0A1019;
    --surface:       #0F1621;
    --surface-2:     #141D2B;
    --surface-sunk:  #0B121C;
    --line:          #1E2A3B;
    --line-strong:   #2C3D54;
    --text:          #E8EEF8;
    --text-2:        #B3C1D6;
    --text-3:        #7E8FA8;
    --accent:        var(--turq-500);
    --accent-ink:    #04211E;
    --accent-soft:   #0D2B2A;
    --gold:          var(--saffron-500);
    --gold-soft:     #2A2013;
    --danger:        var(--rose-500);
    --good:          #4FB088;
    --deep:          #0D1F45;
    --deep-ink:      #D8E4F8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow:    0 2px 6px rgba(0, 0, 0, .5), 0 16px 36px -24px rgba(0, 0, 0, .9);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, .55), 0 32px 70px -40px #000;
  }
}
:root[data-theme='dark'] {
  --bg:            #070B12;
  --bg-alt:        #0A1019;
  --surface:       #0F1621;
  --surface-2:     #141D2B;
  --surface-sunk:  #0B121C;
  --line:          #1E2A3B;
  --line-strong:   #2C3D54;
  --text:          #E8EEF8;
  --text-2:        #B3C1D6;
  --text-3:        #7E8FA8;
  --accent:        var(--turq-500);
  --accent-ink:    #04211E;
  --accent-soft:   #0D2B2A;
  --gold:          var(--saffron-500);
  --gold-soft:     #2A2013;
  --danger:        var(--rose-500);
  --good:          #4FB088;
  --deep:          #0D1F45;
  --deep-ink:      #D8E4F8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow:    0 2px 6px rgba(0, 0, 0, .5), 0 16px 36px -24px rgba(0, 0, 0, .9);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, .55), 0 32px 70px -40px #000;
}

/* ---------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.display { font-family: 'Gandom', 'Vazirmatn', sans-serif; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
.num  { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.hidden { display: none !important; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------- security-print texture */
/* a hairline repeating rule, the way value documents separate their zones */
.microline {
  height: 3px;
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--deep) 55%, transparent) 0 1px,
    transparent 1px 5px
  );
  opacity: .55;
}

.guilloche {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .26;
  pointer-events: none;
}

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--lapis-700), var(--lapis-600) 55%, var(--turq-600));
  display: grid; place-items: center;
  color: #fff; font-family: 'Gandom', sans-serif; font-size: 16px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand .name { font-family: 'Gandom', sans-serif; font-size: 20px; letter-spacing: -.01em; }
.brand .name small { display: block; font-family: 'Vazirmatn'; font-size: 10.5px; color: var(--text-3); line-height: 1; margin-top: 2px; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 7px 12px; border-radius: var(--r-sm); color: var(--text-2);
  font-size: 14.5px; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-soft); }

/* ---------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-line: transparent; }
.btn--deep    { --btn-bg: var(--deep); --btn-fg: #fff; --btn-line: transparent; }
.btn--gold    { --btn-bg: var(--gold); --btn-fg: #1B1204; --btn-line: transparent; }
.btn--ghost   { --btn-bg: transparent; --btn-line: var(--line-strong); }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--lg { padding: 13px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------- chips & pills */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  white-space: nowrap;
}
.chip--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip--gold   { background: var(--gold-soft); border-color: transparent; color: var(--gold); }
.chip--good   { background: color-mix(in srgb, var(--good) 12%, transparent); border-color: transparent; color: var(--good); }
.chip--danger { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: transparent; color: var(--danger); }
.chip--lock::before { content: '🔒'; font-size: 10px; filter: grayscale(1); }

/* ---------------------------------------------------------- cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.card__pad { padding: 18px 20px; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.card__head h3 { font-size: 15.5px; font-weight: 700; }

/* ---------------------------------------------------------- shop card */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.shop-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.shop-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.shop-card__top { display: flex; gap: 12px; padding: 16px 16px 10px; }
.shop-card__logo {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: var(--surface-sunk); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
  font-family: 'Gandom', sans-serif; font-size: 18px; color: var(--text-3);
}
.shop-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.shop-card__name { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.shop-card__name a { color: var(--text); }
.shop-card__meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.shop-card__body { padding: 0 16px 12px; font-size: 13.5px; color: var(--text-2); line-height: 1.8; min-height: 3.6em; }
.shop-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.shop-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* corner ribbon for a claimed & verified shop */
.verified-corner {
  position: absolute; inset-inline-end: -34px; top: 12px;
  transform: rotate(45deg);
  background: var(--gold); color: #1B1204;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 40px;
}

/* ---------------------------------------------------------- trust ring */
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring__track { stroke: var(--surface-sunk); fill: none; }
.ring__arc { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.22,.9,.3,1); }
.ring__value {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15; gap: 1px;
}
.ring__value b { font-family: 'Gandom', sans-serif; font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
.ring__value span { font-size: 10px; color: var(--text-3); opacity: .85; }
.credential .ring__value span { color: var(--lapis-200); }
.credential .ring__value b { color: #fff; }
.credential .ring__track { stroke: rgba(255,255,255,.10); }

/* ---------------------------------------------------------- score bars */
.meter { display: grid; gap: 4px; }
.meter__head { display: flex; justify-content: space-between; font-size: 13px; }
.meter__head b { font-variant-numeric: tabular-nums; font-weight: 600; }
.meter__track { height: 7px; border-radius: 4px; background: var(--surface-sunk); overflow: hidden; }
.meter--locked .meter__track {
  background: repeating-linear-gradient(-45deg, var(--surface-sunk) 0 5px, var(--surface-2) 5px 10px);
}
.meter__fill { height: 100%; border-radius: 4px; transition: width .9s cubic-bezier(.22,.9,.3,1); }
.lv-excellent { background: var(--good); }
.lv-good      { background: var(--turq-500); }
.lv-average   { background: var(--saffron-500); }
.lv-weak      { background: var(--rose-500); }
.tx-excellent { color: var(--good); }
.tx-good      { color: var(--turq-600); }
.tx-average   { color: var(--saffron-600); }
.tx-weak      { color: var(--rose-600); }

/* ---------------------------------------------------------- credential header */
.credential {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% -10%, var(--lapis-700) 0%, transparent 55%),
    linear-gradient(200deg, var(--lapis-800), var(--lapis-900));
  color: #E9F0FC;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.credential__inner { position: relative; padding: clamp(20px, 4vw, 34px); }
.credential__eyebrow {
  font-size: 11.5px; letter-spacing: .18em; color: var(--turq-300);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.credential h1 { font-family: 'Gandom', sans-serif; font-weight: 400; font-size: clamp(26px, 5vw, 40px); }
.credential .domain { color: var(--lapis-200); font-size: 14px; margin-top: 2px; }
.credential .domain span { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.credential__grid {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 4vw, 40px); align-items: center;
}
@media (max-width: 720px) { .credential__grid { grid-template-columns: 1fr; } }

.stamp {
  --stamp-color: var(--turq-300);
  position: relative; width: 118px; height: 118px; flex: none;
  border: 2px solid var(--stamp-color); border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  color: var(--stamp-color); transform: rotate(-9deg);
  font-family: 'Gandom', sans-serif; font-size: 13px; line-height: 1.5;
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--stamp-color) 22%, transparent);
}
.stamp small { display: block; font-family: 'Vazirmatn'; font-size: 9.5px; letter-spacing: .1em; opacity: .8; }

/* key/value strip inside the credential */
.kv-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: rgba(255,255,255,.12);
  border-radius: var(--r); overflow: hidden; margin-top: 22px;
}
.kv-strip > div { background: rgba(8, 16, 36, .55); padding: 11px 14px; }
.kv-strip dt { font-size: 11px; color: var(--lapis-200); margin-bottom: 2px; }
.kv-strip dd { margin: 0; font-size: 14.5px; font-weight: 600; }

/* ---------------------------------------------------------- locked value */
.locked {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--r-sm);
  background: repeating-linear-gradient(-45deg, var(--surface-2) 0 6px, var(--surface-sunk) 6px 12px);
  border: 1px dashed var(--line-strong);
  color: var(--text-3); font-size: 13.5px;
  cursor: pointer;
}
.locked:hover { border-color: var(--accent); color: var(--accent); }
.locked .blur { filter: blur(4px); user-select: none; letter-spacing: .04em; }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.data th, table.data td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface-2); font-size: 12.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- filters */
.filters { display: grid; gap: 14px; }
.filter-group { display: grid; gap: 7px; }
.filter-group > b { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 14.5px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: 14px 17px, 19px 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-start: 34px; }

.searchbar { display: flex; gap: 8px; }
.searchbar .field { flex: 1; }

.toggle-list { display: grid; gap: 4px; }
.toggle-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; padding: 3px 0; }
.toggle-list input { accent-color: var(--accent); width: 15px; height: 15px; }
.toggle-list .count { margin-inline-start: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- section head */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h1 { font-family: 'Gandom', sans-serif; font-weight: 400; font-size: clamp(20px, 3.2vw, 26px); }
.sec-head p { margin: 4px 0 0; font-size: 14px; color: var(--text-3); }

/* ---------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(200deg, var(--lapis-800), var(--lapis-900) 70%); color: #E9F0FC; }
.hero__inner { position: relative; padding: clamp(40px, 8vw, 84px) 0 clamp(30px, 6vw, 56px); }
.hero h1 { font-family: 'Gandom', sans-serif; font-weight: 400; font-size: clamp(30px, 6.5vw, 54px); line-height: 1.3; }
.hero p.lede { font-size: clamp(15px, 2.2vw, 18px); color: var(--lapis-200); max-width: 60ch; font-weight: 300; }
.hero .searchbar .field { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); color: #fff; }
.hero .searchbar .field::placeholder { color: #93A9D1; }
.hero .searchbar .field:focus { border-color: var(--turq-500); box-shadow: 0 0 0 3px rgba(33,192,176,.25); }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: rgba(255,255,255,.13); border-radius: var(--r); overflow: hidden; }
.stat-strip > div { background: rgba(7, 14, 32, .5); padding: 14px 16px; }
.stat-strip b { display: block; font-family: 'Gandom', sans-serif; font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.stat-strip span { font-size: 12.5px; color: var(--lapis-200); }

/* ---------------------------------------------------------- panel shell */
.panel { display: grid; grid-template-columns: 248px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }
.side-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
}
.side-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-nav .group-label { font-size: 11.5px; color: var(--text-3); padding: 12px 12px 4px; letter-spacing: .04em; }

/* ---------------------------------------------------------- feature tile */
.feature-tile {
  position: relative; display: grid; gap: 8px;
  padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.feature-tile[data-state='locked'] { border-style: dashed; }
.feature-tile[data-state='on'] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.feature-tile h4 { font-size: 15px; }
.feature-tile p { margin: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.75; }
.feature-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.price { font-family: 'Gandom', sans-serif; font-size: 17px; font-variant-numeric: tabular-nums; }
.price small { font-family: 'Vazirmatn'; font-size: 11.5px; color: var(--text-3); font-weight: 400; }

/* ---------------------------------------------------------- timeline */
.timeline { display: grid; gap: 0; position: relative; }
.timeline__step { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline__step:not(:last-child)::before {
  content: ''; position: absolute; top: 26px; bottom: 0; inset-inline-start: 12px; width: 2px; background: var(--line);
}
.timeline__dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 2px solid var(--line); font-size: 11px; color: var(--text-3); z-index: 1;
}
.timeline__step[data-done='1'] .timeline__dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.timeline__step[data-current='1'] .timeline__dot { border-color: var(--accent); color: var(--accent); }
.timeline__body b { font-size: 14.5px; }
.timeline__body p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------------------------------------------------------- alerts */
.alert { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r); font-size: 14px; border: 1px solid; }
.alert--info { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.alert--gold { background: var(--gold-soft); border-color: transparent; color: var(--gold); }
.alert--danger { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: transparent; color: var(--danger); }

/* ---------------------------------------------------------- footer */
.site-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; padding: 36px 0 24px; }
.site-footer h4 { font-size: 13.5px; margin-bottom: 10px; color: var(--text); }
.site-footer a { display: block; font-size: 13.5px; color: var(--text-3); padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .base { border-top: 1px solid var(--line); padding: 14px 0; font-size: 12.5px; color: var(--text-3); }

/* ---------------------------------------------------------- pagination */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  display: inline-grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager .is-current { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.pager .is-disabled { opacity: .45; }

/* ---------------------------------------------------------- misc */
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.skip-link { position: absolute; inset-inline-start: -9999px; }
.skip-link:focus { inset-inline-start: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: var(--r-sm); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s cubic-bezier(.22,.9,.3,1) both; }
