/* ==========================================================================
   سنجاقک — پوستهٔ تازهٔ اپ (s-app)

   فقط برای پنلِ اعضا (دانش‌آموز، عضو ویژه، عضو عمومی). پنلِ مدیر
   همان sanjagak.css را دارد و این فایل را اصلاً لود نمی‌کند.

   ⚠️ بعد از sanjagak.css و app-mobile.css لود می‌شود:
      · کلاس‌های تازه همه با پیشوندِ s- هستند تا با کلاس‌های قدیمی
        قاطی نشوند.
      · توکن‌های رنگِ قدیمی (--teal، --card، --ink …) این‌جا به پالتِ
        تازه نگاشت می‌شوند؛ صفحه‌هایی که هنوز بازنویسی نشده‌اند هم
        خودبه‌خود رنگ و حالِ تازه می‌گیرند.

   دو تم: تاریک (شب، با درخششِ گرمِ کهربایی) و روشن (هلوییِ گرم).
   ========================================================================== */

@font-face { font-family: 'VazirS'; src: url('../fonts/vazirmatn/Vazirmatn-UI-FD-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'VazirS'; src: url('../fonts/vazirmatn/Vazirmatn-UI-FD-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'VazirS'; src: url('../fonts/vazirmatn/Vazirmatn-UI-FD-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'VazirS'; src: url('../fonts/vazirmatn/Vazirmatn-UI-FD-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'VazirS'; src: url('../fonts/vazirmatn/Vazirmatn-UI-FD-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'VazirS'; src: url('../fonts/vazirmatn/Vazirmatn-UI-FD-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* ═════════════════════════════════════════════════════════ توکن‌ها */

body.s {
    /* رنگ‌های برند — مشترکِ دو تم */
    --s-amber:   #3EE8D0;
    --s-orange:  #1FA8FF;
    --s-crimson: #4F5BFF;
    --s-grad:    linear-gradient(135deg, #3EE8D0 0%, #1FA8FF 45%, #4F5BFF 100%);
    --s-grad-soft: linear-gradient(135deg, rgba(62,232,208,.22), rgba(79,91,255,.18));

    /* پالتِ بازیگوش برای دسته‌ها، نمودارها و برچسب‌ها */
    --s-lav:     #9D8CFF;
    --s-mint:    #6EE0AE;
    --s-sky:     #66C2FF;
    --s-butter:  #FFD36B;
    --s-rose:    #FF7F96;
    --s-coral:   #FF7A6B;

    --s-r-xl: 30px;
    --s-r-lg: 24px;
    --s-r-md: 18px;
    --s-r-sm: 12px;

    --s-ease: cubic-bezier(.2, .8, .2, 1);
    --s-spring: cubic-bezier(.34, 1.56, .64, 1);

    --s-safe-t: env(safe-area-inset-top, 0px);
    --s-safe-b: env(safe-area-inset-bottom, 0px);
    --s-nav-h: 68px;

    font-family: 'VazirS', 'Yekan', system-ui, sans-serif;
}

/* ───────────── تم تاریک (پیش‌فرض) */
[data-theme='dark'] body.s, body.s {
    --s-bg:        #070B14;
    --s-bg-2:      #0B1120;
    --s-card:      #101827;
    --s-card-2:    #172133;
    --s-card-3:    #1F2B40;
    --s-glass:     rgba(16, 24, 39, .62);
    --s-glass-line: rgba(255, 255, 255, .09);
    --s-line:      rgba(255, 255, 255, .07);
    --s-line-2:    rgba(255, 255, 255, .12);
    --s-text:      #EEF4FB;
    --s-text-2:    #B4C2D6;
    --s-muted:     #7A8AA3;
    --s-strong-bg: #FFFFFF;
    --s-strong-fg: #08101C;
    --s-shadow:    0 18px 40px rgba(0, 0, 0, .45);
    --s-shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
    --s-glow:      0 10px 34px rgba(31, 168, 255, .38);
    --s-ok:   #6EE0AE;  --s-ok-bg:   rgba(110, 224, 174, .14);
    --s-warn: #FFD36B;  --s-warn-bg: rgba(255, 211, 107, .14);
    --s-err:  #FF7F96;  --s-err-bg:  rgba(255, 127, 150, .14);
    --s-info: #66C2FF;  --s-info-bg: rgba(102, 194, 255, .14);
    --s-hi:   rgba(31, 168, 255, .16);
    color-scheme: dark;
}

/* ───────────── تم روشن */
[data-theme='light'] body.s {
    --s-bg:        #EEF6FB;
    --s-bg-2:      #E2F0F8;
    --s-card:      #FFFFFF;
    --s-card-2:    #F1F7FC;
    --s-card-3:    #DCEAF5;
    --s-glass:     rgba(255, 255, 255, .72);
    --s-glass-line: rgba(255, 255, 255, .9);
    --s-line:      rgba(15, 40, 80, .07);
    --s-line-2:    rgba(15, 40, 80, .13);
    --s-text:      #0D1A2C;
    --s-text-2:    #43556E;
    --s-muted:     #8193AB;
    --s-strong-bg: #0D1A2C;
    --s-strong-fg: #FFFFFF;
    --s-shadow:    0 18px 40px rgba(20, 60, 120, .13);
    --s-shadow-sm: 0 6px 18px rgba(20, 60, 120, .09);
    --s-glow:      0 10px 30px rgba(31, 140, 255, .28);
    --s-ok:   #13A26A;  --s-ok-bg:   #DDF6EA;
    --s-warn: #B7790B;  --s-warn-bg: #FFF1CC;
    --s-err:  #D33B55;  --s-err-bg:  #FFE1E6;
    --s-info: #1E86C8;  --s-info-bg: #DDF0FC;
    --s-hi:   rgba(31, 140, 255, .12);
    color-scheme: light;
}

/* ───────────── نگاشتِ توکن‌های قدیمی — برای صفحه‌هایی که هنوز بازنویسی نشده‌اند */
body.s {
    --teal: var(--s-orange);       --teal-light: var(--s-amber);
    --teal-dark: #E8621F;          --teal-bg: var(--s-hi);
    --gold: var(--s-butter);       --gold-light: #FFE49A;  --gold-dark: #E8B23A;
    --coral: var(--s-rose);        --coral-light: #FF9DB0; --coral-dark: #E05873;
    --sky: var(--s-sky);
    --surface: var(--s-bg);        --card: var(--s-card);  --raised: var(--s-card-2);
    --cream: var(--s-card-2);
    --ink: var(--s-text);          --ink-soft: var(--s-text-2); --ink-2: var(--s-text-2);
    --muted: var(--s-muted);       --line: var(--s-line-2);
    --success: var(--s-ok);        --error: var(--s-err);
    --badge-ok-bg: var(--s-ok-bg);     --badge-ok-fg: var(--s-ok);
    --badge-warn-bg: var(--s-warn-bg); --badge-warn-fg: var(--s-warn);
    --badge-err-bg: var(--s-err-bg);   --badge-err-fg: var(--s-err);
    --badge-info-bg: var(--s-info-bg); --badge-info-fg: var(--s-info);
    --badge-gray-bg: var(--s-card-2);  --badge-gray-fg: var(--s-muted);
    --sh-sm: var(--s-shadow-sm); --sh-md: var(--s-shadow-sm); --sh-lg: var(--s-shadow);
    --sh-card: var(--s-shadow-sm);
    --glow-teal: var(--s-glow);
    --r-lg: var(--s-r-lg); --r-md: var(--s-r-md); --r-sm: var(--s-r-sm);
    --focus: 0 0 0 4px rgba(31, 168, 255, .3);
}

/* ═════════════════════════════════════════════════════════ پایه */

html:has(body.s) { background: var(--s-bg, #070B14); }

body.s {
    margin: 0;
    background: var(--s-bg);
    color: var(--s-text);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    min-height: 100dvh;
}

/* درخششِ گرمِ پس‌زمینه — مثلِ هالهٔ پشتِ عدد در طرح‌ها */
body.s::before {
    content: '';
    position: fixed;
    inset: -20vh -30vw auto -30vw;
    height: 70vh;
    background:
        radial-gradient(45% 55% at 70% 30%, rgba(31, 168, 255, .20), transparent 70%),
        radial-gradient(35% 45% at 20% 10%, rgba(157, 140, 255, .14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
[data-theme='light'] body.s::before {
    background:
        radial-gradient(45% 55% at 70% 25%, rgba(120, 240, 230, .30), transparent 70%),
        radial-gradient(35% 45% at 15% 5%, rgba(120, 240, 230, .45), transparent 70%);
}

body.s * { box-sizing: border-box; }
body.s a { color: inherit; text-decoration: none; }
body.s button, body.s input, body.s select, body.s textarea { font-family: inherit; }
body.s ::selection { background: rgba(31, 168, 255, .35); }
body.s :focus-visible { outline: 2px solid var(--s-orange); outline-offset: 2px; border-radius: 8px; }
body.s img { max-width: 100%; }

.s-ic { flex: none; display: block; }
.s-num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.s-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ═════════════════════════════════════════════════════════ پوسته */

.s-app {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    max-width: 560px;
    margin: 0 auto;
}

/* نوارِ بالا — شفاف روی هالهٔ صفحه، با اسکرول شیشه‌ای می‌شود */
.s-top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(var(--s-safe-t) + 12px) 18px 10px;
    min-height: 64px;
    transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.s-top.stuck {
    background: color-mix(in srgb, var(--s-bg) 78%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 1px 0 var(--s-line);
}
.s-top .ttl {
    flex: 1;
    min-width: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s-top .ttl small { display: block; font-size: .72rem; font-weight: 500; color: var(--s-muted); line-height: 1.4; }
.s-top .acts { display: flex; gap: 8px; align-items: center; }

.s-main {
    position: relative;
    padding: 4px 16px calc(var(--s-nav-h) + var(--s-safe-b) + 34px);
}
body.s.no-nav .s-main { padding-bottom: calc(var(--s-safe-b) + 28px); }

/* دکمهٔ گرد — بازگشت، زنگ، تنظیمات */
.s-ib {
    width: 44px; height: 44px;
    flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--s-line-2);
    background: var(--s-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--s-text);
    cursor: pointer;
    position: relative;
    transition: transform .2s var(--s-ease), background .2s;
}
.s-ib:active { transform: scale(.9); }
.s-ib.sm { width: 36px; height: 36px; }
.s-ib.solid { background: var(--s-strong-bg); color: var(--s-strong-fg); border-color: transparent; }
.s-ib .dot { position: absolute; top: 8px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--s-orange); box-shadow: 0 0 0 2px var(--s-bg); }

/* ───────────── نوار پایین: قرصِ شیشه‌ای شناور (طرح ۲) */
.s-nav {
    position: fixed;
    z-index: 50;
    inset-inline: 0;
    bottom: calc(var(--s-safe-b) + 12px);
    margin: 0 auto;
    width: min(calc(100% - 28px), 440px);
    height: var(--s-nav-h);
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    border-radius: 999px;
    background: var(--s-glass);
    border: 1px solid var(--s-glass-line);
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: var(--s-shadow);
}
.s-nav a, .s-nav button {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: none;
    border-radius: 999px;
    color: var(--s-muted);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    transition: flex-grow .35s var(--s-ease), background .3s, color .25s;
}
.s-nav .lbl { display: none; white-space: nowrap; }
.s-nav .on {
    flex-grow: 1.9;
    color: var(--s-strong-fg);
    background: var(--s-strong-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.s-nav .on .lbl { display: inline; animation: s-pop .35s var(--s-ease); }
.s-nav a:active, .s-nav button:active { transform: scale(.94); }
.s-nav .badge {
    position: absolute;
    top: 9px; inset-inline-start: calc(50% + 4px);
    min-width: 17px; height: 17px; padding: 0 4px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--s-orange); color: #fff;
    font-size: .64rem; font-weight: 800; line-height: 1;
    box-shadow: 0 0 0 2px var(--s-card);
}
.s-nav .on .badge { display: none; }

/* ═════════════════════════════════════════════════════════ اجزا */

/* ───────────── تیترِ بخش */
.s-sec {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 2px 12px;
}
.s-sec h2, .s-sec h3 { margin: 0; font-size: 1.05rem; font-weight: 800; flex: 1; letter-spacing: -.01em; }
.s-sec .cnt { color: var(--s-muted); font-weight: 600; font-size: .8rem; }
.s-sec .more { display: inline-flex; align-items: center; gap: 2px; color: var(--s-text-2); font-size: .8rem; font-weight: 700; }

/* ───────────── کارت */
.s-card {
    position: relative;
    background: var(--s-card);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-lg);
    padding: 18px;
    box-shadow: var(--s-shadow-sm);
    overflow: hidden;
    display: block;
}
.s-card + .s-card { margin-top: 12px; }
.s-card.flat { box-shadow: none; }
.s-card.tight { padding: 14px; }
.s-card.glass {
    background: var(--s-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--s-glass-line);
}
/* کارتِ گرمِ گرادیانی — «Your Insights» در طرح ۱ */
.s-card.ember {
    color: #fff;
    border: 0;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(120, 240, 230, .55), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(120, 10, 30, .55), transparent 60%),
        var(--s-grad);
    box-shadow: var(--s-glow);
}
.s-card.ember .muted, .s-card.ember small { color: rgba(255, 255, 255, .78); }
.s-card.ink { background: var(--s-strong-bg); color: var(--s-strong-fg); border: 0; }
.s-card.ink .muted, .s-card.ink small { color: color-mix(in srgb, var(--s-strong-fg) 65%, transparent); }
.s-card.tint-lav   { background: linear-gradient(155deg, color-mix(in srgb, var(--s-lav) 34%, var(--s-card)), var(--s-card) 85%); }
.s-card.tint-mint  { background: linear-gradient(155deg, color-mix(in srgb, var(--s-mint) 30%, var(--s-card)), var(--s-card) 85%); }
.s-card.tint-butter{ background: linear-gradient(155deg, color-mix(in srgb, var(--s-butter) 34%, var(--s-card)), var(--s-card) 85%); }
.s-card.tint-sky   { background: linear-gradient(155deg, color-mix(in srgb, var(--s-sky) 30%, var(--s-card)), var(--s-card) 85%); }
.s-card.tint-rose  { background: linear-gradient(155deg, color-mix(in srgb, var(--s-rose) 30%, var(--s-card)), var(--s-card) 85%); }

a.s-card, .s-card.tap { cursor: pointer; transition: transform .2s var(--s-ease); }
a.s-card:active, .s-card.tap:active { transform: scale(.98); }

.s-card .k { font-size: .78rem; color: var(--s-muted); font-weight: 600; }
.s-card .big { font-size: 2.2rem; font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.s-card h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }

/* گوشهٔ دکمه‌دار (فلشِ داخلِ دایره) */
.s-go {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--s-strong-bg);
    color: var(--s-strong-fg);
    flex: none;
}
.s-card.ember .s-go { background: rgba(255, 255, 255, .95); color: #1a0f0b; }

/* ───────────── شبکهٔ بنتو */
.s-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-grid .wide { grid-column: span 2; }
.s-grid > .s-card + .s-card { margin-top: 0; }

/* ───────────── دکمه‌ها */
.s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    background: var(--s-grad);
    color: #fff;
    box-shadow: var(--s-glow);
    transition: transform .18s var(--s-ease), filter .2s, box-shadow .2s;
    white-space: nowrap;
}
.s-btn:active { transform: scale(.96); }
.s-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.s-btn.block { width: 100%; }
.s-btn.strong { background: var(--s-strong-bg); color: var(--s-strong-fg); box-shadow: none; }
.s-btn.soft { background: var(--s-card-2); color: var(--s-text); box-shadow: none; border: 1px solid var(--s-line); }
.s-btn.ghost { background: transparent; color: var(--s-text); box-shadow: none; border: 1px solid var(--s-line-2); }
.s-btn.sm { min-height: 38px; padding: 0 15px; font-size: .82rem; }
.s-btn.xs { min-height: 30px; padding: 0 12px; font-size: .74rem; }
.s-btn .s-go { width: 28px; height: 28px; margin-inline-end: -12px; }

/* ───────────── قرص / چیپ / برچسب */
.s-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--s-card-2);
    border: 1px solid var(--s-line);
    color: var(--s-text-2);
    font-size: .78rem; font-weight: 700;
    white-space: nowrap;
}
.s-pill.on, .s-pill.strong { background: var(--s-strong-bg); color: var(--s-strong-fg); border-color: transparent; }
.s-pill.glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(8px); }
.s-pill.ok   { background: var(--s-ok-bg);   color: var(--s-ok);   border-color: transparent; }
.s-pill.warn { background: var(--s-warn-bg); color: var(--s-warn); border-color: transparent; }
.s-pill.err  { background: var(--s-err-bg);  color: var(--s-err);  border-color: transparent; }
.s-pill.info { background: var(--s-info-bg); color: var(--s-info); border-color: transparent; }
.s-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* نوارِ افقیِ چیپ‌ها با اسکرول */
.s-chips {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 2px 16px 4px;
    margin: 0 -16px;
    scrollbar-width: none;
}
.s-chips::-webkit-scrollbar { display: none; }
.s-chips > * { flex: none; }
.s-chips a.s-pill, .s-chips button.s-pill { cursor: pointer; padding: 9px 16px; font-size: .84rem; }

/* ───────────── سگمنت — تب‌های داخلِ صفحه */
.s-seg {
    display: flex;
    padding: 5px;
    gap: 4px;
    background: var(--s-card-2);
    border: 1px solid var(--s-line);
    border-radius: 999px;
}
.s-seg a, .s-seg button {
    flex: 1;
    min-height: 40px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; background: none;
    border-radius: 999px;
    color: var(--s-text-2);
    font-size: .84rem; font-weight: 700;
    cursor: pointer;
    transition: background .25s, color .25s;
}
.s-seg .on { background: var(--s-strong-bg); color: var(--s-strong-fg); box-shadow: var(--s-shadow-sm); }

/* ───────────── فهرست و ردیف */
.s-list { display: flex; flex-direction: column; gap: 10px; }
.s-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border-radius: var(--s-r-md);
    background: var(--s-card);
    border: 1px solid var(--s-line);
    transition: transform .18s var(--s-ease), background .2s;
}
a.s-row:active, .s-row.tap:active { transform: scale(.98); }
.s-row .ico {
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center;
    border-radius: 15px;
    background: var(--s-card-2);
    color: var(--s-text);
    font-size: 1.25rem;
}
.ico.ember  { background: var(--s-grad); color: #fff; }
.ico.lav    { background: color-mix(in srgb, var(--s-lav) 22%, transparent);    color: var(--s-lav); }
.ico.mint   { background: color-mix(in srgb, var(--s-mint) 20%, transparent);   color: var(--s-mint); }
.ico.sky    { background: color-mix(in srgb, var(--s-sky) 20%, transparent);    color: var(--s-sky); }
.ico.butter { background: color-mix(in srgb, var(--s-butter) 24%, transparent); color: #C98C00; }
.ico.rose   { background: color-mix(in srgb, var(--s-rose) 20%, transparent);   color: var(--s-rose); }
[data-theme='dark'] body.s .ico.butter { color: var(--s-butter); }
.s-row .tx { flex: 1; min-width: 0; line-height: 1.55; }
.s-row .tx b { display: block; font-weight: 800; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-row .tx small { display: block; color: var(--s-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-row .tx small.wrap, .s-row .tx b.wrap { white-space: normal; }
.s-row .end { flex: none; display: flex; align-items: center; gap: 8px; color: var(--s-muted); }
.s-row.warn { border-color: color-mix(in srgb, var(--s-warn) 40%, transparent); }
.s-row.hot  { border-color: color-mix(in srgb, var(--s-orange) 45%, transparent); background: color-mix(in srgb, var(--s-orange) 7%, var(--s-card)); }

/* فهرستِ چسبیده داخلِ یک کارت */
.s-group { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-r-lg); overflow: hidden; }
.s-group .s-row { border: 0; border-radius: 0; background: none; }
.s-group .s-row + .s-row { border-top: 1px solid var(--s-line); }

/* ───────────── نوارِ پیشرفت */
.s-bar { height: 8px; border-radius: 999px; background: var(--s-card-3); overflow: hidden; }
.s-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--s-grad); transform-origin: right; animation: s-grow .9s var(--s-ease) both; }
.s-card.ember .s-bar, .s-hero .s-bar { background: rgba(255, 255, 255, .22); }
.s-card.ember .s-bar > i, .s-hero .s-bar > i { background: #fff; }

/* ───────────── حلقهٔ پیشرفت (SVG) */
.s-ring { position: relative; display: grid; place-items: center; flex: none; }
.s-ring svg { transform: rotate(-90deg); display: block; }
.s-ring .track { stroke: var(--s-card-3); }
.s-ring .val { stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--s-ease); }
.s-ring .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.15; }
.s-ring .mid b { font-size: 1.15rem; font-weight: 900; }
.s-ring .mid small { display: block; font-size: .64rem; color: var(--s-muted); font-weight: 600; }

/* ───────────── عدد و آمار */
.s-stat { display: flex; flex-direction: column; gap: 2px; }
.s-stat .n { font-size: 1.55rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.s-stat .n small { font-size: .78rem; font-weight: 600; color: var(--s-muted); margin-inline-start: 3px; }
.s-stat .l { font-size: .75rem; color: var(--s-muted); font-weight: 600; }
.s-delta { display: inline-flex; align-items: center; gap: 2px; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.s-delta.up   { color: var(--s-ok);  background: var(--s-ok-bg); }
.s-delta.down { color: var(--s-err); background: var(--s-err-bg); }

/* ───────────── فرم */
.s-field { margin-bottom: 14px; }
.s-field > label, .s-label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; color: var(--s-text-2); }
.s-field .hint { font-size: .74rem; color: var(--s-muted); margin-top: 5px; }
.s-input, body.s .s-field input:not([type=checkbox]):not([type=radio]):not([type=file]), body.s .s-field textarea, body.s .s-field select {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    font-size: 16px;            /* کمتر از ۱۶ یعنی زومِ خودکارِ iOS */
    color: var(--s-text);
    background: var(--s-card-2);
    border: 1.5px solid var(--s-line);
    border-radius: var(--s-r-md);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.s-input:focus, body.s .s-field input:focus, body.s .s-field textarea:focus, body.s .s-field select:focus {
    border-color: var(--s-orange);
    box-shadow: 0 0 0 4px rgba(31, 168, 255, .16);
    background: var(--s-card);
}
body.s .s-field textarea { min-height: 110px; line-height: 1.9; resize: vertical; }
.s-input::placeholder, body.s .s-field ::placeholder { color: var(--s-muted); }

/* انتخابِ فایل به شکلِ ناحیهٔ بزرگِ لمسی */
.s-drop {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 130px;
    padding: 18px;
    border: 2px dashed var(--s-line-2);
    border-radius: var(--s-r-lg);
    background: var(--s-card-2);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.s-drop:hover, .s-drop.over { border-color: var(--s-orange); background: var(--s-hi); }
.s-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.s-drop .ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--s-grad); color: #fff; box-shadow: var(--s-glow); }
.s-drop b { font-size: .92rem; }
.s-drop small { color: var(--s-muted); font-size: .74rem; }
.s-drop .picked { font-weight: 700; color: var(--s-ok); font-size: .82rem; word-break: break-all; }

/* ───────────── هشدار / پیام */
.s-note {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--s-r-md);
    background: var(--s-card-2);
    border: 1px solid var(--s-line);
    font-size: .86rem;
    line-height: 1.85;
}
.s-note .s-ic { margin-top: 3px; }
.s-note.ok   { background: var(--s-ok-bg);   color: var(--s-ok);   border-color: transparent; }
.s-note.warn { background: var(--s-warn-bg); color: var(--s-warn); border-color: transparent; }
.s-note.err  { background: var(--s-err-bg);  color: var(--s-err);  border-color: transparent; }
.s-note.info { background: var(--s-info-bg); color: var(--s-info); border-color: transparent; }
.s-note + .s-note, .s-note + .s-card, .s-card + .s-note { margin-top: 12px; }

/* ───────────── خالی */
.s-empty { text-align: center; padding: 34px 18px; color: var(--s-muted); }
.s-empty .art {
    width: 76px; height: 76px; margin: 0 auto 12px;
    display: grid; place-items: center;
    border-radius: 26px;
    background: var(--s-card-2);
    color: var(--s-text-2);
    transform: rotate(-6deg);
}
.s-empty b { display: block; color: var(--s-text); font-size: .98rem; margin-bottom: 4px; }
.s-empty span { font-size: .82rem; }

/* ───────────── آواتار */
.s-ava {
    width: 44px; height: 44px; flex: none;
    border-radius: 50%;
    overflow: hidden;
    display: grid; place-items: center;
    background: var(--s-grad);
    color: #fff; font-weight: 900;
    box-shadow: 0 0 0 2px var(--s-bg), 0 0 0 4px rgba(31, 168, 255, .55);
}
.s-ava img { width: 100%; height: 100%; object-fit: cover; }
.s-ava.lg { width: 104px; height: 104px; font-size: 2.2rem; box-shadow: 0 0 0 4px var(--s-bg), 0 0 0 7px rgba(31, 168, 255, .6), var(--s-glow); }

/* ───────────── قهرمان (کارتِ بزرگِ بالای صفحه) */
.s-hero {
    position: relative;
    border-radius: var(--s-r-xl);
    padding: 22px 20px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(110, 245, 225, .5), transparent 60%),
        radial-gradient(80% 90% at 0% 100%, rgba(18, 24, 110, .78), transparent 60%),
        linear-gradient(140deg, #1FC8C0, #1F7FEA 55%, #2B2FA0);
    box-shadow: var(--s-glow);
    isolation: isolate;
}
.s-hero::after {
    /* بافتِ نوری — شبیهِ «انرژی» پشتِ عدد در طرح ۱ */
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    top: -90px; inset-inline-start: -70px;
    border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, .10);
    z-index: -1;
}
.s-hero.night {
    background:
        radial-gradient(80% 70% at 50% 40%, rgba(31, 168, 255, .45), transparent 65%),
        radial-gradient(60% 60% at 80% 100%, rgba(157, 140, 255, .25), transparent 70%),
        #08111F;
    border: 1px solid var(--s-line-2);
}
.s-hero .muted, .s-hero small { color: rgba(255, 255, 255, .8); }
.s-hero h1 { margin: 0; font-size: 1.45rem; font-weight: 900; line-height: 1.35; letter-spacing: -.02em; }
.s-hero .huge { font-size: 4.2rem; font-weight: 900; line-height: 1; letter-spacing: -.05em; }

/* ───────────── تقویم (طرح ۲: روزها دایره، حلقه برای روزهای ثبت‌شده) */
.s-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px 4px; }
.s-cal .wd { text-align: center; font-size: .7rem; font-weight: 700; color: var(--s-muted); padding-bottom: 2px; }
.s-cal .d {
    position: relative;
    aspect-ratio: 1;
    max-width: 46px;
    width: 100%;
    margin: 0 auto;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: .82rem; font-weight: 700;
    color: var(--s-text-2);
    border: 2px solid transparent;
    transition: transform .2s var(--s-ease);
}
.s-cal .d.none   { color: var(--s-muted); opacity: .55; border: 1.5px dashed var(--s-line-2); }
.s-cal .d.future { opacity: .35; border-style: dashed; }
.s-cal .d.in     { border-color: var(--s-orange); color: var(--s-text); background: rgba(31, 168, 255, .10); }
.s-cal .d.in.full{ background: var(--s-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(31, 168, 255, .4); }
.s-cal .d.miss   { border-color: color-mix(in srgb, var(--s-err) 70%, transparent); color: var(--s-err); }
.s-cal .d.exc    { border-color: var(--s-info); color: var(--s-info); }
.s-cal .d.off    { background: var(--s-card-2); color: var(--s-muted); text-decoration: line-through; }
.s-cal .d.today  { background: var(--s-strong-bg); color: var(--s-strong-fg); border-color: var(--s-strong-bg); }
.s-cal .d.today::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: var(--s-orange); border-right-color: var(--s-orange);
    animation: s-spin 2.4s linear infinite;
}
.s-cal .d.blank { visibility: hidden; }
.s-cal .d .mk { position: absolute; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.s-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--s-muted); margin-top: 12px; }
.s-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 5px; vertical-align: -1px; }

/* ───────────── نقشهٔ حرارتی (ستون = هفته) */
.s-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 5px; }
.s-heat i { aspect-ratio: 1; border-radius: 6px; background: var(--s-card-3); display: block; }
.s-heat i.l1 { background: color-mix(in srgb, var(--s-orange) 22%, var(--s-card-3)); }
.s-heat i.l2 { background: color-mix(in srgb, var(--s-orange) 45%, var(--s-card-3)); }
.s-heat i.l3 { background: color-mix(in srgb, var(--s-orange) 70%, var(--s-card-3)); }
.s-heat i.l4 { background: var(--s-orange); }
.s-heat i.l5 { background: var(--s-grad); box-shadow: 0 0 10px rgba(31, 168, 255, .55); }

/* ───────────── نمودار (توسطِ js/s-app.js کشیده می‌شود) */
.s-chart { position: relative; width: 100%; }
.s-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.s-chart .grid line { stroke: var(--s-line-2); stroke-dasharray: 3 4; }
.s-chart .axis text { fill: var(--s-muted); font-size: 10px; font-weight: 600; }
.s-chart .area { opacity: .9; }
.s-chart .line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.s-chart .avg { stroke-dasharray: 5 5; stroke-width: 1.5; }
.s-chart .pt { stroke: var(--s-card); stroke-width: 2.5; }
.s-chart .bar { transition: opacity .2s; }
.s-chart .bar.dim { opacity: .35; }
.s-chart .cursor line { stroke: var(--s-text-2); stroke-dasharray: 3 3; }
.s-tip {
    position: absolute;
    top: 0;
    transform: translate(-50%, -110%);
    padding: 6px 11px;
    border-radius: 12px;
    background: var(--s-strong-bg);
    color: var(--s-strong-fg);
    font-size: .74rem; font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--s-shadow-sm);
    opacity: 0;
    transition: opacity .15s;
    z-index: 3;
}
.s-tip.on { opacity: 1; }
.s-tip small { display: block; font-weight: 500; opacity: .7; font-size: .68rem; }

