/* ════════════════════════════════════════════════════════════════════════
   قالب «کهکشان + شیشه‌ی سفید سه‌بعدی»
   ────────────────────────────────────────────────────────────────────────
   ترتیب بارگذاری:  style.css  →  landing.css  →  theme.css     (theme-auto.css دیگر لازم نیست)
   • پس‌زمینه: کهکشانِ شناور (فضای ستاره‌دار — منطقش در space.js)
   • هدر و پنل‌ها: شیشه‌ی سفیدِ یخی با لبه‌ی روشن، ضخامتِ پایین و سایه‌های چندلایه
     (روی کهکشان «معلق» به‌نظر می‌رسند و هاله‌ی آبی‌آسمانی دورشان می‌تابد)
   • دکمه‌ها: آبی آسمانیِ براق با لبه‌ی سه‌بعدی و درخششِ نرم
   • رنگ‌های اینلاینِ app.js اصلاً دست‌کاری نمی‌شوند (همه برای زمینه‌ی روشن نوشته شده‌اند).
   ════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --bg: #050b1f;
  /* آبی آسمانیِ دکمه‌ها (صفحه‌ی اول هم از همین دو متغیر استفاده می‌کند) */
  --bank: linear-gradient(180deg, #6ed8ff 0%, #35b7f8 46%, #0f95e6 100%);
  --bank-sm: linear-gradient(180deg, #6ed8ff 0%, #35b7f8 46%, #0f95e6 100%);
  --sky-btn-edge: #0a6db8;              /* لبه‌ی زیرینِ دکمه (ضخامت سه‌بعدی) */
  --gx-navy: #0b3556;
  --gx-navy-soft: #4a6a86;
  --gx-line: rgba(14,116,180,.16);
  --gx-white: linear-gradient(165deg, rgba(255,255,255,.97) 0%, rgba(245,250,255,.94) 52%, rgba(230,243,255,.93) 100%);
  /* سایه‌ی سه‌بعدی پنل: برجستگیِ لبه‌ی بالا، ضخامتِ پایین، سایه‌ی نزدیک و دور، و هاله‌ی آبی */
  --gx-elev:
    inset 0 1.5px 0 #fff,
    inset 0 -3px 0 rgba(120,178,235,.20),
    0 2px 0 rgba(255,255,255,.28),
    0 12px 24px -10px rgba(1,6,28,.55),
    0 34px 64px -26px rgba(1,6,28,.75),
    0 0 0 1px rgba(160,215,255,.32),
    0 0 48px rgba(110,200,255,.16);
  --shadow: var(--gx-elev);
  --radius: 20px;
}

html { background: #050b1f; }
body { background: transparent; position: relative; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
#app { position: relative; z-index: 1; }
::selection { background: rgba(56,189,248,.45); color: #04283f; }
img, svg { image-rendering: -webkit-optimize-contrast; }
a { color: #0b7bc4; }

/* ════════════ فضا: کهکشانِ شناور ════════════ */
#space { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #050b1f; }

/* آسمان + سحابی‌های رنگی */
#space .sp-bg {
  position: absolute; inset: -10%; width: 120%; height: 120%;
  background:
    radial-gradient(56% 40% at 50% 116%, rgba(56,189,248,.36), rgba(56,189,248,0) 70%),
    radial-gradient(46% 36% at 92% -6%,  rgba(139,109,255,.36), rgba(139,109,255,0) 72%),
    radial-gradient(40% 32% at 2% 28%,   rgba(59,130,246,.30),  rgba(59,130,246,0) 70%),
    radial-gradient(34% 28% at 74% 62%,  rgba(34,211,238,.14),  rgba(34,211,238,0) 72%),
    radial-gradient(30% 24% at 20% 90%,  rgba(236,110,190,.11), rgba(236,110,190,0) 72%),
    radial-gradient(28% 22% at 58% 8%,   rgba(120,140,255,.14), rgba(120,140,255,0) 72%),
    linear-gradient(180deg, #050b1f 0%, #0a1a40 46%, #0e2f6c 100%);
  animation: spDrift 46s ease-in-out infinite alternate;
  will-change: transform;
}
#space .sp-neb {
  position: absolute; inset: -30%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(56,189,248,.11), rgba(139,109,255,.12), rgba(34,211,238,.08), rgba(236,110,190,.07), rgba(56,189,248,.11) 100%);
  filter: blur(64px);
  animation: spSpin 140s linear infinite;
  will-change: transform;
}

/* راه شیری: نوار مورب درخشان (زاویه با propertyِ rotate تا با پارالاکس تداخل نکند) */
#space .sp-mw {
  position: absolute; left: -22%; top: 24%; width: 144%; height: 38%;
  rotate: -17deg;
  background:
    radial-gradient(48% 46% at 50% 50%, rgba(200,228,255,.30), rgba(150,190,255,.15) 46%, rgba(150,190,255,0) 74%),
    radial-gradient(26% 40% at 30% 50%, rgba(255,255,255,.13), rgba(255,255,255,0) 70%),
    radial-gradient(24% 36% at 72% 46%, rgba(186,156,255,.17), rgba(186,156,255,0) 70%);
  filter: blur(26px);
  opacity: 1;
  animation: spBreath 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* سیاره‌های دور (بسیار ملایم؛ فقط برای عمق) */
#space .sp-planet { position: absolute; border-radius: 50%; will-change: transform; }
#space .sp-planet.p1 {
  width: 40vmin; height: 40vmin; left: -13vmin; bottom: -17vmin; opacity: .62;
  background:
    repeating-linear-gradient(-14deg, rgba(255,255,255,.03) 0 2.6vmin, rgba(0,10,60,.05) 2.6vmin 5.4vmin),
    radial-gradient(circle at 70% 28%, #d8efff 0%, #7cc0ff 20%, #2f78d8 46%, #163a80 72%, #0a1844 100%);
  box-shadow: inset -4vmin -3vmin 7vmin rgba(3,8,38,.82), inset 1.2vmin 1vmin 3vmin rgba(210,238,255,.36), 0 0 7vmin rgba(90,175,255,.28), 0 0 0 1px rgba(170,220,255,.14);
  animation: spFloatC 58s ease-in-out infinite alternate;
}
#space .sp-planet.p2 {
  width: 9vmin; height: 9vmin; right: 2.5vw; top: 32vh; opacity: .6;
  background: radial-gradient(circle at 34% 30%, #f3ecff 0%, #c2acff 34%, #7357d8 68%, #30217a 100%);
  box-shadow: inset -1.3vmin -1vmin 2.4vmin rgba(15,8,60,.75), 0 0 3vmin rgba(170,140,255,.35);
  animation: spFloatD 44s ease-in-out infinite alternate;
}

/* ستاره‌ها */
#space .sp-stars { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; background: #fff; will-change: transform, opacity; }
#space .sp-stars.tw { animation: spTwinkle 6s ease-in-out infinite, spFloatA 64s ease-in-out infinite alternate; }
#space .sp-far   { animation: spTwinkle 10s ease-in-out infinite, spFloatA 80s ease-in-out infinite alternate; background: transparent; }
#space .sp-mwst  { animation: spTwinkle 8s ease-in-out 1.5s infinite, spFloatB 70s ease-in-out infinite alternate; background: transparent; }
#space #spStB    { animation: spTwinkle 5s ease-in-out .8s infinite, spFloatB 52s ease-in-out infinite alternate; }
#space .sp-near  { animation: spTwinkle 4.2s ease-in-out 2s infinite, spFloatC 40s ease-in-out infinite alternate; background: transparent; }

/* جرقه‌ی چهارپر */
#space .sp-spark {
  position: absolute; width: var(--sz, 14px); height: var(--sz, 14px); margin: calc(var(--sz, 14px) / -2) 0 0 calc(var(--sz, 14px) / -2);
  background:
    radial-gradient(circle, #fff 0 1.3px, rgba(190,235,255,.7) 2.6px, rgba(190,235,255,0) 6px),
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9) 50%, rgba(255,255,255,0)) center / 100% 1px no-repeat,
    linear-gradient(0deg,  rgba(255,255,255,0), rgba(255,255,255,.9) 50%, rgba(255,255,255,0)) center / 1px 100% no-repeat;
  opacity: 0;
  animation: spSpark var(--sd, 5s) ease-in-out var(--sl, 0s) infinite;
}

/* شهاب */
#space .sp-shoot {
  position: absolute; width: var(--len, 150px); height: 2px; border-radius: 2px; rotate: 28deg;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(170,225,255,.55) 70%, #fff 100%);
  filter: drop-shadow(0 0 4px rgba(150,220,255,.9));
  opacity: 0;
  animation: spShoot 1.15s cubic-bezier(.3,.1,.5,1) forwards;
}

