/* =====================================================================
   Neuron AI Academy — Design System
   پالت: سرمه ای عمیق + آبی الکتریک (هوش) + نارنجی نورون (انرژی)
   ===================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: local("Vazirmatn"), url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060914;
  --bg-2: #0a1024;
  --bg-3: #101935;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #0e1630;
  --border: rgba(148, 170, 255, 0.14);
  --border-strong: rgba(148, 170, 255, 0.28);
  --text: #eaf0ff;
  --text-2: #b4c0e0;
  --muted: #7f8bb0;

  --blue: #3d7bff;
  --blue-2: #59b8ff;
  --cyan: #38e1ff;
  --orange: #ff7a1a;
  --orange-2: #ffb34d;
  --violet: #8b6bff;

  --success: #22c993;
  --warning: #ffb020;
  --danger: #ff5470;
  --info: #59b8ff;

  --grad-brand: linear-gradient(135deg, #3d7bff 0%, #59b8ff 45%, #38e1ff 100%);
  --grad-fire: linear-gradient(135deg, #ff7a1a 0%, #ffb34d 100%);
  --grad-mix: linear-gradient(120deg, #59b8ff 0%, #8b6bff 45%, #ff7a1a 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(89, 184, 255, 0.25), 0 18px 50px -18px rgba(61, 123, 255, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1480px;
  --header-h: 72px;
  --font: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-2: #eef1fa;
  --bg-3: #e4e9f7;
  --surface: #ffffff;
  --surface-2: #f6f8fe;
  --surface-solid: #ffffff;
  --border: rgba(30, 50, 120, 0.10);
  --border-strong: rgba(30, 50, 120, 0.2);
  --text: #0d1530;
  --text-2: #3b4770;
  --muted: #6b7699;
  --shadow: 0 10px 30px -14px rgba(20, 35, 90, 0.25);
  --shadow-glow: 0 0 0 1px rgba(61, 123, 255, 0.18), 0 16px 40px -18px rgba(61, 123, 255, 0.35);
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4, h5 { line-height: 1.4; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); direction: ltr; }
pre { background: #050816; color: #dbe6ff; padding: 1rem 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; border: 1px solid var(--border); text-align: left; font-size: 0.9rem; line-height: 1.6; }
:not(pre) > code { background: var(--surface-2); padding: 0.1em 0.45em; border-radius: 6px; font-size: 0.88em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
::selection { background: rgba(89, 184, 255, 0.35); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.nr-icon { flex-shrink: 0; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

/* background decoration */
.bg-aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(120px); opacity: 0.22;
}
.bg-aurora::before { background: #3d7bff; top: -25vmax; right: -15vmax; animation: drift 22s var(--ease) infinite alternate; }
.bg-aurora::after { background: #ff7a1a; bottom: -30vmax; left: -20vmax; opacity: 0.12; animation: drift 26s var(--ease) infinite alternate-reverse; }
[data-theme="light"] .bg-aurora::before { opacity: 0.12; }
[data-theme="light"] .bg-aurora::after { opacity: 0.07; }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(120, 150, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
}
@keyframes drift { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.08); } }

