@font-face {
  font-family:Vazirmatn;
  src:url("/assets/vazirmatn-fd.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
:root {
  color-scheme:light;
  --sky-top:#52b5df; --sky-bottom:#339bd0; --gold:#f2b441; --green:#2f9e6e;
  --transparent:transparent; --page:#d8eaf5; --surface:#edf6fb; --surface-soft:#e3f0f8;
  --text:#183447; --muted:#536b7c; --line:#c4dceb; --brand:#09678e;
  --brand-soft:#e5f3fa; --on-brand:#fff; --header-top:#339bd0; --header-bottom:#146c9b;
  --header-text:#fff; --header-glass:#ffffff1c; --header-line:#ffffff40;
  --header-pattern:#ffffff0f; --header-shadow:#07395420;
  --premium-bg:#fff5df; --premium-text:#6f4b0e; --premium-line:#e8c887;
  --gold-ink:#50360b; --success-bg:#e7f5ee; --success-text:#226645;
  --exam-bg:#faf0f0; --exam-text:#873b42; --exam-line:#eed9da; --exam-badge:#c44a50;
  --toast-bg:#183447; --toast-text:#fff; --overlay:#fffffff2;
  --shadow-color:#173e5b0a; --deep-shadow:#173e5b18; --focus:#09678e;
  --sky-ink:#12678c; --sky-a:#e3f3fc; --sky-b:#f3faff; --sky-chip:#caeafa;
  --teal-ink:#196e76; --teal-a:#e1f4f4; --teal-b:#f3fbfb; --teal-chip:#c9eaea;
  --indigo-ink:#445c99; --indigo-a:#e9eefb; --indigo-b:#f6f8fe; --indigo-chip:#d9e1f7;
  --violet-ink:#65539b; --violet-a:#eeebfa; --violet-b:#f9f7fe; --violet-chip:#e0d9f5;
  --gold-a:#fff2d7; --gold-b:#fffaf0; --gold-chip:#f8e5b8;
  --forest-ink:#286c50; --forest-a:#e3f2e9; --forest-b:#f4faf6; --forest-chip:#cfe7da;
  --section-ink:var(--sky-ink); --section-a:var(--sky-a); --section-b:var(--sky-b);
  --section-chip:var(--sky-chip); --card-radius:20px;
  --shadow:0 3px 6px var(--shadow-color),0 10px 26px var(--shadow-color);
  --bottom-space:calc(104px + env(safe-area-inset-bottom,0px));
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark;
    --page:#0e1b28; --surface:#182a39; --surface-soft:#1c3041; --text:#edf5fb;
    --muted:#adc0cf; --line:#2b4153; --brand:#8ad6f5; --brand-soft:#203f55;
    --on-brand:#102b3b; --header-top:#235c7c; --header-bottom:#153e57; --header-shadow:#020a1238;
    --premium-bg:#342f24; --premium-text:#f4d598; --premium-line:#66553a;
    --success-bg:#1d3b31; --success-text:#9edab9; --exam-bg:#33262d;
    --exam-text:#efb9bf; --exam-line:#543a43; --toast-bg:#e5f3fb; --toast-text:#142e40;
    --overlay:#182a39f2; --shadow-color:#020a1224; --deep-shadow:#020a1266; --focus:#8ad6f5;
    --sky-ink:#9ddcf9; --sky-a:#1b354b; --sky-b:#192c3d; --sky-chip:#284d68;
    --teal-ink:#96dcde; --teal-a:#1b393f; --teal-b:#192e36; --teal-chip:#28535a;
    --indigo-ink:#b9c9ff; --indigo-a:#28334c; --indigo-b:#202b3e; --indigo-chip:#394967;
    --violet-ink:#cfbff4; --violet-a:#343047; --violet-b:#29293b; --violet-chip:#4a4161;
    --gold-a:#3b3427; --gold-b:#2e2c27; --gold-chip:#55472d;
    --forest-ink:#a2ddbb; --forest-a:#203c33; --forest-b:#1d302c; --forest-chip:#305744;
  }
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --page:#0e1b28; --surface:#182a39; --surface-soft:#1c3041; --text:#edf5fb;
  --muted:#adc0cf; --line:#2b4153; --brand:#8ad6f5; --brand-soft:#203f55;
  --on-brand:#102b3b; --header-top:#235c7c; --header-bottom:#153e57; --header-shadow:#020a1238;
  --premium-bg:#342f24; --premium-text:#f4d598; --premium-line:#66553a;
  --success-bg:#1d3b31; --success-text:#9edab9; --exam-bg:#33262d;
  --exam-text:#efb9bf; --exam-line:#543a43; --toast-bg:#e5f3fb; --toast-text:#142e40;
  --overlay:#182a39f2; --shadow-color:#020a1224; --deep-shadow:#020a1266; --focus:#8ad6f5;
  --sky-ink:#9ddcf9; --sky-a:#1b354b; --sky-b:#192c3d; --sky-chip:#284d68;
  --teal-ink:#96dcde; --teal-a:#1b393f; --teal-b:#192e36; --teal-chip:#28535a;
  --indigo-ink:#b9c9ff; --indigo-a:#28334c; --indigo-b:#202b3e; --indigo-chip:#394967;
  --violet-ink:#cfbff4; --violet-a:#343047; --violet-b:#29293b; --violet-chip:#4a4161;
  --gold-a:#3b3427; --gold-b:#2e2c27; --gold-chip:#55472d;
  --forest-ink:#a2ddbb; --forest-a:#203c33; --forest-b:#1d302c; --forest-chip:#305744;
}
[data-section="books"],[data-section="default"] { --section-ink:var(--sky-ink); --section-a:var(--sky-a); --section-b:var(--sky-b); --section-chip:var(--sky-chip); }
[data-section="videos"] { --section-ink:var(--teal-ink); --section-a:var(--teal-a); --section-b:var(--teal-b); --section-chip:var(--teal-chip); }
[data-section="notes"] { --section-ink:var(--indigo-ink); --section-a:var(--indigo-a); --section-b:var(--indigo-b); --section-chip:var(--indigo-chip); }
[data-section="exams"] { --section-ink:var(--violet-ink); --section-a:var(--violet-a); --section-b:var(--violet-b); --section-chip:var(--violet-chip); }
[data-section="events"] { --section-ink:var(--premium-text); --section-a:var(--gold-a); --section-b:var(--gold-b); --section-chip:var(--gold-chip); }
[data-section="finals"] { --section-ink:var(--forest-ink); --section-a:var(--forest-a); --section-b:var(--forest-b); --section-chip:var(--forest-chip); }
* { box-sizing:border-box; }
html { min-width:280px; min-height:100%; background:var(--page); }
body { margin:0; background:var(--page); color:var(--text); font:14px/1.8 Vazirmatn,system-ui,sans-serif; -webkit-tap-highlight-color:var(--transparent); }
button,input { font:inherit; color:inherit; }
button { cursor:pointer; }
button,a,input { touch-action:manipulation; transition:transform 180ms ease,opacity 180ms ease,background-color 180ms ease,border-color 180ms ease; }
a { color:inherit; text-decoration:none; }
svg { width:24px; height:24px; flex-shrink:0; }
button:active,.section-card:active,.course-card:active,.resource-row:active,.premium-banner:active,.exam-banner:active,.tab-bar a:active { transform:scale(.975); opacity:.88; }
button:disabled { cursor:default; opacity:.65; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
main:focus { outline:none; }
h1,h2,h3,p { margin:0; }
h1 { font-size:23px; font-weight:850; line-height:1.6; overflow-wrap:anywhere; }
h2 { font-size:17px; font-weight:750; }
h3 { font-size:15px; font-weight:750; }
small { font-size:12px; }
.app-shell { width:100%; max-width:520px; margin-inline:auto; }
.brand-header { position:relative; isolation:isolate; overflow:hidden; display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:112px; padding:calc(22px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 26px max(20px,env(safe-area-inset-left,0px)); border-radius:0 0 28px 28px; background:linear-gradient(120deg,var(--header-bottom),var(--header-top)); color:var(--header-text); box-shadow:0 8px 24px var(--header-shadow); }
.brand-header::before { content:""; position:absolute; z-index:-1; pointer-events:none; border:1px solid var(--header-line); border-radius:50%; width:190px; height:190px; left:-40px; top:-95px; box-shadow:0 0 0 24px var(--header-pattern),0 0 0 49px var(--header-pattern); }
.brand { display:flex; align-items:center; gap:12px; min-width:0; }
.brand img { width:51px; height:52px; flex:none; object-fit:contain; background:transparent; border:0; border-radius:0; box-shadow:none; }
.brand strong { display:block; font-size:23px; line-height:1.5; font-weight:850; }
.tagline { display:block; margin-top:3px; font-size:12px; font-weight:500; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex-shrink:0; padding:10px; border:1px solid var(--line); border-radius:15px; background:var(--surface-soft); }
.brand-header .icon-button { color:var(--header-text); border-color:var(--header-line); background:var(--header-glass); backdrop-filter:blur(12px); }
.header-actions { display:flex; align-items:center; gap:7px; flex-shrink:0; }
.header-avatar { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--header-line); border-radius:50%; background:var(--header-glass); }
.profile-nudge { display:flex; align-items:center; gap:10px; margin-top:14px; padding:12px; border:1px solid var(--line); border-radius:16px; background:var(--brand-soft); color:var(--brand); }
.profile-nudge a { flex:1; font-size:13px; font-weight:650; }
.profile-nudge button { width:40px; height:40px; border:0; border-radius:10px; color:inherit; background:transparent; font-size:22px; }
main { min-height:calc(100dvh - 112px); padding:24px max(20px,env(safe-area-inset-right,0px)) calc(var(--bottom-space) + 24px) max(20px,env(safe-area-inset-left,0px)); }
.page-heading { margin-bottom:18px; }
.page-heading p { margin-top:5px; color:var(--muted); }
.page-heading .eyebrow { margin-bottom:3px; color:var(--brand); font-size:12px; font-weight:650; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:26px 0 13px; }
.section-heading small { color:var(--muted); font-size:11px; }
.search-box { display:flex; align-items:center; gap:10px; min-height:60px; padding:7px 12px; border:1px solid var(--line); border-radius:19px; background:linear-gradient(120deg,var(--surface),var(--surface-soft)); box-shadow:var(--shadow); }
.search-box > svg { width:23px; height:23px; color:var(--brand); }
.search-box:focus-within { outline:2px solid var(--focus); outline-offset:3px; }
.search-box input { width:100%; min-width:0; min-height:44px; padding:6px 0; border:0; outline:none; background:transparent; color:var(--text); font-size:13px; }
.search-box input::placeholder { color:var(--muted); opacity:1; }
.search-box input:focus-visible { outline:none; }
.search-box .icon-button { background:var(--brand-soft); color:var(--brand); border:0; }
.search-box .icon-button svg { width:18px; height:18px; }
.section-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.section-card { position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; min-width:0; min-height:172px; padding:17px; border:1px solid var(--line); border-radius:var(--card-radius); background:linear-gradient(145deg,var(--section-a),var(--section-b)); box-shadow:var(--shadow); }
.section-card::before { content:""; position:absolute; z-index:-1; left:-34px; top:-34px; width:116px; height:116px; border:18px solid var(--section-ink); border-radius:50%; opacity:.055; pointer-events:none; }
.section-icon,.row-icon { display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; flex-shrink:0; border-radius:15px; background:linear-gradient(140deg,var(--section-chip),var(--section-a)); color:var(--section-ink); }
.section-icon { width:52px; height:52px; border-radius:17px; }
.section-icon svg { width:31px; height:31px; }
.icon-wash { fill:currentColor; stroke:none; opacity:.16; }
.section-card strong { margin-top:13px; margin-bottom:8px; font-size:14px; line-height:1.7; font-weight:750; overflow-wrap:anywhere; }
.count-pill,.session-pill { display:inline-flex; align-items:center; gap:4px; min-height:24px; padding:2px 9px; border-radius:999px; color:var(--section-ink); background:var(--section-chip); font-size:10px; font-weight:650; }
.section-card .count-pill { margin-top:auto; }
.course-scroller { display:flex; gap:13px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; padding:4px 2px 16px; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.course-card { width:258px; max-width:88%; flex-shrink:0; scroll-snap-align:start; display:block; padding:17px; border:1px solid var(--line); border-radius:var(--card-radius); background:linear-gradient(150deg,var(--surface),var(--section-b)); box-shadow:var(--shadow); }
.course-top { display:flex; align-items:center; gap:9px; color:var(--section-ink); font-size:11px; margin-bottom:13px; }
.course-top .row-icon { width:35px; height:35px; border-radius:12px; }
.course-top svg { width:21px; height:21px; }
.course-card h3 { min-height:48px; line-height:1.65; overflow-wrap:anywhere; }
.course-details { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; margin-top:7px; }
.course-card p { color:var(--muted); font-size:11px; }
.progress-caption { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:11px; margin-top:19px; }
progress { display:block; width:100%; height:8px; margin-top:8px; border:0; border-radius:999px; overflow:hidden; background:var(--section-chip); accent-color:var(--brand); }
progress::-webkit-progress-bar { background:var(--section-chip); border-radius:999px; }
progress::-webkit-progress-value { background:linear-gradient(90deg,var(--sky-top),var(--section-ink)); border-radius:999px; }
progress::-moz-progress-bar { background:linear-gradient(90deg,var(--sky-top),var(--section-ink)); border-radius:999px; }
.premium-banner,.exam-banner { display:flex; align-items:center; gap:12px; padding:14px; margin-top:14px; border:1px solid var(--premium-line); border-radius:18px; background:var(--premium-bg); color:var(--premium-text); min-height:72px; }
.premium-banner { background:linear-gradient(125deg,var(--premium-bg),var(--gold-b)); }
.premium-banner > svg:first-child { width:30px; height:30px; }
.premium-banner > span,.exam-banner > span:last-of-type { min-width:0; }
.premium-banner > svg:last-child,.exam-banner > svg { width:18px; height:18px; margin-inline-start:auto; }
.premium-banner strong,.exam-banner strong { display:block; font-size:14px; }
.premium-banner small,.exam-banner small { display:block; font-size:11px; margin-top:2px; }
.exam-banner { background:var(--exam-bg); color:var(--exam-text); border-color:var(--exam-line); }
.exam-logo { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:15px; background:var(--exam-badge); }
.exam-logo img { width:34px; height:36px; object-fit:contain; }
.exam-banner.game-banner { background:var(--premium-bg); color:var(--premium-text); border-color:var(--premium-line); margin-top:10px; }
.game-badge { width:44px; height:44px; border-radius:12px; flex:none; display:grid; place-items:center; background:var(--gold); color:var(--gold-ink); }
.game-badge svg { width:24px; height:24px; margin:0; }
.exam-banner.study-banner { margin-top:10px; background:linear-gradient(125deg,var(--forest-a),var(--teal-b)); color:var(--forest-ink); border-color:var(--forest-chip); }
.study-badge { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; flex:none; background:#2f9e6e; color:#fff; }
.study-badge svg { width:24px; height:24px; margin:0; }
.study-due { display:inline-block; margin-top:5px; padding:2px 8px; border-radius:999px; background:var(--forest-chip); color:var(--forest-ink); font-size:10px; }
.breadcrumb { margin-bottom:15px; }
.breadcrumb ol { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:2px; }
.breadcrumb li { display:inline-flex; align-items:center; min-width:0; font-size:12px; color:var(--muted); }
.breadcrumb a { display:inline-flex; align-items:center; min-height:44px; padding:2px 7px; color:var(--brand); border-radius:10px; overflow-wrap:anywhere; }
.breadcrumb li:last-child span { padding:2px 7px; overflow-wrap:anywhere; }
.breadcrumb svg { width:13px; height:13px; }
.resource-list { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--card-radius); background:var(--surface); box-shadow:var(--shadow); }
.resource-list:empty { display:none; }
.resource-row { position:relative; display:flex; align-items:center; gap:12px; min-width:0; min-height:84px; padding:16px 14px; border-radius:12px; scroll-margin-top:20px; content-visibility:auto; contain-intrinsic-size:auto 84px; }
.resource-row + .resource-row::before { content:""; position:absolute; top:0; inset-inline-start:72px; inset-inline-end:14px; height:1px; background:var(--line); }
.row-body { flex:1; min-width:0; }
.row-title { display:block; font-weight:700; font-size:13px; line-height:1.85; overflow-wrap:anywhere; }
.row-meta { display:block; color:var(--muted); font-size:11px; margin-top:3px; overflow-wrap:anywhere; }
.row-chevron { color:var(--section-ink); width:17px; height:17px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:9px 14px; border:1px solid transparent; border-radius:13px; background:var(--brand); color:var(--on-brand); font-size:12px; font-weight:650; text-align:center; }
.button svg { width:18px; height:18px; }
.button.secondary { background:var(--surface); color:var(--brand); border-color:var(--line); }
.button.download { background:var(--section-a); color:var(--section-ink); padding-inline:11px; flex-shrink:0; }
.button.saved { background:var(--success-bg); color:var(--success-text); border-color:var(--green); }
.course-header { padding:22px; margin-bottom:22px; border-radius:var(--card-radius); background:linear-gradient(135deg,var(--section-a),var(--section-b)); border:1px solid var(--line); box-shadow:var(--shadow); }
.course-header h1 { font-size:20px; margin-top:12px; }
.course-header p { color:var(--muted); font-size:12px; margin-top:7px; }
.course-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:19px; }
.course-actions .button { flex:1 1 160px; }
.count-note { color:var(--muted); font-size:12px; margin-bottom:12px; }
.empty-state { text-align:center; padding:32px 16px; border:1px solid var(--line); border-radius:var(--card-radius); background:linear-gradient(150deg,var(--surface),var(--surface-soft)); margin-top:16px; }
.empty-state > svg { width:112px; height:88px; color:var(--brand); margin-bottom:10px; }
.empty-state h2 { font-size:17px; }
.empty-state p { max-width:280px; margin:8px auto 20px; color:var(--muted); font-size:13px; }
.chip-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.chip { min-height:44px; padding:8px 14px; background:var(--surface); color:var(--brand); border:1px solid var(--line); border-radius:999px; font-size:12px; box-shadow:var(--shadow); }
.text-button { min-height:44px; padding:6px 8px; color:var(--brand); border:0; border-radius:10px; background:transparent; font-size:12px; }
mark { background:var(--premium-bg); color:var(--premium-text); border-radius:4px; padding-inline:2px; }
.search-results { margin-top:20px; }
.saved-card { padding:17px; background:var(--surface); border:1px solid var(--line); border-radius:var(--card-radius); box-shadow:var(--shadow); }
.saved-card + .saved-card { margin-top:12px; }
.saved-card > a { display:flex; align-items:center; gap:12px; min-height:60px; }
.saved-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:13px; padding-top:13px; border-top:1px solid var(--line); }
.premium-intro { padding:24px 20px; background:linear-gradient(145deg,var(--premium-bg),var(--gold-b)); color:var(--premium-text); border:1px solid var(--premium-line); border-radius:var(--card-radius); text-align:center; }
.premium-intro > svg { width:40px; height:40px; margin-bottom:8px; }
.premium-intro p { margin-top:8px; font-size:13px; }
.feature-list { list-style:none; margin:20px 0 24px; padding:0; display:grid; gap:11px; }
.feature-list li { display:flex; align-items:center; gap:10px; font-size:13px; }
.feature-list svg { color:var(--success-text); width:21px; height:21px; }
.plans { display:grid; gap:14px; }
.plan { padding:20px; border:1px solid var(--line); border-radius:var(--card-radius); background:var(--surface); box-shadow:var(--shadow); }
.plan.best { border:2px solid var(--premium-line); background:var(--premium-bg); }
.plan-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:13px; }
.badge { display:inline-flex; align-items:center; min-height:27px; padding:2px 9px; border-radius:9px; font-size:11px; font-weight:700; background:var(--premium-bg); color:var(--premium-text); }
.best .badge { background:var(--gold); color:var(--gold-ink); }
.old-price { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-bottom:5px; color:var(--muted); font-size:12px; }
.price { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.price strong { font-size:27px; line-height:1.7; font-weight:850; }
.price span { font-size:12px; color:var(--muted); }
.plan .button { width:100%; margin-top:15px; background:var(--premium-bg); color:var(--premium-text); border-color:var(--premium-line); }
.plan.best .button { background:var(--gold); color:var(--gold-ink); }
.demo-note { text-align:center; font-size:12px; color:var(--muted); margin-top:18px; }
.tab-bar { position:fixed; z-index:10; bottom:calc(12px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); width:calc(100% - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)); max-width:480px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:7px; border:1px solid var(--line); border-radius:24px; background:var(--overlay); box-shadow:0 4px 12px var(--shadow-color),0 12px 36px var(--deep-shadow); will-change:transform; }
.tab-bar a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:58px; color:var(--muted); border-radius:18px; font-size:11px; }
.tab-bar a[aria-current="page"] { color:var(--brand); background:var(--brand-soft); font-weight:750; }
.tab-bar svg { width:22px; height:22px; }
.toast { position:fixed; z-index:20; bottom:calc(var(--bottom-space) + 12px); left:50%; transform:translate(-50%,8px); width:max-content; max-width:min(440px,calc(100% - 32px)); padding:12px 18px; border-radius:14px; background:var(--toast-bg); color:var(--toast-text); box-shadow:var(--shadow); font-size:12px; text-align:center; pointer-events:none; opacity:0; transition:opacity 180ms ease,transform 180ms ease; }
.toast.visible { opacity:1; transform:translate(-50%,0); }
.skip-link { position:fixed; top:8px; right:8px; z-index:30; padding:10px 16px; border-radius:12px; background:var(--surface); color:var(--brand); transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.noscript { margin:24px auto; padding:20px; max-width:480px; }
.pagination { display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:18px; }
.pagination p { color:var(--muted); font-size:12px; }
.loading-status { color:var(--muted); margin-bottom:14px; }
.skeleton-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.skeleton { min-height:84px; border-radius:var(--card-radius); margin-bottom:12px; background:linear-gradient(110deg,var(--line) 20%,var(--surface-soft) 40%,var(--line) 60%); background-size:240% 100%; animation:shimmer 1.4s ease infinite; }
.skeleton-grid .skeleton { min-height:172px; }
@keyframes shimmer { to { background-position:-240% 0; } }
[hidden] { display:none!important; }
@media(hover:hover) {
  .section-card:hover,.course-card:hover { transform:translateY(-2px); border-color:var(--section-ink); }
  a.resource-row:hover { background:var(--section-b); }
  .chip:hover,.text-button:hover { background:var(--brand-soft); }
}
@media(min-width:521px) { .app-shell { box-shadow:0 0 45px var(--shadow-color); } }
@media(max-width:359px) {
  main,.brand-header { padding-inline:14px; }
  .brand { gap:9px; }
  .brand strong { font-size:21px; }
  .tagline { font-size:11px; }
  .brand-header { flex-wrap:wrap; }
  .header-actions { margin-inline-start:auto; }
  .section-card { padding:14px; }
  .section-card strong { font-size:13px; }
  .resource-row { gap:8px; padding:13px 10px; }
  .resource-row .row-icon { width:38px; height:42px; }
  .resource-row + .resource-row::before { inset-inline-start:56px; inset-inline-end:10px; }
  .button.download { padding-inline:8px; }
  .tab-bar { gap:2px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
  .section-card:hover,.course-card:hover,button:active,.section-card:active,.course-card:active,.resource-row:active,.premium-banner:active,.exam-banner:active,.tab-bar a:active { transform:none; }
}

/* طرحِ درسِ جلسه زیرِ عنوانِ پوشه یا فایل */
.row-note{display:block;margin-top:3px;font-size:12.5px;line-height:1.7;color:var(--text);opacity:.82;white-space:normal;overflow-wrap:anywhere}

/* Illustrated home entries retain the shared icon/text/chevron layout. */
.study-badge.village-home-art,.study-badge.hall-home-art{width:48px;height:48px;overflow:visible;background:linear-gradient(145deg,#5b9e6a,#28664b)}
.village-home-art img{width:49px;height:55px;object-fit:contain;filter:drop-shadow(0 3px 2px #173d3a44)}
.hall-home-art svg{width:42px;height:42px}

/* Keep focused controls above the fixed navigation and device insets. */
html{scroll-padding-block:calc(16px + env(safe-area-inset-top)) calc(110px + env(safe-area-inset-bottom))}
main a[href="#notebook"],.profile-card a[href="/game/village.html"]{display:inline-flex;align-items:center;min-height:44px}

.resume-card{position:relative;margin-bottom:20px;padding:18px;padding-inline-end:52px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--surface);box-shadow:var(--shadow)}
.resume-card strong{display:block;font-size:15px}
.resume-card p{margin:8px 0 14px;color:var(--muted);font-size:13px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.resume-close{position:absolute;inset-inline-end:5px;top:5px;min-width:44px;min-height:44px}

.beta-badge { display:inline-block; margin-inline-start:6px; padding:2px 9px; border-radius:999px; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.35); color:#fff; font-size:11px; font-weight:700; line-height:1.7; vertical-align:middle; }

/* Home design system: 4px rhythm; cards 20, controls 16, icon wells 12.
   Dedicated tokens keep the remaining screens' palettes independent. */
:root {
  --home-page:#f3f6f8; --home-surface:#ffffff; --home-soft:#eaf2f6;
  --home-ink:#18313f; --home-muted:#5d707c; --home-line:#dce5ea;
  --home-accent:#09678e; --home-header:#105575; --home-header-end:#0b4563;
  --home-shadow:#122f4010;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    --home-page:#101b24; --home-surface:#192832; --home-soft:#223b4a;
    --home-ink:#edf4f8; --home-muted:#afc1cc; --home-line:#30434f;
    --home-accent:#8ad6f5; --home-header:#183d52; --home-header-end:#122e40;
    --home-shadow:#00000030;
  }
}
:root[data-theme=dark] {
  --home-page:#101b24; --home-surface:#192832; --home-soft:#223b4a;
  --home-ink:#edf4f8; --home-muted:#afc1cc; --home-line:#30434f;
  --home-accent:#8ad6f5; --home-header:#183d52; --home-header-end:#122e40;
  --home-shadow:#00000030;
}
html:has(.home-heading),body:has(.home-heading) { background:var(--home-page); }
.catalog-header {
  display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:16px;
  padding:calc(20px + env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right,0px)) 24px max(24px,env(safe-area-inset-left,0px));
  border-radius:0 0 24px 24px; box-shadow:none;
  background:linear-gradient(125deg,var(--home-header),var(--home-header-end));
}
.catalog-header::before {
  width:240px; height:240px; left:-100px; top:-112px;
  border:1px solid #ffffff1c; box-shadow:0 0 0 32px #ffffff05,0 0 0 64px #ffffff05;
}
.catalog-header .brand { grid-column:1; grid-row:1; gap:12px; }
.catalog-header .brand img { width:48px; height:52px; }
.catalog-header .brand > span { min-width:0; flex:1; }
.catalog-header .brand strong { display:grid; justify-items:start; gap:4px; font-size:24px; line-height:1.6; }
.catalog-header .beta-badge { margin:0; padding:2px 8px; font-size:10px; font-weight:500; background:#ffffff0d; border-color:#ffffff30; }
.catalog-header .tagline { margin-top:8px; font-size:12px; color:#e0edf4; }
.catalog-header .header-actions { grid-column:2; grid-row:1; flex-direction:column; gap:8px; margin:0; align-self:center; }
.catalog-header .icon-button,.catalog-header .header-avatar {
  width:44px; height:44px; min-height:44px; border-radius:16px;
  background:#ffffff12; border:1px solid #ffffff30; box-shadow:none; backdrop-filter:none;
}
.catalog-header .rh-motion-gradient { display:none; }
main:has(.home-heading) {
  --text:var(--home-ink); --muted:var(--home-muted); --line:var(--home-line);
  --surface:var(--home-surface); --surface-soft:var(--home-soft);
  --brand:var(--home-accent); --brand-soft:var(--home-soft);
  padding-top:24px; color:var(--home-ink);
}
.home-heading { margin-bottom:16px; }
.home-heading .eyebrow { margin:0 0 4px; font-size:12px; font-weight:500; color:var(--home-muted); }
.home-heading h1 { font-size:26px; line-height:1.6; font-weight:800; }
main:has(.home-heading) .search-box {
  gap:8px; min-height:64px; padding:8px 12px; border-radius:16px;
  background:var(--home-surface); box-shadow:none;
}
main:has(.home-heading) .search-box #search-input {
  flex:1; width:0; max-width:100%; min-height:48px; padding:8px 0;
  border:0; border-radius:0; background:transparent; font-size:16px; box-shadow:none;
}
main:has(.home-heading) .search-box input::placeholder { font-size:13px; }
main:has(.home-heading) .search-box .icon-button {
  width:44px; height:44px; min-height:44px; padding:12px; border-radius:12px;
  color:var(--home-accent); background:var(--home-soft); box-shadow:none;
}
main:has(.home-heading) .exam-banner,main:has(.home-heading) .premium-banner {
  min-height:88px; margin-top:12px; padding:16px; gap:12px;
  border:1px solid var(--home-line); border-radius:20px;
  background:var(--home-surface); color:var(--home-ink); box-shadow:none;
}

main:has(.home-heading) .exam-banner strong,main:has(.home-heading) .premium-banner strong { font-size:15px; line-height:1.7; font-weight:750; }
main:has(.home-heading) .exam-banner small,main:has(.home-heading) .premium-banner small { margin-top:4px; font-size:12px; line-height:1.8; color:var(--home-muted); }
main:has(.home-heading) .exam-banner > span:last-of-type,main:has(.home-heading) .premium-banner > span:not(.home-entry-icon) { flex:1; }
main:has(.home-heading) .exam-banner > svg,main:has(.home-heading) .premium-banner > svg:last-child { width:16px; height:16px; color:var(--home-muted); }
main:has(.home-heading) :is(.study-badge,.game-badge,.exam-logo) {
  width:48px; height:48px; border-radius:12px; background:var(--home-soft); color:var(--home-accent);
}
main:has(.home-heading) .village-home-art img { filter:none; }
main:has(.home-heading) .section-heading { margin:32px 0 16px; gap:12px; }
main:has(.home-heading) .section-heading h2 { font-size:18px; font-weight:800; }
main:has(.home-heading) .section-heading small { font-size:11px; }
main:has(.home-heading) .section-grid { gap:12px; }
main:has(.home-heading) .section-card {
  min-height:0; padding:16px; border:1px solid var(--section-chip); border-radius:20px;
  background:var(--section-b); box-shadow:none;
}
main:has(.home-heading) .section-card::before { display:none; }
main:has(.home-heading) .section-icon { width:48px; height:48px; border-radius:12px; background:var(--section-a); }
main:has(.home-heading) .section-icon svg { width:28px; height:28px; }
main:has(.home-heading) .section-card strong { margin:12px 0 8px; font-size:15px; line-height:1.75; }
main:has(.home-heading) .section-card .count-pill {
  min-height:24px; margin-top:0; padding:2px 8px; border-radius:8px; background:var(--section-chip); color:var(--section-ink);
  font-size:12px; font-weight:500; font-variant-numeric:tabular-nums;
}
main:has(.home-heading) .course-card { padding:16px; background:var(--home-surface); box-shadow:none; }
main:has(.home-heading) .empty-state { padding:24px 16px; background:var(--home-surface); }
main:has(.home-heading) .empty-state > svg { width:80px; height:64px; }
main:has(.home-heading) .empty-state p { margin-bottom:0; }
main:has(.home-heading) .premium-banner { background:var(--premium-bg); border-color:var(--premium-line); }
main:has(.home-heading) .premium-banner strong,main:has(.home-heading) .premium-banner > svg:first-child { color:var(--premium-text); }
main:has(.home-heading) .profile-nudge { padding:12px; gap:8px; border-radius:16px; }
main:has(.home-heading) .profile-nudge button { min-width:44px; min-height:44px; box-shadow:none; }
main:has(.home-heading) .resume-card { background:var(--home-surface); box-shadow:none; }
main:has(.home-heading) .skeleton-grid .skeleton { min-height:154px; margin:0; border-radius:20px; }
/* The shared shimmer moves a background; home uses a static placeholder instead. */
main:has(.home-heading) .skeleton { animation:none; background:var(--home-line); }
.catalog-tabs {
  bottom:0; width:100%; max-width:520px; gap:4px;
  padding:8px max(16px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  border:0; border-top:1px solid var(--home-line); border-radius:0;
  background:var(--home-surface); box-shadow:none; backdrop-filter:none;
}
.tab-bar.catalog-tabs a { min-height:56px; gap:4px; font-size:11px; color:var(--home-muted); }
.tab-bar.catalog-tabs a[aria-current=page] { color:var(--home-accent); box-shadow:none; background:var(--home-soft); }
.catalog-tabs .rh-motion-pill { display:none; }
.catalog-tabs.rh-motion-nav > a[aria-current=page] { background:var(--home-soft)!important; }
.catalog-tabs svg { width:24px; height:24px; }
main:has(.home-heading) :is(a,button,input),.catalog-header :is(a,button),.tab-bar.catalog-tabs a { transition:transform 120ms ease-out,opacity 120ms ease-out; }
@media (max-width:359px) {
  .catalog-header { padding-inline:16px; }
  .catalog-header .brand strong { font-size:22px; }
  main:has(.home-heading) .section-card { padding:12px; }
  main:has(.home-heading) .exam-banner,main:has(.home-heading) .premium-banner { padding:12px; gap:8px; }
  main:has(.home-heading) .section-heading { flex-wrap:wrap; gap:4px 12px; }
}

/* Home entry identities reuse the section palette in all three theme modes. */
main:has(.home-heading) :is(.exam-banner,.premium-banner) {
  --entry-ink:var(--sky-ink); --entry-surface:var(--sky-b); --entry-tile:var(--sky-chip);
  background:var(--entry-surface); border-color:var(--entry-tile);
  border-inline-start:3px solid var(--entry-tile);
}
main:has(.home-heading) .home-tone-exam {
  --entry-ink:var(--exam-text); --entry-surface:var(--exam-bg); --entry-tile:var(--exam-line);
}
main:has(.home-heading) .home-tone-forest {
  --entry-ink:var(--forest-ink); --entry-surface:var(--forest-b); --entry-tile:var(--forest-chip);
}
main:has(.home-heading) .home-tone-gold {
  --entry-ink:var(--premium-text); --entry-surface:var(--gold-b); --entry-tile:var(--gold-chip);
}
main:has(.home-heading) .home-tone-violet {
  --entry-ink:var(--violet-ink); --entry-surface:var(--violet-b); --entry-tile:var(--violet-chip);
}
main:has(.home-heading) .home-tone-indigo {
  --entry-ink:var(--indigo-ink); --entry-surface:var(--indigo-b); --entry-tile:var(--indigo-chip);
}
main:has(.home-heading) :is(.study-badge,.game-badge,.exam-logo,.home-entry-icon) {
  display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px;
  border-radius:12px; background:var(--entry-tile); color:var(--entry-ink); overflow:hidden;
}
main:has(.home-heading) .exam-logo { background:var(--exam-badge); }
main:has(.home-heading) .home-entry-icon svg { width:26px; height:26px; }
main:has(.home-heading) :is(.exam-banner,.premium-banner) strong { color:var(--entry-ink); }
main:has(.home-heading) .study-due { background:var(--entry-tile); color:var(--entry-ink); }
main:has(.home-heading) .village-home-art img { width:42px; height:44px; object-fit:contain; }

/* Theme-neutral art slot. The SVG stays visible if an image fails. */
.skin-icon { position:relative; display:inline-grid; place-items:center; width:48px; height:48px; flex-shrink:0; vertical-align:middle; }
.skin-icon > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.skin-icon > svg { width:60%; height:60%; }
.skin-icon-loaded > svg { visibility:hidden; }

/* پریمیومِ ربات در مینی‌اپ (۲۰۲۶-۱۱-۰۵) */
.premium-member{margin:10px auto 0;padding:8px 12px;border-radius:12px;background:color-mix(in srgb,var(--accent,#d4a24c) 18%,transparent);font-weight:600;max-width:32rem}
.premium-lock{text-align:center;padding:18px 12px;display:grid;gap:12px;justify-items:center}
/* پریمیومِ فعال: کارتِ جشن (۲۰۲۶-۱۱-۰۵) */
.premium-intro.is-member{position:relative;overflow:hidden;box-shadow:0 0 0 1px var(--premium-line),0 10px 40px -12px color-mix(in srgb,#f4c15a 55%,transparent)}
.premium-intro.is-member > :is(svg,.skin-icon){animation:prem-glow 2.4s ease-in-out 2;filter:drop-shadow(0 0 14px color-mix(in srgb,#f4c15a 70%,transparent))}
.premium-chip{display:inline-block;margin-top:12px;padding:7px 16px;border-radius:999px;font-weight:700;font-size:14px;background:linear-gradient(135deg,#f6d27a,#c8962f);color:#2b1d05;box-shadow:0 4px 14px -6px #c8962f}
.premium-soon{margin:10px auto 0;font-size:13px;font-weight:600;color:var(--premium-text);opacity:.95}
.prem-sparkles{position:absolute;inset:0;pointer-events:none}
.prem-sparkles i{position:absolute;width:6px;height:6px;border-radius:50%;background:#ffe39a;box-shadow:0 0 8px #ffd56b;opacity:0;animation:prem-spark 1.8s ease-out forwards}
.prem-sparkles i:nth-child(1){top:18%;left:22%;animation-delay:.1s}.prem-sparkles i:nth-child(2){top:12%;right:24%;animation-delay:.35s}
.prem-sparkles i:nth-child(3){top:34%;left:12%;animation-delay:.6s}.prem-sparkles i:nth-child(4){top:30%;right:12%;animation-delay:.2s}
.prem-sparkles i:nth-child(5){top:8%;left:46%;animation-delay:.8s}.prem-sparkles i:nth-child(6){top:42%;right:30%;animation-delay:1s}
@keyframes prem-spark{0%{opacity:0;transform:scale(.2) translateY(6px)}40%{opacity:1;transform:scale(1.3)}100%{opacity:0;transform:scale(.6) translateY(-14px)}}
@keyframes prem-glow{50%{transform:scale(1.06);filter:drop-shadow(0 0 22px color-mix(in srgb,#f4c15a 90%,transparent))}}
@media (prefers-reduced-motion:reduce){.prem-sparkles{display:none}.premium-intro.is-member > :is(svg,.skin-icon){animation:none}}

/* راهنمای «فایل در چتِ ربات است» (app.js botHint) */
.rh-bothint{position:fixed;inset:0;z-index:9999;background:rgba(4,12,8,.72);display:flex;align-items:center;justify-content:center;padding:24px 16px;animation:rhbhIn .2s ease-out}
.rh-bothint-card{width:min(360px,100%);background:linear-gradient(180deg,#24402c,#16291d);border:2px solid #e8be5c;border-radius:22px;padding:26px 20px 20px;text-align:center;color:#f6ecd2;box-shadow:0 18px 50px rgba(0,0,0,.55)}
.rh-bothint-icon{font-size:54px;line-height:1;margin-bottom:10px}
.rh-bothint-card strong{display:block;font-size:22px;color:#f3d58a;margin-bottom:10px}
.rh-bothint-card p{font-size:17px;line-height:1.9;margin:0 0 18px}
.rh-bothint-chev{display:inline-flex;align-items:center;justify-content:center;width:34px;height:28px;border-radius:14px;background:#e8be5c;color:#1a2a1f;font-weight:800;vertical-align:middle;margin:0 2px}
.rh-bothint-card button{width:100%;padding:13px;border:0;border-radius:14px;background:#e8be5c;color:#1a2a1f;font:inherit;font-size:17px;font-weight:700}
.rh-bothint-arrow{display:none;position:fixed;right:45px;top:calc(var(--rh-top,0px) + 4px);width:52px;height:78px;fill:none;stroke:#f3d58a;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6));animation:rhbhBob 1s ease-in-out infinite}
html.rh-fs .rh-bothint-arrow{display:block}
@keyframes rhbhBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes rhbhIn{from{opacity:0}to{opacity:1}}
/* پنلِ من (panel.js، ۲۰۲۶-۱۱-۱۰) */
.pnl-who { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:8px; }
.pnl-chip { padding:6px 14px; border-radius:999px; background:#e8c878; color:#1d2a1f; font-weight:800; font-size:14px; }
.pnl-change { color:#e8c878; font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.pnl-subj { padding:14px; margin-top:10px; border-radius:18px; background:var(--surface); border:1px solid var(--line); }
.pnl-subj-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pnl-subj-head h3 { margin:0; font-size:17px; }
.pnl-edit { flex:none; padding:7px 14px; border-radius:12px; border:1px solid rgba(232,200,120,.5); color:#e8c878; font-size:13px; font-weight:700; text-decoration:none; }
.pnl-course { margin-top:10px; padding:12px; border-radius:14px; background:rgba(0,0,0,.18); border:1px solid rgba(232,200,120,.2); }
.pnl-course-head { display:flex; flex-direction:column; gap:2px; color:inherit; text-decoration:none; }
.pnl-course-t { font-weight:800; }
.pnl-course-m { font-size:13px; opacity:.75; }
.pnl-actions { display:flex; gap:8px; margin-top:10px; }
.pnl-actions > .button { flex:1; min-height:44px; justify-content:center; }
.pnl-general { margin-top:12px; }
.pnl-general > summary { cursor:pointer; padding:12px 14px; border-radius:16px; border:1px dashed rgba(232,200,120,.45); color:#e8c878; font-weight:700; list-style:none; }
.pnl-general > summary::-webkit-details-marker { display:none; }
.pnl-series { display:flex; gap:8px; flex-wrap:wrap; }
.pnl-ser, .pnl-opt { min-height:44px; padding:0 16px; border-radius:14px; border:1px solid rgba(232,200,120,.45); background:transparent; color:inherit; font:inherit; font-weight:700; cursor:pointer; }
.pnl-ser.on, .pnl-opt.on { background:#e8c878; color:#1d2a1f; border-color:#e8c878; }
.pnl-hint { opacity:.8; line-height:1.9; margin:12px 2px; }
.pnl-exam { display:flex; align-items:center; gap:10px; margin-top:10px; padding:12px; border-radius:14px; background:var(--surface); border:1px solid var(--line); }
.pnl-exam-t { flex:1; min-width:0; font-weight:700; line-height:1.7; }
.pnl-exam-t small { display:block; font-weight:400; opacity:.7; }
.pnl-exam > .button { flex:none; min-height:42px; padding:0 18px; }
.pnl-more > summary { cursor:pointer; margin-top:12px; color:#e8c878; font-weight:700; }
.pnl-setup { padding:16px; border-radius:18px; background:var(--surface); border:1px solid var(--line); }
.pnl-setup h3 { margin:6px 0 10px; font-size:15px; }
.pnl-pick { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.pnl-ok { width:100%; min-height:48px; justify-content:center; margin-top:6px; }
.pnl-filter { width:100%; min-height:46px; padding:0 14px; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:inherit; font:inherit; margin-bottom:6px; }
.pnl-teacher h3 { margin:16px 2px 6px; font-size:15px; color:#e8c878; }
.pnl-check { display:flex; align-items:center; gap:10px; padding:11px 12px; margin-top:6px; border-radius:12px; background:var(--surface); border:1px solid var(--line); cursor:pointer; }
.pnl-check input { width:22px; height:22px; accent-color:#e8c878; flex:none; }
.pnl-check span { flex:1; min-width:0; }
.pnl-check small { flex:none; opacity:.65; font-size:12px; }
.pnl-done-bar { position:sticky; bottom:calc(92px + env(safe-area-inset-bottom)); padding:10px 0; }
.pnl-done-bar .button { width:100%; min-height:48px; justify-content:center; }
/* پنلِ من — نسخه‌ی ۲: ویرایش / نمایش */
.pnl-erow { display:flex; align-items:center; gap:10px; margin-top:8px; padding:10px 12px; border-radius:12px; background:rgba(0,0,0,.18); }
.pnl-erow > span { flex:1; min-width:0; display:flex; flex-direction:column; }
.pnl-erow small { opacity:.7; font-size:12px; }
.pnl-x { flex:none; width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:transparent; color:inherit; cursor:pointer; }
.pnl-confirm { width:100%; min-height:50px; justify-content:center; font-size:16px; }
.pnl-teacher { margin-top:8px; border-radius:14px; background:var(--surface); border:1px solid var(--line); }
.pnl-teacher > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px; cursor:pointer; list-style:none; font-weight:800; }
.pnl-teacher > summary::-webkit-details-marker { display:none; }
.pnl-teacher > summary::after { content:'⌄'; color:#e8c878; font-size:18px; line-height:1; transition:transform .2s; }
.pnl-teacher[open] > summary::after { transform:rotate(180deg); }
.pnl-teacher > summary > span { flex:1; color:#e8c878; }
.pnl-teacher > summary small { font-weight:400; opacity:.8; font-size:12px; }
.pnl-picked { color:#e8c878; font-weight:800; }
.pnl-teacher .pnl-check { margin:0 10px 8px; background:rgba(0,0,0,.18); }
.pnl-hero { padding:18px; border-radius:22px; background:linear-gradient(160deg,rgba(232,200,120,.20),rgba(232,200,120,.04) 60%),var(--surface); border:1px solid rgba(232,200,120,.45); }
.pnl-hero-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.pnl-eyebrow { margin:0; color:#e8c878; font-size:13px; font-weight:700; }
.pnl-hero h1 { margin:4px 0 2px; font-size:24px; }
.pnl-hero-sub { margin:0; opacity:.8; font-size:13px; }
.pnl-editbtn { flex:none; padding:8px 14px; border-radius:12px; border:1px solid rgba(232,200,120,.5); color:#e8c878; font-size:13px; font-weight:700; text-decoration:none; }
.pnl-continue { display:flex; align-items:center; gap:14px; margin-top:16px; padding:14px; border-radius:16px; background:#e8c878; color:#1d2a1f; text-decoration:none; }
.pnl-continue > span:last-child { display:flex; flex-direction:column; min-width:0; }
.pnl-continue b { font-size:16px; }
.pnl-continue small { opacity:.8; font-size:12px; }
.pnl-play-big { flex:none; width:46px; height:46px; border-radius:50%; display:grid; place-items:center; background:#1d2a1f; color:#e8c878; font-size:18px; }
.pnl-list { display:flex; flex-direction:column; border-radius:18px; overflow:hidden; border:1px solid var(--line); background:var(--surface); }
.pnl-item { display:flex; align-items:center; gap:10px; padding:12px 14px; }
.pnl-item + .pnl-item { border-top:1px solid var(--line); }
.pnl-item-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; color:inherit; text-decoration:none; }
.pnl-item-main b { font-size:15px; line-height:1.6; }
.pnl-item-main small { opacity:.7; font-size:12px; }
.pnl-tag { align-self:flex-start; padding:2px 10px; border-radius:999px; font-size:11px; font-weight:800; background:rgba(232,200,120,.16); color:#e8c878; }
.pnl-item[data-subj="zist"] .pnl-tag { background:rgba(120,200,120,.18); color:#9be09b; }
.pnl-item[data-subj="shimi"] .pnl-tag { background:rgba(120,180,240,.18); color:#9cc8f5; }
.pnl-item[data-subj="fizik"] .pnl-tag { background:rgba(240,150,110,.18); color:#f3b08f; }
.pnl-item[data-subj="riazi"] .pnl-tag { background:rgba(190,150,240,.18); color:#cdb2f5; }
.pnl-item-act { flex:none; display:flex; gap:8px; }
.pnl-ic { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; border:1px solid rgba(232,200,120,.45); background:transparent; color:#e8c878; cursor:pointer; text-decoration:none; font-size:16px; }
.pnl-ic svg { width:20px; height:20px; }
.pnl-ic-play { background:#e8c878; color:#1d2a1f; border-color:#e8c878; }
.pnl-exam-hero { display:flex; flex-direction:column; gap:4px; padding:16px; border-radius:18px; background:var(--surface); border:1px solid rgba(232,200,120,.45); }
.pnl-exam-hero b { font-size:16px; line-height:1.7; }
.pnl-exam-hero small { opacity:.8; font-size:12px; }
.pnl-exam-hero small:first-child { color:#e8c878; opacity:1; font-weight:700; }
.pnl-exam-hero .button { margin-top:10px; min-height:48px; justify-content:center; }
.pnl-new { padding:1px 8px; border-radius:999px; background:#e8c878; color:#1d2a1f; font-size:11px; }
/* پنلِ من — نسخه‌ی ۳: آیکونِ درس، دکمه‌ی پخش، آواتار */
.pnl-sicon { flex:none; width:52px; height:52px; border-radius:16px; display:grid; place-items:center; background:rgba(232,200,120,.10); border:1px solid rgba(232,200,120,.25); }
.pnl-sicon img { width:46px; height:46px; object-fit:contain; filter:drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.pnl-sicon[data-subj="zist"] { background:rgba(120,200,120,.14); }
.pnl-sicon[data-subj="shimi"] { background:rgba(120,180,240,.14); }
.pnl-sicon[data-subj="fizik"] { background:rgba(240,150,110,.14); }
.pnl-sicon[data-subj="riazi"] { background:rgba(190,150,240,.14); }
.pnl-subj-head .pnl-sicon { width:44px; height:44px; border-radius:14px; }
.pnl-subj-head .pnl-sicon img { width:38px; height:38px; }
.pnl-subj-head h3 { flex:1; }
.pnl-ic-play { background:transparent; border:0; width:48px; height:48px; padding:0; }
.pnl-ic-play .pnl-play-img { width:48px; height:48px; object-fit:contain; filter:drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.pnl-play-svg { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:#e8c878; color:#1d2a1f; }
.pnl-play-svg[hidden] { display:none; }
.pnl-play-svg svg { width:22px; height:22px; }
.pnl-play-big { background:transparent !important; width:52px !important; height:52px !important; }
.pnl-play-big .pnl-play-img { width:52px; height:52px; object-fit:contain; }
.pnl-hero-top { align-items:center; }
.pnl-hero-txt { flex:1; min-width:0; }
.pnl-avatar { flex:none; width:72px; height:72px; border-radius:50%; padding:3px; background:linear-gradient(145deg,#f3d98e,#a8792e); box-shadow:0 4px 14px rgba(0,0,0,.35); display:grid; place-items:center; overflow:hidden; text-decoration:none; }
.pnl-avatar > * { width:66px !important; height:66px !important; border-radius:50%; overflow:hidden; }
.pnl-avatar img, .pnl-avatar svg { width:100%; height:100%; object-fit:cover; }
.pnl-hero h1 { font-size:21px; }
/* پنلِ من — نسخه‌ی ۴ */
.pnl-hero h1.pnl-hero-name { margin:0 0 6px; font-size:18px; line-height:1.6; color:#f3e2b0; overflow-wrap:anywhere; }
.pnl-gf { display:inline-block; padding:3px 12px; border-radius:999px; background:rgba(232,200,120,.16); border:1px solid rgba(232,200,120,.4); color:#e8c878; font-size:13px; font-weight:700; }
.pnl-hero-sub { margin-top:6px !important; }
/* پنلِ من — دکمه‌ی دریافتِ هم‌شکلِ پخش (۱۱-۱۰) */
.pnl-ic-dl { background:transparent; border:0; width:48px; height:48px; padding:0; }
.pnl-ic-dl .pnl-dl-img { width:48px; height:48px; object-fit:contain; filter:drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.pnl-dl-svg { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; border:1px solid rgba(232,200,120,.45); color:#e8c878; }
.pnl-dl-svg[hidden] { display:none; }
.pnl-item-act { align-items:center; gap:10px; }
