/* Ubuntu — app-ka gudihiisa ayay ku jirtaa (internet looma baahna) */
@font-face { font-family: "Ubuntu"; src: url("/fonts/ubuntu-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("/fonts/ubuntu-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("/fonts/ubuntu-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
/* Carabi — Hacen Tunisia */
@font-face { font-family: "Hacen Tunisia"; src: url("/fonts/hacen-tunisia.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Cinwaanada waaweyn — Futura PT */
@font-face { font-family: "Futura PT"; src: url("/fonts/FuturaPT-Demi.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Futura PT"; src: url("/fonts/FuturaPT-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Futura PT"; src: url("/fonts/FuturaPT-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Futura PT"; src: url("/fonts/FuturaPT-Heavy.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* Vanilla — #F1FEC8 · RGB 241, 254, 200 · CMYK 5, 0, 21, 0 */
  --vanilla: #f1fec8;
  --bg: #f1fec8;
  --surface: #fbffea;
  --surface-2: #e8f5bb;
  --surface-3: #dbe9a9;
  --text: #0e0f0a;
  --muted: #4d533d;
  --faint: #7a8166;
  --line: #d6e3a4;
  --brand: #0e0f0a;
  --brand-2: #4a3426;
  --on-brand: #f1fec8;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --brand-shadow: rgba(14, 15, 10, .45);
  --halo-1: rgba(255, 255, 255, .75);
  --halo-2: rgba(203, 232, 120, .45);
  --glow: none;
  --glass-a: rgba(255, 255, 255, .95);
  --glass-b: rgba(205, 232, 118, .8);
  --glass-c: rgba(74, 52, 38, .32);
  --flute-hi: rgba(255, 255, 255, .42);
  --flute-lo: rgba(74, 52, 38, .08);
  --frost: rgba(251, 255, 234, .62);
  --bar-0: rgba(205, 232, 118, .35);
  --bar-1: rgba(255, 255, 255, .85);
  --bar-2: rgba(196, 226, 96, .95);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-shade: rgba(74, 52, 38, .10);
  --stepper-bg: #15160f;
  --ok: #1f7a2e;
  --ok-bg: rgba(31, 122, 46, .12);
  --err: #b3261e;
  --err-bg: rgba(179, 38, 30, .1);
  --warn: #7a4b00;
  --warn-bg: rgba(170, 110, 0, .14);
  --uhd: #5a3fc0; --uhd-bg: rgba(90, 63, 192, .12);
  --hd: #0b5cc4;  --hd-bg: rgba(11, 92, 196, .11);
  --sd: #4d533d;  --sd-bg: rgba(14, 15, 10, .07);
  --ll: #1f7a2e;  --ll-bg: rgba(31, 122, 46, .12);
  --best: #a3440e; --best-bg: rgba(163, 68, 14, .12);
  --shadow-sm: 0 1px 2px rgba(40, 48, 10, .06);
  --shadow: 0 1px 2px rgba(40, 48, 10, .05), 0 18px 50px -22px rgba(40, 48, 10, .28);
  --ring: 0 0 0 4px rgba(14, 15, 10, .10);
  --r: 20px;
  --display: "Ubuntu", "Segoe UI Black", "Segoe UI", "Arial Black", system-ui, sans-serif;
  /* cinwaanka weyn ee hore oo kaliya */
  --hero-font: "Futura PT", "Ubuntu", "Segoe UI Black", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b09; --surface: #141510; --surface-2: #1b1d15; --surface-3: #25281d;
    --text: #f1fec8; --muted: #b3ba98; --faint: #7b8267; --line: #2b2e22;
    --brand: #f1fec8; --brand-2: #d3e58f; --on-brand: #0e0f0a; --brand-shadow: rgba(241, 254, 200, .25);
    --halo-1: rgba(241, 254, 200, .10); --halo-2: rgba(211, 229, 143, .08); --glow: drop-shadow(0 0 22px rgba(241, 254, 200, .30));
  --glass-a: rgba(241, 254, 200, .26); --glass-b: rgba(170, 200, 80, .24); --glass-c: rgba(74, 52, 38, .7);
  --flute-hi: rgba(241, 254, 200, .09); --flute-lo: rgba(0, 0, 0, .38); --frost: rgba(20, 21, 16, .6);
  --bar-0: rgba(211, 229, 143, .10); --bar-1: rgba(211, 229, 143, .35); --bar-2: rgba(226, 250, 150, .85);
  --glass-line: rgba(241, 254, 200, .10); --glass-shade: rgba(0, 0, 0, .45); --stepper-bg: #20241a;
    --ring: 0 0 0 4px rgba(241, 254, 200, .14);
    --ok: #8fe3a0; --ok-bg: rgba(143, 227, 160, .12); --err: #ff9b8f; --err-bg: rgba(255, 155, 143, .12); --warn: #f5c56b; --warn-bg: rgba(245, 197, 107, .12);
    --uhd: #b9a8ff; --uhd-bg: rgba(185, 168, 255, .14); --hd: #8cc2ff; --hd-bg: rgba(140, 194, 255, .13); --sd: #b3ba98; --sd-bg: rgba(241, 254, 200, .08);
    --ll: #8fe3a0; --ll-bg: rgba(143, 227, 160, .12); --best: #ffb07a; --best-bg: rgba(255, 176, 122, .13);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b09; --surface: #141510; --surface-2: #1b1d15; --surface-3: #25281d;
  --text: #f1fec8; --muted: #b3ba98; --faint: #7b8267; --line: #2b2e22;
  --brand: #f1fec8; --brand-2: #d3e58f; --on-brand: #0e0f0a; --brand-shadow: rgba(241, 254, 200, .25);
  --halo-1: rgba(241, 254, 200, .10); --halo-2: rgba(211, 229, 143, .08); --glow: drop-shadow(0 0 22px rgba(241, 254, 200, .30));
  --glass-a: rgba(241, 254, 200, .26); --glass-b: rgba(170, 200, 80, .24); --glass-c: rgba(74, 52, 38, .7);
  --flute-hi: rgba(241, 254, 200, .09); --flute-lo: rgba(0, 0, 0, .38); --frost: rgba(20, 21, 16, .6);
  --bar-0: rgba(211, 229, 143, .10); --bar-1: rgba(211, 229, 143, .35); --bar-2: rgba(226, 250, 150, .85);
  --glass-line: rgba(241, 254, 200, .10); --glass-shade: rgba(0, 0, 0, .45); --stepper-bg: #20241a;
  --ring: 0 0 0 4px rgba(241, 254, 200, .14);
  --ok: #8fe3a0; --ok-bg: rgba(143, 227, 160, .12); --err: #ff9b8f; --err-bg: rgba(255, 155, 143, .12); --warn: #f5c56b; --warn-bg: rgba(245, 197, 107, .12);
  --uhd: #b9a8ff; --uhd-bg: rgba(185, 168, 255, .14); --hd: #8cc2ff; --hd-bg: rgba(140, 194, 255, .13); --sd: #b3ba98; --sd-bg: rgba(241, 254, 200, .08);
  --ll: #8fe3a0; --ll-bg: rgba(143, 227, 160, .12); --best: #ffb07a; --best-bg: rgba(255, 176, 122, .13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 15.5px/1.55 "Ubuntu", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Galaaska bogga oo dhan — tiirar iftiinkoodu u korayo dhinaca midig */
body::before {
  content: ""; position: fixed; inset: -8% -4%; z-index: -3; pointer-events: none; opacity: .62;
  background:
    linear-gradient(90deg, var(--bar-0) 0%, transparent 18%, transparent 58%, var(--bar-1) 84%, var(--bar-2) 100%),
    radial-gradient(16% 42% at 93% 28%, var(--glass-a), transparent 70%),
    radial-gradient(14% 38% at 7% 72%, var(--glass-c), transparent 72%),
    radial-gradient(14% 36% at 46% 55%, var(--glass-b), transparent 72%);
  filter: blur(22px) url(#flute);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .85;
  background: linear-gradient(90deg, var(--glass-shade) 0 2px, transparent 2px 22%, var(--flute-hi) 60%, transparent 82%, var(--flute-lo) 100%);
  background-size: 56px 100%;
  mask-image: linear-gradient(90deg, #000 0 12%, rgba(0, 0, 0, .22) 34% 62%, #000 88%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 12%, rgba(0, 0, 0, .22) 34% 62%, #000 88%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 1080px; }
/* Kaliya qaybta dhexe: rail-ka dhinaca midig looma gudbo (header/foot way buuxaan) */
main .wrap { max-width: min(1360px, calc(100vw - 230px)); }
main .wrap.narrow { max-width: min(1080px, calc(100vw - 230px)); }

/* Nav — daaq madow oo geesaha hoose goobaabin ah, qoraalku Vanilla labada nuucba */
.nav { position: sticky; top: 0; z-index: 40; }
.nav-panel {
  position: relative; background: #0e0f0a; color: var(--vanilla);
  border-radius: 0 0 30px 30px; box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .75);
}
.nav-panel::after {
  /* overflow:hidden looma isticmaali karo — liiska luuqadda ayuu gooyaa */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 52%, rgba(211, 229, 143, .14) 80%, rgba(226, 250, 150, .40) 100%),
    linear-gradient(90deg, rgba(241, 254, 200, .06) 0 2px, transparent 2px 26%, rgba(241, 254, 200, .05) 62%, transparent 86%);
  background-size: auto, 56px 100%;
}
.nav-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: -.01em; }
.logo { width: 38px; height: 38px; display: grid; place-items: center; background: none; box-shadow: none; }
.logo-svg { width: 38px; height: 38px; stroke: none; stroke-width: 0; fill: initial; filter: drop-shadow(0 6px 12px rgba(255, 150, 30, .35)); }
.brand.sm { font-size: 15px; }
.brand.sm .logo, .brand.sm .logo-svg { width: 30px; height: 30px; }

.navpill {
  margin-inline: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  border: 1px solid rgba(241, 254, 200, .18); background: rgba(241, 254, 200, .05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.navpill a { padding: 9px 16px; border-radius: 999px; color: rgba(241, 254, 200, .72); font-size: 14px; font-weight: 600; transition: color .15s, background .15s; }
.navpill a:hover { color: var(--vanilla); background: rgba(241, 254, 200, .12); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(241, 254, 200, .2); background: rgba(241, 254, 200, .05);
  color: var(--vanilla); font-weight: 600; font-size: 14px;
}
.lang-btn:hover { background: rgba(241, 254, 200, .12); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn .chev { width: 15px; height: 15px; opacity: .7; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 172px; padding: 6px; z-index: 50;
  border-radius: 14px; background: #141510; border: 1px solid rgba(241, 254, 200, .14);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .8); display: grid; gap: 2px;
}
.lang-menu button { padding: 9px 12px; border-radius: 10px; color: rgba(241, 254, 200, .82); font-weight: 600; font-size: 14px; text-align: start; }
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: rgba(241, 254, 200, .13); color: var(--vanilla); }

/* Toggle maalin / habeen */
.daynight {
  position: relative; width: 78px; height: 36px; border-radius: 999px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(241, 254, 200, .25); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
}
.dn-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #cfe98a, #eaf7bf); transition: background .55s ease; }
.dn-sun, .dn-moon, .dn-star, .dn-cloud { position: absolute; display: block; }
.dn-sun { right: 10px; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: #ffd76a; box-shadow: 0 0 12px rgba(255, 200, 60, .95); transition: opacity .4s, transform .55s ease; }
.dn-moon { left: 11px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 72% 32%, transparent 54%, var(--vanilla) 55%); transform: rotate(-18deg) scale(.6); opacity: 0; transition: opacity .4s, transform .55s ease; }
.dn-star { width: 2px; height: 2px; border-radius: 50%; background: var(--vanilla); opacity: 0; transition: opacity .55s ease; }
.dn-star.s1 { left: 26px; top: 8px; } .dn-star.s2 { left: 38px; top: 16px; }
.dn-star.s3 { left: 31px; top: 24px; } .dn-star.s4 { left: 46px; top: 10px; }
.dn-cloud { bottom: -5px; height: 16px; border-radius: 999px; background: #fbffea; opacity: .95; transition: transform .6s ease, opacity .5s ease; }
.dn-cloud.c1 { left: 16px; width: 30px; } .dn-cloud.c2 { left: 34px; width: 24px; bottom: -8px; } .dn-cloud.c3 { left: 52px; width: 22px; bottom: -3px; opacity: .8; }
.dn-knob {
  position: absolute; top: 4px; inset-inline-start: 4px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, .8), 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .55s cubic-bezier(.4, 1.5, .5, 1);
}
.daynight[aria-checked="true"] .dn-sky { background: linear-gradient(180deg, #0a1007, #1a220f); }
.daynight[aria-checked="true"] .dn-knob { transform: translateX(42px); }
[dir="rtl"] .daynight[aria-checked="true"] .dn-knob { transform: translateX(-42px); }
.daynight[aria-checked="true"] .dn-sun { opacity: 0; transform: translateY(-16px); }
.daynight[aria-checked="true"] .dn-moon { opacity: 1; transform: rotate(-18deg) scale(1); }
.daynight[aria-checked="true"] .dn-star { opacity: .9; }
.daynight[aria-checked="true"] .dn-cloud { transform: translateY(7px); opacity: .45; }

/* Hero */
.hero { position: relative; padding: 76px 0 40px; isolation: isolate; }
/* Galaas xariiqan (fluted glass) — midabada Vanilla/shukulaato */
.glow {
  position: absolute; inset: -64px 0 auto; height: 640px; z-index: -1; pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 52%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent);
}
/* tiirar galaas ah oo iftiinkoodu u korayo dhinaca midig */
.glow::before {
  content: ""; position: absolute; inset: -40px;
  background:
    linear-gradient(90deg, var(--bar-0) 0%, transparent 16%, transparent 56%, var(--bar-1) 82%, var(--bar-2) 100%),
    radial-gradient(18% 70% at 94% 45%, var(--glass-a), transparent 70%),
    radial-gradient(16% 62% at 40% 38%, var(--glass-b), transparent 72%),
    radial-gradient(14% 60% at 6% 55%, var(--glass-c), transparent 72%),
    radial-gradient(16% 55% at 72% 70%, var(--glass-c), transparent 72%);
  filter: blur(18px) url(#flute);
}
.glow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--glass-shade) 0 2px, transparent 2px 22%, var(--flute-hi) 60%, transparent 82%, var(--flute-lo) 100%);
  background-size: 56px 100%;
  mask-image: linear-gradient(90deg, #000 0 12%, rgba(0, 0, 0, .25) 34% 62%, #000 88%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 12%, rgba(0, 0, 0, .25) 34% 62%, #000 88%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 6px 14px 6px 10px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero .narrow { text-align: center; }
h1 {
  font-family: var(--hero-font); font-size: clamp(34px, 6.6vw, 96px); line-height: .98; letter-spacing: -.022em;
  margin: 0 0 26px; font-weight: 900; text-transform: uppercase;
}
/* shaashadaha waaweyn: cinwaanku ha ka baxo sanduuqa cidhiidhiga ah — laba sadar */
@media (min-width: 1000px) { h1 { margin-inline: -70px; } }
@media (min-width: 1200px) { h1 { margin-inline: -110px; } }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .grad { filter: var(--glow); }
.lead { font-size: clamp(16px, 2vw, 18.5px); color: var(--muted); max-width: 620px; margin: 0 auto 34px; }

/* Search */
.search {
  display: flex; align-items: center; gap: 8px; padding: 8px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: color-mix(in srgb, var(--brand-2) 55%, var(--line)); box-shadow: var(--shadow), var(--ring); }
.platform { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); margin-left: 2px; transition: background .2s, color .2s; }
.platform svg { display: none; width: 22px; height: 22px; }
.platform[data-p="none"] .i-link { display: block; }
.platform[data-p="youtube"] { background: #ff0033; color: #fff; }
.platform[data-p="youtube"] .i-yt { display: block; }
.platform[data-p="facebook"] { background: #0866ff; color: #fff; }
.platform[data-p="facebook"] .i-fb { display: block; }
.platform .i-yt rect, .platform .i-fb circle { fill: currentColor; stroke: none; }
.platform .cut { fill: #ff0033; stroke: none; }
.platform[data-p="facebook"] .cut { fill: #0866ff; }
.platform[data-p="youtube"] .i-yt rect { fill: #fff; }
.platform[data-p="facebook"] .i-fb circle { fill: #fff; }
.platform .i-tt, .platform .i-sc { stroke: none; }
.platform[data-p="tiktok"] { background: #000; }
.platform[data-p="tiktok"] .i-tt { display: block; }
.platform[data-p="snapchat"] { background: #fffc00; }
.platform[data-p="snapchat"] .i-sc { display: block; }
.platform .i-ig { stroke: none; }
.platform[data-p="instagram"] { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.platform[data-p="instagram"] .i-ig { display: block; }

/* Kaararka site-yada la taageero */
.platforms { list-style: none; padding: 0; margin: 22px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
@media (min-width: 960px) {
  .platforms { grid-template-columns: repeat(5, 1fr); margin-inline: -50px; }
}
.platforms li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 14.5px; color: var(--text); text-align: left;
}
.pf-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.pf-logo svg { width: 22px; height: 22px; stroke: none; }
.pf-logo.yt, .pf-logo.fb { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pf-logo.tt { background: #000; }
.pf-logo.sc { background: #fffc00; }
.pf-logo.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
@media (max-width: 640px) {
  .platforms { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .platforms li { padding: 8px 10px; gap: 9px; font-size: 13.5px; }
  .pf-logo { width: 30px; height: 30px; }
}
.search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16.5px; padding: 0 6px; }
.search input::placeholder { color: var(--faint); }
.clear { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--faint); }
.clear:hover { background: var(--surface-2); color: var(--text); }
.clear svg { width: 18px; height: 18px; }

.btn { height: 48px; padding: 0 20px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; white-space: nowrap; transition: transform .12s, filter .15s, background .15s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--grad); color: var(--on-brand); min-width: 108px; box-shadow: 0 10px 24px -12px var(--brand-shadow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.soft { background: var(--surface-2); color: var(--text); }
.btn.soft:hover { background: var(--surface-3); }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 20px 0 0; }
.chips li { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }

.alert { margin: 20px 0 0; padding: 13px 16px; border-radius: 14px; font-weight: 520; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }

/* Cards */
.card { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; text-align: left; animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.media { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 20px; border-bottom: 1px solid var(--line); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.media.no-thumb { grid-template-columns: 1fr; }
.media.no-thumb .thumb { display: none; }
.dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 7px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.info { min-width: 0; display: flex; flex-direction: column; }
.site { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.info h2 { font-size: 19px; line-height: 1.35; letter-spacing: -.015em; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.by { margin: 0; color: var(--muted); font-size: 14px; }
.seg { margin-top: auto; padding: 4px; display: inline-flex; align-self: flex-start; gap: 4px; background: var(--surface-2); border-radius: 13px; }
.seg button { padding: 8px 16px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.seg button b { font-size: 11.5px; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button[aria-selected="true"] b { background: var(--text); color: var(--surface); }

.options { list-style: none; margin: 0; padding: 6px 12px 12px; }
.opt {
  position: relative; display: grid; grid-template-columns: minmax(170px, 1.1fr) 1.4fr auto; align-items: center; gap: 14px;
  padding: 12px 10px; border-radius: 14px; transition: background .15s;
}
.opt + .opt::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; border-top: 1px solid var(--line); }
.opt:hover { background: var(--surface-2); }
.opt:hover::before, .opt:hover + .opt::before { border-color: transparent; }
.q { display: flex; align-items: center; gap: 10px; }
.res { font-weight: 750; font-size: 16px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.tone-uhd { color: var(--uhd); background: var(--uhd-bg); }
.tone-hd { color: var(--hd); background: var(--hd-bg); }
.tone-sd { color: var(--sd); background: var(--sd-bg); }
.tone-lossless { color: var(--ll); background: var(--ll-bg); }
.tone-best { color: var(--best); background: var(--best-bg); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.meta .fmt { font-weight: 700; color: var(--text); }
.dl {
  height: 40px; min-width: 132px; padding: 0 16px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 14px; color: #fff; background: var(--text); transition: transform .12s, opacity .15s, background .2s;
}
:root .dl { color: var(--surface); }
.dl:hover { opacity: .9; }
.dl:active { transform: translateY(1px); }
.dl:disabled { cursor: default; opacity: .75; }
.dl svg { width: 17px; height: 17px; stroke-width: 2.2; }
.opt.is-done .dl { background: var(--ok); color: var(--on-brand); }
.opt.is-error .dl { background: var(--err); color: var(--on-brand); }
.spin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.prog { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: -2px; }
.prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .45s ease; }
.prog.indet i { width: 35% !important; animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.state { grid-column: 1 / -1; margin: -6px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; word-break: break-word; }
.opt.is-done .state { color: var(--ok); font-weight: 600; }
.opt.is-error .state { color: var(--err); font-weight: 600; }

/* Playlist */
.thumb.stack { overflow: visible; margin: 8px 8px 0 0; }
.thumb.stack img { border-radius: 14px; position: relative; z-index: 1; }
.thumb.stack::before, .thumb.stack::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line);
}
.thumb.stack::before { transform: translate(8px, -8px); opacity: .5; }
.thumb.stack::after { transform: translate(4px, -4px); opacity: .85; }
.thumb.stack .dur { z-index: 2; }

.hint { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--hd-bg); color: var(--hd); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line); }
.hint span { flex: 1; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }

.pl-note { margin: 0; padding: 14px 22px 0; color: var(--muted); font-size: 13.5px; font-weight: 520; }
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; }
.pl-trunc { margin: 0; padding: 10px 22px; font-size: 13px; color: var(--warn); background: var(--warn-bg); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-2); cursor: pointer; }
.check input:disabled { cursor: default; }

.entries { list-style: none; margin: 0; padding: 6px 10px 10px; max-height: 480px; overflow: auto; overscroll-behavior: contain; }
.entry { display: grid; grid-template-columns: auto 26px 104px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background .15s; }
.entry:hover { background: var(--surface-2); }
.entry .idx { color: var(--faint); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.entry .mini { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-3); }
.etext { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.etitle { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emeta { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry.off { opacity: .45; }
.link-btn { font-size: 13px; font-weight: 650; color: var(--brand-2); padding: 6px 10px; border-radius: 9px; white-space: nowrap; }
.link-btn:hover { background: var(--uhd-bg); }

.mix { grid-column: 1 / -1; margin: -4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mix .lead-in { font-weight: 650; color: var(--text); }
.mix-item { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.mix .tag { padding: 2px 7px; font-size: 11.5px; }
.mix .scan { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); }
.mix .spin { width: 11px; height: 11px; border-width: 2px; }
.eq { margin-left: 8px; padding: 1px 6px; font-size: 10.5px; vertical-align: 1px; }

/* Skeleton */
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel .thumb { border-radius: 14px; }
.skel .l1 { height: 12px; width: 26%; margin-bottom: 12px; }
.skel .l2 { height: 20px; width: 88%; margin-bottom: 10px; }
.skel .l3 { height: 14px; width: 40%; }
.skel .options { padding: 16px 22px 6px; display: grid; gap: 12px; }
.skel .row { height: 44px; }
.skel-note { margin: 4px 22px 18px; color: var(--muted); font-size: 13.5px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt {
  background: var(--frost); border-block: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
}
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); text-align: center; }
.h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(29px, 4.2vw, 44px); letter-spacing: -.015em; line-height: 1.12; margin: 0 auto 44px; text-align: center; max-width: 640px; }

/* Tallaabooyinka — kabsul madow, goobooyin ifaya oo icon leh, xariiqyo buuran */
.stepper {
  background: var(--stepper-bg); border-radius: 999px; padding: 20px calc(16.666% - 46px);
  margin: 0 0 30px; box-shadow: inset 0 1px 0 rgba(241, 254, 200, .08), var(--shadow);
}
.stepper-row { display: flex; align-items: center; }
.node {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; z-index: 1;
  background: var(--vanilla); color: #0e0f0a; box-shadow: 0 10px 26px -14px rgba(241, 254, 200, .8);
}
.node svg { width: 38px; height: 38px; stroke-width: 1.7; }
.bar { flex: 1; height: 28px; background: var(--vanilla); margin-inline: -8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 22px 20px; text-align: center; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step-n { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-brand); background: var(--brand); padding: 4px 10px; border-radius: 999px; margin: 0 auto 10px; width: max-content; }
.step h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; color: var(--text); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fcard { padding: 26px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.fhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fhead h3 { margin: 0; font-size: 18px; }
.ficon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.ficon.v { color: var(--hd); background: var(--hd-bg); }
.ficon.a { color: var(--uhd); background: var(--uhd-bg); }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.qlist li:first-child { border-top: 0; }
.fnote { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: border-color .15s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 18px; color: var(--muted); }

/* Qaybta hoose — daaq madow oo header-ka u eg, hoosta bogga ku dega */
main { flex: 1 0 auto; }
.foot { padding: 48px 0 0; flex-shrink: 0; }
.foot-panel { min-height: 88px; }
.foot-panel {
  position: relative; background: #0e0f0a; color: var(--vanilla);
  border-radius: 30px 30px 0 0; box-shadow: 0 -20px 44px -30px rgba(0, 0, 0, .75);
}
.foot-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 52%, rgba(211, 229, 143, .12) 80%, rgba(226, 250, 150, .34) 100%),
    linear-gradient(90deg, rgba(241, 254, 200, .06) 0 2px, transparent 2px 26%, rgba(241, 254, 200, .05) 62%, transparent 86%);
  background-size: auto, 56px 100%;
}
.foot-in {
  position: relative; z-index: 1; min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px;
}
.foot-panel .muted { color: rgba(241, 254, 200, .62); }
.credit { color: rgba(241, 254, 200, .72); font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.credit b { color: var(--vanilla); font-weight: 700; }
.credit a { color: rgba(241, 254, 200, .86); text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: #fff; }
.site-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(241, 254, 200, .28); color: var(--vanilla);
  font-size: 13.5px; font-weight: 650; transition: background .15s, border-color .15s;
}
.site-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.site-link:hover { background: rgba(241, 254, 200, .12); border-color: rgba(241, 254, 200, .5); }

/* Taleefanka: headerku ha buux-dhaafin — badhamada astaan ahaan */
@media (max-width: 560px) {
  #install span { display: none; }
  #install { padding: 0 11px; }
  .lang-btn #lang-label { display: none; }
  .nav-in { gap: 10px; }
}

/* Qoraalka: waa la calaamadin karaa oo la koobiyeyn karaa (app-ka iyo webka) */
body { -webkit-user-select: text; user-select: text; }
button, .btn, .navpill, .rail, .seg, .zipsel, .nsel, .stepper, .daynight, .lang-btn, .tag, .chips {
  -webkit-user-select: none; user-select: none;
}
.foot .logo-svg { filter: drop-shadow(0 6px 12px rgba(255, 150, 30, .45)); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--surface); font-weight: 600; font-size: 14px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); animation: rise .25s ease; max-width: calc(100% - 32px);
}

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.search input:focus-visible { outline: 0; }

@media (max-width: 860px) {
  .links { display: none; }
  .icon-btn { margin-left: auto; }
  .steps, .fgrid { grid-template-columns: 1fr; }
  .media { grid-template-columns: 200px 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 24px; }
  .search { flex-wrap: wrap; padding: 8px; }
  .search input { flex: 1 1 calc(100% - 100px); }
  .search .btn { flex: 1; }
  .media { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .seg { margin-top: 14px; }
  .opt { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .meta { grid-column: 1; grid-row: 2; }
  .dl { grid-column: 2; grid-row: 1 / span 2; min-width: 112px; }
  .entry { grid-template-columns: auto 76px minmax(0, 1fr) auto; gap: 10px; padding: 8px 4px; }
  .entry .idx { display: none; }
  .entry .mini { width: 76px; }
  .hint { flex-wrap: wrap; padding: 12px 14px; }
  .pl-note, .pl-head, .pl-trunc { padding-left: 14px; padding-right: 14px; }
  .section { padding: 64px 0; }
}
/* Galaas qabow (frosted glass) — sanduuqyada iyo kaararka */
.search, .card, .platforms li, .fcard, .faq details, .eyebrow, .chips li {
  background: var(--frost);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-sm);
}
.search, .card { box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow); }
.search:focus-within { box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow), var(--ring); }

/* Rail-ka dhinaca midig (app-ka EXE-ga) */
.rail {
  position: fixed; top: 100px; inset-inline-end: 18px; z-index: 45;
  display: flex; flex-direction: column; gap: 10px; width: 70px; padding: 10px;
  border-radius: 26px; background: var(--frost); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow); transition: width .25s ease;
}
.rail.open { width: 236px; }
.rail-toggle {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--muted); background: var(--surface-3); align-self: flex-end;
}
.rail-toggle svg { transition: transform .25s ease; }
.rail.open .rail-toggle svg { transform: rotate(180deg); }
[dir="rtl"] .rail-toggle svg { transform: rotate(180deg); }
[dir="rtl"] .rail.open .rail-toggle svg { transform: rotate(0deg); }
.rail-items { display: flex; flex-direction: column; gap: 6px; }
.rail-item {
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 13px; border-radius: 15px;
  color: var(--muted); font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden;
  transition: background .15s, color .15s;
}
.rail-item svg { flex-shrink: 0; }
.rail-item span { opacity: 0; transition: opacity .2s ease; }
.rail.open .rail-item span { opacity: 1; }
.rail-item:hover { background: var(--surface-3); color: var(--text); }
.rail-item.is-active { background: var(--brand); color: var(--on-brand); }

/* App mode: hal qaybood mar, rail-ka ayaa lagu kala guuraa */
:root[data-app] .navpill { display: none; }
:root[data-app] main > section { display: none; }
:root[data-app] main > section.is-view { display: block; }

/* Taleefanka: rail ma jiro — bogga oo dhan hal mar (scroll caadi ah) */
@media (max-width: 860px) {
  .rail { display: none; }
  .wrap, .wrap.narrow, main .wrap, main .wrap.narrow { max-width: 100%; }
  :root[data-app] main > section { display: block; }
}

/* Icon-nada buuxa (video / audio) */
svg.solid { fill: currentColor; stroke: none; }

/* Cinwaanada: Ubuntu Bold + caps */
.brand { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.step h3, .fhead h3, .info h2, .faq summary { font-family: var(--display); font-weight: 700; }
.step h3, .fhead h3 { text-transform: uppercase; letter-spacing: .01em; }
.ficon.v { color: #0e0f0a; background: var(--vanilla); }
.ficon.a { color: var(--vanilla); background: #0e0f0a; }
:root[data-theme="dark"] .ficon.a, :root:not([data-theme="light"]) .ficon.a { background: var(--surface-3); }
.ficon svg { width: 22px; height: 22px; }
.seg button svg { width: 16px; height: 16px; margin-inline-end: 2px; }

/* Doorashooyinka yaryar: ZIP / fayl-fayl iyo tirada muuqaalada */
.zipsel, .nsel { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); }
.zipsel button, .nsel button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-weight: 650; font-size: 13px; color: var(--muted); transition: background .15s, color .15s;
}
.nsel button { padding: 6px 13px; font-variant-numeric: tabular-nums; }
.zipsel button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.zipsel button.is-on, .nsel button.is-on { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.zipsel button:not(.is-on):hover, .nsel button:not(.is-on):hover { color: var(--text); }
.chline { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; font-weight: 650; color: var(--muted); }
.cnum { display: inline-flex; align-items: center; gap: 8px; }
.zipsel[hidden], .cnum[hidden] { display: none; }
.cnum input {
  width: 90px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 700; text-align: center; padding: 0 6px;
}
.cnum input:focus-visible { outline: none; box-shadow: var(--ring); }
#pl-view .lead, #ch-view .lead { margin-bottom: 22px; }
#pl-mount, #ch-mount, #home-mount { display: block; }

/* Carabi (RTL) — farta Hacen Tunisia */
:root[lang="ar"] { --display: "Hacen Tunisia", "Ubuntu", "Segoe UI", sans-serif; --hero-font: var(--display); }
/* Hacen Tunisia way ka yar tahay Ubuntu — Carabiga waa la weyneeyaa */
:root[lang="ar"] body { font-family: "Hacen Tunisia", "Ubuntu", ui-sans-serif, system-ui, sans-serif; font-size: 18.5px; }
:root[lang="ar"] h1 { font-size: clamp(38px, 6.4vw, 90px); line-height: 1.22; -webkit-text-stroke: 0; }
:root[lang="ar"] .h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.35; }
:root[lang="ar"] .lead { font-size: clamp(17px, 2.1vw, 21px); }
:root[lang="ar"] .step h3, :root[lang="ar"] .fhead h3, :root[lang="ar"] .info h2 { font-size: 21px; }
:root[lang="ar"] .step p, :root[lang="ar"] .fnote, :root[lang="ar"] .faq details p { font-size: 16.5px; }
:root[lang="ar"] .faq summary { font-size: 17.5px; }
:root[lang="ar"] .navpill a, :root[lang="ar"] .rail-item, :root[lang="ar"] .lang-btn,
:root[lang="ar"] .lang-menu button, :root[lang="ar"] .btn, :root[lang="ar"] .dl { font-size: 16px; }
:root[lang="ar"] .search input { font-size: 18.5px; }
:root[lang="ar"] .chips li, :root[lang="ar"] .platforms li, :root[lang="ar"] .step-n { font-size: 15px; }
:root[lang="ar"] .res { font-size: 17.5px; }
:root[lang="ar"] .meta, :root[lang="ar"] .state, :root[lang="ar"] .mix, :root[lang="ar"] .foot-in { font-size: 15px; }
:root[lang="ar"] .tag, :root[lang="ar"] .eq { font-size: 13px; }
:root[lang="ar"] .kicker { font-size: 15px; }
:root[lang="ar"] h1, :root[lang="ar"] .h2, :root[lang="ar"] .step h3, :root[lang="ar"] .fhead h3,
:root[lang="ar"] .brand, :root[lang="ar"] .kicker, :root[lang="ar"] .step-n { text-transform: none; letter-spacing: 0; }
[dir="rtl"] .step-n, [dir="rtl"] .kicker { letter-spacing: 0; }
[dir="rtl"] .search input { text-align: right; }
[dir="rtl"] .entry .idx { text-align: left; }
[dir="rtl"] .h2, [dir="rtl"] h1 { letter-spacing: 0; }

@media (max-width: 860px) {
  .navpill { display: none; }
  .nav-right { margin-inline-start: auto; }
  .stepper { padding: 14px 16px; border-radius: 44px; margin-bottom: 24px; }
  .node { width: 58px; height: 58px; }
  .node svg { width: 26px; height: 26px; }
  .bar { height: 18px; margin-inline: -6px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step { padding: 0; text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
