/* =====================================================================
   رویش — پوسته‌ی سایت و پیشخوان‌ها (بدون نیاز به npm)
   رنگ‌ها از لوگو: سبز رویش و سرمه‌ای
   ===================================================================== */
:root {
    --g: #4BB85A; --g-600: #3A9F49; --g-700: #2F8540; --g-50: #EEF8F0; --g-100: #D9F0DD;
    --n: #0D366C; --n-900: #06203F; --n-800: #0A2B57; --n-700: #134484; --n-50: #EEF3FA; --n-100: #DCE6F4;
    --gold: #D4A23A; --gold-50: #FBF4E4;
    --ink: #13233A; --muted: #5D6B7E; --line: #E3E9F0; --bg: #F6F9F7; --card: #FFFFFF;
    --danger: #C8372D; --danger-50: #FDEDEB; --warn: #B7791F; --warn-50: #FDF6E7;
    --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
    --sh-sm: 0 1px 2px rgba(13,54,108,.06), 0 2px 8px rgba(13,54,108,.05);
    --sh: 0 4px 10px rgba(13,54,108,.05), 0 14px 36px rgba(13,54,108,.08);
    --sh-lg: 0 10px 30px rgba(13,54,108,.10), 0 30px 70px rgba(13,54,108,.14);
    --ease: cubic-bezier(.2,.7,.2,1);
    --font: Vazirmatn, "Vazir", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.95; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--n-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--g-700); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; color: var(--n-900); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--g-100); color: var(--n-900); }
:focus-visible { outline: 3px solid rgba(75,184,90,.55); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: plaintext; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }

/* ---------- دکمه‌ها ---------- */
.btn { --bg: var(--g); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.4; padding: .78rem 1.45rem; border-radius: 999px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 8px 20px -6px rgba(75,184,90,.6); }
.btn-primary:hover { background: var(--g-600); box-shadow: 0 12px 26px -8px rgba(75,184,90,.7); }
.btn-navy { --bg: var(--n); box-shadow: 0 8px 20px -8px rgba(13,54,108,.55); }
.btn-navy:hover { --bg: var(--n-800); }
.btn-ghost { --bg: transparent; --fg: var(--n); border-color: var(--line); }
.btn-ghost:hover { --fg: var(--n); border-color: var(--n-100); background: var(--n-50); }
.btn-light { --bg: rgba(255,255,255,.1); --fg: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { --bg: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); }
.btn-white { --bg: #fff; --fg: var(--n); box-shadow: var(--sh); }
.btn-white:hover { --fg: var(--n-900); }
.btn-danger { --bg: transparent; --fg: var(--danger); border-color: transparent; padding-inline: .6rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .95rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- سربرگ ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(13,54,108,.18); }
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: .25rem; margin-inline-start: auto; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .96rem; padding: .5rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.active { background: var(--g-50); color: var(--g-700); }
.header-cta { display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--n); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav, .header-cta { display: none; }
    .site-header.open .main-nav, .site-header.open .header-cta { display: flex; }
    .site-header.open .bar { flex-wrap: wrap; padding-bottom: 1rem; }
    .site-header.open .main-nav { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; }
    .site-header.open .main-nav a { padding: .75rem 1rem; }
    .site-header.open .header-cta { order: 4; flex-basis: 100%; }
    .site-header.open .header-cta .btn { flex: 1; }
    .brand img { height: 40px; }
}

/* ---------- نقش‌مایه‌ها ---------- */
.pattern { position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M42 6l10.5 25.5L78 42 52.5 52.5 42 78 31.5 52.5 6 42l25.5-10.5z'/%3E%3Cpath d='M42 22l5.8 14.2L62 42l-14.2 5.8L42 62l-5.8-14.2L22 42l14.2-5.8z'/%3E%3Ccircle cx='42' cy='42' r='4'/%3E%3Cpath d='M0 0l12 12M84 0L72 12M0 84l12-12M84 84L72 72'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 84px 84px; }
.leaf { border-radius: 72% 0 72% 0; }
.leaf-alt { border-radius: 0 72% 0 72%; }

/* ---------- بخش آغازین ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(900px 500px at 85% -10%, rgba(75,184,90,.32), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(75,184,90,.18), transparent 60%),
    linear-gradient(160deg, var(--n-700) 0%, var(--n) 45%, var(--n-900) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5.5rem 0 8.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .95rem .35rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #E7F6EA; }
.eyebrow .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px rgba(75,184,90,.25); animation: pulse 2.4s infinite; }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 4.6vw, 3.55rem); line-height: 1.35; margin: 1.1rem 0 1.1rem; font-weight: 900; }
.hero h1 .hl { color: var(--g); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .14em; border-radius: 4px; background: rgba(75,184,90,.35); z-index: -1; }
.hero .lead { font-size: 1.13rem; color: #CFDBEC; max-width: 36rem; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.slogan { margin-top: 2.6rem; display: flex; gap: 1rem; align-items: center; max-width: 36rem; padding: 1rem 1.25rem; border-radius: var(--r); background: linear-gradient(90deg, rgba(212,162,58,.16), rgba(212,162,58,.04)); border: 1px solid rgba(212,162,58,.35); }
.slogan .crown { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(212,162,58,.18); color: #F2C76A; }
.slogan blockquote { margin: 0; font-weight: 700; font-size: 1.04rem; color: #FBEFD3; line-height: 1.8; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art .leaves { position: absolute; inset: 9%; display: grid; grid-template-columns: 1fr 1fr; gap: 7%; }
.hero-art .leaves span { display: block; animation: grow 1.1s var(--ease) both; box-shadow: 0 24px 50px -18px rgba(0,0,0,.45); }
.hero-art .leaves span:nth-child(1) { background: linear-gradient(135deg, #6CCB78, var(--g)); border-radius: 80% 0 80% 0; animation-delay: .05s; }
.hero-art .leaves span:nth-child(2) { background: linear-gradient(225deg, #6CCB78, var(--g)); border-radius: 0 0 0 80%; animation-delay: .2s; }
.hero-art .leaves span:nth-child(3) { background: linear-gradient(315deg, #2A5FA3, #1B4C8F); border: 1px solid rgba(255,255,255,.18); border-radius: 0 80% 0 80%; animation-delay: .35s; }
.hero-art .leaves span:nth-child(4) { background: linear-gradient(45deg, #6CCB78, var(--g)); border-radius: 80% 0 80% 0; animation-delay: .5s; }
.float-card { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 16px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: var(--sh-lg); font-size: .9rem; font-weight: 700; animation: float 6s ease-in-out infinite; white-space: nowrap; }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.float-card .fi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card.a { top: 6%; inset-inline-start: -6%; }
.float-card.b { bottom: 14%; inset-inline-end: -8%; animation-delay: -2s; }
.float-card.c { bottom: -2%; inset-inline-start: 12%; animation-delay: -4s; }
.fi.green { background: var(--g-50); color: var(--g-700); }
.fi.navy { background: var(--n-50); color: var(--n); }
.fi.gold { background: var(--gold-50); color: var(--warn); }
.hero-wave { position: absolute; bottom: -1px; inset-inline: 0; height: 90px; color: var(--bg); }
.hero-wave svg { width: 100%; height: 100%; }

.stats { position: relative; z-index: 2; margin-top: -5.5rem; }
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 1.6rem .5rem; }
.stat { text-align: center; padding: .25rem 1rem; border-inline-start: 1px solid var(--line); }
.stat:first-child { border: 0; }
.stat b { display: block; font-size: 1.75rem; font-weight: 900; color: var(--n); line-height: 1.5; }
.stat span { color: var(--muted); font-size: .92rem; }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; padding: 3.5rem 0 8rem; gap: 2.5rem; text-align: center; }
    .hero .lead, .slogan { margin-inline: auto; }
    .hero .actions { justify-content: center; }
    .slogan { text-align: start; }
    .hero-art { max-width: 340px; }
    .float-card.a { inset-inline-start: -2%; } .float-card.b { inset-inline-end: -2%; }
    .stats-card { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
    .stat:nth-child(3) { border: 0; }
}

/* ---------- بخش‌ها ---------- */
.sec { padding: 6rem 0; position: relative; }
.sec-alt { background: #fff; }
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto 3.2rem; }
.kicker { display: inline-flex; align-items: center; gap: .45rem; color: var(--g-700); font-weight: 800; font-size: .9rem; margin-bottom: .6rem; }
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--g); border-radius: 70% 0 70% 0; }
.sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
.sec-head p { color: var(--muted); font-size: 1.06rem; }