/* ---------------------------------------------------------------- layout */
.container { width: min(100% - clamp(1.5rem, 5vw, 5rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-sm { padding: 2.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.section-head.start { text-align: start; margin-inline: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700; color: var(--orange-2);
  padding: 0.3rem 0.9rem; border-radius: 99px; background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.25); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
.gradient-text { background: var(--grad-mix); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-blue { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ================================================================
   سیستم طراحی دکمه ها و لینک ها (Neuron Interaction System)
   همه دکمه ها از متغیرهای زیر پیروی می کنند؛ تغییر ظاهر فقط از همین جا.
   انواع: btn-primary · btn-secondary · btn-outline · btn-ghost · btn-icon · btn-text · btn-cta (= btn-accent)
   وضعیت ها: :hover · :active · :focus-visible · [disabled]/.disabled · .is-loading
   ================================================================ */
:root {
  --btn-h: 44px; --btn-h-sm: 34px; --btn-h-lg: 54px;
  --btn-px: 1.2rem; --btn-px-sm: .8rem; --btn-px-lg: 1.7rem;
  /* هندسه اختصاصی نورون: گوشه ها نرم ولی کپسولی نیستند؛ گوشه پایین ابتدا کمی تیزتر (امضای برند) */
  --btn-r: 12px; --btn-r-cut: 5px;
  --btn-font: .94rem; --btn-weight: 800;
  --btn-ease: cubic-bezier(.22, 1, .36, 1);
  --btn-dur: .32s;
  --ring: 0 0 0 3px var(--bg), 0 0 0 5px rgba(89, 184, 255, .85);
  --btn-primary-bg: linear-gradient(135deg, #2f6bff 0%, #3d7bff 38%, #4aa3ff 72%, #38d7ff 100%);
  --btn-primary-glow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 10px 24px -12px rgba(61,123,255,.9), 0 2px 6px -2px rgba(20,40,120,.6);
  --btn-primary-glow-h: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 16px 34px -12px rgba(73,160,255,.95), 0 0 0 1px rgba(120,200,255,.35), 0 0 24px -4px rgba(56,215,255,.45);
  --btn-cta-bg: linear-gradient(135deg, #ff6a10 0%, #ff8a24 45%, #ffb347 100%);
  --btn-cta-glow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -1px 0 rgba(120,40,0,.25) inset, 0 12px 28px -12px rgba(255,122,26,.95);
  --btn-cta-glow-h: 0 1px 0 rgba(255,255,255,.45) inset, 0 -1px 0 rgba(120,40,0,.25) inset, 0 18px 40px -12px rgba(255,140,40,1), 0 0 26px -4px rgba(255,179,71,.6);
  --btn-sec-bg: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  --btn-sec-border: rgba(148, 170, 255, .26);
}
[data-theme="light"] {
  --ring: 0 0 0 3px #fff, 0 0 0 5px rgba(47, 107, 255, .8);
  --btn-sec-bg: linear-gradient(180deg, #ffffff, #f1f4fc);
  --btn-sec-border: rgba(30, 50, 120, .16);
}

.btn {
  --_h: var(--btn-h); --_px: var(--btn-px);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--_h); padding: 0 var(--_px);
  border-radius: var(--btn-r) var(--btn-r) var(--btn-r-cut) var(--btn-r);
  border: 1px solid var(--btn-sec-border);
  background: var(--btn-sec-bg); color: var(--text);
  font: inherit; font-size: var(--btn-font); font-weight: var(--btn-weight); line-height: 1.2; letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer; text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 16px -10px rgba(0,0,0,.6);
  transition: transform var(--btn-dur) var(--btn-ease), box-shadow var(--btn-dur) var(--btn-ease), background-color var(--btn-dur),
              border-color var(--btn-dur), color .2s, filter var(--btn-dur), opacity .2s;
}
.btn > svg { flex-shrink: 0; transition: transform var(--btn-dur) var(--btn-ease); }
.btn:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(120, 190, 255, .55); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 12px 26px -14px rgba(61,123,255,.65); }
/* آیکن ابتدای دکمه هنگام Hover کمی به جلو (در جهت متن فارسی) می رود */
.btn:hover > svg:first-child:not(:only-child) { transform: translateX(-2px); }
.btn:hover > svg:last-child:not(:only-child) { transform: translateX(-4px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; filter: brightness(.96); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn.disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; pointer-events: none; transform: none !important; filter: grayscale(.35); box-shadow: none;
}
/* لایه نور: یک برق ظریف که از یک سمت به سمت دیگر عبور می کند (زیر متن؛ خوانایی حفظ می شود) */
.btn::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(110%); transition: transform .85s var(--btn-ease); opacity: 0;
}
.btn:hover::after { transform: translateX(-110%); opacity: 1; }

/* ---------- Primary ---------- */
.btn-primary { background: var(--btn-primary-bg); background-size: 160% 100%; background-position: 100% 0; border-color: rgba(140, 200, 255, .35); color: #fff; box-shadow: var(--btn-primary-glow); text-shadow: 0 1px 1px rgba(10, 30, 90, .35); }
.btn-primary:hover { color: #fff; background-position: 0 0; border-color: rgba(170, 220, 255, .6); box-shadow: var(--btn-primary-glow-h); }
.btn-primary::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); }

/* ---------- CTA (نارنجی برند) — btn-accent نام قدیمی همین دکمه است ---------- */
.btn-cta, .btn-accent { background: var(--btn-cta-bg); background-size: 160% 100%; background-position: 100% 0; border-color: rgba(255, 200, 140, .45); color: #2a1100; box-shadow: var(--btn-cta-glow); }
.btn-cta:hover, .btn-accent:hover { color: #2a1100; background-position: 0 0; border-color: rgba(255, 220, 170, .8); box-shadow: var(--btn-cta-glow-h); }
.btn-cta::after, .btn-accent::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); }
.btn-cta { --_h: var(--btn-h-lg); --_px: var(--btn-px-lg); font-size: 1.02rem; }

/* ---------- Secondary: سطح شیشه ای با حاشیه گرادیانی ---------- */
.btn-secondary {
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(120deg, rgba(89,184,255,.55), rgba(139,107,255,.35), rgba(255,122,26,.45)) border-box;
  border: 1px solid transparent; color: var(--text);
}
.btn-secondary:hover { background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box, linear-gradient(120deg, #59b8ff, #8b6bff, #ff7a1a) border-box; box-shadow: 0 12px 28px -14px rgba(139,107,255,.7); }
[data-theme="light"] .btn-secondary { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, rgba(47,107,255,.6), rgba(139,107,255,.4), rgba(255,122,26,.5)) border-box; }

/* ---------- Outline ---------- */
.btn-outline { background: transparent; border: 1.5px solid rgba(89, 184, 255, .55); color: var(--blue-2); box-shadow: none; }
.btn-outline:hover { background: rgba(89, 184, 255, .08); color: var(--text); border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(89,184,255,.08), 0 10px 24px -14px rgba(89,184,255,.8); }
[data-theme="light"] .btn-outline { color: #2257d6; border-color: rgba(47, 107, 255, .5); }

/* ---------- Ghost ---------- */
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); box-shadow: none; }
.btn-ghost::after { display: none; }

/* ---------- Text button: بدون قاب، با خط زیر متحرک ---------- */
.btn-text { --_px: .15rem; background: none; border: 0; box-shadow: none; color: var(--blue-2); min-height: auto; padding-block: .25rem; overflow: visible; }
.btn-text::after { display: block; opacity: 1; inset: auto 0 -1px auto; height: 2px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--orange-2), var(--blue-2)); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--btn-ease); }
.btn-text:hover { transform: none; box-shadow: none; color: var(--cyan); }
.btn-text:hover::after { transform: scaleX(1); }

/* ---------- Icon button ---------- */
.btn-icon { --_px: 0; width: var(--_h); min-width: var(--_h); border-radius: 12px; }
.btn-icon:hover > svg { transform: scale(1.12); }
.btn-icon.btn-sm { width: var(--btn-h-sm); min-width: var(--btn-h-sm); }

/* ---------- وضعیتی ---------- */
.btn-danger { background: rgba(255, 84, 112, .1); border-color: rgba(255, 84, 112, .42); color: #ff8fa3; }
.btn-danger:hover { background: rgba(255, 84, 112, .2); border-color: var(--danger); color: #ffc2cd; box-shadow: 0 10px 26px -14px rgba(255,84,112,.9); }
.btn-success { background: rgba(34, 201, 147, .12); border-color: rgba(34, 201, 147, .42); color: #5ff0bf; }
.btn-success:hover { background: rgba(34, 201, 147, .22); border-color: var(--success); color: #a6ffe0; box-shadow: 0 10px 26px -14px rgba(34,201,147,.9); }
[data-theme="light"] .btn-danger { color: #c8173a; }
[data-theme="light"] .btn-success { color: #0d8a62; }

/* ---------- اندازه ها ---------- */
.btn-sm { --_h: var(--btn-h-sm); --_px: var(--btn-px-sm); font-size: .84rem; --btn-r: 10px; --btn-r-cut: 4px; gap: .4rem; }
.btn-lg { --_h: var(--btn-h-lg); --_px: var(--btn-px-lg); font-size: 1.04rem; --btn-r: 14px; --btn-r-cut: 6px; }
.w-full.btn { width: 100%; }

/* ---------- Loading ---------- */
.btn.is-loading { color: transparent !important; text-shadow: none; pointer-events: none; cursor: progress; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: rgba(255,255,255,.95) rgba(255,255,255,.95) rgba(255,255,255,.25) rgba(255,255,255,.25);
  animation: spin .7s linear infinite; z-index: 1;
}
.btn:not(.btn-primary):not(.btn-cta):not(.btn-accent).is-loading::before { border-color: var(--blue-2) var(--blue-2) rgba(89,184,255,.2) rgba(89,184,255,.2); }

/* ================================================================ لینک ها */
/* لینک متنی محتوا */
.text-link, .prose a {
  color: var(--blue-2); font-weight: 600; text-decoration: none;
  background: linear-gradient(90deg, var(--orange-2), var(--blue-2)) no-repeat right bottom / 0 2px,
              linear-gradient(90deg, rgba(89,184,255,.35), rgba(89,184,255,.35)) no-repeat right bottom / 100% 1px;
  padding-bottom: 2px; transition: background-size .45s var(--btn-ease), color .2s;
}
.text-link:hover, .prose a:hover { color: var(--text); background-size: 100% 2px, 100% 1px; }
[data-theme="light"] .text-link, [data-theme="light"] .prose a { color: #2257d6; }
/* لینک با آیکن */
.icon-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue-2); font-weight: 700; }
.icon-link svg { transition: transform .35s var(--btn-ease); }
.icon-link:hover { color: var(--cyan); }
.icon-link:hover svg { transform: translateX(-4px); }


/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative;
}
.card-sm { padding: 1.1rem; border-radius: var(--radius); }
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease); }
.card-hover:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.card-title { font-size: 1.08rem; font-weight: 800; margin: 0 0 0.35rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad-mix);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55; pointer-events: none;
}
.icon-tile {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex-shrink: 0;
  background: var(--grad-brand); box-shadow: 0 10px 25px -10px rgba(61, 123, 255, 0.8);
}
.icon-tile.fire { background: var(--grad-fire); color: #2a1300; box-shadow: 0 10px 25px -10px rgba(255, 122, 26, 0.8); }
.icon-tile.soft { background: var(--surface-2); color: var(--blue-2); box-shadow: none; border: 1px solid var(--border); }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.7rem; border-radius: 99px; font-size: 0.78rem; font-weight: 700;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge.plain::before { display: none; }
.b-success { color: #3ee0ad; background: rgba(34, 201, 147, 0.12); border-color: rgba(34, 201, 147, 0.3); }
.b-warn { color: #ffc35c; background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.3); }
.b-danger { color: #ff7d93; background: rgba(255, 84, 112, 0.12); border-color: rgba(255, 84, 112, 0.3); }
.b-info { color: #7cc8ff; background: rgba(89, 184, 255, 0.12); border-color: rgba(89, 184, 255, 0.3); }
.b-orange { color: #ffa04d; background: rgba(255, 122, 26, 0.12); border-color: rgba(255, 122, 26, 0.3); }
.b-muted { color: var(--muted); }
[data-theme="light"] .b-success { color: #0b8a61; } [data-theme="light"] .b-warn { color: #a86a00; }
[data-theme="light"] .b-danger { color: #c41d3d; } [data-theme="light"] .b-info { color: #1f6fd1; } [data-theme="light"] .b-orange { color: #c25300; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.95rem; border-radius: 99px; font-size: 0.86rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--blue-2); color: var(--text); }
.chip.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.tag { font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 8px; background: rgba(89, 184, 255, 0.1); color: var(--blue-2); border: 1px solid rgba(89, 184, 255, 0.2); display: inline-block; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label, .field-label { font-weight: 700; font-size: 0.9rem; color: var(--text-2); }
.field .help { font-size: 0.8rem; color: var(--muted); }
.field .errors { color: #ff8fa3; font-size: 0.82rem; margin: 0; padding: 0; list-style: none; }
.nr-input, select.nr-input, textarea.nr-input {
  width: 100%; padding: 0.78rem 1rem; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(5, 9, 22, 0.5);
  color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
[data-theme="light"] .nr-input { background: #fff; }
.nr-input::placeholder { color: var(--muted); opacity: 0.8; }
.nr-input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(89, 184, 255, 0.15); background: rgba(5, 9, 22, 0.75); }
[data-theme="light"] .nr-input:focus { background: #fff; }
.nr-input-sm { padding: 0.45rem 0.6rem; font-size: 0.88rem; max-width: 96px; text-align: center; }
textarea.nr-input { resize: vertical; min-height: 110px; line-height: 1.8; }
select.nr-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237f8bb0' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 0.9rem center; padding-left: 2.4rem; }
.field.has-error .nr-input { border-color: var(--danger); }
.nr-file { font: inherit; color: var(--text-2); padding: 0.6rem; border: 1px dashed var(--border-strong); border-radius: 12px; width: 100%; background: var(--surface); }
.nr-file::file-selector-button { font: inherit; font-weight: 700; border: 0; border-radius: 9px; padding: 0.45rem 0.9rem; margin-left: 0.75rem; background: var(--grad-brand); color: #fff; cursor: pointer; }
.nr-check { width: 1.15rem; height: 1.15rem; accent-color: var(--blue); }
.nr-choices { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.nr-choices label, .check-row { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; color: var(--text); cursor: pointer; }
.nr-choices input { accent-color: var(--blue); width: 1.05rem; height: 1.05rem; }
.form-errors { background: rgba(255, 84, 112, 0.1); border: 1px solid rgba(255, 84, 112, 0.35); color: #ffb3c0; padding: 0.8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
[data-theme="light"] .form-errors { color: #b3122f; }
.form-errors ul { margin: 0; padding-right: 1.2rem; }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.input-group { position: relative; }
.input-group .nr-input { padding-left: 2.8rem; }
.input-group .nr-icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------------------------------------------------------------- alerts */
.messages { position: fixed; top: calc(var(--header-h) + 0.75rem); left: 1rem; z-index: 200; display: grid; gap: 0.6rem; max-width: min(420px, calc(100% - 2rem)); }
.alert {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1.1rem; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface-solid); box-shadow: var(--shadow); animation: slideIn 0.5s var(--ease); font-size: 0.92rem;
}
.alert-success { border-color: rgba(34, 201, 147, 0.5); } .alert-success .nr-icon { color: var(--success); }
.alert-error { border-color: rgba(255, 84, 112, 0.5); } .alert-error .nr-icon { color: var(--danger); }
.alert-warning { border-color: rgba(255, 176, 32, 0.5); } .alert-warning .nr-icon { color: var(--warning); }
.alert-info { border-color: rgba(89, 184, 255, 0.5); } .alert-info .nr-icon { color: var(--info); }
.alert .close { margin-right: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.alert.hide { opacity: 0; transform: translateX(-20px); transition: all 0.4s var(--ease); }
.notice { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(89, 184, 255, 0.08); border: 1px solid rgba(89, 184, 255, 0.25); color: var(--text-2); }
.notice.warn { background: rgba(255, 176, 32, 0.08); border-color: rgba(255, 176, 32, 0.3); }
.notice.danger { background: rgba(255, 84, 112, 0.08); border-color: rgba(255, 84, 112, 0.3); }
.notice.success { background: rgba(34, 201, 147, 0.08); border-color: rgba(34, 201, 147, 0.3); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } }

/* ---------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { padding: 0.85rem 1rem; text-align: right; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 0.8rem; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(89, 184, 255, 0.04); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 800; background: var(--surface-2); }
.table-compact th, .table-compact td { padding: 0.5rem 0.6rem; }
@media (max-width: 720px) {
  .table-responsive thead { display: none; }
  .table-responsive tr { display: block; padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--border); }
  .table-responsive td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: 0.35rem 0.7rem; text-align: left; }
  .table-responsive td::before { content: attr(data-label); color: var(--muted); font-size: 0.8rem; font-weight: 700; text-align: right; }
}

/* ---------------------------------------------------------------- misc components */
.avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  background: var(--grad-mix); color: #fff; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, 0.12);
}
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); transition: width 1s var(--ease); }
.progress.fire > span { background: var(--grad-fire); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .nr-icon { margin: 0 auto 1rem; opacity: 0.5; }
.breadcrumb { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb span::before { content: "/"; margin-left: 0.5rem; opacity: 0.5; }
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 0.8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; }
.pagination .current { background: var(--grad-brand); color: #fff; border-color: transparent; }
.tabs { display: flex; gap: 0.3rem; padding: 0.3rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.tabs a, .tabs button { padding: 0.55rem 1rem; border-radius: 10px; color: var(--text-2); font-weight: 700; font-size: 0.9rem; white-space: nowrap; background: none; border: 0; font-family: inherit; cursor: pointer; }
.tabs .active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.2rem; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.list-check li { display: flex; gap: 0.7rem; align-items: flex-start; }
.list-check li::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; margin-top: 0.25rem;
  background: rgba(34, 201, 147, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2322c993' stroke-width='3'%3E%3Cpath d='M2.5 7.5l3 3 6-7'/%3E%3C/svg%3E") center no-repeat;
}
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: 0.85rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 2.05; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 2em; }
.prose img { border-radius: var(--radius); margin: 1.5rem auto; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-right: 4px solid var(--orange); background: rgba(255, 122, 26, 0.06); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.6rem; }
.prose ul, .prose ol { padding-right: 1.4rem; }
.copy-btn { cursor: pointer; }
.copied { color: var(--success) !important; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center;
  background: rgba(6, 9, 20, 0.6); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
[data-theme="light"] .site-header { background: rgba(244, 246, 252, 0.75); }
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(6, 9, 20, 0.85); }
[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, 0.9); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 900; font-size: 1.15rem; }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
img.brand-mark { width: auto; max-width: 140px; height: 46px; object-fit: contain; }
img.brand-mark.bulb-mark { height: 50px; filter: drop-shadow(0 0 10px rgba(255, 196, 72, .35)); transition: filter .3s, transform .3s; }
.brand:hover img.bulb-mark { filter: drop-shadow(0 0 16px rgba(255, 196, 72, .7)) brightness(1.08); transform: translateY(-1px) rotate(-3deg); }
.sidebar img.brand-mark.bulb-mark { height: 44px; }
.hero-core img.brand-mark { height: auto; width: 100%; max-width: none; }
.brand small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; direction: ltr; text-align: right; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: auto; }
.nav a, .nav-link {
  position: relative; color: var(--text-2); font-weight: 650; font-size: .93rem; padding: .5rem .8rem; border-radius: 10px;
  transition: color .25s, background-color .25s;
}
/* خط زیر متحرک از مرکز با گرادیان برند */
.nav a::before, .nav-link::before {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .22rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2) 35%, var(--blue-2)); transform: scaleX(0); transition: transform .45s var(--btn-ease);
}
.nav a:hover, .nav-link:hover { color: var(--text); }
.nav a:hover::before, .nav-link:hover::before { transform: scaleX(1); }
.nav a.active, .nav-link.active { color: var(--text); background: linear-gradient(180deg, rgba(89,184,255,.0), rgba(89,184,255,.1)); }
.nav a.active::before, .nav-link.active::before { transform: scaleX(1); box-shadow: 0 0 10px rgba(255,150,60,.6); }
/* نقطه نورانی بالای لینک فعال */
.nav a.active::after, .nav-link.active::after {
  content: ""; position: absolute; top: .18rem; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--orange-2); box-shadow: 0 0 8px 2px rgba(255,179,77,.75);
}
.nav a:focus-visible, .nav-link:focus-visible { outline: none; box-shadow: var(--ring); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle { display: none; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; background: rgba(3, 5, 12, 0.6); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-nav .sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); background: var(--bg-2); border-left: 1px solid var(--border);
  padding: 1.5rem; transform: translateX(100%); transition: transform 0.45s var(--ease); display: flex; flex-direction: column; gap: 0.35rem; overflow-y: auto;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav.open .sheet { transform: none; }
.mobile-nav a { padding: 0.8rem 1rem; border-radius: 12px; color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 0.7rem; transition: background-color .25s, transform .35s var(--btn-ease), color .2s; }
.mobile-nav a:not(.btn):hover { background: var(--surface-2); transform: translateX(-4px); color: var(--text); }
.mobile-nav a:not(.btn) svg { color: var(--blue-2); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 3rem 0 5rem; overflow: hidden; }
#neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.25; font-weight: 900; margin-bottom: 1.2rem; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 600px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.6rem; margin-top: 2.6rem; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.hero-trust strong { display: block; font-size: 1.5rem; color: var(--text); font-weight: 900; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.hero-visual.orbit-stage { aspect-ratio: auto; max-width: 640px; }
.orb {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(89, 184, 255, 0.55), rgba(61, 123, 255, 0.15) 45%, transparent 70%),
              radial-gradient(circle at 70% 75%, rgba(255, 122, 26, 0.45), transparent 55%);
  filter: blur(4px); animation: pulse 7s ease-in-out infinite;
}
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(148, 170, 255, 0.22); animation: spin 40s linear infinite; }
.orbit.o2 { inset: 14%; animation-duration: 28s; animation-direction: reverse; border-style: solid; border-color: rgba(255, 122, 26, 0.18); }
.orbit .node { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); top: -7px; right: calc(50% - 7px); }
.orbit.o2 .node { background: var(--orange); box-shadow: 0 0 18px var(--orange); top: auto; bottom: -7px; }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1rem; border-radius: 16px; background: rgba(10, 16, 36, 0.75);
  border: 1px solid var(--border-strong); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 700; font-size: 0.88rem; animation: float 6s ease-in-out infinite;
}
[data-theme="light"] .hero-badge { background: rgba(255, 255, 255, 0.85); }
.hero-badge small { display: block; color: var(--muted); font-weight: 500; font-size: 0.75rem; }
.hero-badge.b1 { top: 10%; left: -4%; }
.hero-badge.b2 { bottom: 14%; right: -6%; animation-delay: -3s; }
.hero-core { position: absolute; inset: 32%; display: grid; place-items: center; }

/* ---------- لامپ نورون در قلب صفحه اصلی ---------- */
.bulb-stage { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.bulb { position: relative; height: 72%; aspect-ratio: 1131 / 1722; animation: bulb-float 7s ease-in-out infinite; }
.bulb picture, .bulb img { display: block; }
.bulb-body, .bulb-light { position: absolute; inset: 0; }
.bulb-body img, .bulb-light img { width: 100%; height: 100%; }
.bulb-body img { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)) brightness(.62) saturate(.8); animation: bulb-ignite 2.6s .5s cubic-bezier(.2,.7,.2,1) forwards; }
/* نور داخل شیشه: با ترکیب screen مثل روشن شدن واقعی لامپ */
.bulb-light { mix-blend-mode: screen; opacity: 0; animation: bulb-light-on 2.6s .5s cubic-bezier(.2,.7,.2,1) forwards, bulb-breathe 4.8s 3.2s ease-in-out infinite; }
/* هاله گرم بیرونی */
.bulb-aura { position: absolute; left: -19.45%; top: -12.78%; width: 138.9%; height: 125.56%; opacity: 0; mix-blend-mode: screen; animation: aura-on 2.8s .6s ease-out forwards, aura-breathe 4.8s 3.4s ease-in-out infinite; }
.bulb-aura img { width: 100%; height: 100%; }
/* پرتوهای نور که آرام می چرخند */
.bulb-rays {
  position: absolute; left: 50%; top: 29.9%; width: 245%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, .55) 0deg 2.2deg, transparent 2.2deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 23%, #000 27%, rgba(0,0,0,.55) 40%, transparent 62%);
  mask: radial-gradient(circle, transparent 23%, #000 27%, rgba(0,0,0,.55) 40%, transparent 62%);
  filter: blur(1.2px); animation: rays-on 2s 1.6s ease-out forwards, spin 60s linear infinite;
}
/* درخشش براق که روی شیشه عبور می کند */
.bulb-sheen {
  position: absolute; inset: 0 0 35% 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url("../img/brand/neuron-bulb-light.png") top / 100% 153.85% no-repeat; mask: url("../img/brand/neuron-bulb-light.png") top / 100% 153.85% no-repeat;
}
.bulb-sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 32%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg);
  animation: sheen 7s 3.5s ease-in-out infinite;
}
/* چراغ LED کوچک روی مدار */
.bulb-led { position: absolute; left: 29.2%; top: 53.5%; width: 3.2%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #fff6b0;
  box-shadow: 0 0 6px 2px #ffd34d, 0 0 18px 6px rgba(255, 196, 50, .55); animation: led 2.2s 2.6s ease-in-out infinite; opacity: .3; }
/* ذرات نور */
.bulb-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 10px 3px rgba(255, 200, 80, .8); opacity: 0; }
.bulb-spark.s1 { left: 18%; top: 22%; animation: spark 5s 3s ease-out infinite; }
.bulb-spark.s2 { left: 82%; top: 16%; animation: spark 6s 4.2s ease-out infinite; }
.bulb-spark.s3 { left: 70%; top: 48%; animation: spark 5.5s 5.1s ease-out infinite; }
@keyframes bulb-ignite {
  0% { filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)) brightness(.62) saturate(.8); }
  12% { filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)) brightness(1.08) saturate(1.05); }
  18% { filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)) brightness(.7) saturate(.85); }
  30% { filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)) brightness(1.1) saturate(1.08); }
  36% { filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)) brightness(.82) saturate(.9); }
  100% { filter: drop-shadow(0 18px 28px rgba(0,0,0,.4)) drop-shadow(0 0 22px rgba(255, 196, 72, .45)) brightness(1.06) saturate(1.08); }
}
@keyframes bulb-light-on { 0% { opacity: 0; } 12% { opacity: .85; } 18% { opacity: .1; } 30% { opacity: .9; } 36% { opacity: .3; } 100% { opacity: .5; } }
@keyframes bulb-breathe { 0%, 100% { opacity: .5; } 50% { opacity: .7; } }
@keyframes aura-on { 0% { opacity: 0; transform: scale(.9); } 30% { opacity: .9; } 40% { opacity: .35; } 100% { opacity: .85; transform: scale(1); } }
@keyframes aura-breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes rays-on { to { opacity: .55; } }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes led { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes spark { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(.2); } }
@keyframes bulb-float { 50% { transform: translateY(-8px); } }
[data-theme="light"] .bulb-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 176, 32, .55) 0deg 2.2deg, transparent 2.2deg 15deg); }
[data-theme="light"] .bulb-aura, [data-theme="light"] .bulb-light { mix-blend-mode: normal; }
[data-theme="light"] .bulb-light { animation: bulb-light-on-l 2.6s .5s ease-out forwards; }
@keyframes bulb-light-on-l { to { opacity: .28; } }
@media (prefers-reduced-motion: reduce) {
  .bulb-body img { filter: drop-shadow(0 0 22px rgba(255, 196, 72, .45)) brightness(1.06); }
  .bulb-light { opacity: .5; } .bulb-aura { opacity: .85; } .bulb-rays { opacity: .45; } .bulb-led { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: 0.85; } }