/* ───────────── برگهٔ پایینی (Bottom sheet) */
.s-scrim {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(5, 3, 6, .55);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.s-scrim.on { opacity: 1; pointer-events: auto; }
.s-sheet {
    position: fixed;
    z-index: 100;
    inset-inline: 0;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 560px;
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
    background: var(--s-bg-2);
    border: 1px solid var(--s-line-2);
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .35);
    transform: translateY(105%);
    transition: transform .42s var(--s-ease);
    padding-bottom: var(--s-safe-b);
}
.s-sheet[hidden] { display: none; }
.s-sheet.on { transform: translateY(0); }
.s-sheet .grab { padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.s-sheet .grab i { width: 44px; height: 5px; border-radius: 99px; background: var(--s-line-2); }
.s-sheet .hd { display: flex; align-items: center; gap: 10px; padding: 4px 20px 10px; }
.s-sheet .hd h3 { flex: 1; margin: 0; font-size: 1.08rem; font-weight: 800; }
.s-sheet .bd { overflow-y: auto; padding: 4px 18px 22px; overscroll-behavior: contain; }

/* کاشی‌های منوی «بیشتر» */
.s-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.s-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 96px;
    padding: 12px 6px;
    border-radius: 22px;
    background: var(--s-card);
    border: 1px solid var(--s-line);
    font-size: .78rem; font-weight: 700;
    text-align: center;
    transition: transform .18s var(--s-ease);
}
.s-tile:active { transform: scale(.94); }
.s-tile .ico { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--s-card-2); }
.s-tile .ico.ember { background: var(--s-grad); color: #fff; }
.s-tile .ico.lav    { background: color-mix(in srgb, var(--s-lav) 22%, transparent);    color: var(--s-lav); }
.s-tile .ico.mint   { background: color-mix(in srgb, var(--s-mint) 20%, transparent);   color: var(--s-mint); }
.s-tile .ico.sky    { background: color-mix(in srgb, var(--s-sky) 20%, transparent);    color: var(--s-sky); }
.s-tile .ico.butter { background: color-mix(in srgb, var(--s-butter) 26%, transparent); color: #C98C00; }
.s-tile .ico.rose   { background: color-mix(in srgb, var(--s-rose) 20%, transparent);   color: var(--s-rose); }
[data-theme='dark'] body.s .s-tile .ico.butter { color: var(--s-butter); }

/* ───────────── اعلانِ کوتاه */
.s-toasts {
    position: fixed; z-index: 120;
    top: calc(var(--s-safe-t) + 12px);
    inset-inline: 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    pointer-events: none;
    padding: 0 16px;
}
.s-toast {
    max-width: 440px;
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-radius: 20px;
    background: var(--s-strong-bg);
    color: var(--s-strong-fg);
    font-size: .86rem; font-weight: 700;
    box-shadow: var(--s-shadow);
    pointer-events: auto;
    animation: s-toast-in .45s var(--s-spring) both;
}
.s-toast .bul { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--s-grad); color: #fff; }
.s-toast.err .bul { background: var(--s-err); }
.s-toast.out { animation: s-toast-out .3s var(--s-ease) both; }

/* ═════════════════════════════════════════════════════════ جنبش */

@keyframes s-pop    { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes s-up     { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes s-grow   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes s-spin   { to { transform: rotate(360deg); } }
@keyframes s-toast-in  { from { opacity: 0; transform: translateY(-24px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes s-toast-out { to { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes s-flicker {
    0%, 100% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 12px rgba(31, 168, 255,.7)); }
    50%      { transform: scale(1.07) rotate(2deg); filter: drop-shadow(0 0 22px rgba(120, 240, 230,.9)); }
}
@keyframes s-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ورودِ پلکانیِ بلوک‌های صفحه */
.s-main > * { animation: s-up .55s var(--s-ease) both; }
.s-main > *:nth-child(2) { animation-delay: .04s; }
.s-main > *:nth-child(3) { animation-delay: .08s; }
.s-main > *:nth-child(4) { animation-delay: .12s; }
.s-main > *:nth-child(5) { animation-delay: .16s; }
.s-main > *:nth-child(n+6) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    body.s *, body.s *::before, body.s *::after { animation: none !important; transition: none !important; }
}

/* ═════════════════════════════════════════════════════════ صفحه‌های قدیمی */
/*
| صفحه‌هایی که هنوز با کلاس‌های قدیمی نوشته شده‌اند (app-mobile.css و
| sanjagak.css) این‌جا ظاهرِ تازه می‌گیرند: گوشه‌های گردتر، کارت‌های
| تیره/روشنِ تازه و دکمه‌های قرصی. چیدمانشان دست نمی‌خورد.
*/
body.s .card, body.s .mcard {
    background: var(--s-card);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-lg);
    box-shadow: var(--s-shadow-sm);
}
body.s .card-head h2 { font-weight: 800; }
body.s .row:not(.s-row) {
    background: var(--s-card);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-md);
    box-shadow: none;
}
body.s .tile { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 20px; box-shadow: none; }
body.s .sec-title { font-weight: 800; }
body.s .btn {
    border-radius: 999px;
    background: var(--s-grad);
    color: #fff;
    border: 0;
    box-shadow: none;
    font-weight: 800;
}
body.s .btn.btn-ghost, body.s .btn-ghost { background: var(--s-card-2); color: var(--s-text); border: 1px solid var(--s-line-2); }
body.s .btn.btn-gold { background: var(--s-strong-bg); color: var(--s-strong-fg); }
body.s .btn.btn-coral { background: var(--s-err); color: #fff; }
body.s .btn.btn-sky { background: var(--s-sky); color: #06131c; }
body.s .badge, body.s .chip { border-radius: 999px; font-weight: 700; }
body.s .alert { border-radius: var(--s-r-md); border: 0; }
body.s .table-wrap { border-radius: var(--s-r-md); border: 1px solid var(--s-line); background: var(--s-card); }
body.s .tbl th { background: var(--s-card-2); color: var(--s-text-2); }
body.s .tbl td, body.s .tbl th { border-color: var(--s-line); }
body.s .field input:not([type=checkbox]):not([type=radio]), body.s .field select, body.s .field textarea {
    border-radius: var(--s-r-sm);
    background: var(--s-card-2);
    border: 1.5px solid var(--s-line);
    color: var(--s-text);
}
body.s .page-head .ribbon { background: var(--s-grad); color: #fff; border-radius: 999px; box-shadow: var(--s-glow); }
body.s .page-head .ribbon::after { display: none; }
body.s .mempty .mk { background: var(--s-card-2); color: var(--s-text-2); border-radius: 22px; }
body.s .notice { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-r-md); }
/* نوارِ بالا و پایینِ قدیمی دیگر رندر نمی‌شوند، ولی اگر صفحه‌ای خودش ساخته باشد */
body.s .tabbar, body.s > .app-shell > .appbar { display: none !important; }

/* ═════════════════════════════════════════════════════════ صفحه: خانه */

.h-hello p {
    margin: 2px 0 18px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.75;
    letter-spacing: -.02em;
    color: var(--s-text-2);
}
.h-hello .tk {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--s-text);
    padding: 0 10px 2px;
    margin: 0 2px;
    border-radius: 999px;
    background: var(--s-card-2);
    border: 1px solid var(--s-line);
    font-size: 1.2rem;
    vertical-align: 2px;
    white-space: nowrap;
}
.h-hello .tk.hot { background: var(--s-grad); color: #fff; border: 0; box-shadow: var(--s-glow); }

.h-streak { display: flex; flex-direction: column; min-height: 196px; }
.h-streak .flame { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.18); margin-bottom: auto; animation: s-flicker 2.6s ease-in-out infinite; }
.h-streak .big { font-size: 3rem; margin-top: 14px; }
.h-streak .dots { display: flex; gap: 5px; margin-top: 10px; }
.h-streak .dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.22); }
.h-streak .dots i.in { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.6); }
.h-streak .dots i.exc { background: rgba(255,255,255,.55); }
.h-streak .dots i.miss { background: rgba(40,0,10,.35); }
.h-streak .dots i.today { border: 2px dashed #fff; background: transparent; }

.h-lu { display: flex; flex-direction: column; min-height: 196px; }
.h-lu .big small { font-size: .9rem; font-weight: 700; opacity: .7; }
.h-lu .spark { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: auto; }
.h-lu .spark i { flex: 1; border-radius: 6px; background: var(--s-grad); min-height: 6px; animation: s-up .6s var(--s-ease) both; }
.h-lu .spark i.none { background: color-mix(in srgb, var(--s-strong-fg) 18%, transparent); }

.h-level { display: flex; align-items: center; gap: 16px; }
.h-level .tx { flex: 1; min-width: 0; }
.h-level .tx b { font-size: 1.05rem; font-weight: 900; display: block; }
.h-level .tx small { color: var(--s-muted); font-size: .78rem; }

.h-hw .s-card {
    width: 214px;
    min-height: 168px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    margin: 0;
}
.h-hw .s-card b { font-size: .98rem; font-weight: 800; line-height: 1.6; margin-top: 6px; }
.h-hw .s-card small { color: var(--s-muted); font-size: .76rem; }
.h-hw .s-card.ember small { color: rgba(255,255,255,.8); }
.h-hw .s-go { margin-top: auto; align-self: flex-end; }

.h-time { position: relative; display: flex; flex-direction: column; gap: 10px; }
.h-time .when { width: 40px; flex: none; text-align: center; line-height: 1.15; }
.h-time .when b { display: block; font-size: 1.25rem; font-weight: 900; }
.h-time .when small { font-size: .66rem; color: var(--s-muted); font-weight: 700; }

.h-book { display: flex; gap: 14px; align-items: center; }
.h-book .cover { width: 64px; height: 86px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--s-grad); color: #fff; box-shadow: var(--s-glow); transform: rotate(-4deg); }
.h-book .cover img { width: 100%; height: 100%; object-fit: cover; }
.h-book .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-book .tx b { font-weight: 800; }
.h-book .tx small { color: var(--s-muted); font-size: .76rem; }

.h-news .hd { display: flex; align-items: center; gap: 10px; }
.h-news .hd b { flex: 1; font-weight: 800; }
.h-news .ico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--s-card-2); }
.h-news.pin .ico { background: var(--s-grad); color: #fff; }
.h-news p { margin: 10px 0 6px; color: var(--s-text-2); font-size: .88rem; line-height: 1.95; white-space: pre-line; }
.h-news small { color: var(--s-muted); font-size: .72rem; }

/* ═════════════════════════════════════════════════════════ صفحه: حضور */

.a-hero { text-align: center; padding: 18px 18px 22px; }
.a-hero .glow {
    position: absolute; z-index: -1;
    width: 280px; height: 280px;
    top: 34px; left: 50%; transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(31, 168, 255, .55) 0%, rgba(79, 91, 255, .35) 35%, transparent 68%);
    filter: blur(6px);
    animation: s-float 5s ease-in-out infinite;
}
.a-hero .glow::after {
    content: ''; position: absolute; inset: 22px; border-radius: 50%;
    border: 2px dashed rgba(120, 240, 230, .45);
    animation: s-spin 30s linear infinite;
}
.a-hero .top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.a-hero .flame { margin: 22px auto 0; width: 64px; color: #7EF0E0; animation: s-flicker 2.4s ease-in-out infinite; }
.a-hero .flame .s-ic { margin: 0 auto; }
.a-hero .huge { font-size: 6rem; margin-top: 2px; text-shadow: 0 6px 40px rgba(31, 168, 255, .55); }
.a-hero .cap { font-weight: 800; color: rgba(255, 255, 255, .85); margin-top: 2px; }
.a-hero .ms { margin-top: 16px; }
.a-hero .ms .s-pill { border: 1.5px solid rgba(120, 240, 230, .7); }
.a-hero .ruler {
    position: relative;
    display: flex; justify-content: space-between; align-items: flex-end;
    height: 26px; margin: 16px 4px 0;
}
.a-hero .ruler i { width: 1.5px; height: 10px; background: rgba(255, 255, 255, .25); border-radius: 2px; }
.a-hero .ruler i.long { height: 17px; background: rgba(255, 255, 255, .45); }
.a-hero .ruler b {
    position: absolute; bottom: -2px; right: 0;
    width: var(--p); height: 3px; border-radius: 3px;
    background: linear-gradient(270deg, #3EE8D0, #1FA8FF);
    box-shadow: 0 0 12px rgba(31, 168, 255, .8);
    animation: s-grow 1.1s var(--s-ease) both; transform-origin: right;
}

.a-quiz { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.a-quiz b { font-size: 1.15rem; font-weight: 900; }
.a-quiz .s-go { position: absolute; left: 18px; bottom: 18px; }

.a-rate { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.a-rate small { color: var(--s-muted); font-size: .72rem; }
.a-nums { display: flex; flex-direction: column; justify-content: center; gap: 12px; }

.a-cal .nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a-cal .nav b { font-size: 1rem; font-weight: 800; }

.a-code {
    text-align: center;
    direction: ltr;
    font-size: 1.6rem !important;
    font-weight: 900;
    letter-spacing: .22em;
    min-height: 64px !important;
}

.a-log details.s-row { display: block; padding: 0; }
.a-log summary { display: flex; align-items: center; gap: 13px; padding: 13px 14px; cursor: pointer; list-style: none; }
.a-log summary::-webkit-details-marker { display: none; }
.a-log details[open] summary .end { transform: rotate(180deg); }
.a-log .slip { padding: 0 16px 16px 16px; margin-inline-start: 59px; white-space: pre-line; font-size: .84rem; line-height: 2; color: var(--s-text-2); }

/* ═════════════════════════════════════════════════════════ صفحه: لول‌آپ */

.lu-hero .row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lu-hero .huge small { font-size: 1.1rem; font-weight: 800; opacity: .8; letter-spacing: 0; }
.lu-hero .cards { display: flex; gap: 6px; }
.lu-hero .cards span {
    width: 40px; height: 52px; display: grid; place-items: center;
    border-radius: 12px;
    border: 1.5px dashed rgba(255, 255, 255, .45);
    color: rgba(255, 255, 255, .5);
    transform: rotate(-6deg);
}
.lu-hero .cards span:nth-child(2) { transform: rotate(5deg); }
.lu-hero .cards span.on { background: linear-gradient(160deg, #E8F6FF, #A9D9FF); color: #1C6FB0; border: 0; box-shadow: 0 6px 16px rgba(80, 160, 230, .45); }
.lu-hero .ctas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* تقویمِ عملکرد: پنج پله از بنفش (زیرِ معمول) تا نارنجیِ درخشان (بالای معمول) */
.lu-cal .d { border: 0; color: var(--s-text); font-size: .76rem; }
.lu-cal .d.none { border: 1.5px dashed var(--s-line-2); opacity: .7; }
.lu-cal .d.frz { background: linear-gradient(160deg, #E8F6FF, #A9D9FF); color: #1C6FB0; }
.lu-cal .d.b1, .lu-scale .b1 { background: color-mix(in srgb, var(--s-lav) 70%, var(--s-card-3)); color: #fff; }
.lu-cal .d.b2, .lu-scale .b2 { background: color-mix(in srgb, var(--s-lav) 42%, var(--s-card-3)); }
.lu-cal .d.b3, .lu-scale .b3 { background: var(--s-card-3); }
.lu-cal .d.b4, .lu-scale .b4 { background: linear-gradient(140deg, #3EE8D0, #2A8CFF); color: #fff; opacity: .78; }
.lu-cal .d.b5, .lu-scale .b5 { background: var(--s-grad); color: #fff; box-shadow: 0 4px 14px rgba(31, 168, 255, .45); }
.lu-cal .d.today { outline: 2.5px solid var(--s-text); outline-offset: 2px; }
.lu-cal .d.today::after { display: none; }
.lu-scale { display: inline-flex; gap: 4px; }
.lu-scale i { width: 16px; height: 16px; border-radius: 50%; display: block; margin: 0 !important; }

.lu-tiles .s-card { display: flex; flex-direction: column; gap: 4px; min-height: 140px; }
.lu-tiles .ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--s-card); margin-bottom: auto; box-shadow: var(--s-shadow-sm); }
.lu-tiles b { font-weight: 800; margin-top: 12px; }
.lu-tiles small { color: var(--s-text-2); font-size: .74rem; }
.lu-tiles .dot { position: absolute; top: 16px; left: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--s-orange); box-shadow: 0 0 0 4px rgba(31, 168, 255, .25); }


/* ═══════════════════════════════════════════ لول‌آپ: گزارشِ تصویری */
.r-todo { display: flex; align-items: center; gap: 12px; }
.r-todo .ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: none; }
.r-todo .tx { flex: 1; min-width: 0; }
.r-todo b { display: block; font-size: 1rem; }
.r-todo small { opacity: .85; font-size: .78rem; }
.r-sum { margin-top: 14px; }
.r-sum .r-top { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.r-sum .s-ring .mid b { color: #fff; font-size: 1.05rem; }
.r-sum .s-ring .mid small { color: rgba(255, 255, 255, .7); }
.r-sum .s-pill { margin-top: 6px; }
.r-stats { margin-top: 12px; }
.r-stats .s-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
.ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.r-stats .s-stat .n { font-size: 1.12rem; }
.r-foot { font-size: .7rem; color: var(--s-muted); font-weight: 600; }
.r-cap { margin: 8px 4px 0; font-size: .72rem; color: var(--s-muted); }
.r-mood .strip { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; direction: ltr; }
.r-mood .m { aspect-ratio: 1 / 1.5; border-radius: 8px; background: var(--s-card-3); display: grid; place-items: center; font-size: clamp(.5rem, 3vw, .95rem); overflow: hidden; }
.r-mood .m.v1 { background: color-mix(in srgb, #FF6B8B 45%, var(--s-card-3)); }
.r-mood .m.v2 { background: color-mix(in srgb, #FFB86B 40%, var(--s-card-3)); }
.r-mood .m.v3 { background: color-mix(in srgb, #FFC94D 38%, var(--s-card-3)); }
.r-mood .m.v4 { background: color-mix(in srgb, #8EDC6A 40%, var(--s-card-3)); }
.r-mood .m.v5 { background: color-mix(in srgb, #3DDC97 50%, var(--s-card-3)); }
.r-mood .s-legend { direction: ltr; }
.r-top-act .it + .it { margin-top: 14px; }
.r-top-act .hd { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: .86rem; }
.r-top-act .hd span { font-weight: 800; white-space: nowrap; }
.r-top-act .hd small { color: var(--s-muted); font-weight: 600; }
.r-top-act .it:nth-child(2) .s-bar > i { background: linear-gradient(90deg, #9D8CFF, #C4B8FF); }
.r-top-act .it:nth-child(3) .s-bar > i { background: linear-gradient(90deg, #3DDC97, #8EF0C4); }
.r-top-act .it:nth-child(4) .s-bar > i { background: linear-gradient(90deg, #5EC8FF, #A8E2FF); }
.r-top-act .it:nth-child(n+5) .s-bar > i { background: var(--s-text-2); }
.r-habits .s-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px; }
.r-habits b { font-size: .8rem; line-height: 1.5; }
.r-habits small { font-size: .68rem; color: var(--s-muted); }

/* ═══════════════════════════════════════════ لول‌آپ: فرمِ گزارشِ روزانه */
.luf-sec { margin-top: 14px; }
.luf-sec > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.luf-sec > header b { display: block; font-size: .98rem; }
.luf-sec > header small { display: block; font-size: .72rem; color: var(--s-muted); line-height: 1.7; }
.luf-muted { color: var(--s-muted); font-size: .82rem; line-height: 1.9; margin: 0 0 10px; }
.luf .lu-dur { display: inline-flex; align-items: center; gap: 4px; flex: none; direction: rtl; }
.luf .lu-dur input {
    width: 46px; height: 44px; text-align: center; font: inherit; font-weight: 800; font-size: 1.05rem;
    border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-card-2); color: var(--s-text);
    -moz-appearance: textfield; appearance: textfield; padding: 0;
}
.luf .lu-dur input::-webkit-outer-spin-button, .luf .lu-dur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.luf .lu-dur input:focus { outline: none; border-color: var(--s-orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-orange) 25%, transparent); }
.luf .lu-dur .u { font-size: .72rem; color: var(--s-muted); font-weight: 700; }

.lu-act { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 18px; background: var(--s-card-2); border: 1px solid var(--s-line); }
.lu-act + .lu-act { margin-top: 8px; }
.lu-act .name { position: relative; flex: 1; min-width: 0; }
.lu-act .name input { width: 100%; height: 44px; border: 0; background: transparent; color: var(--s-text); font: inherit; font-size: 16px; font-weight: 600; padding: 0 6px; }
.lu-act .name input:focus { outline: none; }
.lu-act .lu-dur input { background: var(--s-card); width: 40px; height: 40px; border-radius: 12px; }
.lu-act .rm { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--s-muted); font-size: .9rem; cursor: pointer; flex: none; }
.lu-act .rm:active { background: var(--s-err-bg); color: var(--s-err); }
.lu-sug {
    position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 8px); padding: 6px; border-radius: 16px;
    background: var(--s-card); border: 1px solid var(--s-line-2); box-shadow: var(--s-shadow); max-height: 240px; overflow: auto;
}
.lu-sug[hidden] { display: none; }
.lu-sug button { display: block; width: 100%; text-align: start; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: var(--s-text); font: inherit; font-size: .88rem; cursor: pointer; }
.lu-sug button:hover, .lu-sug button:active { background: var(--s-card-2); }

.luf-dur + .luf-dur { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--s-line); }
.luf-dur .top { display: flex; align-items: center; gap: 10px; }
.luf-dur .top .ico { width: 34px; height: 34px; border-radius: 11px; }
.luf-dur label { flex: 1; min-width: 0; }
.luf-dur label b { display: block; font-size: .88rem; }
.luf-dur label small { display: block; font-size: .7rem; color: var(--s-muted); }
.luf-dur .s-chips { margin-top: 10px; padding-bottom: 2px; }
.luf-dur .lu-chip { border: 1px solid var(--s-line); }
.luf-dur .lu-chip:active { background: var(--s-strong-bg); color: var(--s-strong-fg); transform: scale(.96); }

.luf-clock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.luf-clock label { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: var(--s-card-2); border: 1px solid var(--s-line); }
.luf-clock label > span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--s-muted); font-weight: 700; }
.luf-clock label { min-width: 0; }
.luf-clock input { min-width: 0; border: 0; background: none; color: var(--s-text); font: inherit; font-size: 1.3rem; font-weight: 900; padding: 0; width: 100%; direction: ltr; text-align: right; color-scheme: dark; }
[data-theme='light'] .luf-clock input { color-scheme: light; }
.luf-clock input:focus { outline: none; }

.luf-habit { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.luf-habit + .luf-habit { border-top: 1px dashed var(--s-line); }
.luf-habit .t { flex: 1; font-weight: 700; font-size: .9rem; }
.luf-habit .yn { display: inline-flex; gap: 6px; }
.luf-habit .yn input { position: absolute; opacity: 0; pointer-events: none; }
.luf-habit .yn label {
    display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
    background: var(--s-card-2); border: 1px solid var(--s-line); font-size: .82rem; font-weight: 800; color: var(--s-muted);
    transition: transform .2s var(--s-ease), background .2s;
}
.luf-habit .yn label:active { transform: scale(.94); }
.luf-habit .yn input:checked + label.yes { background: var(--s-ok); border-color: transparent; color: #06281A; }
.luf-habit .yn input:checked + label.no  { background: var(--s-err-bg); border-color: transparent; color: var(--s-err); }
.luf-habit .yn input:focus-visible + label { outline: 2px solid var(--s-orange); outline-offset: 2px; }

.luf-moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.luf-moods label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 2px 10px; border-radius: 18px; background: var(--s-card-2); border: 1px solid var(--s-line); cursor: pointer; transition: transform .25s var(--s-ease), background .2s; }
.luf-moods input { position: absolute; opacity: 0; pointer-events: none; }
.luf-moods .e { font-size: 1.7rem; line-height: 1; filter: grayscale(.7); transition: filter .2s, transform .3s var(--s-ease); }
.luf-moods .l { font-size: .66rem; font-weight: 700; color: var(--s-muted); text-align: center; }
.luf-moods label.on { background: var(--s-grad-soft); border-color: var(--s-orange); transform: translateY(-3px); }
.luf-moods label.on .e { filter: none; transform: scale(1.18); }
.luf-moods label.on .l { color: var(--s-text); }
.luf textarea.s-input { min-height: 110px; line-height: 1.9; resize: vertical; }

.luf-save {
    position: sticky; bottom: 0; z-index: 30; margin: 18px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--s-bg) 65%, transparent);
}
.luf-save .s-btn { height: 56px; font-size: 1rem; }

/* ═══════════════════════════════════════════ فرم‌ها و صفحهٔ تحویل */
label.s-field, div.s-field { display: block; }
.s-field .lbl { display: block; font-size: .84rem; font-weight: 800; margin-bottom: 8px; color: var(--s-text); }
.s-field .lbl small { display: block; font-weight: 600; font-size: .72rem; color: var(--s-muted); margin-top: 2px; }
.s-form .s-field:last-of-type { margin-bottom: 16px; }
.s-form textarea { min-height: 120px; line-height: 1.9; resize: vertical; }
.pj-hero h1 { font-size: 1.3rem; }
.pj-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.pj-desc { margin: 0; white-space: pre-line; line-height: 2.05; font-size: .9rem; color: var(--s-text-2); }
.pj-hint { font-size: .76rem; color: var(--s-muted); margin: -4px 4px 10px; }
.pj-status { border-inline-start: 4px solid var(--s-line-2); }
.pj-status.ok { border-inline-start-color: var(--s-ok); }
.pj-status.err { border-inline-start-color: var(--s-err); }
.pj-status.warn { border-inline-start-color: var(--s-warn); }

/* ═══════════════════════════════════════════ آموزش: تکالیف */
.s-list > [hidden], .s-grid > [hidden] { display: none !important; }
.s-chips .s-pill b { margin-inline-start: 4px; opacity: .7; font-weight: 800; }
.hw-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hw-sum b { display: block; font-size: 1.15rem; font-weight: 900; }
.hw-sum small { font-size: .78rem; opacity: .85; }
.hw-sum .big { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.s-card.tint-mint.hw-sum .big { background: color-mix(in srgb, var(--s-mint) 25%, transparent); color: var(--s-mint); }
.hw { display: block; padding: 14px; color: inherit; text-decoration: none; }
.hw-top { display: flex; align-items: center; gap: 12px; }
.hw-tx { flex: 1; min-width: 0; }
.hw-tx b { display: block; font-size: .93rem; line-height: 1.6; }
.hw-tx small { display: block; font-size: .72rem; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-score { text-align: center; line-height: 1.1; flex: none; padding: 6px 12px; border-radius: 14px; background: var(--s-ok-bg); color: var(--s-ok); }
.hw-score b { display: block; font-size: 1.25rem; font-weight: 900; }
.hw-score small { font-size: .62rem; font-weight: 700; }
.hw-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hw-foot small { font-size: .72rem; color: var(--s-muted); }
.hw-foot .go { margin-inline-start: auto; color: var(--s-muted); display: grid; }
.hw-bar { height: 4px; margin-top: 12px; }
.hw.hot { border-color: color-mix(in srgb, var(--s-orange) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--s-orange) 25%, transparent), var(--s-shadow-sm); }
.hw.late, .hw.soon { opacity: .72; }
.hs-hero h1 { margin: 14px 0 0; font-size: 1.3rem; position: relative; z-index: 1; }
.hs-row { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.hs-due { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .84rem; font-weight: 600; position: relative; z-index: 1; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .14); }
.hs-due b { margin-inline-start: 4px; }
.hs-result { display: flex; align-items: center; gap: 18px; }
.hs-result b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.hs-result small { display: block; font-size: .74rem; color: var(--s-muted); line-height: 1.8; }
.hs-or { display: flex; align-items: center; gap: 10px; margin: -2px 0 12px; color: var(--s-muted); font-size: .76rem; font-weight: 700; }
.hs-or::before, .hs-or::after { content: ''; flex: 1; height: 1px; background: var(--s-line); }

/* ═══════════════════════════════════════════ آموزش: صفحهٔ دوره */
.c-hero { background:
    radial-gradient(90% 80% at 100% 0%, rgba(157, 140, 255, .55), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(31, 168, 255, .55), transparent 60%),
    linear-gradient(150deg, #2A1F4D, #141A3A 60%, #0E2E44); }
.c-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.c-top h1 { font-size: 1.25rem; margin: 0 0 2px; }
.c-top small { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; }
.c-ava { width: 58px; height: 58px; border-radius: 20px; flex: none; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; background: var(--s-grad); box-shadow: var(--s-glow); }
.c-times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; padding: 12px 4px; border-radius: 18px; background: rgba(255, 255, 255, .08); position: relative; z-index: 1; text-align: center; }
.c-stats div + div { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.c-stats b { display: block; font-size: 1.15rem; font-weight: 900; }
.c-stats small { font-size: .66rem; color: rgba(255, 255, 255, .7); }
.c-tabs { margin: 16px 0 12px; }
#c-panels > div { display: flex; flex-direction: column; gap: 10px; }
.c-note .hd { display: flex; align-items: center; gap: 12px; }
.c-note .tx { flex: 1; min-width: 0; }
.c-note .tx b { display: block; font-size: .92rem; }
.c-note .tx small { font-size: .72rem; color: var(--s-muted); }
.c-note p { margin: 10px 0 0; font-size: .84rem; color: var(--s-text-2); line-height: 1.9; }
.c-note .ft { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.c-note .ft:empty { display: none; }

/* ═══════════════════════════════════════════ آموزش: دوره‌ها و برنامهٔ هفتگی */
.cs-card { display: flex; align-items: center; gap: 14px; padding: 14px; color: inherit; text-decoration: none; }
.cs-card.wait { opacity: .75; }
.cs-ava { width: 54px; height: 54px; border-radius: 18px; flex: none; display: grid; place-items: center; color: #fff; font-size: 1.4rem; font-weight: 900; box-shadow: var(--s-shadow-sm); }
.cs-tx { flex: 1; min-width: 0; }
.cs-tx b { display: block; font-size: .95rem; }
.cs-tx small { display: block; font-size: .72rem; color: var(--s-muted); }
.cs-times { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cs-times span { font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--s-card-3); color: var(--s-text-2); }
.cs-card .go { color: var(--s-muted); display: grid; }

.sc-sum { margin: 0 4px 10px; font-size: .8rem; color: var(--s-muted); font-weight: 600; }
.sc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.sc-week button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 8px; border-radius: 18px; cursor: pointer;
    background: var(--s-card); border: 1px solid var(--s-line); color: var(--s-text-2); font: inherit; min-width: 0;
    transition: transform .25s var(--s-ease), background .2s;
}
.sc-week button small { font-size: 1rem; font-weight: 900; color: var(--s-text); }
.sc-week button b { font-size: .55rem; font-weight: 700; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
.sc-week .dots { display: flex; gap: 2px; height: 5px; }
.sc-week .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--s-orange); }
.sc-week button.today { border-color: var(--s-orange); }
.sc-week button.on { background: var(--s-grad); border-color: transparent; transform: translateY(-3px); box-shadow: var(--s-glow); }
.sc-week button.on small, .sc-week button.on b { color: #fff; }
.sc-week button.on .dots i { background: #fff; }
.sc-day h3 { margin: 22px 4px 12px; font-size: 1.05rem; font-weight: 900; }
.sc-slot { display: flex; gap: 14px; position: relative; padding-bottom: 12px; }
.sc-slot .tm { width: 48px; flex: none; text-align: center; padding-top: 14px; line-height: 1.3; }
.sc-slot .tm b { display: block; font-size: .92rem; font-weight: 900; }
.sc-slot .tm small { font-size: .7rem; color: var(--s-muted); }
.sc-slot .bd { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 22px; background: var(--s-card); border: 1px solid var(--s-line); border-inline-start: 4px solid var(--c, var(--s-orange)); }
.sc-slot .bd > b { display: block; font-size: .95rem; }
.sc-slot .bd > small { display: flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--s-muted); margin-top: 2px; }
.sc-slot.ember { --c: #1FA8FF; } .sc-slot.lav { --c: #9D8CFF; } .sc-slot.mint { --c: #3DDC97; }
.sc-slot.sky { --c: #5EC8FF; } .sc-slot.butter { --c: #FFC94D; } .sc-slot.rose { --c: #FF6B8B; }
.sc-slot.live .bd { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 28%, var(--s-card)), var(--s-card) 80%); box-shadow: 0 10px 30px -12px var(--c); }
.sc-slot.past { opacity: .5; }
.sc-free { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 20px; border-radius: var(--s-r-xl); border: 1.5px dashed var(--s-line-2); color: var(--s-muted); text-align: center; }
.sc-free b { color: var(--s-text); margin-top: 6px; }
.sc-free small { font-size: .76rem; }
@media print { .s-top, .s-nav, .sc-week { display: none !important; } .sc-day[hidden] { display: block !important; } }

/* ═══════════════════════════════════════════ تقویم */
.k-hero { padding: 18px 14px 20px; }
.k-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.s-ib.glass { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.k-title { text-align: center; line-height: 1.2; }
.k-title b { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.k-title small { font-size: .8rem; opacity: .8; }
.k-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; margin-top: 16px; position: relative; z-index: 1; }
.k-grid .wd { text-align: center; font-size: .72rem; font-weight: 800; opacity: .75; padding-bottom: 4px; }
.k-d {
    aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
    color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    position: relative; padding: 0; transition: transform .2s var(--s-ease), background .2s;
}
.k-d b { font-size: .9rem; font-weight: 800; line-height: 1; }
.k-d .dots { display: flex; gap: 2px; height: 5px; }
.k-d .dots i { width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.k-d.past { opacity: .55; border-style: dashed; }
.k-d.has { background: rgba(255, 255, 255, .16); }
.k-d.today { background: #fff; color: #08101C; border-color: #fff; opacity: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.k-d.on { background: #08101C; color: #fff; border-color: #08101C; transform: scale(1.08); opacity: 1; }
.k-d:active { transform: scale(.92); }
.k-now { position: relative; z-index: 1; margin-top: 14px; }
.k-legend { justify-content: center; margin-top: 12px; }
.k-it { --c: var(--s-orange); border-inline-start: 4px solid var(--c); }
.k-it.past { opacity: .6; }
.k-date { width: 42px; flex: none; text-align: center; line-height: 1.15; }
.k-date b { display: block; font-size: 1.2rem; font-weight: 900; color: var(--c); }
.k-date small { font-size: .62rem; color: var(--s-muted); font-weight: 700; }
.k-ico { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }

/* ═══════════════════════════════════════════ آموزش: صفحهٔ اصلی */
.e-due { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; }
.e-due small { display: block; font-size: .75rem; opacity: .85; font-weight: 700; }
.e-due b { display: block; font-size: 1.2rem; font-weight: 900; margin: 2px 0 10px; }
.e-due .big { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: none; animation: s-float 4s ease-in-out infinite; }
.s-card.tint-mint.e-due .big { background: color-mix(in srgb, var(--s-mint) 25%, transparent); color: var(--s-mint); }
.e-quick { margin-top: 12px; }
.e-quick .s-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.e-quick .ico { margin-bottom: 6px; }
.e-quick b { font-size: .9rem; }
.e-quick small { font-size: .72rem; color: var(--s-muted); }
.s-seg button b, .s-seg a b { margin-inline-start: 4px; opacity: .6; }
.cs-times .live { background: color-mix(in srgb, var(--s-sky) 20%, transparent); color: var(--s-sky); }
.e-shelf { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.e-shelf::-webkit-scrollbar { display: none; }
.e-bk { flex: none; width: 116px; color: inherit; text-decoration: none; }
.e-bk .cv { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4.2; border-radius: 16px; overflow: hidden; background: var(--s-grad) center / cover; box-shadow: var(--s-shadow); padding: 10px; }
.e-bk .fb { color: #fff; font-weight: 900; font-size: .82rem; text-align: center; line-height: 1.6; }
.e-bk .pg { position: absolute; inset: auto 8px 8px; height: 5px; border-radius: 9px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.e-bk .pg i { display: block; height: 100%; background: #fff; border-radius: inherit; margin-inline-start: auto; }
.e-bk b { display: block; font-size: .8rem; margin-top: 8px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.e-bk small { font-size: .68rem; color: var(--s-muted); }
.e-mini { width: 42px; height: 54px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--s-card-3) center / cover; color: var(--s-muted); }

/* ═══════════════════════════════════════════ پروفایل */
.pf-hero { text-align: center; padding-top: 26px; }
.pf-hero > * { position: relative; z-index: 1; }
.pf-ava { position: relative; display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 34px; padding: 4px; background: var(--s-grad); box-shadow: var(--s-glow); color: #fff; text-decoration: none; }
.pf-ava img, .pf-ava span { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; display: grid; place-items: center; background: #0B1424; font-size: 2.6rem; font-weight: 900; }
.pf-ava i { position: absolute; bottom: -4px; inset-inline-start: -4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #08101C; box-shadow: var(--s-shadow-sm); }
.pf-hero h1 { margin-top: 14px; font-size: 1.35rem; }
.pf-hero > small { display: block; font-size: .8rem; margin-top: 2px; }
.pf-bio { margin: 10px auto 0; max-width: 300px; font-size: .84rem; line-height: 1.9; color: rgba(255, 255, 255, .85); }
.pf-level { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); text-align: start; color: #fff; text-decoration: none; }
.pf-level > div { flex: 1; min-width: 0; }
.pf-level b { display: block; font-size: .95rem; }
.pf-level small { font-size: .74rem; color: rgba(255, 255, 255, .7); }
.pf-level .s-ring .mid b { color: #fff; font-size: 1.05rem; }
.pf-level .s-ring .mid small { color: rgba(255, 255, 255, .6); font-size: .55rem; }
.pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pf-stats .s-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; text-align: center; }
.pf-stats .ico { width: 32px; height: 32px; border-radius: 11px; }
.pf-stats b { font-size: 1rem; font-weight: 900; }
.pf-stats small { font-size: .64rem; color: var(--s-muted); font-weight: 700; }
.pf-medals { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.pf-medals::-webkit-scrollbar { display: none; }
.pf-medal { flex: none; width: 78px; text-align: center; color: inherit; text-decoration: none; }
.pf-medal .art { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 26px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--s-butter) 35%, var(--s-card)), var(--s-card)); border: 1px solid var(--s-line); color: var(--s-butter); }
.pf-medal img { width: 60px; height: 60px; object-fit: contain; }
.pf-medal.locked .art { filter: grayscale(1); opacity: .5; background: var(--s-card); }
.pf-medal .art i { position: absolute; top: 6px; inset-inline-end: 6px; color: var(--s-muted); }
.pf-medal small { display: block; margin-top: 6px; font-size: .68rem; font-weight: 700; line-height: 1.5; color: var(--s-text-2); }
.pf-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--s-card-3); gap: 3px; }
.pf-split i { display: block; border-radius: 999px; animation: s-grow .9s var(--s-ease) both; transform-origin: right; }

/* ═══════════════════════════════════════════ صفحه‌های قدیمی داخلِ پوستهٔ تازه */
body.s .page-head .ribbon { display: none; }
body.s .page-head { margin-bottom: 10px; }
body.s .page-head:not(:has(.page-actions, .btn, .sub:not(:empty))) { display: none; }

/* ═══════════════════════════════════════════ نوارِ پایین: ۵ تب، لول‌آپ با بادکنک */
.s-nav.n5 .on { flex-grow: 2.1; }
.s-nav .badge { background: #FF5C7A; }
.s-nav .t-levelup:not(.on) { color: #3EE8D0; }
.s-nav .t-levelup:not(.on) svg { animation: s-bob 3.2s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(62, 232, 208, .45)); }
.s-nav .t-levelup.on svg { color: #1FA8FF; }
[data-theme='light'] .s-nav .t-levelup:not(.on) { color: #0FB5A0; }

/* برگهٔ آموزش */
.ed-hw { display: flex; align-items: center; gap: 12px; padding: 16px; }
.ed-hw .big { width: 50px; height: 50px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: none; }
.s-card.tint-mint.ed-hw .big { background: color-mix(in srgb, var(--s-mint) 25%, transparent); color: var(--s-mint); }
.ed-hw .tx { flex: 1; min-width: 0; }
.ed-hw b { display: block; font-size: 1.05rem; font-weight: 900; }
.ed-hw small { font-size: .8rem; opacity: .85; }
.ed-att { margin-top: 10px; }
@keyframes s-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
.h-fill { display: flex; flex-direction: column; align-items: flex-start; }
.h-fill .big { font-size: 2.6rem; font-weight: 900; line-height: 1.1; margin-top: 10px; letter-spacing: -.03em; }
.h-fill small { font-size: .78rem; color: var(--s-text-2); font-weight: 700; }

/* بادکنکِ لول‌آپ */
.s-balloon { display: inline-block; color: rgba(255, 255, 255, .8); filter: drop-shadow(0 18px 30px rgba(31, 168, 255, calc(.25 + var(--lift) / 250))); animation: s-balloon 5s ease-in-out infinite; transform-origin: 50% 90%; }
.s-balloon svg { display: block; width: 100%; height: auto; }
@keyframes s-balloon {
    0%, 100% { transform: translateY(calc(var(--lift) * -.12px)) rotate(-3deg); }
    50%      { transform: translateY(calc(var(--lift) * -.12px - 10px)) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .s-balloon { animation: none; } }

/* هابِ لول‌آپ: بادکنک و کارتِ پررنگِ نمودارها */
.lu-hero { background:
    radial-gradient(70% 60% at 15% 20%, rgba(62, 232, 208, .45), transparent 65%),
    radial-gradient(80% 80% at 100% 100%, rgba(79, 91, 255, .6), transparent 60%),
    linear-gradient(160deg, #0E3A5C, #0A1F3D 55%, #1A1858); }
.lu-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.lu-top .s-balloon { margin-top: -6px; margin-bottom: -18px; }
.lu-num .cards { margin-top: 10px; }
.lu-num .cards span { width: 32px; height: 42px; }
.lu-charts {
    display: block; margin-top: 14px; padding: 16px; color: inherit; text-decoration: none; position: relative;
    border: 1.5px solid transparent;
    background: linear-gradient(var(--s-card), var(--s-card)) padding-box, linear-gradient(135deg, #3EE8D0, #1FA8FF 50%, #9D8CFF) border-box;
    box-shadow: 0 16px 40px -18px rgba(31, 168, 255, .7);
}
.lu-charts .hd { display: flex; align-items: center; gap: 12px; }
.lu-charts .hd > div { flex: 1; min-width: 0; }
.lu-charts .hd b { display: block; font-size: 1.2rem; font-weight: 900; letter-spacing: -.01em; }
.lu-charts .hd small { font-size: .74rem; color: var(--s-muted); }
.lu-charts .ico { width: 46px; height: 46px; border-radius: 16px; }
.lu-charts .go { color: var(--s-muted); display: grid; }
.s-chart .grid line.strong { stroke: var(--s-text-2); stroke-dasharray: none; opacity: .45; }

/* گزارشِ تصویری: نمودارهای تازه */
.r-jump { margin: 0 -16px 12px; padding: 0 16px 2px; }
.r-jump .s-pill { border: 1px solid var(--s-line); }
.s-sec[id] { scroll-margin-top: 80px; }
.r-hint { margin: 0 0 8px; font-size: .74rem; color: var(--s-muted); line-height: 1.9; }
.r-day { display: flex; align-items: center; gap: 16px; }
.r-day .dn { position: relative; flex: none; }
.r-day .dn svg { display: block; }
.r-day .dn circle { animation: s-pop .7s var(--s-ease) both; animation-delay: var(--d); }
.r-day .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.r-day .mid b { font-size: 1.6rem; font-weight: 900; }
.r-day .mid small { font-size: .7rem; color: var(--s-muted); }
.r-day ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.r-day li { display: flex; align-items: center; gap: 7px; font-size: .8rem; padding: 4px 0; }
.r-day li i { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.r-day li span { flex: 1; color: var(--s-text-2); }
.r-day li b { font-weight: 800; white-space: nowrap; }
.r-cmp .it + .it { margin-top: 16px; }
.r-cmp .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: .88rem; }
.r-cmp .br { display: grid; grid-template-columns: 30px 1fr 74px; align-items: center; gap: 8px; font-size: .72rem; color: var(--s-muted); }
.r-cmp .br + .br { margin-top: 5px; }
.r-cmp .br em { font-style: normal; font-weight: 800; color: var(--s-text); text-align: left; }
.r-cmp .br .s-bar { height: 10px; }
.r-cmp .br.prev .s-bar > i { background: var(--s-text-2); opacity: .45; }
.r-table { margin-top: 18px; padding: 0; overflow: hidden; }
.r-table summary { display: flex; align-items: center; gap: 8px; padding: 16px; font-weight: 800; font-size: .88rem; cursor: pointer; list-style: none; }
.r-table summary::-webkit-details-marker { display: none; }
.r-table .wrap { overflow-x: auto; padding: 0 12px 14px; }
.r-table table { width: 100%; border-collapse: collapse; font-size: .76rem; white-space: nowrap; }
.r-table th { color: var(--s-muted); font-weight: 700; padding: 6px; text-align: right; }
.r-table td { padding: 8px 6px; border-top: 1px solid var(--s-line); }
.r-table tr.none td { color: var(--s-muted); }

/* ساعتِ خواب و بیداری */
.sw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.sw-stats > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 16px; background: var(--s-card-2); text-align: center; }
.sw-stats .i { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, #9D8CFF 22%, transparent); color: #9D8CFF; }
.sw-stats .i.sun { background: color-mix(in srgb, #FFC94D 22%, transparent); color: #E3A500; }
.sw-stats b { font-size: 1.1rem; font-weight: 900; direction: ltr; }
.sw-stats small { font-size: .66rem; color: var(--s-muted); font-weight: 700; }
.sw { display: block; width: 100%; height: auto; overflow: visible; }
.sw .band { fill: color-mix(in srgb, #3EE8D0 13%, transparent); stroke: color-mix(in srgb, #3EE8D0 35%, transparent); stroke-dasharray: 3 3; }
.sw .grid { stroke: var(--s-line-2); stroke-dasharray: 2 4; }
.sw .mid { stroke: var(--s-text-2); opacity: .5; }
.sw .ax { font-size: 8.5px; fill: var(--s-muted); font-weight: 700; }
.sw .day { font-size: 8.5px; fill: var(--s-text-2); font-weight: 700; }
.sw .tm { font-size: 7.5px; fill: var(--s-muted); font-weight: 700; }
.sw .miss { stroke: var(--s-line-2); stroke-dasharray: 2 3; stroke-linecap: round; }
.sw .night { transform-box: fill-box; transform-origin: left center; animation: sw-in .7s var(--s-ease) both; animation-delay: var(--d); }
.sw .night:hover rect { filter: brightness(1.15); }
@keyframes sw-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* ═══════════════════════════════════════════ صفحه‌های بیرون از حساب (ورود، خطا…) */
body.s.guest { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.g-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.g-aurora i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: g-drift 18s ease-in-out infinite alternate; }
.g-aurora i:nth-child(1) { width: 340px; height: 340px; top: -90px; right: -80px; background: #3EE8D0; }
.g-aurora i:nth-child(2) { width: 300px; height: 300px; top: 30%; left: -120px; background: #4F5BFF; animation-delay: -6s; }
.g-aurora i:nth-child(3) { width: 260px; height: 260px; bottom: -100px; right: 10%; background: #1FA8FF; animation-delay: -12s; opacity: .4; }
[data-theme='light'] .g-aurora i { opacity: .35; }
@keyframes g-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 40px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .g-aurora i { animation: none; } }
.g-theme { position: fixed; top: calc(var(--s-safe-t) + 14px); left: 16px; z-index: 5; }
.g-main { width: min(100%, 420px); margin: 0 auto; padding: calc(var(--s-safe-t) + 56px) 16px calc(var(--s-safe-b) + 28px); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; justify-content: center; }
.g-brand { text-align: center; margin-bottom: 22px; animation: s-up .6s var(--s-ease) both; }
.g-brand img { width: 84px; height: 84px; border-radius: 26px; box-shadow: 0 18px 40px -12px rgba(31, 168, 255, .6), 0 0 0 1px rgba(255, 255, 255, .12); animation: s-float 5s ease-in-out infinite; }
.g-brand h1 { margin: 14px 0 0; font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.g-brand p { margin: 2px 0 0; font-size: .8rem; color: var(--s-muted); font-weight: 600; }
.g-card {
    position: relative; padding: 24px 20px 20px; border-radius: 30px;
    background: var(--s-glass); border: 1px solid var(--s-glass-line);
    -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: var(--s-shadow); animation: s-up .6s .08s var(--s-ease) both;
}
.g-card h2 { margin: 0; font-size: 1.25rem; font-weight: 900; }
.g-sub { margin: 4px 0 18px; font-size: .8rem; color: var(--s-muted); line-height: 1.9; }
.g-card .s-note { margin-bottom: 14px; animation: g-shake .4s; }
@keyframes g-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.g-field { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.g-field input {
    width: 100%; height: 56px; padding: 0 48px; border-radius: 18px; border: 1.5px solid var(--s-line-2);
    background: var(--s-card); color: var(--s-text); font: inherit; font-size: 16px; font-weight: 700; text-align: right;
    transition: border-color .2s, box-shadow .2s;
}
.g-field input::placeholder { color: var(--s-muted); font-weight: 500; }
.g-field input:focus { outline: none; border-color: var(--s-orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-orange) 18%, transparent); }
.g-field .ic { position: absolute; right: 16px; color: var(--s-muted); display: grid; pointer-events: none; }
.g-field:focus-within .ic { color: var(--s-orange); }
.g-field .eye { position: absolute; left: 8px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--s-muted); cursor: pointer; display: grid; place-items: center; }
.g-field .eye.on { color: var(--s-orange); background: var(--s-hi); }
.g-switch { display: flex; align-items: center; gap: 10px; margin: 4px 2px 18px; font-size: .86rem; font-weight: 700; cursor: pointer; user-select: none; }
.g-switch[hidden] { display: none; }
.g-switch input { position: absolute; opacity: 0; pointer-events: none; }
.g-switch .tg { width: 44px; height: 26px; border-radius: 999px; background: var(--s-card-3); position: relative; transition: background .25s; flex: none; }
.g-switch .tg::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .25s var(--s-spring); }
.g-switch input:checked + .tg { background: var(--s-grad); }
.g-switch input:checked + .tg::after { transform: translateX(-18px); }
.g-switch input:focus-visible + .tg { outline: 2px solid var(--s-orange); outline-offset: 2px; }
.g-submit { height: 56px; font-size: 1.02rem; }
.g-help { margin: 14px 0 0; text-align: center; font-size: .74rem; color: var(--s-muted); }
.g-foot { text-align: center; margin: 18px 0 0; font-size: .84rem; color: var(--s-text-2); }
.g-foot a { color: var(--s-orange); font-weight: 800; text-decoration: none; }
.g-state { text-align: center; }
.g-state .art { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 30px; display: grid; place-items: center; background: var(--s-grad); color: #fff; box-shadow: var(--s-glow); }
.g-state .code { font-size: 3.4rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-state h2 { margin: 6px 0 8px; font-size: 1.25rem; font-weight: 900; }
.g-state p { margin: 0 0 20px; color: var(--s-muted); font-size: .88rem; line-height: 2; white-space: pre-line; }
.g-state .acts { display: flex; flex-direction: column; gap: 8px; }
.g-spin { animation: s-spin 6s linear infinite; }

/* نوارِ «در حالِ باز شدن» */
.s-loadbar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; pointer-events: none; background: var(--s-grad); transform-origin: right; transform: scaleX(0); opacity: 0; }
.s-loadbar.on { opacity: 1; animation: s-loadbar 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes s-loadbar { 0% { transform: scaleX(0); } 15% { transform: scaleX(.45); } 100% { transform: scaleX(.92); } }

/* ═══════════════════════════════════════════ فرهنگی */
.cu-todo + .cu-todo { margin-top: 8px; }
.cu-none { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 18px; color: var(--s-muted); }
.cu-none b { color: var(--s-text); margin-top: 6px; }
.cu-none small { font-size: .78rem; }
.cu-shelf { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.cu-shelf::-webkit-scrollbar { display: none; }
.cu-shelf:has(.cu-ev:only-child) .cu-ev { width: 100%; }
.cu-ev { flex: none; width: 82%; scroll-snap-align: center; border-radius: 28px; overflow: hidden; background: var(--s-card); border: 1px solid var(--s-line); color: inherit; text-decoration: none; box-shadow: var(--s-shadow-sm); transition: transform .25s var(--s-ease); }
.cu-ev:active { transform: scale(.98); }
.cu-ev.full { opacity: .7; }
.cu-ev .cv { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.cu-ev .cv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%); }
.cu-ev .ltr { font-size: 4rem; font-weight: 900; color: rgba(255, 255, 255, .9); }
.cu-ev .date { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: #0D1A2C; line-height: 1.1; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.cu-ev .date b { font-size: 1.3rem; font-weight: 900; }
.cu-ev .date small { font-size: .62rem; font-weight: 800; }
.cu-ev .price { position: absolute; bottom: 12px; left: 12px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .74rem; font-weight: 800; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cu-ev .bd { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.cu-ev .bd > b { font-size: 1rem; font-weight: 900; line-height: 1.6; }
.cu-ev .bd > small { font-size: .74rem; color: var(--s-muted); }
.cu-ev .tags, .cu-tk .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cu-ev .tags .s-pill, .cu-tk .tags .s-pill { font-size: .66rem; padding: 3px 9px; }
.cu-ev .s-bar { height: 5px; margin-top: 10px; }
.cu-tk { display: flex; align-items: stretch; border-radius: 22px; background: var(--s-card); border: 1px solid var(--s-line); color: inherit; text-decoration: none; overflow: hidden; position: relative; }
.cu-tk .stub { width: 66px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; color: #fff; background: var(--s-grad); position: relative; }
.cu-tk .stub b { font-size: 1.4rem; font-weight: 900; }
.cu-tk .stub small { font-size: .62rem; font-weight: 800; opacity: .9; }
/* بریدگیِ بلیت */
.cu-tk .stub::before, .cu-tk .stub::after { content: ''; position: absolute; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--s-bg); }
.cu-tk .stub::before { top: -9px; } .cu-tk .stub::after { bottom: -9px; }
.cu-tk.pending .stub { background: linear-gradient(150deg, #FFE08A, #F4A300); }
.cu-tk.rejected .stub, .cu-tk.cancelled .stub { background: var(--s-card-3); color: var(--s-muted); }
.cu-tk.rejected, .cu-tk.cancelled { opacity: .7; }
.cu-tk .bd { flex: 1; min-width: 0; padding: 12px 14px; border-inline-start: 2px dashed var(--s-line-2); }
.cu-tk .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cu-tk .hd b { font-size: .92rem; line-height: 1.6; }
.cu-tk .hd .s-pill { flex: none; font-size: .66rem; }
.cu-tk .bd > small { font-size: .72rem; color: var(--s-muted); }

/* ═══════════════════════════════════════════ صفحهٔ رویداد */
.ev-hero { position: relative; border-radius: var(--s-r-xl); overflow: hidden; background: var(--s-grad); min-height: 170px; display: flex; align-items: flex-end; box-shadow: var(--s-shadow); }
.ev-hero.has-cover { display: block; min-height: 0; background: #000; }
.ev-hero .bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) saturate(1.3); opacity: .7; }
.ev-hero img { position: relative; display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.ev-hero .cap { position: relative; display: flex; align-items: flex-end; gap: 12px; padding: 18px; width: 100%; color: #fff; }
.ev-hero.has-cover .cap { position: absolute; inset: auto 0 0; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); padding-top: 50px; }
.ev-hero h1 { margin: 0; font-size: 1.3rem; font-weight: 900; line-height: 1.6; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.ev-hero .date { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 7px 8px; border-radius: 18px; background: rgba(255, 255, 255, .94); color: #0D1A2C; line-height: 1.1; }
.ev-hero .date b { font-size: 1.45rem; font-weight: 900; }
.ev-hero .date small { font-size: .64rem; font-weight: 800; }
.ev-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ev-info > div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 20px; background: var(--s-card); border: 1px solid var(--s-line); min-width: 0; }
.ev-info .ico { width: 32px; height: 32px; border-radius: 11px; margin-bottom: 6px; }
.ev-info small { font-size: .68rem; color: var(--s-muted); font-weight: 700; }
.ev-info b { font-size: .88rem; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.ev-info em { font-style: normal; font-size: .7rem; color: var(--s-text-2); }
.ev-desc { margin-top: 12px; }
.ev-desc p { margin: 0; white-space: pre-line; line-height: 2.05; font-size: .9rem; color: var(--s-text-2); }
.ev .s-note { margin-top: 12px; }
.ev-sec { margin-top: 14px; }
.ev-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ev-hd h2, .ev-hd h3 { margin: 0; font-size: 1rem; font-weight: 900; }
.ev-text { font-size: .86rem; line-height: 2; color: var(--s-text-2); }
.ev-muted { font-size: .8rem; line-height: 1.9; color: var(--s-muted); }
.ev-muted.sm { font-size: .72rem; }
.ev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-kv > div { padding: 10px 12px; border-radius: 14px; background: var(--s-card-2); }
.ev-kv small { display: block; font-size: .68rem; color: var(--s-muted); font-weight: 700; }
.ev-kv b { font-size: .86rem; }
.ev-cancel { border-color: color-mix(in srgb, var(--s-err) 35%, transparent); }
.ev-danger { background: var(--s-err-bg); color: var(--s-err); border: 0; }
.ev .s-field > label { display: block; font-size: .84rem; font-weight: 800; margin-bottom: 8px; color: var(--s-text); }
.ev .s-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .ev .s-field textarea { width: 100%; }
.ev label.check { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; }
.ev label.check input { width: 20px; height: 20px; accent-color: #1FA8FF; }

/* ═══════════════════════════════════════════ صفحهٔ اولِ سایت */
.g-main.lp { width: min(100%, 560px); justify-content: flex-start; padding-top: calc(var(--s-safe-t) + 14px); }
body.guest:has(.g-main.lp) > .g-theme { display: none; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-top .acts { display: flex; align-items: center; gap: 8px; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 900; }
.lp-logo img { border-radius: 12px; }
.lp-hero { text-align: center; padding: 26px 0 8px; }
.lp-art { position: relative; width: 220px; height: 200px; margin: 0 auto 18px; }
.lp-icon { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(31, 168, 255, .7), 0 0 0 1px rgba(255, 255, 255, .15); animation: s-float 5s ease-in-out infinite; }
.lp-art .fl { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; font-size: .72rem; font-weight: 800; background: var(--s-glass); border: 1px solid var(--s-glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--s-shadow-sm); animation: s-float 6s ease-in-out infinite; }
.lp-art .f1 { top: 6px; right: -34px; color: #FF7F96; }
.lp-art .f2 { top: 92px; left: -54px; color: var(--s-ok); animation-delay: -2s; }
.lp-art .f3 { bottom: 0; right: -20px; color: #1FA8FF; animation-delay: -4s; }
.lp-hero h1 { margin: 0; font-size: 1.75rem; font-weight: 900; line-height: 1.6; letter-spacing: -.02em; }
.lp-hero h1 span { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero > p { margin: 10px auto 22px; max-width: 420px; font-size: .9rem; line-height: 2; color: var(--s-text-2); }
.lp-cta { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto; }
.s-btn.lp-dl { height: auto; padding: 14px 18px; gap: 12px; justify-content: center; background: var(--s-grad); color: #fff; box-shadow: var(--s-glow); }
.lp-dl span { display: flex; flex-direction: column; text-align: right; line-height: 1.4; }
.lp-dl b { font-size: 1.02rem; }
.lp-dl small { font-size: .7rem; opacity: .9; font-weight: 600; }
.lp-two { display: flex; gap: 10px; }
.lp-two .s-btn { flex: 1; }
.lp-sec { margin-top: 34px; }
.lp-sec h2 { margin: 0 4px 14px; font-size: 1.15rem; font-weight: 900; }
.lp-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-feat .s-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; margin: 0; }
.lp-feat .ico { margin-bottom: 6px; }
.lp-feat b { font-size: .92rem; }
.lp-feat small { font-size: .74rem; color: var(--s-muted); line-height: 1.9; }
.lp-steps { margin-bottom: 10px; }
.lp-steps .hd { display: flex; align-items: center; gap: 8px; font-weight: 900; margin-bottom: 10px; color: var(--s-orange); }
.lp-steps.ios .hd { color: var(--s-text-2); }
.lp-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.lp-steps li { counter-increment: st; position: relative; padding: 4px 42px 12px 0; }
.lp-steps li::before { content: counter(st); position: absolute; right: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; background: var(--s-card-3); }
.lp-steps:not(.ios) li::before { background: var(--s-grad); color: #fff; }
.lp-steps li b { display: block; font-size: .88rem; }
.lp-steps li small { display: block; font-size: .74rem; color: var(--s-muted); line-height: 1.9; }
.lp-foot { text-align: center; margin: 26px 0 0; font-size: .74rem; color: var(--s-muted); }
@media (min-width: 640px) { .lp-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-hero h1 { font-size: 2.2rem; } }
.g-apk { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; padding: 10px 18px; border-radius: 999px; font-size: .82rem; font-weight: 800; color: var(--s-text); text-decoration: none; background: var(--s-glass); border: 1px solid var(--s-glass-line); width: fit-content; }
.g-apk[hidden] { display: none; }

/* کارتِ حضور بالای «فرهنگی» */
.cu-att { display: block; padding: 18px; margin-bottom: 4px; color: #fff; text-decoration: none; }
.cu-att .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cu-att small { font-size: .78rem; font-weight: 800; opacity: .85; }
.cu-att .big { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.cu-att .big > span { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.cu-att .big em { font-style: normal; font-size: .85rem; font-weight: 800; opacity: .9; }
.cu-att .flame { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); animation: s-flicker 2.4s ease-in-out infinite; }
.cu-att .dots { display: flex; gap: 6px; margin-top: 14px; }
.cu-att .dots i { width: 22px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.cu-att .dots i.in { background: #fff; }
.cu-att .dots i.exc { background: rgba(255, 255, 255, .6); }
.cu-att .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.cu-att .go { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0D1A2C; }

/* ثبت‌نامِ اختصاصیِ مدرسه */
.sj-school { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 18px; background: var(--s-card-2); border: 1px solid var(--s-line); }
.sj-school small { display: block; font-size: .7rem; color: var(--s-muted); font-weight: 700; }
.sj-school b { font-size: .9rem; line-height: 1.7; }
.sj-classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sj-classes label { position: relative; cursor: pointer; }
.sj-classes input { position: absolute; opacity: 0; pointer-events: none; }
.sj-classes span { display: grid; place-items: center; height: 50px; border-radius: 16px; font-size: 1.1rem; font-weight: 900; background: var(--s-card); border: 1.5px solid var(--s-line-2); transition: transform .2s var(--s-ease), background .2s; }
.sj-classes input:checked + span { background: var(--s-grad); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--s-glow); }
.sj-classes input:focus-visible + span { outline: 2px solid var(--s-orange); outline-offset: 2px; }
.sj-err { display: block; margin-top: 6px; color: var(--s-err); font-size: .74rem; font-weight: 700; }
.sj .s-field input { width: 100%; }
.sj-cred { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; text-align: center; }
.sj-cred > div { padding: 12px 8px; border-radius: 16px; background: var(--s-card-2); }
.sj-cred small { display: block; font-size: .7rem; color: var(--s-muted); font-weight: 700; }
.sj-cred b { font-size: .95rem; }