.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.level { --c: var(--g); --c50: var(--g-50); position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem 1.3rem 1.5rem; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow: hidden; }
.level::before { content: ""; position: absolute; inset-inline-end: -36px; top: -36px; width: 110px; height: 110px; background: var(--c50); border-radius: 0 0 0 80%; transition: transform .5s var(--ease); }
.level:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: transparent; }
.level:hover::before { transform: scale(1.35); }
.level .lv-ico { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px 4px 18px 4px; background: var(--c); color: #fff; margin-bottom: 1.15rem; box-shadow: 0 10px 22px -10px var(--c); }
.level .lv-ico .ico { width: 28px; height: 28px; }
.level h3 { position: relative; font-size: 1.15rem; margin-bottom: .2rem; }
.level .age { position: relative; display: inline-block; font-size: .8rem; font-weight: 700; color: var(--c); background: var(--c50); padding: .1rem .6rem; border-radius: 999px; margin-bottom: .7rem; }
.level p { position: relative; color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.85; }
.level.l2 { --c: #2E9E8F; --c50: #E6F5F3; }
.level.l3 { --c: #2F6FC0; --c50: #E9F1FB; }
.level.l4 { --c: var(--n); --c50: var(--n-50); }
.level.l5 { --c: #B9862A; --c50: var(--gold-50); }
@media (max-width: 1080px) { .levels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .levels { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 12%; border-top: 2px dashed var(--g-100); }
.step-item { position: relative; text-align: center; padding: 0 .5rem; }
.step-item .num { position: relative; width: 68px; height: 68px; margin: 0 auto 1.1rem; display: grid; place-items: center; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); color: var(--g-700); }
.step-item .num .ico { width: 30px; height: 30px; }
.step-item .num::after { counter-increment: s; content: counter(s, persian); position: absolute; top: -8px; inset-inline-end: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--n); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.step-item h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step-item p { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.duo-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 2.4rem 2.2rem; }
.duo-card h3 { font-size: 1.45rem; }
.duo-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .65rem; }
.duo-card li { display: flex; gap: .7rem; align-items: flex-start; }
.duo-card li .ico { margin-top: .3rem; }
.duo-card .tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 800; padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1rem; }
.duo-card.family { background: linear-gradient(150deg, var(--n) 0%, var(--n-900) 100%); color: #D5E0EF; }
.duo-card.family h3 { color: #fff; }
.duo-card.family .tag { background: rgba(255,255,255,.1); color: #fff; }
.duo-card.family li .ico { color: var(--g); }
.duo-card.learner { background: linear-gradient(150deg, var(--g-50) 0%, #fff 100%); border: 1px solid var(--g-100); }
.duo-card.learner .tag { background: var(--g); color: #fff; }
.duo-card.learner li .ico { color: var(--g-600); }
.duo-card .deco { position: absolute; width: 180px; height: 180px; inset-inline-end: -50px; bottom: -50px; opacity: .12; background: currentColor; border-radius: 80% 0 80% 0; }
.duo-card.learner .deco { color: var(--g); opacity: .18; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo-card { padding: 2rem 1.5rem; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { display: flex; gap: 1.1rem; padding: 1.6rem; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.feature:hover { box-shadow: var(--sh); transform: translateY(-4px); }
.feature .f-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); }
.feature:nth-child(even) .f-ico { background: var(--n-50); color: var(--n); }
.feature h3 { font-size: 1.06rem; margin-bottom: .25rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 3.4rem 3rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: radial-gradient(600px 300px at 10% 120%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, var(--g-600), var(--g) 60%, #62C46F); box-shadow: 0 30px 60px -30px rgba(58,159,73,.8); }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .35rem; }
.cta p { margin: 0; color: #ECFAEE; font-size: 1.05rem; }
.cta .actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; }
.cta .pattern { opacity: .1; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 1.4rem; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--sh); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--n-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* ---------- پابرگ ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--n-900); color: #A9B9D0; padding: 4.5rem 0 0; margin-top: 2rem; }
.site-footer .pattern { opacity: .04; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .95rem; max-width: 22rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #A9B9D0; }
.site-footer a:hover { color: #fff; }
.contact-line { display: flex; gap: .6rem; align-items: center; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom .motto { color: #F2C76A; font-weight: 700; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- سربرگ صفحه‌های درونی ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 3.6rem 0 6.2rem; background: radial-gradient(700px 400px at 90% -20%, rgba(75,184,90,.3), transparent 60%), linear-gradient(160deg, var(--n-700), var(--n) 50%, var(--n-900)); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .4rem; }
.page-hero p { color: #CFDBEC; margin: 0; font-size: 1.05rem; }
.page-body { position: relative; z-index: 2; margin-top: -3.8rem; padding-bottom: 4rem; }
.crumbs { display: flex; gap: .5rem; font-size: .86rem; color: #9FB3CF; margin-bottom: .8rem; }
.crumbs a { color: #CFDBEC; }

/* ---------- کارت و فرم ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 2rem; border: 1px solid rgba(227,233,240,.7); }
.card-narrow { max-width: 880px; margin: 0 auto; }
.card h2 { font-size: 1.3rem; }
.alert { display: flex; gap: .75rem; align-items: flex-start; border-radius: var(--r-sm); padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.alert .ico { margin-top: .2rem; }
.alert-danger { background: var(--danger-50); color: var(--danger); }
.alert-success { background: var(--g-50); color: var(--g-700); }
.alert-info { background: var(--n-50); color: var(--n); }
.alert-warn { background: var(--warn-50); color: var(--warn); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 1.25rem; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field label, .lbl { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--n-900); }
.req { color: var(--danger); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=date], .field select, .field textarea {
    width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: #FBFCFD; border: 1.5px solid var(--line); border-radius: 12px; padding: .72rem .95rem; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235D6B7E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .95rem center; padding-left: 2.4rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CBD6E2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g); background: #fff; box-shadow: 0 0 0 4px rgba(75,184,90,.15); }
.field input[type=file] { width: 100%; font: inherit; font-size: .9rem; padding: .9rem; border: 1.5px dashed #C3D0DE; border-radius: 12px; background: #FAFCFB; cursor: pointer; }
.field input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: .4rem 1rem; margin-inline-end: .8rem; background: var(--n-50); color: var(--n); cursor: pointer; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.field .err { font-size: .84rem; color: var(--danger); margin-top: .3rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #FFFBFA; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-left: 3rem !important; }
.pw-toggle { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--n-50); color: var(--n); }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: .3rem; accent-color: var(--g); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; transition: .2s; }
.chip input:checked + span { background: var(--g-50); border-color: var(--g); color: var(--g-700); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(75,184,90,.2); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.divider { height: 1px; background: var(--line); margin: 1.6rem 0; border: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* انتخاب نوع نام‌نویسی */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box { height: 100%; display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.5rem; border-radius: var(--r-lg); border: 2px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.choice:hover .box { border-color: #C9D9CC; transform: translateY(-3px); }
.choice input:checked + .box { border-color: var(--g); box-shadow: 0 0 0 5px rgba(75,184,90,.14), var(--sh); }
.choice input:focus-visible + .box { box-shadow: 0 0 0 5px rgba(75,184,90,.3); }
.choice .c-ico { width: 56px; height: 56px; border-radius: 18px 4px 18px 4px; display: grid; place-items: center; background: var(--n-50); color: var(--n); margin-bottom: .4rem; transition: .25s; }
.choice input:checked + .box .c-ico { background: var(--g); color: #fff; }
.choice .c-ico .ico { width: 28px; height: 28px; }
.choice h3 { font-size: 1.12rem; margin: 0; }
.choice p { margin: 0; color: var(--muted); font-size: .92rem; }
.choice .c-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .3rem; font-size: .88rem; }
.choice .c-list li { display: flex; gap: .45rem; align-items: center; color: var(--ink); }
.choice .c-list .ico { color: var(--g-600); width: 1.05em; height: 1.05em; }
.choice .tick { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: .25s; background: #fff; }
.choice input:checked ~ .tick { background: var(--g); border-color: var(--g); color: #fff; }
@media (max-width: 680px) { .choices { grid-template-columns: 1fr; } }

/* نوار گام‌ها */
.stepper { display: flex; align-items: flex-start; margin: .5rem 0 2.2rem; }
.stepper .st { flex: 1; position: relative; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); }
.stepper .st::before { content: ""; position: absolute; top: 18px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; transition: background .4s; }
.stepper .st:last-child::before { display: none; }
.stepper .st .b { position: relative; z-index: 1; width: 38px; height: 38px; margin: 0 auto .45rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 800; color: var(--muted); transition: .3s; }
.stepper .st.active { color: var(--n-900); }
.stepper .st.active .b { border-color: var(--g); color: var(--g-700); box-shadow: 0 0 0 5px rgba(75,184,90,.15); }
.stepper .st.done .b { background: var(--g); border-color: var(--g); color: #fff; }
.stepper .st.done::before { background: var(--g); }
@media (max-width: 560px) { .stepper .st .t { display: none; } .stepper .st.active .t { display: block; position: absolute; width: max-content; left: 50%; transform: translateX(-50%); } .stepper { margin-bottom: 2.8rem; } }
.wizard-step { display: none; animation: fadeUp .45s var(--ease); }
.wizard-step.active { display: block; }
.wizard-step > h2 { display: flex; align-items: center; gap: .6rem; }
.wizard-step > .sub { color: var(--muted); margin-top: -.4rem; margin-bottom: 1.5rem; font-size: .95rem; }
.sub-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem 1.4rem; margin-bottom: 1.1rem; background: #FCFDFD; }
.sub-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sub-card-head h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: .5rem; }
.sub-card-head h3 .n { width: 28px; height: 28px; border-radius: 9px; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; font-size: .85rem; }
.add-more { width: 100%; border: 1.5px dashed #BFD3C3; background: var(--g-50); color: var(--g-700); border-radius: var(--r); padding: .9rem; font: inherit; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: .5rem; transition: .2s; }
.add-more:hover { background: var(--g-100); }

/* ---------- ورود ---------- */
.auth { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; color: #fff; padding: 4rem 3.5rem; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(600px 400px at 100% 0%, rgba(75,184,90,.35), transparent 60%), linear-gradient(160deg, var(--n-700), var(--n) 50%, var(--n-900)); }
.auth-side h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); position: relative; }
.auth-side p { color: #CFDBEC; position: relative; max-width: 30rem; }
.auth-side .who { position: relative; display: grid; gap: .8rem; margin-top: 1.8rem; max-width: 26rem; }
.auth-side .who div { display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.auth-side .who .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(75,184,90,.2); color: #8FDC9A; flex: none; }
.auth-side .who b { color: #fff; display: block; line-height: 1.5; }
.auth-side .who small { color: #A9B9D0; }
.auth-side .big-leaf { position: absolute; width: 340px; height: 340px; inset-inline-start: -110px; bottom: -120px; background: rgba(75,184,90,.16); border-radius: 80% 0 80% 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.auth-box { width: 100%; max-width: 430px; }
.auth-box .mark { width: 56px; height: 56px; margin-bottom: 1.3rem; }
.auth-box h1 { font-size: 1.75rem; margin-bottom: .3rem; }
.auth-box > p { color: var(--muted); margin-bottom: 1.8rem; }
.auth-box form { display: grid; gap: 1.1rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .92rem; }
.auth-foot { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; font-size: .93rem; color: var(--muted); }
.auth-foot a { font-weight: 700; }
.staff-link { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; background: var(--n-50); color: var(--n) !important; font-weight: 700; }
.staff-link:hover { background: var(--n-100); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- پیشخوان ---------- */
.app { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--n-900); color: #A9B9D0; padding: 1.4rem 1rem; overflow-y: auto; }
.side .pattern { opacity: .035; }
.side-brand { position: relative; display: flex; align-items: center; padding: .25rem .6rem 1.5rem; }
.side-brand img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.side-user { position: relative; display: flex; gap: .75rem; align-items: center; padding: .9rem; border-radius: 14px; background: rgba(255,255,255,.06); margin-bottom: 1.3rem; }
.avatar { width: 42px; height: 42px; border-radius: 13px 4px 13px 4px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--g), var(--g-700)); flex: none; }
.side-user b { color: #fff; display: block; line-height: 1.5; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { color: #8DA2BF; font-size: .8rem; }
.side-nav { position: relative; display: grid; gap: .2rem; }
.side-nav .grp { font-size: .74rem; font-weight: 800; color: #6E84A3; padding: 1rem .8rem .35rem; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 11px; color: #C2CFE0; font: inherit; font-size: .94rem; font-weight: 600; background: none; border: 0; cursor: pointer; width: 100%; text-align: start; transition: background .2s, color .2s; }
.side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: var(--g); color: #fff; box-shadow: 0 8px 20px -8px rgba(75,184,90,.7); }
.side-nav .soon { margin-inline-start: auto; font-size: .7rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #8DA2BF; }
.side-foot { position: relative; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.07); }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .9rem 2rem; background: rgba(246,249,247,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.2rem; margin: 0; }
.topbar .date { margin-inline-start: auto; font-size: .86rem; color: var(--muted); display: flex; gap: .45rem; align-items: center; }
.topbar .menu-btn { display: none; }
.content { padding: 2rem; max-width: 1180px; }
.welcome { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 2.2rem 2.2rem; color: #fff; margin-bottom: 1.6rem; background: radial-gradient(500px 300px at 0% 120%, rgba(75,184,90,.35), transparent 60%), linear-gradient(135deg, var(--n-700), var(--n) 55%, var(--n-900)); }
.welcome h2 { color: #fff; font-size: 1.55rem; margin-bottom: .35rem; position: relative; }
.welcome p { color: #CFDBEC; margin: 0; position: relative; max-width: 40rem; }
.welcome .leafy { position: absolute; inset-inline-end: 2rem; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 92px; opacity: .9; }
.welcome .leafy span { aspect-ratio: 1; background: var(--g); }
.welcome .leafy span:nth-child(1), .welcome .leafy span:nth-child(4) { border-radius: 80% 0 80% 0; }
.welcome .leafy span:nth-child(2) { border-radius: 0 0 0 80%; }
.welcome .leafy span:nth-child(3) { border-radius: 0 80% 0 80%; background: #fff; opacity: .9; }
@media (max-width: 640px) { .welcome .leafy { display: none; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; transition: box-shadow .3s, transform .3s var(--ease); }
.tile:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.tile .t-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); margin-bottom: .9rem; }
.tile:nth-child(3n+2) .t-ico { background: var(--n-50); color: var(--n); }
.tile:nth-child(3n) .t-ico { background: var(--gold-50); color: var(--warn); }
.tile h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.tile p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.tile .soon-badge { position: absolute; top: 1.1rem; inset-inline-end: 1.1rem; font-size: .72rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; background: var(--n-50); color: var(--n-700); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; margin-bottom: 1.6rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty .e-ico { width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 24px 6px 24px 6px; display: grid; place-items: center; background: var(--g-50); color: var(--g-600); }
.empty .e-ico .ico { width: 32px; height: 32px; }
.empty h3 { font-size: 1.05rem; color: var(--n-900); margin-bottom: .25rem; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.kid { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; background: linear-gradient(180deg, #FBFDFC, #fff); }
.kid-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.kid-head b { display: block; font-size: 1.05rem; color: var(--n-900); line-height: 1.5; }
.kid-head small { color: var(--muted); }
.kid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.kid-stats div { text-align: center; padding: .65rem .3rem; border-radius: 12px; background: var(--bg); font-size: .78rem; color: var(--muted); }
.kid-stats b { display: block; font-size: 1.05rem; color: var(--n); }
.kid-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .88rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: var(--n-50); color: var(--n-700); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--g-50); color: var(--g-700); }
.badge.wait { background: var(--warn-50); color: var(--warn); }
.badge.no { background: var(--danger-50); color: var(--danger); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0; font-size: .95rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
    .app { grid-template-columns: 1fr; }
    .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 60; transform: translateX(110%); transition: transform .35s var(--ease); box-shadow: var(--sh-lg); }
    .app.nav-open .side { transform: none; }
    .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6,32,63,.45); z-index: 55; }
    .topbar { padding: .8rem 1rem; }
    .topbar .menu-btn { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; color: var(--n); cursor: pointer; }
    .topbar .date { display: none; }
    .content { padding: 1.2rem 1rem 2rem; }
}

/* ---------- پویانمایی ---------- */
@keyframes grow { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(75,184,90,.55); } 70% { box-shadow: 0 0 0 10px rgba(75,184,90,0); } 100% { box-shadow: 0 0 0 0 rgba(75,184,90,0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
.side-nav .item { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 11px; color: #7F93B0; font-size: .94rem; font-weight: 600; cursor: default; }
.flash { margin-bottom: 1.4rem; }
.form-narrow { max-width: 720px; }
.inline-form { display: inline; margin: 0; }

/* ---------- ۱-د: تبلیغ، صفحه‌های محتوایی، دهش، راهنما ---------- */
.ad-slot { display: grid; gap: 1rem; margin: 2rem auto; }
.ad-item { position: relative; border-radius: var(--r); overflow: hidden; text-align: center; }
.ad-item img { margin: 0 auto; border-radius: var(--r); }
.ad-tag { position: absolute; top: .5rem; inset-inline-start: .5rem; font-size: .7rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: rgba(6,32,63,.6); color: #fff; z-index: 1; }
.prose { font-size: 1.02rem; line-height: 2.1; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .7rem; padding-inline-start: .9rem; border-inline-start: 4px solid var(--g); }
.prose h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--g-700); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.2rem 0; padding: 1rem 1.3rem; border-radius: var(--r); background: var(--g-50); border-inline-start: 4px solid var(--g); }
.prose img { border-radius: var(--r); margin: 1rem auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; }
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: start; }
.toc { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; }
.toc h4 { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.toc a { display: flex; gap: .5rem; align-items: center; padding: .45rem .6rem; border-radius: 10px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.toc a:hover { background: var(--g-50); color: var(--g-700); }
.guide-sec { scroll-margin-top: 96px; margin-bottom: 1.4rem; }
.guide-sec .sec-ico { width: 52px; height: 52px; border-radius: 16px 4px 16px 4px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); margin-bottom: .8rem; }
.steps-list { counter-reset: gs; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.steps-list li { counter-increment: gs; position: relative; padding: .85rem 1rem .85rem 1rem; padding-inline-start: 3.4rem; border-radius: var(--r); background: var(--bg); }
.steps-list li::before { content: counter(gs, persian); position: absolute; inset-inline-start: .9rem; top: .8rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #fff; font-weight: 800; font-size: .85rem; }
.note { display: flex; gap: .7rem; padding: .9rem 1.1rem; border-radius: var(--r); background: var(--n-50); color: var(--n); font-size: .93rem; margin-top: 1rem; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.method { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; background: #fff; display: grid; gap: .5rem; }
.method h3 { margin: 0; font-size: 1.08rem; display: flex; align-items: center; gap: .5rem; }
.method pre { margin: 0; white-space: pre-wrap; font-family: inherit; direction: auto; background: var(--bg); border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; }
.uses { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.uses li { display: flex; gap: .6rem; align-items: center; }
.uses .ico { color: var(--g-600); }
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; } }
.social { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.social a { padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.07); font-size: .85rem; }
.social a:hover { background: rgba(255,255,255,.15); }
.credit a { color: #8FDC9A !important; font-weight: 700; }

/* ROOYESH-1E-BEGIN — کلاس درس، تولتیپ، تصویرهای راهنما */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; z-index: 60; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%);
    width: max-content; max-width: 260px; padding: .45rem .7rem; border-radius: 10px; background: #0D2547; color: #fff;
    font-size: .78rem; font-weight: 500; line-height: 1.7; text-align: start; white-space: normal; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); pointer-events: none;
}
[data-tip]:hover::before, [data-tip]:focus-visible::before {
    content: ""; position: absolute; z-index: 60; bottom: calc(100% + 2px); inset-inline-start: 50%; transform: translateX(50%);
    border: 6px solid transparent; border-top-color: #0D2547; pointer-events: none;
}
.tip { display: inline-flex; vertical-align: middle; color: var(--muted, #64748b); cursor: help; margin-inline-start: .25rem; border-radius: 50%; }
.tip .ico { width: 16px; height: 16px; }
.tip:hover, .tip:focus { color: var(--g-700, #2F8540); outline: none; }
@media (hover: none) { [data-tip]:hover::after, [data-tip]:hover::before { display: none; } [data-tip]:focus::after, [data-tip]:focus::before { display: block; } }
.tbl-wrap { overflow-x: auto; margin: 0 -.25rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: start; font-size: .8rem; font-weight: 700; color: var(--muted, #64748b); padding: .6rem .7rem; border-bottom: 1px solid var(--line, #e2e8f0); white-space: nowrap; background: var(--bg, #f8fafc); }
.tbl td { padding: .65rem .7rem; border-bottom: 1px solid var(--line, #e2e8f0); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.actions { white-space: nowrap; text-align: end; }
.tbl .sticky { position: sticky; inset-inline-start: 0; background: #fff; z-index: 1; }
.tbl th.sticky { background: var(--bg, #f8fafc); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.btn-block { width: 100%; justify-content: center; }
.inline-form { display: inline; }
.input-sm { padding: .4rem .6rem !important; font-size: .85rem; min-width: 140px; }
.crumbs-app { display: flex; gap: .45rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted, #64748b); margin-bottom: .8rem; }
.crumbs-app a { color: var(--g-700, #2F8540); font-weight: 600; }
.seg-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.seg-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e2e8f0); font-weight: 700; font-size: .9rem; color: var(--ink, #0f172a); }
.seg-tabs a.active { background: var(--n, #0D366C); color: #fff; border-color: transparent; }
.seg-tabs .ico { width: 18px; height: 18px; }
.seg { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: .25rem; padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--line, #e2e8f0); font-size: .82rem; font-weight: 700; color: var(--muted, #64748b); background: #fff; transition: .15s; }
.seg .ico { width: 14px; height: 14px; }
.seg input:focus-visible + span { outline: 2px solid var(--g, #4BB85A); outline-offset: 2px; }
.seg-present input:checked + span { background: var(--g, #4BB85A); border-color: transparent; color: #fff; }
.seg-late input:checked + span { background: #D4A23A; border-color: transparent; color: #fff; }
.seg-absent input:checked + span { background: #C8372D; border-color: transparent; color: #fff; }
.seg-excused input:checked + span { background: #64748B; border-color: transparent; color: #fff; }
.grade-grid .score { width: 70px; text-align: center; padding: .4rem; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; font-weight: 700; font-family: inherit; }
.grade-grid .score:focus { border-color: var(--g, #4BB85A); outline: 2px solid rgba(75,184,90,.25); }
.grade-grid th small { display: block; font-weight: 500; }
.grade-chip { display: inline-block; min-width: 2.4rem; text-align: center; padding: .1rem .5rem; border-radius: 999px; background: rgba(75,184,90,.15); color: #2F8540; font-weight: 800; direction: ltr; }
.grade-chip.final { background: var(--n, #0D366C); color: #fff; }
.pct { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; }
.pct::before { content: ""; width: 46px; height: 6px; border-radius: 6px; background: linear-gradient(to left, currentColor calc(var(--v) * 1%), #e2e8f0 0); }
.pct.ok { color: #2F8540; } .pct.mid { color: #B7861F; } .pct.low { color: #C8372D; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.stat-row > div { background: var(--bg, #f8fafc); border-radius: 14px; padding: 1rem; text-align: center; display: grid; gap: .3rem; justify-items: center; }
.stat-row b { font-size: 1.4rem; color: var(--n, #0D366C); }
.stat-row span { font-size: .8rem; color: var(--muted, #64748b); }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.sub-title { font-size: 1rem; margin: 1.4rem 0 .7rem; }
.att-dots { display: flex; flex-wrap: wrap; gap: .4rem; }
.att-dot { display: inline-block; width: 18px; height: 18px; border-radius: 6px; background: #e2e8f0; }
.att-dot.present { background: var(--g, #4BB85A); } .att-dot.late { background: #D4A23A; } .att-dot.absent { background: #C8372D; } .att-dot.excused { background: #94A3B8; }
.att-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted, #64748b); margin-top: .6rem; }
.att-legend .att-dot { width: 12px; height: 12px; vertical-align: -1px; }
.tile-link { color: inherit; transition: .2s; }
.tile-link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(13,54,108,.35); }
details.collapse > summary { cursor: pointer; list-style: none; }
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse:not([open]) > summary { margin-bottom: 0; }
.row-edit { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: .7rem 1rem; margin-bottom: .6rem; }
.row-edit summary { cursor: pointer; }
.row-edit[open] { background: var(--bg, #f8fafc); }
.row-edit form { margin-top: .8rem; }
.shot { margin: 1.2rem 0 1.4rem; }
.shot-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #e2e8f0); box-shadow: 0 20px 50px -28px rgba(13,54,108,.45); background: #fff; }
.shot-bar { display: flex; gap: 6px; padding: 9px 12px; background: #EEF2F7; border-bottom: 1px solid var(--line, #e2e8f0); direction: ltr; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.shot-bar i:first-child { background: #F87171; } .shot-bar i:nth-child(2) { background: #FBBF24; } .shot-bar i:nth-child(3) { background: #34D399; }
.shot img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 0 !important; }
.shot figcaption { font-size: .85rem; color: var(--muted, #64748b); text-align: center; margin-top: .6rem; }
@media print { .side, .topbar, .btn, .seg-tabs { display: none !important; } .main { margin: 0 !important; } }
.tbl th [data-tip]:hover::after, .tbl th [data-tip]:focus-visible::after { bottom: auto; top: calc(100% + 8px); }
.tbl th [data-tip]:hover::before, .tbl th [data-tip]:focus-visible::before { bottom: auto; top: calc(100% - 4px); border-top-color: transparent; border-bottom-color: #0D2547; }
/* ROOYESH-1E-END */

/* ROOYESH-1F-BEGIN — ورود به جای کاربر، طرح درس، منابع، تکلیف، آزمون */
.imp-bar { position: sticky; top: 0; z-index: 80; display: flex; gap: .8rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .55rem 1rem; background: linear-gradient(90deg, #B45309, #D97706); color: #fff; font-size: .9rem; font-weight: 600; }
.imp-bar .ico { width: 18px; height: 18px; }
.imp-bar .btn-white { background: #fff; color: #92400E; }
.checks-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: .4rem 0 .8rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; }
.copy-form select { padding: .3rem .5rem; border-radius: 8px; border: 1px solid var(--line, #e2e8f0); font-family: inherit; font-size: .85rem; max-width: 180px; }
.plan-body { margin-top: .6rem; line-height: 2; }
.plan-body h4 { font-size: .9rem; margin: .7rem 0 .2rem; color: var(--n, #0D366C); }
.plan-body p { margin: 0; }
.prose-box { background: var(--bg, #f8fafc); border-radius: 12px; padding: .9rem 1.1rem; line-height: 2; margin: .4rem 0 .8rem; white-space: normal; overflow-wrap: anywhere; }
.muted-row td { opacity: .55; }
.note-inline { display: flex; gap: .4rem; align-items: center; font-size: .85rem; color: #92400E; background: #FEF3C7; padding: .5rem .8rem; border-radius: 10px; }
.note-inline .ico { width: 16px; height: 16px; }
.answer-cell details summary { cursor: pointer; color: var(--g-700, #2F8540); font-weight: 600; font-size: .85rem; }
.answer-cell a { font-size: .85rem; }
.result-box { border: 2px solid rgba(75,184,90,.35); }
.q-item { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: .9rem 1.1rem; margin: 0 0 .8rem; min-width: 0; }
fieldset.q-item { margin-inline: 0; }
.q-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: 0; }
.q-actions { margin-inline-start: auto; display: inline-flex; gap: .3rem; align-items: center; }
.q-body { margin: .5rem 0; line-height: 2; font-weight: 600; }
.q-opts { margin: .3rem 0; padding-inline-start: 1.4rem; display: grid; gap: .3rem; }
.q-opts li { padding: .25rem .6rem; border-radius: 8px; }
.q-opts li.right { background: rgba(75,184,90,.14); color: #2F8540; font-weight: 700; }
.q-opts li.right::after { content: " ✓"; }
.q-opts li.picked:not(.right) { background: rgba(200,55,45,.1); color: #B42318; }
.q-choices { display: grid; gap: .45rem; }
.q-choice { display: flex; gap: .6rem; align-items: center; padding: .6rem .9rem; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; cursor: pointer; transition: .15s; }
.q-choice:hover { border-color: var(--g, #4BB85A); }
.q-choice:has(input:checked) { background: rgba(75,184,90,.1); border-color: var(--g, #4BB85A); }
.q-choice input { width: 18px; height: 18px; accent-color: var(--g, #4BB85A); }
.q-item textarea, .q-item input[type=text] { width: 100%; }
.mark-input { display: inline-flex; gap: .3rem; align-items: center; font-size: .85rem; color: var(--muted, #64748b); }
.mark-input .score { width: 64px; text-align: center; padding: .35rem; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; font-weight: 700; font-family: inherit; }
td .score { width: 70px; text-align: center; padding: .4rem; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; font-weight: 700; font-family: inherit; }
.exam-bar { position: sticky; top: 0; z-index: 5; background: #fff; padding-block: .5rem; }
.timer { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .9rem; border-radius: 999px; background: rgba(13,54,108,.08); color: var(--n, #0D366C); font-size: 1.05rem; direction: ltr; }
.timer.low { background: #FEE2E2; color: #B91C1C; animation: rw-pulse 1s infinite; }
@keyframes rw-pulse { 50% { opacity: .55; } }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.todo li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; background: var(--bg, #f8fafc); }
.todo li small { grid-column: 2; }
.todo-ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(75,184,90,.15); color: #2F8540; }
.todo-ico.exam { background: rgba(13,54,108,.1); color: var(--n, #0D366C); }
.todo-ico .ico { width: 20px; height: 20px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.res-card { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; overflow: hidden; background: #fff; }
.res-link { display: flex; gap: .7rem; padding: .8rem .9rem; color: inherit; align-items: flex-start; }
.res-link:hover b { color: var(--g-700, #2F8540); }
.res-link small { display: block; color: var(--muted, #64748b); font-size: .8rem; margin-top: .2rem; }
.res-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(13,54,108,.08); color: var(--n, #0D366C); }
.res-ico .ico { width: 18px; height: 18px; }
.res-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.res-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media print { .imp-bar, .row-actions, .copy-form { display: none !important; } details.row-edit { border: 0; } }
/* ROOYESH-1F-END */

/* ROOYESH-1G-BEGIN — گفتگو، آگاه‌سازی، تیکت، قوانین، گواهی، بانک پرسش، دستیار، راهنمای مخاطب‌محور */
.nav-badge { margin-inline-start: auto; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: #E5484D; color: #fff; font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.4rem; }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg, #f4f7fa); color: var(--n, #0D366C); margin-inline-start: auto; }
.bell .ico { width: 20px; height: 20px; }
.bell-n { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #E5484D; color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid #fff; }
.avatar.sm { width: 38px; height: 38px; font-size: .9rem; flex: none; }
.avatar.navy { background: linear-gradient(135deg, var(--n-700, #134484), var(--n, #0D366C)); }
.avatar.sm .ico { width: 18px; height: 18px; }
.inline-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.inline-row > .field { flex: 1 1 220px; margin: 0; }
.filter-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filter-row > * { flex: 1 1 160px; }
.filter-row > button, .filter-row > .btn { flex: 0 0 auto; }
.conv-list, .alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.conv-list a, .alert-list a { display: flex; gap: .75rem; align-items: center; padding: .7rem .85rem; border-radius: 14px; border: 1px solid var(--line, #e2e8f0); color: inherit; transition: .15s; }
.conv-list a:hover, .alert-list a:hover { border-color: var(--g, #4BB85A); background: rgba(75,184,90,.05); }
.conv-list small, .alert-list small { display: block; color: var(--muted, #64748b); font-size: .8rem; margin-top: .15rem; }
.alert-list li.unread a { background: rgba(75,184,90,.08); border-color: rgba(75,184,90,.35); }
.alert-list li.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--g, #4BB85A); margin-inline-start: .4rem; vertical-align: middle; }
.chat-log { display: flex; flex-direction: column; gap: .55rem; max-height: 60vh; min-height: 260px; overflow-y: auto; padding: .9rem; border-radius: 16px; background: var(--bg, #f4f7fa); scroll-behavior: smooth; }
.msg { max-width: min(78%, 560px); align-self: flex-start; background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 16px 16px 16px 4px; padding: .55rem .8rem; box-shadow: 0 2px 8px -6px rgba(13,54,108,.35); }
.msg.me { align-self: flex-end; background: var(--g, #4BB85A); border-color: transparent; color: #fff; border-radius: 16px 16px 4px 16px; }
.msg.hidden-msg { opacity: .55; font-style: italic; }
.msg-who { display: block; font-size: .76rem; color: var(--n, #0D366C); margin-bottom: .15rem; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.msg time { display: block; font-size: .68rem; opacity: .65; margin-top: .2rem; text-align: end; }
.chat-form { display: flex; gap: .5rem; align-items: flex-end; margin-top: .8rem; }
.chat-form textarea { flex: 1; resize: vertical; min-height: 48px; border-radius: 16px; }
.chat-form .btn { flex: none; }
.thread { display: grid; gap: .7rem; margin-bottom: 1rem; }
.thread-item { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: .8rem 1rem; background: #fff; }
.thread-item.staff { background: rgba(13,54,108,.04); border-color: rgba(13,54,108,.18); }
.thread-meta { font-size: .8rem; color: var(--muted, #64748b); margin-bottom: .35rem; }
.thread-item.staff .thread-meta b { color: var(--n, #0D366C); }
.thread-body { line-height: 2; overflow-wrap: anywhere; }
.terms-box { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 1rem 1.2rem; background: var(--bg, #f8fafc); }
.terms-box:focus { outline: 2px solid rgba(75,184,90,.4); }
.sig-input { font-size: 1.25rem !important; font-weight: 700; letter-spacing: .02em; border-style: dashed !important; }
.sticky-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .7rem 1rem; margin-top: 1rem; border-radius: 14px; background: var(--n, #0D366C); color: #fff; box-shadow: 0 -8px 24px -16px rgba(0,0,0,.4); }
.sticky-bar select { padding: .35rem .6rem; border-radius: 8px; font-family: inherit; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: rw-spin .8s linear infinite; vertical-align: -2px; }
@keyframes rw-spin { to { transform: rotate(360deg); } }
.guide-tabs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; }
.guide-tabs a { display: inline-flex; gap: .45rem; align-items: center; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e2e8f0); font-weight: 700; color: var(--ink, #0f172a); }
.guide-tabs a.active { background: var(--n, #0D366C); color: #fff; border-color: transparent; }
.guide-tabs a .ico { width: 18px; height: 18px; }
.guide-tabs-note { display: inline-flex; gap: .35rem; align-items: center; font-size: .82rem; color: var(--muted, #64748b); }
.guide-tabs-note .ico { width: 15px; height: 15px; }
@media (max-width: 640px) { .msg { max-width: 92%; } .chat-log { max-height: 55vh; } }
@media print { .bell, .chat-form, .sticky-bar, .guide-tabs { display: none !important; } }
/* ROOYESH-1G-END */

/* ROOYESH-1H-BEGIN — کارگاه آموزش، ویزاردها، جدول هفتگی، قالب‌ها */
.wizard-card { max-width: 1100px; }
.wizard-card .wizard-step { display: none; }
.wizard-card .wizard-step.active { display: block; animation: rw-fade .25s ease; }
.wizard-card .wizard-step h2 { font-size: 1.25rem; margin: .6rem 0 .3rem; }
.wizard-card .wizard-step .sub { color: var(--muted, #64748b); margin: 0 0 1.2rem; }
.wizard-card .stepper { display: flex; gap: .4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.wizard-card .stepper .st { flex: 1 1 120px; display: flex; gap: .5rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; background: var(--bg, #f4f7fa); color: var(--muted, #64748b); font-size: .88rem; }
.wizard-card .stepper .st .b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line, #e2e8f0); font-weight: 800; flex: none; }
.wizard-card .stepper .st.active { background: rgba(75,184,90,.12); color: var(--ink, #0f172a); font-weight: 700; }
.wizard-card .stepper .st.active .b, .wizard-card .stepper .st.done .b { background: var(--g, #4BB85A); border-color: var(--g, #4BB85A); color: #fff; }
@keyframes rw-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.choices-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.sched-rows { display: grid; gap: .5rem; }
.sched-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sched-row select { min-width: 140px; }
.sched-row input[type=time] { width: 130px; }
.timetable { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.tt-day { background: var(--bg, #f4f7fa); border-radius: 14px; padding: .6rem; display: grid; gap: .4rem; align-content: start; min-height: 110px; }
.tt-day > b { font-size: .85rem; }
.tt-empty { opacity: .55; }
.tt-slot { display: grid; gap: .1rem; padding: .45rem .55rem; border-radius: 10px; background: #fff; border-inline-start: 4px solid var(--c, #4BB85A); color: inherit; font-size: .8rem; font-weight: 700; box-shadow: 0 2px 8px -6px rgba(13,54,108,.4); }
.tt-slot span { font-size: .72rem; color: var(--muted, #64748b); font-weight: 600; }
.tt-slot:hover { transform: translateY(-1px); }
@media (max-width: 900px) { .timetable { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.subj-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #4BB85A); margin-inline-end: .4rem; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.tpl-card { border: 1px solid var(--line, #e2e8f0); border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: .35rem; align-content: start; background: #fff; }
.tpl-card p { margin: .2rem 0; font-size: .88rem; line-height: 1.9; }
.tpl-head { display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.tpl-pick { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line, #e2e8f0); }
.bank-pick { display: grid; gap: .4rem; max-height: 50vh; overflow: auto; padding: .2rem; }
.q-pick { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; }
.q-pick:has(input:checked) { border-color: var(--g, #4BB85A); background: rgba(75,184,90,.07); }
.q-pick small { display: block; }
/* ROOYESH-1H-END */

/* ROOYESH-1J-BEGIN — فیلم‌ها و بازبینی واکنش‌گرا */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.video-card { background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 14px 40px -28px rgba(13,54,108,.45); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.video-frame iframe, .video-play, .video-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: #0b1220; }
.video-play img { object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.video-play:hover img, .video-play:focus-visible img { opacity: 1; transform: scale(1.03); }
.video-btn { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--g, #4BB85A); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0,0,0,.5); transition: transform .2s; }
.video-btn svg { width: 30px; height: 30px; margin-inline-start: 4px; }
.video-play:hover .video-btn { transform: scale(1.08); }
.video-num { position: absolute; top: .8rem; inset-inline-start: .8rem; min-width: 34px; height: 34px; padding: 0 .5rem; border-radius: 999px; background: rgba(13,54,108,.85); color: #fff; font-weight: 800; display: grid; place-items: center; }
.video-body { padding: 1.1rem 1.3rem 1.3rem; display: grid; gap: .5rem; align-content: start; flex: 1; }
.video-body h2 { font-size: 1.12rem; margin: 0; line-height: 1.8; }
.video-body p { margin: 0; color: var(--muted, #64748b); line-height: 1.9; }
.video-body .btn { justify-self: start; margin-top: .3rem; }
.stats-card { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }

/* بازبینی واکنش‌گرا */
img, svg, video, iframe { max-width: 100%; }
html, body { overflow-x: hidden; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.seg-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.seg-tabs > a { flex: none; white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 981px) {
    .main-nav { gap: .2rem; }
    .main-nav a { padding-inline: .55rem; font-size: .92rem; }
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr !important; }
    .hero-art { display: none; }
    .levels, .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .duo, .donate-grid, .doc-layout { grid-template-columns: 1fr !important; }
    .toc { position: static !important; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.8rem; }
    .timetable { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
    .container { padding-inline: 1rem; }
    .hero h1 { font-size: clamp(1.55rem, 7vw, 2.2rem) !important; line-height: 1.6 !important; }
    .hero .lead { font-size: 1rem; }
    .hero .actions, .cta .actions { flex-direction: column; align-items: stretch; }
    .hero .actions .btn, .cta .actions .btn { width: 100%; justify-content: center; }
    .slogan blockquote { font-size: 1rem; }
    .stats-card { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem; }
    .levels, .features, .steps, .video-grid, .kids, .tiles, .tpl-grid, .grid-2, .grid-3, .choices, .choices-4 { grid-template-columns: 1fr !important; }
    .sec { padding-block: 3rem; }
    .sec-head h2, .page-hero h1 { font-size: clamp(1.35rem, 6vw, 1.9rem); }
    .page-hero p { font-size: .98rem; }
    .card, .panel { padding: 1.1rem; border-radius: 18px; }
    .card-narrow { padding: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr !important; text-align: start; }
    .footer-bottom { flex-direction: column; gap: .6rem; text-align: center; }
    .site-header .header-cta .btn-ghost { display: none; }
    .site-header.open .main-nav { max-height: calc(100vh - 70px); overflow-y: auto; }
    .stepper { gap: .3rem; overflow-x: auto; flex-wrap: nowrap !important; }
    .stepper .st { flex: none !important; }
    .stepper .st .t { font-size: .78rem; }
    .form-actions { flex-wrap: wrap; gap: .6rem; }
    .form-actions .btn { flex: 1 1 auto; justify-content: center; }
    .panel-head { flex-wrap: wrap; gap: .6rem; }
    .inline-row, .filter-row, .sched-row { flex-wrap: wrap; }
    .inline-row > *, .filter-row > input, .filter-row > select { flex: 1 1 100%; }
    .sched-row select, .sched-row input[type=time] { flex: 1 1 40%; min-width: 0; width: auto; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .kid-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tbl { font-size: .86rem; }
    .tbl th, .tbl td { padding: .55rem .5rem; }
    .actions { white-space: nowrap; }
    .topbar h1 { font-size: 1rem; }
    .topbar .date { display: none; }
    .content { padding: 1rem; }
    .welcome { padding: 1.3rem; }
    .welcome h2 { font-size: 1.15rem; }
    .sticky-bar { flex-wrap: wrap; }
    .sticky-bar select { flex: 1 1 100%; }
    .chat-log { max-height: 60vh; }
    .att-table .seg { flex-wrap: wrap; }
    .grade-grid input.score { width: 3.6rem; }
    .auth { grid-template-columns: 1fr !important; }
    .auth-side { display: none; }
    .video-btn { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
    .guide-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .guide-tabs > a { flex: none; }
    .shot-frame { border-radius: 12px; }
}
@media (max-width: 420px) {
    .stats-card { grid-template-columns: 1fr 1fr !important; }
    .stat b { font-size: 1.3rem; }
    .timetable { grid-template-columns: 1fr; }
    .btn { padding-inline: 1rem; }
    .brand img { max-height: 40px; width: auto; }
}
@media (hover: none) { .tt-slot:hover, .video-play:hover img { transform: none; } }
/* ROOYESH-1J-END */
