/* TrafficMENA website redesign, Techno Web Egypt, Nov 2026.
   One component system, two modes: day (light, editorial) and night (forest dark, cinematic).
   Arabic is the source language (RTL); every rule uses logical properties so English (LTR) mirrors. */

@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(../fonts/readex-pro-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(../fonts/readex-pro-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(../fonts/readex-pro-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: "Readex Pro", system-ui, sans-serif;

  /* Brand constants (both modes) */
  --signal: #05ef62;          /* TrafficMENA green: actions, live status, the growth line */
  --signal-press: #04d457;
  --on-signal: #08120d;
  --forest: #0f3d27;          /* the green of the social posts' gradient */
  --forest-deep: #07140d;

  /* Day mode */
  --bg: #ffffff;
  --raised: #f2f5f1;
  --raised-2: #e8ede7;
  --ink: #101010;
  --ink-2: #2a312c;
  --slate: #56605a;
  --line: #e1e6e0;
  --line-strong: #c9d1c8;
  --signal-text: #067a37;      /* green that passes 4.5:1 on white */
  --signal-soft: #e3fbec;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --header-bg: rgba(255, 255, 255, 0.86);
  --shadow-pop: 0 18px 40px -18px rgba(8, 18, 13, 0.28);
  --photo-veil: linear-gradient(180deg, rgba(7, 20, 13, 0) 35%, rgba(7, 20, 13, 0.72) 100%);

  /* Type scale (1.25) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.3125rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.0625rem;
  --fs-3xl: 2.5625rem;
  --fs-4xl: 3.25rem;
  --fs-hero: clamp(2.5rem, 5.2vw, 4.25rem);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: light;
}

html[data-theme="night"] {
  --bg: #08120d;
  --raised: #0e1b14;
  --raised-2: #142419;
  --ink: #edf3ee;
  --ink-2: #cfd9d2;
  --slate: #9fada5;
  --line: #1f3328;
  --line-strong: #2d4637;
  --signal-text: #3cf58a;
  --signal-soft: rgba(5, 239, 98, 0.12);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, 0.12);
  --danger: #ff7a6b;
  --danger-soft: rgba(255, 122, 107, 0.12);
  --header-bg: rgba(8, 18, 13, 0.82);
  --shadow-pop: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "tnum" 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--signal); color: var(--on-signal); padding: 8px 14px; border-radius: var(--r-xs); z-index: 100; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0; }
.lede { font-size: var(--fs-lg); color: var(--slate); max-width: 60ch; line-height: 1.7; font-weight: 300; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-sm); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { background: var(--signal-press); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-quiet { padding: 0 10px; color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--raised); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: var(--fs-xs); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.on-dark .btn-line { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-line:hover { border-color: #fff; }
.link { color: var(--signal-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; direction: ltr; }
.brand img { width: 36px; height: 35px; }
.brand b { color: var(--signal-text); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--raised); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--raised); font-weight: 600; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); position: relative; }
.icon-btn:hover { border-color: var(--line-strong); background: var(--raised); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: var(--on-signal); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.theme-toggle .i-moon { display: none; }
html[data-theme="night"] .theme-toggle .i-sun { display: none; }
html[data-theme="night"] .theme-toggle .i-moon { display: block; }
.lang-link { font-size: var(--fs-sm); font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.lang-link:hover { background: var(--raised); }
.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions .hide-md { display: none; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 49; padding: 24px var(--gutter) 40px; overflow-y: auto; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-lg); font-weight: 600; }
  .mobile-nav .m-actions { display: grid; gap: 10px; margin-top: 24px; }
}
@media (max-width: 560px) {
  .header-actions .hide-sm { display: none; }
  .site-header .wrap { gap: 12px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-raised { background: var(--raised); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { max-width: 28ch; }
.section-head .lede { margin-top: 12px; }
.stack-xs > * + * { margin-top: 6px; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 48px); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.12; font-weight: 700; }
html[lang="en"] .hero h1 { line-height: 1.02; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--raised); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 24px 20px; background: var(--photo-veil); color: #fff; font-size: var(--fs-sm); }
.hero-photo figcaption strong { display: block; font-size: var(--fs-xl); line-height: 1.2; }
.growth-line { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.growth-line path { fill: none; stroke: var(--signal); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.growth-line .head { fill: var(--signal); stroke: none; }
.growth-line .draw { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s cubic-bezier(.6,.05,.25,1) .25s forwards; }
.growth-line .head { opacity: 0; animation: pop .3s ease 1.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .growth-line .draw { animation: none; stroke-dashoffset: 0; }
  .growth-line .head { animation: none; opacity: 1; }
  * { transition: none !important; }
}
.proof-strip { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.proof { padding: 24px 0; padding-inline-end: 20px; }
.proof + .proof { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.proof strong { display: block; font-size: var(--fs-2xl); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.proof span { color: var(--slate); font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .proof:nth-child(n+3) { border-top: 1px solid var(--line); }
}

html[lang="en"] .hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }

/* Night mode turns the hero into the cinematic version of the social posts:
   the photo fills the hero behind the copy and the forest gradient carries the text. */
html[data-theme="night"] .hero { min-height: min(820px, calc(100vh - var(--header-h))); padding-top: clamp(56px, 9vw, 120px); display: flex; flex-direction: column; justify-content: flex-end; }
html[data-theme="night"] .hero-grid { grid-template-columns: minmax(0, 620px); }
html[data-theme="night"] .hero-grid > div { position: relative; z-index: 2; }
html[data-theme="night"] .hero-photo { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: 0; margin: 0; }
html[data-theme="night"] .hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to left, rgba(8,18,13,.97) 0%, rgba(8,18,13,.9) 40%, rgba(8,18,13,.35) 72%, rgba(8,18,13,.12) 100%),
              linear-gradient(0deg, rgba(8,18,13,1) 0%, rgba(8,18,13,0) 40%); }
[dir="ltr"] .hero-photo::after { transform: scaleX(-1); }
html[data-theme="night"] .hero-photo figcaption { display: none; }
html[data-theme="night"] .growth-line { z-index: 2; inset-inline-start: auto; width: 46%; }
html[data-theme="night"] .proof-strip { position: relative; z-index: 2; border-top-color: rgba(255,255,255,.14); }
html[data-theme="night"] .proof + .proof { border-inline-start-color: rgba(255,255,255,.14); }
html[data-theme="night"] .hero .lede { color: #c9d6cd; }
@media (max-width: 900px) {
  html[data-theme="night"] .hero { min-height: 0; }
  html[data-theme="night"] .growth-line { width: 100%; opacity: .5; }
}
html:not([data-theme="night"]) .hero-photo::after { display: none; }

/* ---------- Path chooser ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.path { position: relative; padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; background: var(--bg); transition: background-color .2s; }
.path + .path { border-inline-start: 1px solid var(--line); }
.path:hover { background: var(--raised); }
.path .path-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--raised-2); }
.path:hover .path-ico { background: var(--signal); color: var(--on-signal); }
.path .path-ico svg { width: 24px; height: 24px; }
.path h3 { font-size: var(--fs-xl); }
.path p { color: var(--slate); }
.path .path-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: var(--fs-sm); }
.path .path-foot svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } .path + .path { border-inline-start: 0; border-top: 1px solid var(--line); } .path { min-height: 0; } }

/* ---------- Forest band (the social-post look, same in both modes) ---------- */
.band { position: relative; color: #fff; background: linear-gradient(170deg, var(--forest) 0%, var(--forest-deep) 70%); overflow: hidden; }
.band .muted, .band .lede { color: rgba(255,255,255,.72); }
.band .accent { color: var(--signal); }
.band-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.mosaic figure { margin: 0; border-radius: var(--r-md); overflow: hidden; position: relative; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic .m-tall { grid-row: span 2; }
.mosaic figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 10px; font-size: var(--fs-xs); background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); color: #fff; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; } .mosaic .m-tall { grid-column: span 2; grid-row: auto; } }
.big-figure { font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 700; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.partner-list { display: flex; flex-wrap: wrap; gap: 10px; }
.partner { padding: 10px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); color: rgba(255,255,255,.9); direction: ltr; }
.partner small { display: block; font-weight: 400; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.2; }

/* ---------- Cards ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
a.card:hover, .card.is-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
html[data-theme="night"] .card { background: var(--raised); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: var(--fs-lg); line-height: 1.35; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--slate); font-size: var(--fs-sm); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; flex: none; }
.price { font-weight: 700; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-weight: 400; color: var(--slate); font-size: var(--fs-xs); }

/* Track cover: typographic, no stock art. Each track keeps one hue so a row of tracks is scannable. */
.cover { position: relative; aspect-ratio: 4 / 3; padding: 20px; gap: 16px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; background: var(--c1, var(--forest)); }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 100% 100%, rgba(255,255,255,.14), transparent 60%); pointer-events: none; }
.cover .cover-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; max-width: 16ch; position: relative; z-index: 1; text-wrap: balance; }
html[lang="en"] .cover .cover-title { font-size: var(--fs-lg); }
.cover .cover-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cover .spark { position: absolute; inset-inline-end: -10px; top: 46px; width: 58%; z-index: 0; opacity: .85; }
.cover .spark path { fill: none; stroke: var(--c2, var(--signal)); stroke-width: 5; stroke-linecap: round; }
[dir="rtl"] .cover .spark { transform: scaleX(-1); }
.cover.c-forest { --c1: linear-gradient(150deg, #0f3d27, #07140d); --c2: #05ef62; }
.cover.c-ink { --c1: linear-gradient(150deg, #1d1f1e, #0b0c0c); --c2: #05ef62; }
.cover.c-signal { --c1: linear-gradient(150deg, #05ef62, #07c752); --c2: #08120d; color: #08120d; }
.cover.c-signal::after { background: radial-gradient(90% 90% at 100% 100%, rgba(255,255,255,.35), transparent 60%); }
.cover.c-teal { --c1: linear-gradient(150deg, #0b4f4a, #06201e); --c2: #5cf2c8; }
.cover.c-amber { --c1: linear-gradient(150deg, #3a2a08, #120d04); --c2: #ffc24d; }
.cover.c-photo { background: #000; }
.cover.c-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }

/* Status chips: text + colour, never colour alone */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--raised-2); color: var(--ink-2); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.plain::before { display: none; }
.chip.open { background: var(--signal-soft); color: var(--signal-text); }
.chip.few { background: var(--warn-soft); color: var(--warn); }
.chip.full { background: var(--danger-soft); color: var(--danger); }
.chip.past { background: var(--raised-2); color: var(--slate); }
.chip.dark { background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); }
.chip.light { background: rgba(255,255,255,.9); color: #08120d; }
.cover .chip.dark { background: rgba(0,0,0,.35); }

/* Event card with photo */
.photo-top { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--raised-2); }
.photo-top img { width: 100%; height: 100%; object-fit: cover; }
.photo-top .chip { position: absolute; top: 14px; inset-inline-start: 14px; }
.date-tile { position: absolute; bottom: 14px; inset-inline-start: 14px; background: var(--bg); color: var(--ink); border-radius: 14px; padding: 6px 12px; text-align: center; line-height: 1.1; min-width: 58px; }
.date-tile b { display: block; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.date-tile span { font-size: var(--fs-xs); color: var(--slate); }

/* Expert */
.expert { text-align: start; }
.portrait { aspect-ratio: 4 / 4.6; background: var(--raised-2); border-radius: var(--r-md); overflow: hidden; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.monogram { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; font-weight: 700; color: var(--signal-text); background: radial-gradient(80% 80% at 70% 20%, var(--signal-soft), transparent 70%), var(--raised-2); direction: ltr; letter-spacing: -0.02em; }
.expert h3 { margin-top: 14px; font-size: var(--fs-md); }
.expert p { color: var(--slate); font-size: var(--fs-sm); line-height: 1.5; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--raised-2); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); color: var(--signal-text); direction: ltr; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.avatar.lg { width: 72px; height: 72px; font-size: var(--fs-lg); }

/* Quotes */
.quote { padding: 28px; border-radius: var(--r-md); background: var(--raised); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: var(--fs-lg); line-height: 1.7; font-weight: 400; }
.quote cite { font-style: normal; display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--slate); }
.quote cite b { color: var(--ink); display: block; }
.quote-mark { width: 34px; height: 34px; color: var(--signal-text); }

/* Feature list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li svg { width: 22px; height: 22px; flex: none; color: var(--signal-text); margin-top: 3px; }
.ticks li.off { color: var(--slate); }
.ticks li.off svg { color: var(--line-strong); }

/* Membership plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 22px; background: var(--bg); }
.plan.is-featured { background: linear-gradient(165deg, var(--forest), var(--forest-deep)); color: #fff; border-color: transparent; }
.plan.is-featured .muted { color: rgba(255,255,255,.7); }
.plan.is-featured .ticks li svg { color: var(--signal); }
.plan .amount { font-size: var(--fs-4xl); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: var(--fs-md); font-weight: 400; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.125rem, 4.4vw, 3.25rem); }
.page-head .lede { margin-top: 14px; }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-xs); color: var(--slate); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* Filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--raised); gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; color: var(--slate); }
.seg [aria-pressed="true"], .seg [aria-selected="true"], .seg .is-on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
html[data-theme="night"] .seg [aria-pressed="true"], html[data-theme="night"] .seg [aria-selected="true"], html[data-theme="night"] .seg .is-on { background: var(--raised-2); }
.search { position: relative; min-width: min(320px, 100%); }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate); }
.search input { padding-inline-start: 42px; }

/* ---------- Detail layout ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr); } .aside-sticky { position: static; } }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: var(--fs-xl); margin-top: 40px; margin-bottom: 14px; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.fact { padding: 16px 18px; border-inline-end: 1px solid var(--line); }
.fact:last-child { border-inline-end: 0; }
.fact span { display: block; font-size: var(--fs-xs); color: var(--slate); }
.fact b { font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: var(--bg); }
html[data-theme="night"] .panel { background: var(--raised); }
.panel h3 { font-size: var(--fs-md); }

/* Timeline of sessions (a real sequence, so numbered) */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.timeline li { counter-increment: s; position: relative; padding-inline-start: 56px; padding-bottom: 26px; }
.timeline li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); background: var(--bg); z-index: 1; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 17px; top: 36px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.timeline h3 { font-size: var(--fs-md); line-height: 1.5; }
.timeline .who { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: var(--fs-sm); }

/* Ticket options */
.options { display: grid; gap: 10px; }
.option { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s, background-color .15s; }
.option:hover { border-color: var(--line-strong); }
.option input { position: absolute; opacity: 0; }
.option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; margin-top: 3px; display: grid; place-items: center; }
.option input:checked ~ .radio { border-color: var(--signal-text); }
.option input:checked ~ .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal-text); }
.option:has(input:checked) { border-color: var(--signal-text); background: var(--signal-soft); }
.option:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.option .o-main { flex: 1; }
.option .o-main b { display: block; }
.option .o-main span { font-size: var(--fs-xs); color: var(--slate); }
.option.is-soldout { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--slate); }
.field .err { font-size: var(--fs-xs); color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-md);
}
html[data-theme="night"] .input { background: var(--raised-2); }
.input:focus { outline: none; border-color: var(--signal-text); box-shadow: 0 0 0 4px var(--signal-soft); }
.input.is-invalid { border-color: var(--danger); }
textarea.input { min-height: 140px; resize: vertical; }
.phone { display: grid; grid-template-columns: 110px 1fr; gap: 8px; direction: ltr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--signal-text); margin-top: 3px; flex: none; }
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp input { width: 54px; height: 62px; text-align: center; font-size: var(--fs-xl); font-weight: 700; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.otp input:focus { outline: none; border-color: var(--signal-text); box-shadow: 0 0 0 4px var(--signal-soft); }

/* Auth split */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth-form .box { width: min(440px, 100%); }
.auth-side { position: relative; overflow: hidden; color: #fff; background: var(--forest-deep); }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-side .inner { position: absolute; inset-inline: 0; bottom: 0; padding: 48px; background: linear-gradient(180deg, transparent, rgba(7,20,13,.92) 45%); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th { text-align: start; font-weight: 600; color: var(--slate); font-size: var(--fs-xs); padding: 12px 16px; background: var(--raised); white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { font-variant-numeric: tabular-nums; }

/* Status screens (payment, 404, empty) */
.status { text-align: center; padding-block: clamp(56px, 9vw, 110px); }
.status .badge-ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; }
.status .badge-ico svg { width: 38px; height: 38px; }
.status .badge-ico.ok { background: var(--signal); color: var(--on-signal); }
.status .badge-ico.wait { background: var(--warn-soft); color: var(--warn); }
.status .badge-ico.bad { background: var(--danger-soft); color: var(--danger); }
.status .badge-ico.info { background: var(--raised-2); color: var(--ink); }
.status h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
.status .lede { margin: 14px auto 0; }
.status .row { justify-content: center; margin-top: 28px; }
.code-box { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 24px; padding: 18px 28px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }
.code-box b { font-size: var(--fs-2xl); letter-spacing: .12em; font-variant-numeric: tabular-nums; direction: ltr; }
.state-switch { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.78); padding-top: 72px; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--signal); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--signal); color: var(--on-signal); }
.socials svg { width: 17px; height: 17px; }
.foot-bottom { margin-top: 56px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: rgba(255,255,255,.55); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: span 2; } }
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.4); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float.lift { bottom: 92px; }