@keyframes spDrift   { 0% { scale: 1; }  100% { scale: 1.06; } }
@keyframes spSpin    { 0% { rotate: 0deg; } 100% { rotate: 360deg; } }
@keyframes spBreath  { 0% { opacity: .72; } 100% { opacity: 1; } }
@keyframes spTwinkle { 0%, 100% { opacity: .68; } 50% { opacity: 1; } }
/* شناورشدنِ آرام: هر چه لایه نزدیک‌تر، جابه‌جایی بیشتر (حس عمق) */
@keyframes spFloatA  { 0% { translate: 0 0; }        100% { translate: -8px 11px; } }
@keyframes spFloatB  { 0% { translate: 0 0; }        100% { translate: 14px -16px; } }
@keyframes spFloatC  { 0% { translate: 0 0; }        100% { translate: -22px -18px; } }
@keyframes spFloatD  { 0% { translate: 0 0; }        100% { translate: 16px 22px; } }
@keyframes spSpark   { 0%, 100% { opacity: 0; scale: .5; } 45%, 55% { opacity: 1; scale: 1; } }
@keyframes spShoot   { 0% { opacity: 0; translate: 0 0; } 12% { opacity: 1; } 100% { opacity: 0; translate: 380px 202px; } }
@media (prefers-reduced-motion: reduce) {
  #space .sp-bg, #space .sp-neb, #space .sp-mw, #space .sp-planet, #space .sp-stars, #space .sp-spark { animation: none !important; }
  #space .sp-spark { opacity: .8; }
}