@keyframes float { 50% { transform: translateY(-12px); } }

/* page hero (inner pages) */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; text-align: center; }
.page-hero h1 { margin-bottom: 0.8rem; }
.page-hero p { color: var(--text-2); max-width: 680px; margin: 0 auto; font-size: 1.08rem; }

/* ---------------------------------------------------------------- domain cards */
.course-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; height: 100%; }
.course-card .thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--bg-3); }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.course-card:hover .thumb img { transform: scale(1.06); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(89, 184, 255, 0.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(255, 122, 26, 0.3), transparent 50%), var(--bg-3); color: rgba(255, 255, 255, 0.85); }
.course-card .thumb .badge { position: absolute; top: 0.9rem; right: 0.9rem; backdrop-filter: blur(8px); background: rgba(6, 9, 20, 0.6); }
.course-card .body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.course-card .body h3 { margin: 0; font-size: 1.12rem; }
.course-card .body h3 a { color: var(--text); }
.course-card .meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.course-card .meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.course-card .foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; border-top: 1px solid var(--border); margin-top: auto; }
.price { font-weight: 900; font-size: 1.05rem; }
.price small { font-weight: 500; color: var(--muted); font-size: 0.75rem; }

.domain-card { display: flex; gap: 1rem; align-items: flex-start; }
.domain-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.domain-card p { color: var(--text-2); font-size: 0.9rem; margin: 0; }

.person-card { text-align: center; padding: 2rem 1.5rem; }
.person-card .photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.1rem; object-fit: cover; border: 3px solid transparent; background: var(--grad-mix) border-box; box-shadow: 0 0 0 6px rgba(89, 184, 255, 0.08); }
.person-card .photo.avatar { font-size: 2.2rem; }
.person-card h3 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.person-card .role { color: var(--orange-2); font-size: 0.86rem; font-weight: 700; }