/* ---------- Dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.dash-side { border-inline-end: 1px solid var(--line); padding: 24px 16px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; display: flex; flex-direction: column; gap: 22px; background: var(--bg); }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 4px 8px; }
.dash-user b { display: block; font-size: var(--fs-sm); }
.dash-user span { font-size: var(--fs-xs); color: var(--slate); }
.dash-group h5 { margin: 0 0 6px; padding-inline: 12px; font-size: var(--fs-xs); color: var(--slate); font-weight: 500; }
.dash-group a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--ink-2); }
.dash-group a svg { width: 19px; height: 19px; flex: none; color: var(--slate); }
.dash-group a:hover { background: var(--raised); }
.dash-group a[aria-current="page"] { background: var(--raised); color: var(--ink); font-weight: 600; }
.dash-group a[aria-current="page"] svg { color: var(--signal-text); }
.dash-group a .count { margin-inline-start: auto; font-size: 11px; background: var(--raised-2); padding: 1px 8px; border-radius: 999px; }
.dash-upgrade { margin-top: auto; padding: 18px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--forest), var(--forest-deep)); color: #fff; }
.dash-upgrade p { font-size: var(--fs-xs); color: rgba(255,255,255,.75); margin: 6px 0 14px; }
.dash-main { padding: clamp(24px, 3vw, 40px); min-width: 0; background: var(--raised); }
html[data-theme="night"] .dash-main { background: var(--bg); }
.dash-main > .dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-main > .dash-head h1 { font-size: var(--fs-2xl); }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
html[data-theme="night"] .tile { background: var(--raised); }
.tile h2 { font-size: var(--fs-md); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi span { font-size: var(--fs-xs); color: var(--slate); display: block; }
.kpi b { font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; line-height: 1.3; }
.progress { height: 8px; border-radius: 99px; background: var(--raised-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--signal); border-radius: 99px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.list-row:first-of-type { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: var(--raised-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-tabs { display: none; }
@media (max-width: 1020px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: var(--header-h); z-index: 20; scrollbar-width: none; }
  .dash-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: var(--fs-sm); background: var(--raised); white-space: nowrap; }
  .dash-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* Video / lesson */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.player .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--signal); color: var(--on-signal); display: grid; place-items: center; border: 0; cursor: pointer; }