/* ════════════ هدر: پیل شیشه‌ی سفیدِ معلق ════════════ */
header {
  position: sticky; top: 10px; z-index: 100;
  width: min(calc(100% - 20px), 980px); margin: 10px auto 0;
  padding: 8px 14px 8px 18px; border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(240,248,255,.92) 100%);
  border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(110,170,235,.22),
    0 1px 0 rgba(255,255,255,.4),
    0 10px 20px -6px rgba(1,6,28,.6), 0 28px 50px -18px rgba(1,6,28,.7),
    0 0 0 1px rgba(160,215,255,.34), 0 0 44px rgba(110,200,255,.26);
}
.hdr-brand { gap: 10px; }
.hdr-brand .logo {
  width: 44px; height: 44px; padding: 3px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, #e6f4fc 72%);
  box-shadow: 0 0 0 1px rgba(120,190,235,.55), 0 4px 10px -2px rgba(20,100,170,.4), 0 0 14px rgba(80,200,255,.4);
  filter: none;
}
.hdr-brand h1 { color: var(--gx-navy); font-weight: 800; font-size: 17px; }
.hdr-brand p { color: var(--gx-navy-soft); }
.hdr-user span { color: var(--gx-navy); }
.btn-logout, .btn-profile, .btn-about {
  background: linear-gradient(180deg, #fff, #eaf5fd); color: #0c4a75; border: 1px solid #bfe0f5;
  border-radius: 999px; box-shadow: 0 2px 0 rgba(120,180,225,.35), 0 5px 10px -5px rgba(20,90,150,.35);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn-logout:hover, .btn-profile:hover, .btn-about:hover { transform: translateY(-1px); border-color: #63c3f5; box-shadow: 0 3px 0 rgba(120,180,225,.4), 0 8px 14px -6px rgba(20,140,220,.45); }

.container { padding-top: 22px; }

/* ════════════ پنل‌های شیشه‌ی سفید (کارت‌ها) ════════════ */
.card {
  position: relative; isolation: isolate;
  background: var(--gx-white);
  border: 1px solid rgba(255,255,255,.95); border-radius: 22px;
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--gx-elev);
}
/* براقیِ بالای پنل (پشت محتوا می‌ماند: z-index:-1 داخل isolation) */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(90% 46px at 50% 0, rgba(255,255,255,.95), rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(120,200,255,.10), rgba(120,200,255,0) 26%);
}
.card h2 { color: var(--gx-navy); border-bottom: 1px solid var(--gx-line); }
.fg label { color: #1c5079; }

.auth-box {
  position: relative; isolation: isolate;
  background: var(--gx-white); border: 1px solid rgba(255,255,255,.95); border-radius: 26px;
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(120,178,235,.20), 0 16px 30px -12px rgba(1,6,28,.6), 0 44px 80px -28px rgba(1,6,28,.8), 0 0 0 1px rgba(160,215,255,.32), 0 0 60px rgba(110,200,255,.2);
}
.modal-overlay { background: rgba(2,8,24,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-box {
  background: linear-gradient(180deg, #ffffff, #eef6fd); color: var(--text);
  border: 1px solid #fff; border-radius: 22px;
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(120,178,235,.2), 0 30px 80px rgba(1,6,28,.6), 0 0 0 1px rgba(160,215,255,.3);
}
.modal-title { color: var(--gx-navy); }
.notif-panel {
  background: linear-gradient(180deg, #ffffff, #eef6fd); color: #1e3a52; border: 1px solid #fff; border-radius: 18px;
  box-shadow: inset 0 1.5px 0 #fff, 0 22px 50px -10px rgba(1,6,28,.6), 0 0 0 1px rgba(160,215,255,.3);
}

/* ════════════ فرم‌ها ════════════ */
.fg input, .fg select, .fg textarea, .auth-form input, input[type=text], input[type=password], input[type=email],
input[type=number], input[type=tel], input[type=date], input[type=search], select, textarea {
  background: linear-gradient(180deg, #f1f8ff, #ffffff); color: #15324b;
  border-color: #c6e1f4; border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(20,80,130,.09), 0 1px 0 #fff;
}
.fg input::placeholder, .fg textarea::placeholder, input::placeholder, textarea::placeholder { color: #8ba5bb; }
.fg input:focus, .fg select:focus, .fg textarea:focus, input:focus, select:focus, textarea:focus {
  border-color: #38bdf8; background: #fff;
  box-shadow: inset 0 1px 2px rgba(20,80,130,.06), 0 0 0 4px rgba(56,189,248,.24), 0 0 20px rgba(56,189,248,.24);
}
select option, select optgroup { background: #fff; color: #15324b; }
input:-webkit-autofill { -webkit-text-fill-color: #15324b; -webkit-box-shadow: 0 0 0 40px #eaf5ff inset; caret-color: #0b3556; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=tel],
input[type=date], input[type=search], input:not([type]), textarea { -webkit-appearance: none; appearance: none; }
input:disabled, textarea:disabled, select:disabled, input[readonly] {
  background: #eaf0f6 !important; color: #6f879b;
  -webkit-text-fill-color: #6f879b; opacity: 1; cursor: not-allowed;
  border-color: #d4e2ee; box-shadow: inset 0 1px 3px rgba(20,80,130,.07);
}

/* ════════════ دکمه‌ها: آبی آسمانیِ براق با لبه‌ی سه‌بعدی ════════════ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bank); border: none; border-radius: 15px; color: #fff;
  font-weight: 800; letter-spacing: .2px; cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,70,125,.55);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,95,165,.32),
    0 3px 0 var(--sky-btn-edge),
    0 10px 20px -5px rgba(15,149,230,.6), 0 0 24px rgba(56,189,248,.32);
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s, filter .18s;
}
.btn::before {                       /* براقیِ نیمه‌ی بالا */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.06));
  border-radius: inherit;
}
.btn::after {                        /* جاروی نورِ هاور */
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  transform: skewX(-18deg); transition: left .55s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px); filter: brightness(1.06) saturate(1.06);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(0,95,165,.32),
    0 5px 0 var(--sky-btn-edge),
    0 16px 28px -6px rgba(15,149,230,.7), 0 0 34px rgba(56,189,248,.5);
}
.btn:hover:not(:disabled)::after { left: 120%; }
.btn:active:not(:disabled) {
  transform: translateY(2px); filter: brightness(.98);
  box-shadow: inset 0 2px 4px rgba(0,80,140,.35), 0 1px 0 var(--sky-btn-edge), 0 4px 10px -4px rgba(15,149,230,.5);
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 7px rgba(56,189,248,.55), 0 3px 0 var(--sky-btn-edge); }
.btn:disabled { filter: grayscale(.45) brightness(.92); opacity: .7; cursor: not-allowed; }
.btn.btn-danger {
  background: linear-gradient(180deg, #ff8fa3 0%, #f2506d 48%, #d9294a 100%); color: #fff; border: none;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(140,0,30,.28), 0 3px 0 #a81734, 0 10px 20px -5px rgba(225,29,72,.5);
}

.btn-outline {
  border-radius: 13px; background: linear-gradient(180deg, #ffffff, #eff7fe); color: #0b6aa8;
  border: 1.5px solid #9fd6f5;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(120,180,225,.4), 0 6px 12px -6px rgba(20,100,170,.4);
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.btn-outline:hover { background: linear-gradient(180deg, #f4fbff, #dff1fd); border-color: #38bdf8; color: #085c94; transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(90,170,225,.45), 0 10px 18px -8px rgba(20,140,220,.5); }
.btn-outline.danger { color: #dc2626; border-color: #fca5a5; }
.btn-outline.danger:hover { background: #fef2f2; border-color: #f87171; color: #b91c1c; }
.btn-today { background: var(--bank); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 var(--sky-btn-edge), 0 6px 12px -4px rgba(15,149,230,.5); text-shadow: 0 1px 2px rgba(0,70,125,.5); }
.btn-today:hover { background: var(--bank); filter: brightness(1.07); }

/* ════════════ تب‌ها و کاشی‌های بخش ════════════ */
.tab, html .mode-tab {
  background: linear-gradient(180deg, #ffffff, #edf6fd); border: 1.5px solid #bfe0f5; color: #0c4a75;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(120,180,225,.32), 0 6px 12px -7px rgba(1,6,28,.55);
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
html .mode-tab { border-radius: 14px; }
.tab:hover, html .mode-tab:hover { border-color: #63c3f5; transform: translateY(-1px); }
.tab.active, .tab.on, html .mode-tab.active {
  background: var(--bank-sm); color: #fff; border-color: #2aa6ee; text-shadow: 0 1px 2px rgba(0,70,125,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(0,95,165,.28), 0 2px 0 var(--sky-btn-edge), 0 8px 16px -6px rgba(15,149,230,.6), 0 0 18px rgba(56,189,248,.35);
}
.section-nav-card {
  position: relative; background: var(--gx-white); border: 1px solid rgba(255,255,255,.95); color: var(--text);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(120,178,235,.2), 0 10px 20px -10px rgba(1,6,28,.6), 0 24px 40px -22px rgba(1,6,28,.7), 0 0 0 1px rgba(160,215,255,.3);
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s, background .25s;
}
.section-nav-card:hover {
  border-color: #fff; transform: perspective(700px) translateY(-4px) rotateX(3deg);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(120,178,235,.2), 0 18px 28px -10px rgba(1,6,28,.65), 0 34px 50px -22px rgba(1,6,28,.75), 0 0 0 1px rgba(160,215,255,.45), 0 0 34px rgba(110,200,255,.32);
}
.section-nav-card.active {
  background: var(--bank-sm); border-color: #2aa6ee;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,95,165,.3), 0 3px 0 var(--sky-btn-edge), 0 14px 26px -8px rgba(15,149,230,.65), 0 0 30px rgba(56,189,248,.4);
}
.section-nav-card .snc-label { color: var(--gx-navy); }
.section-nav-card .snc-sublabel, .section-nav-card .snc-count { color: var(--text-muted); }
.section-nav-card.active .snc-label, .section-nav-card.active .snc-icon { color: #fff; text-shadow: 0 1px 2px rgba(0,70,125,.5); }
.section-nav-card.active .snc-sublabel, .section-nav-card.active .snc-count { color: rgba(255,255,255,.88); }

.dash-header {                        /* سربرگِ پرونده‌ی کودک: بنر آبی آسمانی، بقیه سفید */
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px;
  background: linear-gradient(135deg, #1a90e6 0%, #35b7f8 55%, #7bdcff 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.65), inset 0 -3px 0 rgba(0,90,160,.28), 0 3px 0 var(--sky-btn-edge), 0 18px 34px -12px rgba(15,149,230,.65), 0 0 40px rgba(56,189,248,.3);
}
.dash-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(80% 90px at 50% 0, rgba(255,255,255,.5), rgba(255,255,255,0)); }
.dash-header .dname { text-shadow: 0 1px 2px rgba(0,70,125,.4); }
.prof-card { background: linear-gradient(180deg, #ffffff, #f0f8ff); border-color: #bfe0f5; box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(120,180,225,.3), 0 8px 14px -8px rgba(20,90,150,.35); }
.prof-card:hover { transform: translateY(-2px); border-color: #38bdf8; background: linear-gradient(180deg, #fff, #e6f5ff); }

/* ════════════ هدر زیرصفحه‌ها: «بازگشت» + عنوان + کارهای کاربر ════════════ */
header.sb { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 14px; }
.sb-back {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px 0 14px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 800; color: #fff; border: none; border-radius: 14px; position: relative; overflow: hidden; isolation: isolate;
  background: var(--bank);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,95,165,.3), 0 3px 0 var(--sky-btn-edge), 0 8px 16px -5px rgba(15,149,230,.6), 0 0 18px rgba(56,189,248,.3);
  text-shadow: 0 1px 2px rgba(0,70,125,.55); transition: transform .18s, box-shadow .18s, filter .18s;
}
.sb-back::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52%; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.05)); }
.sb-back:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(0,95,165,.3), 0 5px 0 var(--sky-btn-edge), 0 14px 24px -6px rgba(15,149,230,.7), 0 0 30px rgba(56,189,248,.5); }
.sb-back:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,80,140,.35), 0 1px 0 var(--sky-btn-edge); }
.sb-arrow { font-size: 16px; line-height: 1; margin-top: -1px; }
.sb-title { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 15px; font-weight: 800; color: var(--gx-navy); white-space: nowrap; }
.sb-title > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.sb-mark {
  flex: 0 0 auto; width: 30px; height: 30px; padding: 2px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff, #e6f4fc 72%);
  box-shadow: 0 0 0 1px rgba(120,190,235,.6), 0 3px 8px -2px rgba(20,100,170,.4), 0 0 12px rgba(80,200,255,.4);
}
.sb-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sb-user { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.sb-pill, .sb-ic {
  font-family: inherit; font-size: 12px; font-weight: 700; color: #0c4a75; cursor: pointer; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; background: linear-gradient(180deg, #ffffff, #e9f4fd); border: 1px solid #bfe0f5;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(120,180,225,.38), 0 6px 10px -6px rgba(20,90,150,.4);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.sb-ic { padding: 7px 10px; }
.sb-pill:hover, .sb-ic:hover { transform: translateY(-1px); border-color: #63c3f5; box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(100,175,228,.42), 0 10px 16px -6px rgba(20,140,220,.5); }
.sb-cta { color: #fff; border-color: #2aa6ee; background: var(--bank-sm); text-shadow: 0 1px 2px rgba(0,70,125,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 2px 0 var(--sky-btn-edge), 0 8px 14px -5px rgba(15,149,230,.6); }
.sb-cta:hover { border-color: #2aa6ee; }

/* صفحه‌ی ورود/ثبت‌نام: روی همان فضا، کارت شیشه‌ی سفید، لوگو در قابِ درخشان */
.auth-wrap { background: transparent; position: relative; }
.auth-logo-img {
  width: 104px; height: 104px; padding: 9px; border-radius: 50%; filter: none;
  background: radial-gradient(circle at 50% 40%, #fff, #e6f4fc 72%);
  box-shadow: 0 0 0 1px rgba(120,190,235,.6), 0 10px 22px -6px rgba(20,100,170,.45), 0 0 30px rgba(80,200,255,.45);
}
.auth-tabs { border-bottom-color: var(--gx-line); }
.auth-tab.active { color: #0b7bc4; border-bottom-color: #38bdf8; }
.auth-back { position: absolute; top: 18px; right: 18px; z-index: 5; }


/* ════════════ هر کنترلِ «انتخاب‌شده» که در style.css سرمه‌ای بود → آبی آسمانیِ براق ════════════ */
.gtoggle input[type="radio"]:checked + label, .reg-method-tab.active {
  background: var(--bank-sm); color: #fff; border-color: #2aa6ee; text-shadow: 0 1px 2px rgba(0,70,125,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,95,165,.25);
}
.chat-chip:hover, .admin-tabs-wrap .tab.on { background: var(--bank-sm); color: #fff; border-color: #2aa6ee; }
.ai-order-num { background: var(--bank-sm); box-shadow: 0 2px 0 var(--sky-btn-edge); }
.vax-progress-fill { background: linear-gradient(90deg, #0f95e6, #35b7f8, #7bdcff); }
.vax-checkbox-wrap input:checked ~ .vax-checkmark { background: var(--bank-sm); border-color: #2aa6ee; }
.chat-msg.user .avatar { background: var(--bank-sm); }

/* ════════════ جزئیات ریز ════════════ */
hr { border: 0; border-top: 1px solid var(--gx-line); }
img.qr, .qr-box img, canvas.qr { background: #fff; border-radius: 10px; padding: 6px; }
* { scrollbar-width: thin; scrollbar-color: rgba(150,215,255,.4) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(150,215,255,.38); border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }
.records-table tr:hover td, .admin-table tr:hover td { background: #f1f9ff; }

/* ورود از صفحه‌ی اول: هدر و محتوا نرم وارد می‌شوند */
@keyframes thHdrIn { from { opacity: 0; transform: translateY(-14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes thBodyIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html[data-enter] #app > header { animation: thHdrIn .6s cubic-bezier(.16,1,.3,1) both; }
html[data-enter] #app > *:not(header) { animation: thBodyIn .7s cubic-bezier(.16,1,.3,1) .12s both; }
@media (prefers-reduced-motion: reduce) {
  html[data-enter] #app > *, .btn, .section-nav-card { animation: none !important; transition: none !important; }
}

/* موبایل */
@media (max-width: 640px) {
  header { top: 6px; margin-top: 6px; padding: 6px 10px 6px 12px; border-radius: 28px; }
  .hdr-brand .logo { width: 38px; height: 38px; }
  .container { padding-top: 16px; }
  .card { border-radius: 20px; }
  header.sb { gap: 8px; padding: 6px 8px 6px 10px; }
  .sb-back { height: 34px; padding: 0 12px 0 10px; font-size: 12px; }
  .sb-mark { display: none; }
  .sb-title { font-size: 13px; }
  .sb-user .hdr-uname, .sb-user .hdr-txt { display: none; }
  .sb-pill, .sb-ic { padding: 6px 10px; font-size: 11.5px; }
  .auth-back { top: 12px; right: 12px; }
  .auth-wrap { padding-top: 62px; }
  #space .sp-planet.p1 { opacity: .5; }
}

/* چاپ: همیشه روشن و بدون فضا */
@media print {
  #space { display: none !important; }
  html, body { background: #fff !important; }
  .card, header { box-shadow: none !important; background: #fff !important; }
}