.video-card { padding: 0; overflow: hidden; }
.video-card .thumb { aspect-ratio: 16 / 9; position: relative; background: var(--bg-3); overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.video-card:hover .thumb img { transform: scale(1.05); }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 122, 26, 0.9); box-shadow: 0 0 0 10px rgba(255, 122, 26, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.4s var(--ease);
}
.video-card:hover .play-btn { transform: scale(1.12); }
.video-card .duration { position: absolute; bottom: 0.7rem; left: 0.7rem; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 0.1rem 0.55rem; border-radius: 6px; font-size: 0.78rem; direction: ltr; }
.video-card .body { padding: 1.1rem 1.25rem; }
.video-card h3 { font-size: 1rem; margin: 0 0 0.3rem; }
.video-card h3 a { color: var(--text); }
.player { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--border); box-shadow: var(--shadow); }
.player iframe, .player video { width: 100%; height: 100%; border: 0; }

.article-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.article-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); position: relative; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.article-card:hover .thumb img { transform: scale(1.05); }
.article-card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.article-card h3 { font-size: 1.08rem; margin: 0; }
.article-card h3 a { color: var(--text); }
.article-card p { color: var(--text-2); font-size: 0.9rem; margin: 0; }
.article-card .meta { color: var(--muted); font-size: 0.8rem; display: flex; gap: 0.8rem; margin-top: auto; padding-top: 0.6rem; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.8rem 1rem; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; }
.stat span { color: var(--text-2); font-size: 0.92rem; }

.founder-band { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; }
.founder-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-3); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 9, 20, 0.7), transparent 50%); }
.founder-photo .caption { position: absolute; bottom: 1.2rem; right: 1.2rem; left: 1.2rem; z-index: 1; color: #fff; }
.quote-mark { color: var(--orange); opacity: 0.6; }
blockquote.big { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 2; margin: 0 0 1.5rem; font-weight: 600; color: var(--text); }

.cta-band {
  border-radius: var(--radius-xl); padding: clamp(2rem, 6vw, 4rem); position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(circle at 15% 20%, rgba(255, 122, 26, 0.35), transparent 45%), radial-gradient(circle at 85% 80%, rgba(56, 225, 255, 0.3), transparent 50%), linear-gradient(135deg, #1a2a6c, #0d1640);
  border: 1px solid var(--border-strong);
}
.cta-band h2 { color: #fff; }
.cta-band .btn-outline.on-dark { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-band .btn-outline.on-dark:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.cta-band p { color: #c8d4ff; max-width: 600px; margin: 0 auto 1.8rem; }

.timeline { position: relative; padding-right: 1.6rem; }
.timeline::before { content: ""; position: absolute; right: 6px; top: 0.5rem; bottom: 0.5rem; width: 2px; background: linear-gradient(var(--blue-2), var(--orange)); opacity: 0.5; border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 1.2rem; }
.timeline-item::before { content: ""; position: absolute; right: -1.6rem; top: 0.55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue-2); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 0.7rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; font-size: 0.85rem; }

.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.search-bar { display: flex; gap: 0.6rem; max-width: 560px; margin: 0 auto 1.5rem; }
.search-bar .nr-input { flex: 1; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(61, 123, 255, 0.05)); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--text-2); font-size: 0.92rem; transition: color .25s; }
.site-footer a:hover { color: var(--text); }
.site-footer ul a { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding-block: .1rem; }
.site-footer ul a::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-2), var(--orange-2)); transition: width .4s var(--btn-ease); }
.site-footer ul a:hover::before { width: 14px; }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all 0.3s var(--ease); }
.socials a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.84rem; }
.contact-line { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; }
.contact-line .nr-icon { color: var(--blue-2); margin-top: 0.3rem; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding: 3rem 1rem; }
.auth-card { width: min(100%, 480px); padding: clamp(1.6rem, 5vw, 2.6rem); }
.auth-card.wide { width: min(100%, 720px); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.3rem; }