.player .play svg { width: 30px; height: 30px; margin-inline-start: 4px; }
[dir="rtl"] .player .play svg { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 4px; }
.player .locked { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; background: rgba(7, 20, 13, .78); backdrop-filter: blur(4px); }
.player .locked svg { width: 34px; height: 34px; margin: 0 auto 12px; }
.lessons a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.lessons a:hover { background: var(--raised); }
.lessons a[aria-current="true"] { background: var(--signal-soft); font-weight: 600; }
.lessons a svg { width: 18px; height: 18px; flex: none; color: var(--slate); }
.lessons a .dur { margin-inline-start: auto; color: var(--slate); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: 260px minmax(0, 640px) 300px; gap: 28px; justify-content: center; padding-block: 28px 64px; }
.channels a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.channels a:hover { background: var(--raised); }
.channels a[aria-current="page"] { background: var(--raised); font-weight: 600; }
.channels .hash { width: 30px; height: 30px; border-radius: 9px; background: var(--raised-2); display: grid; place-items: center; font-weight: 700; color: var(--slate); flex: none; }
.channels a[aria-current="page"] .hash { background: var(--signal); color: var(--on-signal); }
.channels svg { width: 15px; height: 15px; margin-inline-start: auto; color: var(--slate); }
.post { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
html[data-theme="night"] .post { background: var(--raised); }
.post + .post { margin-top: 14px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head b { display: block; font-size: var(--fs-sm); }
.post-head span { font-size: var(--fs-xs); color: var(--slate); }
.post-body { margin-top: 14px; white-space: pre-line; }
.post-img { margin-top: 14px; border-radius: var(--r-sm); overflow: hidden; }
.post-actions { display: flex; gap: 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.post-actions button { display: inline-flex; gap: 8px; align-items: center; border: 0; background: transparent; padding: 8px 12px; border-radius: var(--r-xs); cursor: pointer; font-size: var(--fs-sm); color: var(--slate); }
.post-actions button:hover { background: var(--raised); color: var(--ink); }
.post-actions svg { width: 18px; height: 18px; }
.composer { display: flex; gap: 12px; align-items: center; }
.composer .input { min-height: 46px; border-radius: 999px; }
.pin { font-size: var(--fs-xs); color: var(--signal-text); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.pin svg { width: 14px; height: 14px; }
.gate { text-align: center; padding: 48px 28px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.gate .badge-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--raised-2); }
.gate .badge-ico svg { width: 28px; height: 28px; }
@media (max-width: 1180px) { .community { grid-template-columns: 220px minmax(0, 1fr); } .community > .c-aside { display: none; } }
@media (max-width: 760px) { .community { grid-template-columns: 1fr; } .community > .c-nav { display: none; } }

/* ---------- Misc ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--raised); font-size: var(--fs-sm); align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--signal-text); }
.notice.warn { background: var(--warn-soft); }
.notice.warn svg { color: var(--warn); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: var(--fs-md); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .2s; }
details.faq[open] summary svg { transform: rotate(45deg); }
details.faq p { padding-bottom: 20px; color: var(--slate); max-width: 70ch; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kbd-total { display: flex; justify-content: space-between; padding: 8px 0; font-size: var(--fs-sm); }
.kbd-total.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: var(--fs-md); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--raised); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); color: var(--slate); }
.steps b { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: var(--fs-xs); }
.steps .is-on { color: var(--ink); font-weight: 600; }
.steps .is-on b { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.steps .is-done b { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.steps i { width: 32px; height: 1.5px; background: var(--line-strong); }
.slot { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.slot + .slot { margin-top: 14px; }
.slot-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--raised); font-size: var(--fs-sm); font-weight: 600; }
.ws { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.ws:hover { background: var(--raised); }
.ws input { width: 20px; height: 20px; accent-color: var(--signal-text); flex: none; }
.ws .grow { flex: 1; min-width: 0; }
.ws .grow b { display: block; font-size: var(--fs-sm); }
.ws.is-full { opacity: .55; cursor: not-allowed; }
.track-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sticky-bar { display: none; }
@media (max-width: 980px) {
  .sticky-bar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; padding: 12px var(--gutter); background: var(--header-bg); backdrop-filter: blur(14px); border-top: 1px solid var(--line); gap: 12px; align-items: center; justify-content: space-between; }
  body.has-sticky { padding-bottom: 80px; }
}
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: var(--fs-sm); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
[dir="rtl"] .toast { transform: translateX(50%); }
.toast.is-on { opacity: 1; }
.calc-out { padding: 24px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--forest), var(--forest-deep)); color: #fff; }
.calc-out .big-figure { font-size: clamp(3rem, 7vw, 4.5rem); }
.calc-out p { color: rgba(255,255,255,.75); }
.tool-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.tool-row .abbr { width: 64px; height: 44px; border-radius: 12px; background: var(--raised-2); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs); direction: ltr; flex: none; }
.tool-row:hover .abbr { background: var(--signal); color: var(--on-signal); }
.tool-row .grow { flex: 1; }
.tool-row .grow b { display: block; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.center { text-align: center; }
.hide { display: none !important; }
@media (max-width: 640px) { .hide-sm-only { display: none; } }
