/* The site header — NV on the Design canvas, round two (2026-09-24). Markup:
 * tools/nav-markup.mjs; behaviour: sinora-nav.js. Built on SINORA_VISUAL_IDENTITY_V2:
 * liquid glass for the bars (instruments), the dashboard's selection for the current
 * page, the gold action material for SINORA AI only.
 *
 * The header takes the room the theme's sticky header takes once the page has scrolled
 * (--snav-room, the same formula the screen fit sizes every section by), so no section
 * below it moves: the theme header keeps its place, invisible, and this one floats
 * inside that room. */

.snav {
  --g: #090a09; --ink: #f8f6f2; --soft: #dedbd3; --muted: #b9b5ab; --gold: #e6ba5a; --edge: #f5d28a;
  --grad: linear-gradient(115deg, #f7d785, #e6b454 66%, #c38d35);
  --snav-room: calc(max(clamp(128px, 11vw, 176px) * 370 / 1200, 44px) + 29px);
  font-family: IranSans, 'IranSans Local', Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.snav[dir="ltr"] { font-family: Inter, system-ui, sans-serif; }
.snav *, .snav *::before, .snav *::after { box-sizing: border-box; }
.snav a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.snav img { display: block; max-width: none; }
.snav :focus-visible { outline: 2px solid var(--edge); outline-offset: 2px; }

/* not over the entry hero: the gateway's own paths are the menu there */
html.sgw-prelocked .snav, body.sgw-locked .snav { display: none !important; }

/* the theme header keeps its room, unseen; its drawer goes with it (the articles' own
   header too); a page that had no header gets the header's room at its top */
body.snav-on #siteHeader, body.snav-on .aih-header { visibility: hidden !important; overflow: clip !important; }
body.snav-on #mobileMenu { display: none !important; }
body.snav-on.snav-pad { padding-top: calc(max(clamp(128px, 11vw, 176px) * 370 / 1200, 44px) + 29px) !important; }   /* = --snav-room */
/* the legal pages carried a menu bar of their own, the first thing in the page: one header only */
body.snav-on.snav-pad > nav:first-of-type { display: none !important; }

/* ── liquid glass (V2 §4) ── */
.snav-glass {
  position: fixed; z-index: 1000; isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 48%, rgba(255,255,255,.05)), rgba(12,12,11,.46);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.05), 0 24px 60px rgba(0,0,0,.45);
}
.snav-glass::before { content: ""; position: absolute; inset: 0 0 54% 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.14), transparent 70%); }
.snav-rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.snav-rim::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 32%, rgba(255,255,255,0) 58%, rgba(230,186,90,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* the current page: the dashboard's gliding selection, resting */
.snav [aria-current="page"] {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02)), rgba(201,169,97,.14);
  box-shadow: inset 0 0 0 1px rgba(232,212,168,.38), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 14px rgba(201,169,97,.12), 0 8px 22px rgba(201,169,97,.18);
  color: var(--ink) !important;
}

/* the S of the logo, cropped from its layers (V2 §7.4) */
.snav-s { --s: .066; position: relative; display: block; flex: none; overflow: hidden; width: calc(207px * var(--s)); height: calc(296px * var(--s)); }
.snav-s img { position: absolute; left: calc(-66px * var(--s)); top: calc(-30px * var(--s)); width: calc(1200px * var(--s)); height: calc(370px * var(--s)); }
.snav-s img + img { filter: drop-shadow(0 0 3px rgba(230,186,90,.5)); }

.snav-logo { position: relative; display: block; flex: none; border-radius: 10px; }
.snav-logo img { position: absolute; left: 0; top: 50%; width: 100%; height: var(--lh); transform: translateY(-50%); object-fit: contain; }
.snav-logo img + img { filter: drop-shadow(0 0 5px rgba(230,186,90,.35)); }