/* ---------------------------------------------------------------- panel */
.panel-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.4rem 1rem; border-left: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 16, 36, 0.95), rgba(6, 9, 20, 0.95)); display: flex; flex-direction: column; gap: 1.2rem; z-index: 120;
  scrollbar-width: thin;
}
[data-theme="light"] .sidebar { background: #fff; }
.sidebar .brand { padding: 0 0.5rem; }
.side-group h6 { font-size: 0.72rem; color: var(--muted); font-weight: 700; margin: 0 0.75rem 0.4rem; letter-spacing: 0.04em; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.62rem 0.85rem; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: 0.92rem;
  transition: background-color .25s, color .2s, padding .35s var(--btn-ease);
}
.side-link svg { color: var(--muted); transition: color .25s, transform .35s var(--btn-ease); }
.side-link:hover { background: var(--surface); color: var(--text); padding-inline-start: 1.05rem; }
.side-link:hover svg { color: var(--blue-2); transform: scale(1.08); }
.side-link.active { background: linear-gradient(270deg, rgba(61, 123, 255, 0.2), rgba(61, 123, 255, 0.03)); color: var(--text); }
.side-link.active svg { color: var(--blue-2); }
.side-link.active::before { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 10px rgba(56,225,255,.7); }
.side-link:focus-visible { outline: none; box-shadow: var(--ring); }
.side-link .count { margin-right: auto; background: var(--orange); color: #1a0d00; font-size: 0.72rem; font-weight: 800; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; }
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 90; height: 68px; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(6, 9, 20, 0.7); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
[data-theme="light"] .topbar { background: rgba(244, 246, 252, 0.85); }
.topbar .spacer { flex: 1; }
.topbar .user-chip { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.9rem; color: var(--text); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--orange); color: #1a0d00; font-size: 0.68rem; font-weight: 800; display: grid; place-items: center; }
.panel-content { padding: clamp(1.2rem, 3vw, 2.2rem); flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.page-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.page-head p { margin: 0.3rem 0 0; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.kpi { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; }
.kpi .value { font-size: 1.55rem; font-weight: 900; line-height: 1.3; display: block; }
.kpi .label { color: var(--muted); font-size: 0.84rem; }
a.kpi { color: inherit; }
.section-title { font-size: 1.15rem; margin: 2.2rem 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.panel-overlay { display: none; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px dashed var(--border); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .grow { flex: 1; min-width: 0; }
.mini-list .title { font-weight: 700; font-size: 0.92rem; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-box { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; text-align: center; line-height: 1.15; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; }
.date-box small { display: block; font-size: 0.66rem; color: var(--muted); font-weight: 600; }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: clamp(0.4rem, 2vw, 1.2rem); height: 220px; padding-top: 1rem; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .pair { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .bar { width: min(26px, 40%); border-radius: 8px 8px 3px 3px; background: var(--grad-brand); min-height: 3px; transition: height 1s var(--ease); position: relative; }
.bars .bar.alt { background: var(--grad-fire); opacity: 0.85; }
.bars .bar.single { width: min(42px, 70%); }
.bars .lbl { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bars .val { font-size: 0.72rem; font-weight: 800; color: var(--text-2); }
.legend { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 0.35rem; background: var(--grad-brand); }
.legend i.alt { background: var(--grad-fire); }

/* ring */
.ring { --p: 0; --size: 120px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue-2) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; flex-shrink: 0; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface-solid); }
.ring span { position: relative; font-weight: 900; font-size: 1.4rem; }
.ring.fire { background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--surface-2) 0); }

/* week schedule */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.7rem; }
.day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem; min-height: 180px; }
.day.today { border-color: var(--blue-2); box-shadow: var(--shadow-glow); }
.day h4 { font-size: 0.88rem; margin: 0; }
.day .dlabel { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.6rem; display: block; }
.slot { border-radius: 10px; padding: 0.55rem 0.65rem; margin-bottom: 0.5rem; font-size: 0.8rem; background: rgba(61, 123, 255, 0.12); border-right: 3px solid var(--blue-2); }
.slot.cancelled { background: rgba(255, 84, 112, 0.1); border-color: var(--danger); text-decoration: line-through; opacity: 0.75; }
.slot.rescheduled { background: rgba(255, 176, 32, 0.1); border-color: var(--warning); }
.slot strong { display: block; font-size: 0.82rem; }

/* attendance matrix */
.matrix td.cell { text-align: center; padding: 0.35rem; }
.cell-dot { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.c-present { background: rgba(34, 201, 147, 0.2); color: #3ee0ad; }
.c-absent, .c-rejected { background: rgba(255, 84, 112, 0.18); color: #ff7d93; }
.c-pending { background: rgba(255, 176, 32, 0.2); color: #ffc35c; }
.c-excused { background: rgba(89, 184, 255, 0.18); color: #7cc8ff; }
.c-cancelled { background: var(--surface-2); color: var(--muted); }

/* exam */
.exam-wrap { max-width: 820px; margin: 0 auto; }
.question-text { font-size: 1.15rem; font-weight: 700; line-height: 2; white-space: pre-line; }
.options { display: grid; gap: 0.75rem; margin-top: 1.4rem; }
.option {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface);
  cursor: pointer; transition: all 0.25s var(--ease); font-weight: 600;
}
.option:hover { border-color: var(--blue-2); transform: translateX(-4px); }
.option input { accent-color: var(--blue); width: 1.15rem; height: 1.15rem; }
.option .key { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; flex-shrink: 0; }
.option.correct { border-color: var(--success); background: rgba(34, 201, 147, 0.1); }
.option.correct .key { background: var(--success); color: #002a1c; }
.option.wrong { border-color: var(--danger); background: rgba(255, 84, 112, 0.1); }
.option.wrong .key { background: var(--danger); color: #fff; }
.option.locked { cursor: default; transform: none !important; }
.feedback { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 16px; }
.feedback.ok { background: rgba(34, 201, 147, 0.1); border: 1px solid rgba(34, 201, 147, 0.35); }
.feedback.no { background: rgba(255, 84, 112, 0.08); border: 1px solid rgba(255, 84, 112, 0.35); }

/* payment */
.charge-option { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; transition: all 0.2s; }
.charge-option:hover { border-color: var(--border-strong); }
.charge-option:has(input:checked) { border-color: var(--blue-2); background: rgba(61, 123, 255, 0.08); }
.charge-option input { accent-color: var(--blue); width: 1.15rem; height: 1.15rem; }
.charge-option .grow { flex: 1; }
.bank-card {
  position: relative; border-radius: 20px; padding: 1.3rem 1.4rem; color: #fff; overflow: hidden; cursor: pointer; display: block;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 40%), linear-gradient(135deg, #2346b8, #0f1f5c 60%, #0a1240);
  border: 2px solid transparent; transition: all 0.3s var(--ease); min-height: 170px;
}
.bank-card:nth-child(2n) { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.2), transparent 40%), linear-gradient(135deg, #c2520a, #7a2d00 60%, #3d1600); }
.bank-card:has(input:checked) { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 225, 255, 0.2); transform: translateY(-3px); }
.bank-card input { position: absolute; opacity: 0; }
.bank-card .num { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.12em; direction: ltr; text-align: center; margin: 1.6rem 0 1rem; font-family: var(--mono); }
.bank-card .chip-ic { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f5d27a, #b8892c); }
.total-box { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-radius: 16px; background: rgba(61, 123, 255, 0.08); border: 1px solid rgba(61, 123, 255, 0.3); }
.total-box strong { font-size: 1.35rem; }

/* jalali datepicker */
.jdp { position: absolute; z-index: 300; width: 290px; padding: 0.9rem; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); user-select: none; }
.jdp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; font-weight: 800; }
.jdp-head button { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font: inherit; }
.jdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 0.85rem; }
.jdp-grid .wd { color: var(--muted); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0; }
.jdp-grid button { background: none; border: 0; color: var(--text); padding: 0.4rem 0; border-radius: 8px; cursor: pointer; font: inherit; }
.jdp-grid button:hover { background: var(--surface-2); }
.jdp-grid button.today { box-shadow: inset 0 0 0 1px var(--blue-2); }
.jdp-grid button.sel { background: var(--grad-brand); color: #fff; }
.jdp-foot { display: flex; justify-content: space-between; margin-top: 0.6rem; }
.jdp-foot button { background: none; border: 0; color: var(--blue-2); font: inherit; font-size: 0.82rem; cursor: pointer; }
.jdp-head .jdp-title { width: auto; padding: 0 0.7rem; font-weight: 800; }
.jdp-year input { width: 90px; text-align: center; padding: 0.35rem; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 800; }
.jdp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.jdp-months button { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 0.55rem 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: 0.85rem; }
.jdp-months button:hover { border-color: var(--blue-2); }
.jdp-months button.sel { background: var(--grad-brand); color: #fff; border-color: transparent; }
input[data-jalali] { cursor: pointer; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }

/* error page */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.error-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 1; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .nav, .header-actions .hide-md { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .hero-inner, .split, .founder-band, .layout-side { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 2.5rem; }
  .hero-visual { max-width: 340px; order: -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .founder-band .founder-photo { max-width: 360px; }
  .sticky { position: static; }
  .panel-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; right: 0; top: 0; bottom: 0; width: 290px; transform: translateX(100%); transition: transform 0.4s var(--ease); }
  .panel-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .panel-open .panel-overlay { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.5); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .day { min-height: auto; }
  .hero-badge { display: none; }
  .hero-trust { gap: 1.1rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .card { padding: 1.15rem; border-radius: var(--radius); }
  .page-head { align-items: flex-start; }
  .topbar .user-chip span { display: none; }
  .messages { left: 0.75rem; right: 0.75rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .sidebar, .topbar, .btn, .messages, .bg-aurora, .bg-grid { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; backdrop-filter: none; }
}

/* ---------------------------------------------------------------- blog reactions & comments */
.reactions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.reactions form { margin: 0; }
.reaction {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; font-size: 0.88rem;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.reaction:hover { transform: translateY(-2px); border-color: var(--blue-2); color: var(--text); }
.reaction .emoji { font-size: 1.15rem; line-height: 1; }
.reaction .rcount { min-width: 1.2rem; text-align: center; color: var(--text); }
.reaction.active { background: rgba(61, 123, 255, 0.16); border-color: var(--blue-2); color: var(--text); }
.reaction.bump .emoji { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45) rotate(-8deg); } }
.comment.reply { margin-top: 0.9rem; margin-right: 2.6rem; padding-right: 1rem; border-right: 2px solid var(--border-strong); }
@media (max-width: 640px) { .reaction .rlabel { display: none; } .comment.reply { margin-right: 1rem; } }

/* ---------- پذیرش، تقویم، ارزیابی ---------- */
.steps-list { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .45rem; color: var(--text-2); }
.record-tabs { position: sticky; top: .5rem; z-index: 5; backdrop-filter: blur(10px); }
.kv-2 { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: .5rem 1rem; }
@media (max-width: 760px) { .kv-2 { grid-template-columns: max-content 1fr; } }
.slot.holiday { border-color: rgba(255, 92, 122, .45); background: rgba(255, 92, 122, .08); }
.slot.event { border-color: rgba(89, 184, 255, .45); background: rgba(89, 184, 255, .08); }
.month-cal { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.mc-head, .mc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mc-head span { padding: .6rem; text-align: center; font-weight: 800; font-size: .85rem; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mc-day { min-height: 108px; padding: .45rem; border-inline-start: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.mc-day.empty { background: rgba(0, 0, 0, .12); }
.mc-day.off { background: rgba(255, 92, 122, .06); }
.mc-day.today { box-shadow: inset 0 0 0 2px var(--primary, #3b82f6); }
.mc-num { font-weight: 900; font-size: .95rem; }
.mc-day.off .mc-num { color: #ff8fa3; }
.mc-tag { font-size: .7rem; padding: .12rem .35rem; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--surface-2); }
.mc-tag.holiday { background: rgba(255, 92, 122, .18); color: #ff8fa3; }
.mc-tag.event { background: rgba(89, 184, 255, .16); color: #7cc8ff; }
.mc-tag.cancelled { text-decoration: line-through; opacity: .6; }
.mc-more { font-size: .68rem; color: var(--muted); }
@media (max-width: 760px) { .mc-day { min-height: 64px; padding: .25rem; } .mc-tag { font-size: .6rem; } .mc-head span { font-size: .7rem; padding: .4rem .1rem; } }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.rating-row.has-error .rating-label { color: #ff8fa3; }
.rating-label { font-weight: 700; }
.rating-scale { display: flex; gap: .35rem; }
.rating-option { position: relative; cursor: pointer; }
.rating-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rating-option span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-strong); font-weight: 800; transition: .15s; }
.rating-option input:checked + span { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; border-color: transparent; }
.rating-option input:focus-visible + span { outline: 2px solid #7cc8ff; outline-offset: 2px; }
.score-bar { flex: 0 0 90px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-inline: .5rem; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }


/* ================================================================
   صحنه مداری لامپ نورون: لامپ ثابت در مرکز، ویژگی ها مانند ماهواره در مدار
   موقعیت ماهواره ها با JavaScript محاسبه می شود تا هیچ گاه روی لامپ نیفتند.
   ================================================================ */
.orbit-stage { --mx: 0; --my: 0; }
.orbit-square { position: relative; aspect-ratio: 1; width: 100%; }
.orbit-square .orb { inset: 14%; opacity: .75; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1;
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -6px), 0); transition: transform .6s var(--btn-ease); }
.orbit-svg .o-path { fill: none; stroke-linecap: round; }
.orbit-svg .o-main { stroke: url(#o-grad-main); stroke-width: 1.2; opacity: .55; }
.orbit-svg .o-main-glow { stroke: url(#o-grad-main); stroke-width: 5; opacity: .08; filter: blur(3px); }
.orbit-svg .o-inner { stroke: rgba(89, 184, 255, .22); stroke-width: 1; stroke-dasharray: 2 7; }
.orbit-svg .o-outer { stroke: rgba(255, 150, 60, .18); stroke-width: 1; stroke-dasharray: 1 10; }
.orbit-svg .o-flow { stroke: url(#o-grad-flow); stroke-width: 1.6; stroke-dasharray: 60 900; animation: o-flow 9s linear infinite; opacity: .8; }
.orbit-svg .o-gate { fill: #0b1430; stroke: rgba(120, 200, 255, .55); stroke-width: 1; transition: fill .4s, stroke .4s; }
.orbit-svg .o-gate.hit { fill: #38e1ff; stroke: #bff4ff; }
.orbit-svg .o-gate-ring { fill: none; stroke: #38e1ff; stroke-width: 1.2; opacity: 0; }
.orbit-svg .o-gate-ring.hit { animation: gate-ring .9s ease-out; }
.orbit-svg .o-dot { filter: drop-shadow(0 0 4px currentColor); }
.orbit-svg .o-tether { stroke: url(#o-grad-tether); stroke-width: 1; opacity: 0; transition: opacity .4s; }
@keyframes o-flow { to { stroke-dashoffset: -960; } }
@keyframes gate-ring { 0% { opacity: .9; r: 4; } 100% { opacity: 0; r: 18; } }

.orbit-square .bulb-stage { z-index: 2; transform: translate3d(calc(var(--mx) * 4px), calc(var(--my) * 4px), 0); transition: transform .8s var(--btn-ease); }
.orbit-square .bulb { height: 54%; }
.bulb.boost .bulb-aura img { filter: brightness(1.25); }
.bulb .bulb-aura img { transition: filter .8s ease; }

.sat-layer { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sat {
  --glow: 89, 184, 255;
  position: absolute; left: 0; top: 0; width: 176px; display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem .55rem .6rem;
  border-radius: 16px 16px 6px 16px; pointer-events: auto; cursor: default; will-change: transform, opacity; opacity: 0;
  background: linear-gradient(150deg, rgba(22, 34, 72, .72), rgba(8, 13, 32, .62)) padding-box,
              linear-gradient(140deg, rgba(var(--glow), .55), rgba(var(--glow), .06) 45%, rgba(255, 255, 255, .14)) border-box;
  border: 1px solid transparent; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 18px 36px -18px rgba(0, 0, 0, .8), 0 0 0 0 rgba(var(--glow), 0);
  transition: box-shadow .45s var(--btn-ease), background .45s;
}
.sat.fire { --glow: 255, 150, 60; }
.sat::before { /* نقطه اتصال به مدار */
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; left: var(--ax, 50%); top: var(--ay, 50%); margin: -3.5px 0 0 -3.5px;
  background: rgb(var(--glow)); box-shadow: 0 0 10px 2px rgba(var(--glow), .8); opacity: .9;
}
.sat::after { /* نور لبه که هنگام Hover پررنگ می شود */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(120% 80% at var(--px, 50%) var(--py, 0%), rgba(var(--glow), .22), transparent 60%);
}
.sat:hover, .sat.is-active { box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 22px 44px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(var(--glow), .45), 0 0 28px -4px rgba(var(--glow), .55); }
.sat:hover::after, .sat.is-active::after { opacity: 1; }
.sat-ic {
  flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px 12px 4px 12px; color: #fff;
  background: linear-gradient(135deg, rgba(var(--glow), .95), rgba(var(--glow), .45)); box-shadow: 0 8px 18px -8px rgba(var(--glow), .9), 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.sat.fire .sat-ic { color: #2a1100; }
.sat-tx { display: grid; gap: .05rem; min-width: 0; }
.sat-tx strong { font-size: .82rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.sat-tx small { font-size: .69rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="light"] .sat { background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(240, 245, 255, .7)) padding-box, linear-gradient(140deg, rgba(var(--glow), .6), rgba(var(--glow), .08) 45%, rgba(30, 50, 120, .12)) border-box; box-shadow: 0 16px 32px -18px rgba(20, 40, 110, .45); }

/* حالت ساده: موبایل، حرکت کاهش یافته یا قبل از اجرای JS */
.orbit-stage.is-static .sat-layer { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: -.5rem; }
.orbit-stage.is-static .sat { position: relative; width: auto; opacity: 1; transform: none !important; animation: sat-in .7s var(--btn-ease) both, sat-bob 6s ease-in-out infinite; }
.orbit-stage.is-static .sat::before { display: none; }
.orbit-stage.is-static .sat:nth-child(2) { animation-delay: .08s, -1.2s; } .orbit-stage.is-static .sat:nth-child(3) { animation-delay: .16s, -2.4s; }
.orbit-stage.is-static .sat:nth-child(4) { animation-delay: .24s, -3.6s; } .orbit-stage.is-static .sat:nth-child(5) { animation-delay: .32s, -4.8s; grid-column: 1 / -1; justify-self: center; }
.orbit-stage.is-static .orbit-square .bulb { height: 72%; }
@keyframes sat-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes sat-bob { 50% { translate: 0 -4px; } }
@media (max-width: 1100px) { .hero-visual.orbit-stage { max-width: 560px; } }
@media (max-width: 760px) { .hero-visual.orbit-stage { max-width: 420px; } }
@media (prefers-reduced-motion: reduce) { .orbit-svg .o-flow { display: none; } .orbit-stage.is-static .sat { animation: none; } }


/* ================================================================ صفحه مقاله */
.article-page { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.article-head { max-width: 1100px; margin-bottom: 2rem; }
.article-head .eyebrow { margin: .6rem 0 .4rem; }
.article-head h1 { font-size: clamp(1.75rem, 3.3vw, 2.9rem); line-height: 1.45; font-weight: 900; margin: .2rem 0 .9rem; }
.article-lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-2); line-height: 2; max-width: 900px; margin: 0 0 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; color: var(--muted); font-size: .88rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.article-meta strong { color: var(--text); font-weight: 700; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.article-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2rem; box-shadow: var(--shadow); }
.article-body { font-size: 1.07rem; line-height: 2.15; }
.article-body > p, .article-body > ul, .article-body > ol { margin-bottom: 1.15em; }
.article-body h2 { font-size: 1.55rem; scroll-margin-top: calc(var(--header-h) + 1rem); padding-top: .4rem; }
.article-body h3 { font-size: 1.22rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.article-body h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: .6rem; vertical-align: middle; background: var(--grad-fire); box-shadow: 0 0 10px rgba(255, 150, 60, .6); }
.article-aside { align-self: stretch; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.toc-title { font-size: .95rem; display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; max-height: 52vh; overflow-y: auto; }
.toc a { display: block; padding: .38rem .7rem; border-radius: 8px; color: var(--text-2); font-size: .86rem; line-height: 1.7; border-right: 2px solid transparent; transition: background-color .25s, color .25s, border-color .25s; }
.toc a.sub { padding-right: 1.5rem; font-size: .8rem; }
.toc a:hover { background: var(--surface); color: var(--text); }
.toc a.active { color: var(--text); background: rgba(89, 184, 255, .08); border-right-color: var(--blue-2); }
.share-row { display: flex; gap: .45rem; }
.share-row .grow { flex: 1; }
.read-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 300; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, var(--orange), var(--orange-2), var(--blue-2)); box-shadow: 0 0 10px rgba(255, 150, 60, .6); }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .toc { order: -1; }
}

/* ================================================================
   Hero نسخه ۲: سربرگ وسط، لامپ چپ، مهارت ها راست، دکمه ها، دو نوار متحرک
   ================================================================ */
:root { --motion-fast: .25s; --motion: .5s; --motion-slow: .9s; --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
.hero.hero-v2 { display: block; min-height: auto; padding: clamp(1.6rem, 3.5vw, 2.8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-v2::after { height: 260px; }

/* ---------- سربرگ ---------- */
.hero-head { text-align: center; margin: 0 auto clamp(1.2rem, 3vw, 2.2rem); }
.hero-v2 .hero-title {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: nowrap; gap: 0 .32em; white-space: nowrap;
  font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.4; font-weight: 900; letter-spacing: -.01em; margin: 0 0 .5rem;
}
.hero-title .w { display: inline-block; overflow: hidden; padding: .06em .02em .14em; }
.hero-title .w > span { display: inline-block; transform: translateY(108%); opacity: 0; animation: word-up var(--motion-slow) var(--ease-out) calc(.25s + var(--i) * .13s) forwards; }
.hero-title .hl > span {
  background: linear-gradient(100deg, #59b8ff 0%, #38e1ff 30%, #c9f6ff 45%, #38e1ff 60%, #3d7bff 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(56, 225, 255, .28));
  animation: word-up var(--motion-slow) var(--ease-out) calc(.25s + var(--i) * .13s) forwards, shimmer-text 7s 1.6s ease-in-out infinite;
}
.hero-title .hl-2 > span { background-image: linear-gradient(100deg, #ff8a24 0%, #ffb347 30%, #ffe1b0 45%, #ffb347 60%, #59b8ff 100%); filter: drop-shadow(0 0 18px rgba(255, 160, 60, .22)); }
.hero-title .sep > span { color: rgba(148, 170, 255, .35); font-weight: 300; }
.hero-sub {
  display: inline-flex; align-items: center; gap: .8rem; margin: 0; white-space: nowrap;
  font-size: clamp(1rem, 1.7vw, 1.32rem); font-weight: 600; color: var(--text-2);
  opacity: 0; animation: fade-up .9s var(--ease-out) .85s forwards;
}
.sub-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.sub-dot:last-child { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
@keyframes word-up { to { transform: none; opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer-text { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ---------- دو ستون: لامپ چپ، مهارت ها راست ---------- */
.hero-main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(max-content, .88fr); direction: ltr; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
.hero-main > * { direction: rtl; }
.hero-main .hero-visual.orbit-stage { max-width: min(600px, 66vh); min-width: min(100%, 420px); width: 100%; margin-inline: auto; }
.hero-skills { justify-self: center; }

.skills { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(.4rem, 1.4vh, .9rem); }
/* ستون مداری که آیکن ها را به هم وصل می کند */
.skills::before {
  content: ""; position: absolute; right: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(56, 225, 255, .55), rgba(139, 107, 255, .35), rgba(255, 122, 26, .55));
  transform-origin: top; transform: scaleY(0); animation: spine-in 1.2s var(--ease-out) .9s forwards;
}
.skills::after {
  content: ""; position: absolute; right: 24px; top: 28px; width: 8px; height: 8px; border-radius: 50%; background: #e9fbff;
  box-shadow: 0 0 10px 3px rgba(56, 225, 255, .9); opacity: 0; animation: spine-pulse 4.5s 2.2s ease-in-out infinite;
}
@keyframes spine-in { to { transform: scaleY(1); } }
@keyframes spine-pulse { 0% { top: 28px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 36px); opacity: 0; } }
.skill {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: .35rem .35rem .35rem 1.2rem; border-radius: 16px;
  opacity: 0; transform: translateX(28px); animation: skill-in .8s var(--ease-out) calc(.95s + var(--i) * .12s) forwards;
  transition: background-color var(--motion), box-shadow var(--motion);
}
@keyframes skill-in { to { opacity: 1; transform: none; } }
.skill::after { /* نور عبوری هنگام Hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(270deg, rgba(89, 184, 255, .14), rgba(89, 184, 255, 0) 70%); transition: opacity var(--motion);
}
.skill:hover::after { opacity: 1; }
.sk-ic {
  position: relative; z-index: 1; flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center; color: #dff6ff;
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(150deg, rgba(30, 50, 110, .95), rgba(10, 18, 44, .95)) padding-box,
              linear-gradient(140deg, rgba(56, 225, 255, .7), rgba(139, 107, 255, .25), rgba(255, 122, 26, .5)) border-box;
  border: 1px solid transparent; box-shadow: 0 10px 24px -12px rgba(56, 225, 255, .55), 0 1px 0 rgba(255, 255, 255, .12) inset;
  transition: transform var(--motion) var(--ease-spring), box-shadow var(--motion), color var(--motion);
}
.skill:nth-child(even) .sk-ic { color: #ffe3c2; box-shadow: 0 10px 24px -12px rgba(255, 140, 50, .6), 0 1px 0 rgba(255, 255, 255, .12) inset; }
.sk-t {
  position: relative; z-index: 1; white-space: nowrap; font-size: clamp(1.4rem, 2.25vw, 2.05rem); font-weight: 850; line-height: 1.5; color: var(--text);
  background: linear-gradient(90deg, var(--text), var(--text)); -webkit-background-clip: text; background-clip: text;
  transition: color var(--motion), transform var(--motion) var(--ease-out);
}
.skill:hover .sk-ic { transform: rotate(-8deg) scale(1.08); box-shadow: 0 14px 30px -12px rgba(56, 225, 255, .85), 0 0 0 4px rgba(56, 225, 255, .08); }
.skill:hover .sk-t { color: transparent; background-image: linear-gradient(90deg, #ffb347, #38e1ff 60%, #59b8ff); transform: translateX(-6px); }
[data-theme="light"] .sk-ic { background: linear-gradient(150deg, #ffffff, #eef3ff) padding-box, linear-gradient(140deg, rgba(47, 107, 255, .7), rgba(139, 107, 255, .3), rgba(255, 122, 26, .55)) border-box; color: #2257d6; }
[data-theme="light"] .skill:nth-child(even) .sk-ic { color: #d45a00; }

.hero-v2 .hero-cta { display: flex; flex-wrap: nowrap; gap: .8rem; margin-top: clamp(1.4rem, 2.6vw, 2.1rem); opacity: 0; animation: fade-up .8s var(--ease-out) 1.65s forwards; }
.hero-v2 .hero-cta .btn { white-space: nowrap; }

/* ---------- نوارهای متحرک ---------- */
.hero-marquees { display: grid; gap: .9rem; margin-top: clamp(2rem, 4vw, 3rem); position: relative; z-index: 3; }
.marquee {
  --mq-a: 56, 225, 255; --mq-b: 61, 123, 255;
  position: relative; display: flex; align-items: center; gap: .3rem; padding: .45rem .5rem .45rem 0; min-height: 62px;
  border-radius: 20px 20px 7px 20px; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, rgba(14, 24, 58, .78), rgba(8, 14, 36, .62)) padding-box,
              linear-gradient(110deg, rgba(var(--mq-a), .55), rgba(var(--mq-b), .18) 40%, rgba(var(--mq-a), .1) 60%, rgba(var(--mq-a), .5)) border-box;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -24px rgba(var(--mq-a), .55);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.marquee::before { /* نور متحرک روی حاشیه */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px 60px at var(--gx, 20%) 0%, rgba(var(--mq-a), .18), transparent 70%); animation: mq-glow 9s ease-in-out infinite;
}
@keyframes mq-glow { 0%, 100% { --gx: 15%; } 50% { --gx: 85%; } }
.marquee-perks { --mq-a: 255, 150, 60; --mq-b: 139, 107, 255; min-height: 54px;
  background: linear-gradient(120deg, rgba(36, 20, 40, .7), rgba(10, 14, 36, .66)) padding-box,
              linear-gradient(110deg, rgba(255, 150, 60, .6), rgba(139, 107, 255, .2) 45%, rgba(56, 225, 255, .45)) border-box; }
.marquee:hover { transform: scale(1.012); box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 0 0 1px rgba(var(--mq-a), .45), 0 22px 50px -20px rgba(var(--mq-a), .8), 0 0 34px -8px rgba(var(--mq-a), .5); }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-badge {
  position: relative; z-index: 2; flex-shrink: 0; width: 44px; height: 44px; margin-inline: .5rem .2rem; display: grid; place-items: center; color: #fff;
  border-radius: 13px 13px 5px 13px; background: linear-gradient(135deg, #2f6bff, #38d7ff); box-shadow: 0 8px 20px -8px rgba(56, 215, 255, .9);
}
.mq-badge.fire { background: linear-gradient(135deg, #ff6a10, #ffb347); color: #2a1100; box-shadow: 0 8px 20px -8px rgba(255, 140, 40, .9); }
.mq-viewport { flex: 1; min-width: 0; overflow: hidden; direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq-scroll var(--dur, 60s) linear infinite; will-change: transform; }
.mq-group { direction: rtl; flex-shrink: 0; margin: 0; padding: 0 1.25rem; white-space: nowrap; font-size: clamp(.95rem, 1.15vw, 1.06rem); line-height: 2.1; color: var(--text); font-weight: 500; }
ul.mq-group { list-style: none; display: flex; align-items: center; gap: 1.1rem; }
ul.mq-group li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); }
ul.mq-group li svg { color: var(--orange-2); }
.mq-sep { width: 7px; height: 7px; transform: rotate(45deg); border-radius: 2px; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 0 10px rgba(56, 225, 255, .8); }
.mq-star { display: inline-block; margin-inline: 1.4rem .2rem; color: var(--orange-2); text-shadow: 0 0 10px rgba(255, 179, 71, .8); }
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[data-theme="light"] .marquee { background: linear-gradient(120deg, rgba(255, 255, 255, .9), rgba(240, 245, 255, .8)) padding-box, linear-gradient(110deg, rgba(47, 107, 255, .55), rgba(139, 107, 255, .2) 45%, rgba(56, 180, 255, .5)) border-box; }
[data-theme="light"] .marquee-perks { background: linear-gradient(120deg, rgba(255, 250, 244, .95), rgba(244, 246, 255, .85)) padding-box, linear-gradient(110deg, rgba(255, 122, 26, .6), rgba(139, 107, 255, .2) 45%, rgba(47, 107, 255, .45)) border-box; }
[data-theme="light"] ul.mq-group li svg { color: #d45a00; }
@property --gx { syntax: "<percentage>"; inherits: false; initial-value: 20%; }

/* ---------- تبلت و موبایل ---------- */
@media (max-width: 1100px) {
  .hero-main { gap: 1.5rem; }
  .sk-t { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
  .sk-ic { width: 48px; height: 48px; }
  .skills::before { right: 23px; } .skills::after { right: 20px; }
}
@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; direction: rtl; }
  .hero-skills { display: grid; justify-items: center; }
  .skills { grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; column-gap: 1.2rem; }
  .skills::before, .skills::after { display: none; }
  .skill:last-child { grid-column: 1 / -1; justify-self: center; }
  .hero-v2 .hero-cta { justify-content: center; }
}
@media (max-width: 760px) {
  .hero-v2 .hero-title { flex-wrap: wrap; white-space: normal; row-gap: 0; font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .hero-title .sep { display: none; }
  .hero-title .hl-2 { flex-basis: 100%; }
  .hero-sub { white-space: normal; font-size: 1rem; }
  .skills { grid-template-columns: 1fr; justify-content: stretch; width: 100%; max-width: 360px; }
  .skill:last-child { grid-column: auto; justify-self: stretch; }
  .sk-t { font-size: 1.28rem; }
  .sk-ic { width: 44px; height: 44px; }
  .hero-v2 .hero-cta { flex-wrap: wrap; width: 100%; }
  .hero-v2 .hero-cta .btn { flex: 1 1 220px; }
  .marquee { min-height: 54px; border-radius: 16px 16px 6px 16px; }
  .mq-badge { width: 36px; height: 36px; }
  .mq-group { font-size: .92rem; }
  .marquee::before { animation: none; }
  .marquee, .mq-viewport { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .w > span, .hero-sub, .skill, .hero-v2 .hero-cta { animation: none !important; opacity: 1 !important; transform: none !important; }
  .skills::before { transform: none; animation: none; } .skills::after { display: none; }
  .mq-track { animation: none !important; width: auto; }
  .mq-group[aria-hidden="true"] { display: none; }
  .marquee-story .mq-group { white-space: normal; padding-block: .4rem; line-height: 2; }
  ul.mq-group { flex-wrap: wrap; white-space: normal; }
  .mq-viewport { -webkit-mask: none; mask: none; }
}
/* در حالت ساده، مسیر اصلی (که کارت ها روی آن نیستند) پنهان می شود */
.orbit-stage.is-static .o-main, .orbit-stage.is-static .o-main-glow, .orbit-stage.is-static .o-flow,
.orbit-stage.is-static .o-gate, .orbit-stage.is-static .o-gate-ring, .orbit-stage.is-static .o-tether { display: none; }
/* موبایل: کارت های مدار حذف می شوند (همین مزیت ها در نوار دوم آمده اند) تا لامپ و مهارت ها تمرکز اصلی باشند */
@media (max-width: 760px) {
  .hero-v2 .sat-layer { display: none !important; }
  .hero-v2 .orbit-stage { max-width: 340px; }
  .hero-v2 .hero-skills { margin-top: .4rem; }
}

/* ================================================================
   زبان حرکتی مشترک سایت (Motion & Interaction Layer)
   ================================================================ */
/* ---------- Navbar ---------- */
.site-header { background: rgba(6, 9, 20, .32); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px);
  transition: height .45s var(--ease-out), background-color .45s, box-shadow .45s, backdrop-filter .45s; }
.site-header::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; opacity: 0; transition: opacity .45s;
  background: linear-gradient(90deg, transparent, rgba(56, 225, 255, .55) 25%, rgba(139, 107, 255, .45) 55%, rgba(255, 150, 60, .55) 80%, transparent); }
.site-header.scrolled { height: 64px; background: rgba(6, 10, 24, .82); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px);
  box-shadow: 0 12px 34px -18px rgba(0, 0, 0, .9), 0 0 40px -24px rgba(56, 225, 255, .5); border-bottom-color: transparent; }
.site-header.scrolled::after { opacity: 1; }
.site-header.scrolled img.bulb-mark { height: 44px; }
[data-theme="light"] .site-header { background: rgba(244, 246, 252, .55); }
[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, .88); box-shadow: 0 10px 30px -18px rgba(20, 40, 110, .4); }
/* منوی موبایل: ورود پله ای لینک ها */
.mobile-nav.open .sheet > a { animation: mnav-in .55s var(--ease-out) both; }
.mobile-nav.open .sheet > a:nth-of-type(1) { animation-delay: .05s; } .mobile-nav.open .sheet > a:nth-of-type(2) { animation-delay: .09s; }
.mobile-nav.open .sheet > a:nth-of-type(3) { animation-delay: .13s; } .mobile-nav.open .sheet > a:nth-of-type(4) { animation-delay: .17s; }
.mobile-nav.open .sheet > a:nth-of-type(5) { animation-delay: .21s; } .mobile-nav.open .sheet > a:nth-of-type(6) { animation-delay: .25s; }
.mobile-nav.open .sheet > a:nth-of-type(7) { animation-delay: .29s; } .mobile-nav.open .sheet > a:nth-of-type(8) { animation-delay: .33s; }
.mobile-nav.open .sheet > a:nth-of-type(n+9) { animation-delay: .37s; }
@keyframes mnav-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal: انواع ورود ---------- */
.reveal-scale { transform: scale(.94); } .reveal-scale.in { transform: none; }
.reveal-clip { clip-path: inset(0 0 100% 0); transform: none; transition: clip-path 1s var(--ease-out), opacity .9s; } .reveal-clip.in { clip-path: inset(0 0 0 0); }
/* خط تاکید زیر عنوان بخش ها */
.section-head h2 { position: relative; }
.section-head::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; margin: 1rem auto 0; background: linear-gradient(90deg, var(--orange), var(--orange-2), var(--cyan));
  box-shadow: 0 0 12px rgba(255, 150, 60, .45); transform: scaleX(0); transition: transform 1s var(--ease-out) .25s; }
.section-head.start::after { margin-inline: 0 auto; transform-origin: right; }
.section-head.mb-0::after { display: none; }
.section-head.in::after { transform: none; }
.eyebrow { transition: box-shadow .4s, border-color .4s; }
.eyebrow:hover { box-shadow: 0 0 0 4px rgba(255, 150, 60, .08), 0 0 18px -4px rgba(255, 150, 60, .45); }

/* ---------- کارت ها: نور دنبال کننده ماوس و حاشیه نورانی ---------- */
.card-hover { position: relative; }
.card-hover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 0%), rgba(89, 184, 255, .12), transparent 55%); }
.card-hover:hover::after { opacity: 1; }
.card-hover:hover { box-shadow: 0 0 0 1px rgba(89, 184, 255, .32), 0 24px 50px -22px rgba(61, 123, 255, .6), 0 0 36px -14px rgba(56, 225, 255, .35); }
.card-hover .thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(120%); transition: transform 1.1s var(--ease-out); }
.card-hover:hover .thumb::after { transform: translateX(-120%); }
.card-hover .icon-tile { transition: transform .5s var(--ease-spring); }
.card-hover:hover .icon-tile { transform: rotate(-6deg) scale(1.08); }

/* ---------- آمار ---------- */
.stat { border-radius: var(--radius); transition: transform .5s var(--ease-out), background-color .4s; }
.stat:hover { transform: translateY(-4px); background: rgba(89, 184, 255, .05); }

/* ---------- فوتر ---------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 225, 255, .6), rgba(255, 150, 60, .55), transparent); box-shadow: 0 0 18px rgba(56, 225, 255, .5); }
.site-footer::after { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -300px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(61, 123, 255, .14), transparent 65%); }
.site-footer h4 { position: relative; padding-bottom: .55rem; }
.site-footer h4::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--orange)); }
.site-footer .socials a { transition: transform .4s var(--ease-spring), box-shadow .4s, color .3s; }
.site-footer .socials a:hover { transform: translateY(-3px) rotate(-6deg); box-shadow: 0 10px 22px -10px rgba(56, 225, 255, .7); }

/* ---------- Tooltip ساده (data-tip) ---------- */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none;
  padding: .35rem .6rem; border-radius: 8px; font-size: .76rem; font-weight: 600; color: var(--text); background: rgba(10, 16, 36, .95); border: 1px solid var(--border-strong);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease-out); z-index: 50; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- فرم ها ---------- */
.nr-input { transition: border-color .3s, box-shadow .3s, background-color .3s; }
.nr-input:hover:not(:focus) { border-color: var(--border-strong); }
.tabs a, .tabs button { transition: background-color .3s, color .3s, box-shadow .3s; }

@media (max-width: 760px) {
  .card-hover::after, .card-hover .thumb::after { display: none; }
  .site-footer::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-clip { clip-path: none; }
  .section-head::after { transform: none; }
}

/* ---------- ورود پیامکی، پرداخت آنلاین، نماد اعتماد ---------- */
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0 .9rem; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.otp-input { text-align: center; letter-spacing: .6em; font-size: 1.5rem !important; font-weight: 800; }
.online-pay { --glow: 255, 150, 60; }
.trust-badges { display: flex; justify-content: center; gap: 1rem; padding: 1.2rem 0 .4rem; }
.trust-badge { display: inline-grid; place-items: center; padding: .4rem; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .7); transition: transform .3s var(--ease-out); }
.trust-badge:hover { transform: translateY(-3px); }
.trust-badge img { display: block; width: 90px; height: 90px; object-fit: contain; }
.integ-card .kv dt { min-width: 120px; }
.secret-state { font-family: ui-monospace, monospace; direction: ltr; display: inline-block; }
.inline-action > summary { list-style: none; cursor: pointer; }
.inline-action > summary::-webkit-details-marker { display: none; }
.inline-action[open] form { min-width: 220px; }
/* سوئیچ روش ثبت نام */
.seg-tabs { display: flex; gap: .35rem; padding: .3rem; border-radius: 14px; background: var(--surface-2, rgba(127,127,127,.08)); }
.seg-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .8rem; border-radius: 10px; color: var(--text-2, inherit); text-decoration: none; font-size: .92rem; }
.seg-tab:hover { color: var(--text); }
.seg-tab.active { background: var(--surface, #fff); color: var(--text); box-shadow: 0 1px 6px rgba(0,0,0,.12); font-weight: 600; }
/* پیش نمایش پیامک */
.sms-bubble { background: var(--surface-2, rgba(127,127,127,.1)); border-radius: 16px 16px 4px 16px; padding: .8rem 1rem; line-height: 1.9; font-size: .93rem; white-space: normal; max-width: 420px; }
/* صفحه های حقوقی */
.legal-body h2 { margin-top: 1.8rem; font-size: 1.15rem; }
.legal-body ol, .legal-body ul { padding-inline-start: 1.4rem; line-height: 2.1; }
.legal-body li { margin-bottom: .35rem; }
.form-section { border: 1px solid var(--border, rgba(127,127,127,.2)); border-radius: 16px; padding: 1rem 1.1rem 1.1rem; margin: 0 0 1rem; }
.form-section > legend { padding: 0 .5rem; font-weight: 700; font-size: .98rem; }
/* پروانه تاسیس */
.license-figure { margin: 0; text-align: center; }
.license-figure img { width: 100%; max-width: 420px; height: auto; border-radius: 10px; border: 1px solid var(--border, rgba(127,127,127,.25)); box-shadow: 0 6px 24px rgba(0,0,0,.12); background: #fff; }
/* خانه های برنامه هفتگی */
.slot-time { display: block; font-weight: 700; font-size: .78rem; margin-bottom: .15rem; }
.slot-line { display: flex; align-items: center; gap: .25rem; font-size: .74rem; color: var(--text-2, inherit); line-height: 1.6; }
.slot-line svg { flex: none; opacity: .7; }
@media print {
  .sidebar, .site-header, .navbar, .no-print, .messages, footer { display: none !important; }
  .week { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .slot { break-inside: avoid; border: 1px solid #999; background: #fff !important; color: #000; }
  body { background: #fff !important; }
}

/* ===================================================================== محیط یادگیری */
.learn-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.learn-outline { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 0; }
.learn-outline > summary { display: none; }
.learn-outline .lo-head { padding: 1rem 1.1rem .6rem; border-bottom: 1px solid var(--border); }
.learn-outline .lo-head h2 { font-size: 1rem; margin: 0 0 .5rem; }
.learn-topic { border-bottom: 1px solid var(--border); }
.learn-topic > summary { list-style: none; cursor: pointer; padding: .8rem 1.1rem; display: flex; gap: .5rem; align-items: center; justify-content: space-between; font-weight: 800; font-size: .92rem; }
.learn-topic > summary::-webkit-details-marker { display: none; }
.learn-topic > summary::after { content: "‹"; transition: transform .2s; color: var(--muted); }
.learn-topic[open] > summary::after { transform: rotate(-90deg); }
.learn-topic .lt-meta { color: var(--muted); font-weight: 600; font-size: .78rem; margin-inline-start: auto; }
.learn-items { list-style: none; margin: 0; padding: 0 .5rem .6rem; }
.learn-item a, .learn-item .li-locked { display: flex; gap: .55rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; color: var(--text-2); font-size: .88rem; }
.learn-item a:hover { background: var(--surface-2); color: var(--text); }
.learn-item.current a { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.learn-item .li-title { flex: 1; min-width: 0; }
.learn-item .li-sub { display: block; color: var(--muted); font-size: .74rem; }
.learn-item .li-state { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; }
.learn-item.done .li-state { background: var(--success); border-color: var(--success); color: #fff; }
.learn-item .li-locked { opacity: .55; cursor: not-allowed; }
.learn-main { min-width: 0; }
.learn-main .content-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.learn-main .content-head h1 { font-size: 1.45rem; margin: 0; }
.learn-nav { display: flex; gap: .6rem; justify-content: space-between; flex-wrap: wrap; margin-top: 1.25rem; }
.lesson-body { font-size: 1.05rem; line-height: 2.1; max-width: 860px; }
.lesson-body h1, .lesson-body h2 { font-size: 1.35rem; } .lesson-body h3 { font-size: 1.15rem; }
.lesson-body pre { direction: ltr; text-align: left; background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; overflow-x: auto; line-height: 1.7; font-size: .9rem; }
.lesson-body code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Consolas, monospace; }
.lesson-body table { display: block; overflow-x: auto; max-width: 100%; }
.lesson-body img { max-width: 100%; height: auto; }
.lesson-body .katex-display { overflow-x: auto; overflow-y: hidden; direction: ltr; }
.no-copy, .no-copy * { -webkit-user-select: none; user-select: none; }
.no-copy pre, .no-copy code { -webkit-user-select: text; user-select: text; }
.protected-box { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.protected-box:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.protected-box .player { border-radius: 0; border: 0; box-shadow: none; }
.protected-box:fullscreen .player { height: 100%; aspect-ratio: auto; }
.wm-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.wm-mark { position: absolute; color: rgba(255, 255, 255, .42); text-shadow: 0 0 2px rgba(0, 0, 0, .55); font-size: clamp(.7rem, 1.6vw, .95rem); font-weight: 700; line-height: 1.5; white-space: nowrap; transition: top 1.8s ease, left 1.8s ease; direction: rtl; user-select: none; }
.wm-mark.dark { color: rgba(20, 30, 60, .28); text-shadow: none; }
.wm-tile { position: absolute; inset: -20%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6rem 2rem; transform: rotate(-24deg); opacity: .07; color: #fff; font-size: .8rem; font-weight: 700; align-content: space-around; }
.wm-tile.dark { color: #223; opacity: .06; }
.player-tools { display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .5rem .7rem; background: var(--surface); border-top: 1px solid var(--border); flex-wrap: wrap; }
.player-alert { position: absolute; inset: 0; z-index: 8; display: none; place-items: center; background: rgba(0, 0, 0, .82); color: #fff; text-align: center; padding: 1.5rem; }
.player-alert.show { display: grid; }
.doc-viewer { background: var(--surface); border: 1px solid var(--border); }
.doc-viewer:fullscreen { overflow: auto; }
.doc-toolbar { position: sticky; top: 0; z-index: 6; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; padding: .5rem; background: var(--surface-solid, var(--surface)); border-bottom: 1px solid var(--border); }
.doc-toolbar input[type=number] { width: 4.5rem; text-align: center; }
.doc-toolbar input[type=search] { width: 10rem; }
.doc-toolbar .grow { flex: 1; }
.pdf-pages { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-3); min-height: 60vh; max-height: 80vh; overflow: auto; }
.doc-viewer:fullscreen .pdf-pages { max-height: none; height: calc(100vh - 56px); }
.pdf-page { position: relative; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.pdf-page canvas { display: block; }
.pdf-page .wm-layer .wm-mark { color: rgba(20, 30, 60, .3); text-shadow: none; }
.doc-html { background: #fff; color: #111; padding: 2rem; border-radius: 0 0 var(--radius) var(--radius); max-height: 80vh; overflow: auto; line-height: 2; position: relative; }
.doc-html img { max-width: 100%; height: auto; }
.doc-html table { border-collapse: collapse; } .doc-html td, .doc-html th { border: 1px solid #ccc; padding: .3rem .5rem; }
.doc-html pre.doc-text { white-space: pre-wrap; direction: auto; font-family: inherit; }
.slide-outline { border: 1px solid #ddd; border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; }
.course-hero { display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; align-items: center; }
.course-hero img, .course-hero .thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); position: relative; overflow: hidden; }
.lc-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.lc-card .lc-img { aspect-ratio: 16 / 8; position: relative; background: var(--bg-3); }
.lc-card .lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-card .lc-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.lc-card .lc-stats { display: flex; gap: .8rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.manage-topic { margin-bottom: 1rem; }
.manage-topic .mt-head { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.manage-row { display: flex; gap: .6rem; align-items: center; padding: .55rem .2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.manage-row .mr-title { flex: 1; min-width: 12rem; }
.inline-form { display: inline; }
.btn-xs { padding: .2rem .55rem; min-height: 0; height: auto; font-size: .78rem; }
.field-group[hidden] { display: none !important; }
@media (max-width: 980px) {
  .learn-shell { grid-template-columns: 1fr; }
  .learn-outline { position: static; max-height: none; }
  .learn-outline > summary { display: flex; padding: .9rem 1.1rem; font-weight: 800; cursor: pointer; list-style: none; justify-content: space-between; }
  .learn-outline:not([open]) .lo-body { display: none; }
  .course-hero { grid-template-columns: 1fr; }
  .pdf-pages { max-height: 70vh; padding: .5rem; }
}
@media print { .learn-main .protected-box, .doc-viewer { display: none !important; } }
.btn-block { width: 100%; justify-content: center; }
.mt-auto { margin-top: auto; }
.pt-2 { padding-top: .5rem; }
.wm-mark.soft { color: rgba(128, 128, 150, .32); text-shadow: none; }
.wm-tile.soft { color: rgb(128, 128, 150); opacity: .06; }

/* مدیریت محتوای آموزشی */
.manage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
@media (max-width: 980px) { .manage-grid { grid-template-columns: 1fr; } }
.kind-hidden { display: none !important; }
.md-preview { min-height: 120px; }
.ai-json { font-family: ui-monospace, Consolas, monospace; direction: ltr; text-align: left; font-size: .85rem; }
.prompt-box { white-space: pre-wrap; direction: rtl; max-height: 320px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; font-size: .86rem; line-height: 1.9; }

/* آزمونک، پرسش و پاسخ */
.quiz-list { padding-inline-start: 1.2rem; display: grid; gap: 1rem; margin: 0; }
.quiz-item { line-height: 1.9; }
.quiz-q { font-weight: 600; margin-bottom: .4rem; }
.quiz-code { direction: ltr; text-align: left; background: var(--surface-2); border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; overflow: auto; }
.quiz-options { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.quiz-options li.is-correct { color: var(--success, #2fbf71); font-weight: 600; }
.quiz-options li.is-wrong { color: var(--danger, #e5484d); }
.qa-item { border-top: 1px solid var(--border); padding-top: .8rem; }
.qa-item.is-hidden { opacity: .6; }
.qa-answer { margin: .5rem 1.2rem 0 0; padding: .5rem .8rem; border-inline-start: 3px solid var(--border); background: var(--surface-2); border-radius: 8px; }
.qa-answer.is-staff { border-inline-start-color: var(--primary, #7c5cff); }
.stars { color: #f5b301; letter-spacing: 1px; }

/* بازنشانی رمز توسط مدیر */
details.reset-pw { position: relative; display: inline-block; }
details.reset-pw > summary { list-style: none; cursor: pointer; }
details.reset-pw > summary::-webkit-details-marker { display: none; }
details.reset-pw[open] > form { position: absolute; z-index: 30; inset-inline-end: 0; background: var(--surface); box-shadow: var(--shadow-lg, 0 12px 30px rgba(0,0,0,.35)); }