.snav-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── desktop: one bar, SINORA AI at its centre ─────────────────────────────── */
.snav-bar {
  top: 8px; left: 50%; transform: translateX(-50%);
  width: min(1392px, calc(100vw - 48px)); height: calc(var(--snav-room) - 14px);
  border-radius: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(8px, .8vw, 12px);
}
.snav-side { display: flex; align-items: center; justify-content: space-between; min-width: 0; height: 100%; gap: 8px; }
.snav-side:first-child .snav-links { margin-inline-start: auto; }
.snav-links { display: flex; align-items: center; gap: 2px; }
.snav-links a { display: flex; align-items: center; height: 40px; padding: 0 clamp(8px, .85vw, 12.2px); border-radius: 13px;
  font-size: clamp(13px, .95vw, 13.7px); color: var(--muted); white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
/* the bar stops growing at 1440 (1392px), so its links do too; Turkish runs longer
   («İşletme Check-up», «Prompt Bankası», 2026-09-24) and sets a little tighter */
.snav[dir="ltr"] .snav-links a { font-weight: 500; letter-spacing: -.005em; padding: 0 clamp(6px, .52vw, 7.5px); font-size: clamp(12.5px, .9vw, 13.2px); }
.snav-links a:hover { color: var(--ink); }
.snav-links a:active { background: rgba(255,255,255,.06); }
.snav-bar .snav-logo { --lh: clamp(27px, 2.3vw, 33px); width: clamp(88px, 7.5vw, 108px); height: 44px; margin-inline-start: 4px; }
.snav-dash { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 clamp(10px, .9vw, 14px); border-radius: 999px; flex: none;
  border: 1px solid rgba(255,255,255,.16); font-size: clamp(13px, .95vw, 13.5px); color: var(--soft); white-space: nowrap; transition: border-color .15s ease, color .15s ease; }
.snav-dash:hover { border-color: rgba(230,186,90,.45); color: var(--ink); }
.snav-dash .snav-ic { width: 16px; height: 16px; }
.snav-ai { position: relative; display: flex; align-items: center; gap: 9px; height: 42px; margin: 0 clamp(8px, 1vw, 16px); border-radius: 999px;
  padding-inline: 8px 18px; background: var(--grad); border: 1px solid var(--edge); color: #171309;
  font-family: Inter, system-ui, sans-serif; font-size: 13.5px; font-weight: 700; letter-spacing: .045em; white-space: nowrap;
  box-shadow: inset 0 1px 1px rgba(255,233,175,.4), 0 5px 20px rgba(218,161,66,.16); transition: transform .1s ease-out; }
.snav[dir="ltr"] .snav-ai { letter-spacing: .02em; padding-inline: 7px 15px; }
.snav-ai:active, .snav-aitab:active .snav-orb { transform: scale(.97); }
/* ink on gold (V2 §2): the generic link colour above must not win here */
.snav a.snav-ai { color: #171309; }
/* the SINORA AI mark, a little more its own (NV, round two): the logo's S on a dark disc,
   a gold rim and a glint on its shoulder. The rim turns and the glint catches the light
   only while the pointer or focus is on it: nothing in the header moves by itself. */
.snav-disc { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(120% 120% at 32% 18%, #2a261e, #0e0d0b 68%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(23,19,9,.35); }
.snav-disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1px; pointer-events: none;
  background: conic-gradient(from 20deg, rgba(255,236,190,.95), rgba(201,169,97,.25) 22%, rgba(232,212,168,.08) 48%, rgba(201,169,97,.25) 74%, rgba(255,236,190,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: snavRim 10s linear infinite paused; }
.snav-spark { position: absolute; top: 1px; inset-inline-end: 1px; z-index: 2; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, #fff3cf, rgba(247,215,133,.55) 45%, rgba(247,215,133,0)); opacity: .55;
  animation: snavSpark 6s ease-in-out infinite paused; }
.snav-ai:is(:hover, :focus-visible) .snav-disc::before, .snav-ai:is(:hover, :focus-visible) .snav-spark { animation-play-state: running; }
@keyframes snavRim { to { transform: rotate(360deg); } }
@keyframes snavSpark { 0%, 70%, 100% { opacity: .3; transform: scale(.7); } 80% { opacity: 1; transform: scale(1.2); } }
.snav-lang { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; flex: none;
  font-family: Inter, system-ui, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.snav-lang:hover { color: var(--ink); }
.snav-end { display: flex; align-items: center; gap: 8px; flex: none; }
/* Turkish runs longer: under 1440px the dashboard keeps its icon (its name stays as the
   link's label) and SINORA Yapay Zekâ sets a size smaller, so the bar never crowds */
@media (max-width: 1439.98px) {
  .snav[dir="ltr"] .snav-dash { width: 40px; padding: 0; justify-content: center; }
  .snav[dir="ltr"] .snav-dash span { display: none; }
  .snav[dir="ltr"] .snav-ai { font-size: 12.5px; letter-spacing: .02em; padding-inline: 7px 14px; }
}
/* «İş Birliği» (the CV, 2026-10-09) is the fifth Turkish link on the left; from 1200 to 1280px the
   links close their 2px gaps so the logo keeps its room (measured: 2px short at 1200 otherwise) */
@media (max-width: 1279.98px) {
  .snav[dir="ltr"] .snav-links { gap: 0; }
}

/* ── below 1200px: a quiet top edge, and the dashboard's bar at the bottom ─── */
.snav-top, .snav-tabs, .snav-sheet { display: none; }
@media (max-width: 1199.98px) {
  .snav-bar { display: none; }
  .snav-top { display: flex; position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: var(--snav-room);
    align-items: center; justify-content: space-between; padding: 0 16px; padding-top: env(safe-area-inset-top); pointer-events: none; }
  .snav-top > * { pointer-events: auto; }
  .snav-edge { position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(9,10,9,.9), rgba(9,10,9,.6) 60%, rgba(9,10,9,0)); }
  .snav-top .snav-logo { --lh: 26px; width: 84px; height: 44px; }
  .snav-round { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.055); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
    font-family: Inter, system-ui, sans-serif; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; color: var(--soft); }
  .snav-top-end { display: flex; align-items: center; gap: 8px; }
  button.snav-round { border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
    transition: transform .1s ease-out, background-color .15s ease; }
  button.snav-round:active { transform: scale(.94); background: rgba(255,255,255,.1); }
  .snav-round .snav-ic { width: 20px; height: 20px; }

  /* the full menu (QA 2026-10-12: below 1200px the bottom bar holds four links and the other
     sections had no way in). It comes out of the menu button and goes back into it (V2 §4 glass,
     the dashboard's selection for the current page); its close button sits where the menu
     button was, so the finger that opened it can close it. */
  .snav-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 10055; }   /* over the Concierge launcher, under SINORA AI */
  .snav-scrim { position: absolute; inset: 0; background: rgba(4,5,4,.58); opacity: 0; transition: opacity .24s ease; }
  .snav-panel { top: calc((var(--snav-room) + env(safe-area-inset-top, 0px)) / 2 - 30px); inset-inline-end: 8px;
    width: min(360px, calc(100vw - 16px)); max-height: calc(100dvh - (var(--snav-room) + env(safe-area-inset-top, 0px)) / 2 + 22px);
    display: flex; flex-direction: column; border-radius: 26px; padding: 8px; overflow: hidden;
    opacity: 0; transform: scale(.9); transform-origin: calc(100% - 30px) 30px;
    transition: transform .3s cubic-bezier(.32,.72,0,1), opacity .2s ease; }
  .snav[dir="rtl"] .snav-panel { transform-origin: 30px 30px; }
  .snav-sheet:not([data-open]) { pointer-events: none; }   /* on its way out, a press reaches the menu button again */
  .snav-sheet[data-open] .snav-scrim { opacity: 1; }
  .snav-sheet[data-open] .snav-panel { opacity: 1; transform: none; }
  .snav-panel:focus { outline: none; }
  .snav-panel-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding-inline-start: 8px; }
  .snav-panel-head .snav-logo { --lh: 26px; width: 84px; height: 44px; }
  .snav-panel-links { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 8px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .snav-panel-links a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 14px; flex: none;
    font-size: 15px; color: var(--soft); transition: background-color .15s ease, color .15s ease; }
  .snav[dir="ltr"] .snav-panel-links a { font-weight: 500; font-size: 14.5px; }
  .snav-panel-links a:hover { color: var(--ink); }
  .snav-panel-links a:active { background: rgba(255,255,255,.07); }
  .snav-panel-dash { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; flex: none;
    border: 1px solid rgba(230,186,90,.4); font-size: 14.5px; color: var(--ink); transition: border-color .15s ease, background-color .15s ease; }
  .snav-panel-dash:active { background: rgba(230,186,90,.1); }
  .snav-panel-dash .snav-ic { width: 17px; height: 17px; color: var(--gold); }
  html.snav-locked { overflow: hidden; scrollbar-gutter: stable; }

  .snav-tabs { display: grid; grid-template-columns: 1fr 1fr 96px 1fr 1fr; align-items: center;
    left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(480px, calc(100vw - 24px)); height: 70px;
    border-radius: 26px; padding: 0 5px; }
  .snav-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 58px; min-width: 0; padding: 0 2px;
    border-radius: 20px; color: var(--muted); font-size: 10.5px; line-height: 1.15; text-align: center; transition: color .15s ease; }
  .snav-tab span { max-width: 100%; }
  .snav-tab .snav-ic { width: 22px; height: 22px; }
  .snav-tab[aria-current="page"] .snav-ic { color: var(--gold); }
  .snav[dir="ltr"] .snav-tab { font-weight: 500; font-size: 10px; }
  .snav-aitab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 62px; }
  .snav-orb { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); border: 1px solid var(--edge);
    box-shadow: inset 0 1px 1px rgba(255,233,175,.45), inset 0 0 0 4px rgba(247,215,133,.25), inset 0 0 0 5px rgba(23,19,9,.14), 0 6px 18px rgba(218,161,66,.28);
    transition: transform .1s ease-out; }
  .snav-orb .snav-spark { top: 2px; inset-inline-end: 3px; opacity: .8; animation: none;
    background: radial-gradient(closest-side, #fffbea, rgba(255,244,210,.6) 45%, rgba(255,244,210,0)); }
  .snav-orb .snav-s { --s: .094; }
  .snav-orb .snav-s img { filter: brightness(0) opacity(.86) !important; }
  .snav-aitab b { font-family: Inter, system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--gold);
    line-height: 1.1; text-align: center; max-width: 94px; }
  .snav[dir="ltr"] .snav-aitab b { letter-spacing: 0; font-size: 9.6px; }
  /* the page end and the floating helpers stay above the bar */
  body.snav-on { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.snav-on #floating-wa, body.snav-on .whatsapp-float, body.snav-on .signal-controls { bottom: calc(94px + env(safe-area-inset-bottom)) !important; }
  body.snav-on .sinora-cookie-consent, body.snav-on #cookieBanner { bottom: calc(94px + env(safe-area-inset-bottom)) !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .snav-glass { background: #121211; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .snav-round { background: #1a1a18; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .snav-scrim { background: rgba(4,5,4,.8); }
}
@media (prefers-contrast: more) {
  .snav-glass { background: #0d0d0c; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
  .snav-links a, .snav-tab { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .snav * { transition: none !important; }
  .snav-disc::before, .snav-spark { animation: none; }
  /* the menu still arrives, by a short fade and without moving */
  .snav .snav-panel { transform: none; transition: opacity .16s ease !important; }
  .snav .snav-scrim { transition: opacity .16s ease !important; }
}

/* ── One header, one family (founder 2026-10-16: «یه مقدار تناسب با هم ندارن … سمت راست منو خیلی فضای خالی داره و
   سمت چپ تا جای ممکن پره … کل منو از لحاظ هویت بصری و یو آیش … همه چیز به هم بخوره») ────────────────────────────
   · two halves around SINORA AI, five links each, every half spreading its own items evenly (no hole by the logo);
   · one outline pill for the account and the language: «داشبورد»/«Panelim», SINORA Pro, TR/FA;
   · ForceMotion a link like the others, in gold, with a light that runs across it and a short speed trail;
   · SINORA AI the one gold action (V2 §2), the height of the pills beside it, a quieter glow.
   Measured 2026-10-16: every item inside the bar from 1200 to 1600px in both languages. */
.snav[dir] .snav-bar .snav-side .snav-links { flex: 1 1 auto; justify-content: space-evenly; margin-inline-start: 0; gap: 0; }
.snav[dir] .snav-bar .snav-side .snav-dash { margin-inline-start: 6px; }
.snav[dir] .snav-bar .snav-dash, .snav[dir] .snav-bar .snav-links .spex-membership-trigger, .snav[dir] .snav-bar .snav-lang {
  height: 38px; min-height: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: transparent; box-shadow: none;
  color: var(--soft); font-size: 13px; font-weight: 500; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.snav[dir] .snav-bar .snav-links .spex-membership-trigger { padding: 0 10px; gap: 6px; margin-inline-start: 6px; }
.snav[dir] .snav-bar .snav-links .spex-membership-trigger svg { color: var(--gold); }
.snav[dir] .snav-bar .snav-lang { width: 38px; min-width: 38px; padding: 0; font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.snav[dir] .snav-bar .snav-dash:hover, .snav[dir] .snav-bar .snav-lang:hover, .snav[dir] .snav-bar .snav-links .spex-membership-trigger:hover,
.snav[dir] .snav-bar .snav-links .spex-membership-trigger[aria-expanded="true"] { border-color: rgba(232,212,168,.5); color: var(--ink); background: rgba(255,255,255,.04); }
@media (min-width: 1360px) { .snav[dir="ltr"] .snav-bar .snav-dash { width: auto; padding: 0 12px; justify-content: flex-start; } .snav[dir="ltr"] .snav-bar .snav-dash span { display: inline; } }
.snav[dir] .snav-bar .snav-ai { height: 38px; gap: 8px; padding-inline: 5px 15px; font-size: 13px; letter-spacing: .02em;
  box-shadow: inset 0 1px 1px rgba(255,233,175,.4), 0 4px 14px rgba(218,161,66,.12); }
.snav[dir] .snav-bar .snav-ai .snav-disc { width: 28px; height: 28px; }

.snav-links a.snav-fm, .snav-panel-links a.snav-fm { position: relative; display: flex; align-items: center; gap: 5px; direction: ltr; unicode-bidi: isolate;
  font-family: Inter, system-ui, sans-serif; font-weight: 600; font-style: normal; letter-spacing: .005em; color: var(--gold, #e6ba5a); }
.snav[dir] .snav-bar .snav-links > a.snav-fm { font-size: 12.5px; padding-inline: clamp(6px, .6vw, 10px); }
.snav-fm-t { background: linear-gradient(100deg, #c9a252 0%, #f0d38a 32%, #fff4d2 40%, #e6ba5a 50%, #c9a252 74%, #f0d38a 100%);
  background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: snav-fm-shine 3.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.snav-fm-s { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; inline-size: 9px; }
.snav-fm-s i { display: block; block-size: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(230,186,90,0), #e6ba5a);
  transform-origin: right center; animation: snav-fm-streak 1.8s cubic-bezier(.2, .7, .3, 1) infinite; }
.snav-fm-s i:nth-child(1) { inline-size: 70%; margin-inline-start: 30%; animation-delay: .2s; }
.snav-fm-s i:nth-child(2) { inline-size: 100%; }
.snav-links a.snav-fm:hover, .snav-panel-links a.snav-fm:hover { background: rgba(201,165,82,.1); }
.snav-panel-links a.snav-fm--panel { font-size: 1em; }
/* the light crosses the word, and the word glows once as it leaves: the twinkle */
@keyframes snav-fm-shine { 0% { background-position: 115% 0; filter: none; } 52% { filter: drop-shadow(0 0 0 rgba(243,217,142,0)); }
  60% { background-position: -10% 0; filter: drop-shadow(0 0 5px rgba(243,217,142,.6)); } 70%, 100% { background-position: -15% 0; filter: none; } }
@keyframes snav-fm-streak { 0% { transform: translateX(4px) scaleX(.3); opacity: 0; } 35% { opacity: .9; } 100% { transform: translateX(-6px) scaleX(1); opacity: 0; } }

.snav[dir="rtl"] .snav-bar .snav-links > a, .snav[dir="rtl"] .snav-bar .snav-links > button:not(.spex-membership-trigger) { padding-inline: clamp(5px, .48vw, 7px); }
@media (max-width: 1365.98px) {
  .snav[dir] .snav-bar .snav-links > a, .snav[dir] .snav-bar .snav-links > a.snav-fm { padding-inline: 4px; }
  .snav[dir] .snav-bar .snav-ai { margin-inline: 6px; padding-inline: 4px 12px; font-size: 12.5px; }
  .snav[dir] .snav-bar .snav-links .spex-membership-trigger { padding: 0 8px; gap: 4px; font-size: 12px; margin-inline-start: 4px; } }
@media (max-width: 1279.98px) {
  .snav[dir] .snav-bar .snav-links > a { padding-inline: 3px; font-size: 11.5px; }
  .snav[dir] .snav-bar .snav-links > a.snav-fm { padding-inline: 3px; font-size: 11.5px; } .snav[dir] .snav-bar .snav-fm-s { display: none; }
  .snav[dir] .snav-bar .snav-ai { margin-inline: 3px; padding-inline: 4px 11px; gap: 6px; font-size: 12px; height: 36px; }
  .snav[dir] .snav-bar .snav-links .spex-membership-trigger { padding: 0 7px; font-size: 11.5px; margin-inline-start: 2px; }
  .snav[dir] .snav-bar .snav-dash, .snav[dir] .snav-bar .snav-links .spex-membership-trigger { height: 34px; min-height: 34px; }
  .snav[dir] .snav-bar .snav-lang { width: 34px; min-width: 34px; height: 34px; min-height: 34px; } }
@media (prefers-reduced-motion: reduce) { .snav-fm-t, .snav-fm-s i { animation: none !important; } .snav-fm-t { background-position: 40% 0; } .snav-fm-s { display: none; } }
@media (prefers-contrast: more) { .snav-fm-t { background: none; color: #f3d98e; } .snav[dir] .snav-bar .snav-dash, .snav[dir] .snav-bar .snav-lang,
  .snav[dir] .snav-bar .snav-links .spex-membership-trigger { border-color: rgba(248,246,242,.5); } }
/* Turkish: «SINORA Yapay Zekâ» is the longest item; below 1440px it and the speed trail give way first (measured: nothing outside the bar) */
@media (max-width: 1439.98px) { .snav[dir="ltr"] .snav-bar .snav-ai { font-size: 12px; letter-spacing: 0; padding-inline: 4px 11px; gap: 6px; } .snav[dir="ltr"] .snav-bar .snav-fm-s { display: none; } }
@media (max-width: 1365.98px) { .snav[dir="ltr"] .snav-bar .snav-links > a { font-size: 11.5px; } }

/* ── The mega menu (founder 2026-10-16: «مگا منو … فیچرها و ابزارها یه جا زیر هم باشن در زیر یک کتگوری»).
   A category is a link-sized button with a small chevron; its panel drops from it in liquid-glass material
   (V2 §4: menus are glass; it hangs below the bar, never on it), each entry an icon, a name and one line.
   Hover opens after a short intent (mouse only), a press toggles, Escape closes and returns focus, Tab runs
   through the panel in page order. ForceMotion keeps its gold and its light. ───────────────────────────── */
.snav-mw { position: relative; display: flex; align-items: center; }
.snav .snav-links .snav-mt { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 clamp(8px, .85vw, 12.2px); border: 0; border-radius: 13px;
  background: transparent; font-family: inherit; font-size: clamp(13px, .95vw, 13.7px); font-weight: 400; color: var(--muted); white-space: nowrap; cursor: pointer;
  transition: color .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.snav[dir="ltr"] .snav-links .snav-mt { font-weight: 500; letter-spacing: -.005em; padding: 0 clamp(6px, .52vw, 7.5px); font-size: clamp(12.5px, .9vw, 13.2px); }
.snav .snav-links .snav-mt:hover, .snav .snav-links .snav-mt[aria-expanded="true"] { color: var(--ink); background: rgba(255,255,255,.06); }
.snav .snav-links .snav-mt:active { transform: scale(.97); transition-duration: .1s; }
.snav .snav-links .snav-mt:focus-visible, .snav .snav-mega a:focus-visible { outline: 2px solid rgba(232,212,168,.8); outline-offset: 2px; }
.snav .snav-links .snav-mt[data-current] {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02)), rgba(201,169,97,.14);
  box-shadow: inset 0 0 0 1px rgba(232,212,168,.38), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 14px rgba(201,169,97,.12), 0 8px 22px rgba(201,169,97,.18);
  color: var(--ink); }
.snav-chev { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7;
  transition: transform .25s cubic-bezier(.32, .72, 0, 1); }
.snav-mt[aria-expanded="true"] .snav-chev { transform: rotate(180deg); }

.snav .snav-mega { position: absolute; top: calc(100% + 16px); left: 50%; translate: -50% 0; z-index: 5; min-width: 340px; padding: 8px;
  border-radius: 22px; border: 1px solid rgba(238,225,188,.14);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 48%, rgba(255,255,255,.05)), rgba(16,16,15,.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 50% 0;
  transition: opacity .18s ease, transform .42s linear(0, .0502, .1647, .3042, .4447, .573, .6827, .7723, .8425, .8956, .9344, .9618, .9804, .9925, .9998, 1.0039, 1.0058, 1.0063, 1.006, 1.0053, 1.0044, 1.0035, 1.0027, 1.002, 1.0015, 1); }
.snav .snav-mega[data-open] { opacity: 1; transform: none; }
.snav .snav-mega::before { content: ""; position: absolute; inset: -18px 0 auto 0; height: 18px; }      /* the hover bridge to the button */
.snav .snav-mega::after { content: ""; position: absolute; inset: 0 0 50% 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.1), transparent 70%); }
.snav .snav-mega ul { position: relative; z-index: 1; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.snav[dir] .snav-bar .snav-mega a { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; height: auto; min-height: 56px;
  padding: 9px 12px; border-radius: 15px; background: transparent; box-shadow: none; color: var(--soft); font-size: 14px; letter-spacing: 0; white-space: normal; text-decoration: none;
  transition: background-color .15s ease, color .15s ease; }
.snav[dir] .snav-bar .snav-mega a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.snav[dir] .snav-bar .snav-mega a[aria-current="page"] { color: var(--ink) !important; }
.snav-mi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--gold);
  background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.06); }
.snav-mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snav-mx { display: grid; gap: 1px; min-width: 0; }
.snav-mx b { font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--ink); }
.snav[dir="ltr"] .snav-mx b { font-size: 13.5px; }
.snav-mx small { font-size: 12px; line-height: 1.6; color: var(--muted); }
.snav-mx .snav-fm-name { font-family: Inter, system-ui, sans-serif; font-size: 14px; letter-spacing: .005em; justify-self: start; }   /* the reading side in both languages */
.snav-mlink--fm .snav-mi { color: #f3d98e; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(230,186,90,.35); }
/* the phone menu: the same groups under a quiet gold label */
.snav-panel-links .snav-pg { margin: 12px 14px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--gold); opacity: .9; }
.snav[dir="ltr"] .snav-panel-links .snav-pg { text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 1365.98px) { .snav[dir] .snav-bar .snav-links .snav-mt { padding-inline: 5px; } }
@media (max-width: 1279.98px) { .snav[dir] .snav-bar .snav-links .snav-mt { padding-inline: 4px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .snav .snav-mega { transform: none !important; transition: opacity .12s ease; } .snav-chev { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .snav .snav-mega { background: #161512; } }
@media (prefers-contrast: more) { .snav .snav-mega { background: #0d0d0c; border-color: rgba(248,246,242,.5); } }
/* the phone menu: ForceMotion on the reading side, at the size of its neighbours */
.snav[dir="rtl"] .snav-panel-links a.snav-fm { justify-content: flex-end; }
.snav-panel-links a.snav-fm--panel { font-size: .92em; }

/* ── SINORA AI, minimal and premium (founder 2026-10-16: «با منو اداپت نیست، مینیمال‌تر ولی حس پریمیوم حفظ کن»):
   a dark glass pill of the bar's own family, a gold gradient hairline instead of the gold fill, the brand mark on a ringed
   disc, SINORA tracked and the tail in light gold (V2 §3). Still the one gold in the chrome. ── */
.snav[dir] .snav-bar .snav-ai { position: relative; isolation: isolate; height: 38px; gap: 9px; padding-inline: 5px 16px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.015)), rgba(22,20,16,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 22px rgba(0,0,0,.35);
  color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  transition: box-shadow .25s ease, transform .1s ease-out; }
.snav[dir] .snav-bar .snav-ai::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(115deg, #f7d785 0%, rgba(230,180,84,.55) 38%, rgba(195,141,53,.18) 62%, rgba(247,215,133,.7) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .9; transition: opacity .25s ease; }
.snav[dir] .snav-bar .snav-ai::after { content: ""; position: absolute; inset: 0 0 52% 0; border-radius: 999px 999px 0 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,236,200,.12), transparent 70%); }
.snav[dir] .snav-bar .snav-ai:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(232,212,168,.12), 0 10px 26px rgba(201,169,97,.16); }
.snav[dir] .snav-bar .snav-ai:hover::before { opacity: 1; }
.snav[dir] .snav-bar .snav-ai:active { transform: scale(.97); }
.snav[dir] .snav-bar .snav-ai .snav-disc { width: 28px; height: 28px; box-shadow: inset 0 0 0 1px rgba(230,186,90,.45), inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.4); }
.snav-ai-t { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.snav-ai-t .snav-ai-s { letter-spacing: .14em; margin-inline-end: -.14em; }
.snav-ai-t b { font-weight: 600; margin-inline-start: .45em;
  background: linear-gradient(180deg, #f3dc9e, #d9b061); -webkit-background-clip: text; background-clip: text; color: transparent; }
.snav[dir] .snav-bar .snav-ai { font-size: 12.5px; padding-inline: 5px 16px; gap: 9px; }
@media (max-width: 1439.98px) { .snav[dir="ltr"] .snav-bar .snav-ai { font-size: 12px; padding-inline: 4px 13px; gap: 7px; } }
@media (max-width: 1365.98px) { .snav[dir] .snav-bar .snav-ai { padding-inline: 4px 12px; } }
@media (max-width: 1279.98px) { .snav[dir] .snav-bar .snav-ai { padding-inline: 4px 11px; gap: 6px; font-size: 12px; height: 36px; } }
@media (prefers-reduced-transparency: reduce) { .snav[dir] .snav-bar .snav-ai { background: #161512; } }
@media (prefers-contrast: more) { .snav[dir] .snav-bar .snav-ai::before { background: #f3d98e; } .snav-ai-t b { background: none; color: #f3d98e; } }

/* ── «روی من کلیک کن» (founder 2026-10-16: «یه موشن بانس بهش بده … ولی خیلی مینیمال»): every 6s, from 1.6s after the bar
   appears, one short spring-like hop (≈0.8s: up 2px and 3% larger, a small settle, rest), the rim catching the light and the
   mark tipping a few degrees with it. Four times, then still. A mouse or keyboard on it stops it at once, so the press
   (scale .97) answers exactly; never under reduced motion. ── */
@keyframes snav-ai-nudge { 0%, 13.5%, 100% { transform: none; } 3% { transform: translateY(-2px) scale(1.03); }
  6.5% { transform: translateY(0) scale(.993); } 9.5% { transform: translateY(-.5px) scale(1.007); } }
@keyframes snav-ai-rim { 0%, 13.5%, 100% { opacity: .9; } 3% { opacity: 1; filter: brightness(1.25); } }
@keyframes snav-ai-tip { 0%, 13.5%, 100% { transform: none; } 3% { transform: rotate(-9deg); } 7% { transform: rotate(3deg); } 10% { transform: none; } }
.snav[dir] .snav-bar .snav-ai { animation: snav-ai-nudge 6s cubic-bezier(.33, 0, .2, 1) 1.6s 4 both; }
.snav[dir] .snav-bar .snav-ai::before { animation: snav-ai-rim 6s ease 1.6s 4 both; }
.snav[dir] .snav-bar .snav-ai .snav-disc { animation: snav-ai-tip 6s cubic-bezier(.33, 0, .2, 1) 1.6s 4 both; }
.snav[dir] .snav-bar .snav-ai:is(:hover, :focus-visible), .snav[dir] .snav-bar .snav-ai:is(:hover, :focus-visible)::before,
.snav[dir] .snav-bar .snav-ai:is(:hover, :focus-visible) .snav-disc { animation: none; }
@media (prefers-reduced-motion: reduce) { .snav[dir] .snav-bar .snav-ai, .snav[dir] .snav-bar .snav-ai::before, .snav[dir] .snav-bar .snav-ai .snav-disc { animation: none !important; } }
