/* ==========================================================================
   Joyno v3: shells: public header, ticker, drawer, footer, auth split screen,
   dashboard sidebar / top bar / mobile tab bar.
   ========================================================================== */

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 42px; height: 42px; filter: drop-shadow(0 8px 14px rgb(208 50 132 / .28)); transition: transform .5s var(--bounce); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.05); }
.brand__name { display: flex; flex-direction: column; font-size: 22px; font-weight: 950; letter-spacing: -.5px; line-height: 1.05; }
.brand__name small { font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px; color: var(--text-3); text-transform: uppercase; }
.brand__tag { display: inline-grid; place-items: center; height: 24px; padding: 0 9px; border-radius: 8px; background: var(--g-lagoon); color: #fff; font-size: 11.5px; font-weight: 800; }

/* ---------- ticker ---------- */
.ticker { position: relative; height: 40px; overflow: hidden; background: linear-gradient(90deg, var(--violet-50), var(--pink-50) 35%, var(--sun-50) 65%, var(--cyan-50)); border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: var(--z-raised); pointer-events: none; }
.ticker::before { right: 0; background: linear-gradient(to left, var(--violet-50), transparent); }
.ticker::after { left: 0; background: linear-gradient(to right, var(--cyan-50), transparent); }
.ticker__track { display: flex; width: max-content; height: 100%; animation: marquee 55s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; height: 100%; }
.ticker__list li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker__ico { width: 18px; height: 18px; flex: none; }
.ticker__list a { font-weight: 750; }
.ticker__list a:hover { color: var(--c700); }
.ticker__list span { color: var(--text-3); }
.ticker__list b { color: var(--c700); font-weight: 800; }
.ticker__list em { font-style: normal; background: var(--sun-400); color: var(--ink); border-radius: 6px; padding: 0 6px; font-size: 11.5px; font-weight: 800; }

/* ---------- public header ---------- */
.topbar { position: sticky; top: 10px; z-index: var(--z-sticky); margin-top: 10px; }
.topbar__in { display: flex; align-items: center; gap: 18px; height: 70px; padding: 0 12px 0 14px; border-radius: 24px; background: rgb(255 255 255 / .74); backdrop-filter: blur(18px) saturate(1.7); -webkit-backdrop-filter: blur(18px) saturate(1.7); border: 1px solid rgb(255 255 255 / .85); box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 14px 34px -18px rgb(24 22 45 / .3), 0 0 0 1px var(--line); }
.topbar__nav { display: flex; gap: 2px; margin-inline: auto; }
.topbar__nav a { position: relative; padding: 8px 14px; border-radius: 13px; font-weight: 750; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: .2s; }
.topbar__nav a::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 0; height: 3px; border-radius: 3px; background: var(--c500); transform: translateX(-50%); transition: width .25s var(--ease); }
.topbar__nav a:hover { color: var(--text); background: var(--c50); }
.topbar__nav a:hover::after { width: 18px; }
.topbar__end { display: flex; align-items: center; gap: 8px; }
.app-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 13px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--violet-700); border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--g-aurora) border-box; transition: .2s; }
.app-pill .glyph { width: 16px; height: 16px; }
.app-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px var(--violet-glow); }
.burger { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 15px; background: var(--ink); flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: #fff; transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; right: 19px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.burger--dark { background: var(--s2); }
.burger--dark span { background: var(--ink); }
/* v4.5: منو در دسکتاپ همیشه یک خط است؛ در عرض کمتر، دکمه‌ی اپ (که در منو هم هست) کنار می‌رود و فاصله‌ها جمع می‌شوند */
@media (max-width: 1240px) {
  .app-pill { display: none; }
  .topbar__in { gap: 12px; }
  .topbar__nav a { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 1000px) {
  .topbar__nav { display: none; }
  .burger { display: block; }
  .topbar__end { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .topbar { top: 8px; margin-top: 8px; }
  .topbar__in { height: 62px; gap: 10px; border-radius: 20px; padding: 0 8px 0 10px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 19px; }
  .topbar .btn { --h: 42px; padding: 0 13px; font-size: 13.5px; }
  .topbar .btn .glyph { display: none; }
}

/* ---------- drawer (mobile menu) ----------
   v5.1: برگه‌ی پایین صفحه با فاصله از هر چهار لبه (و ناحیه‌ی امن گوشی)، ارتفاع محدود به صفحه‌ی دیده‌شده،
   سربرگ و دکمه‌های ورود ثابت و فقط میانه اسکرول می‌خورد؛ در تبلت پنل وسط و بالای صفحه می‌نشیند. */
body.is-locked { overflow: hidden; }
.drawer { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: var(--z-drawer); display: flex; align-items: flex-end; justify-content: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgb(24 22 45 / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .25s ease both; }
.drawer__panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 100%; min-height: 0; border-radius: 28px; background: #fff; box-shadow: var(--sh-4); overflow: hidden; animation: sheet-in .4s var(--ease) both; }
.drawer.is-closing { animation: fade-out .22s ease forwards; }
.drawer.is-closing .drawer__panel { animation: sheet-out .22s var(--ease) forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(20px); } }
.drawer__grip { align-self: center; flex: none; width: 44px; height: 5px; margin-top: 9px; border-radius: 5px; background: var(--s3); }
.drawer__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 12px 12px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 12px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drawer__tile { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 10px 12px; border-radius: 18px; background: linear-gradient(150deg, var(--c50), var(--c100)); border: 1px solid var(--c100); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.drawer__tile[aria-current] { border-color: var(--c400); box-shadow: inset 0 0 0 1px var(--c400), 0 10px 20px -14px var(--cglow); }
.drawer__ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: #fff; box-shadow: var(--sh-1); }
.drawer__txt { display: grid; gap: 1px; min-width: 0; }
.drawer__tile b { font-size: 14px; font-weight: 850; line-height: 1.5; overflow-wrap: anywhere; }
.drawer__tile small { font-size: 11.5px; color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }
.drawer__tile--wide { grid-column: 1 / -1; }
.drawer__app { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 20px; background: var(--g-sunset); color: #fff; }
.drawer__app-txt { min-width: 0; }
.drawer__app b { display: block; font-size: 15px; }
.drawer__app small { display: block; font-size: 12px; opacity: .85; overflow-wrap: anywhere; }
.drawer__app-cta { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px; border-radius: 12px; background: rgb(255 255 255 / .22); font-weight: 800; font-size: 13px; }
.drawer__auth { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #fff; }
.drawer__auth .btn { min-width: 0; }
.drawer__auth .btn--block { grid-column: 1 / -1; }
@media (max-width: 359px) { .drawer__grid { grid-template-columns: minmax(0, 1fr); } .drawer__tile { min-height: 56px; } }
@media (min-width: 620px) { .drawer { align-items: flex-start; padding-top: 96px; } .drawer__grip { display: none; } .drawer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .drawer__tile { flex-direction: column; align-items: flex-start; } .drawer__tile--wide { flex-direction: row; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer__panel, .drawer.is-closing, .drawer.is-closing .drawer__panel { animation: none; } }
body.is-locked { overflow: hidden; }

/* ---------- footer (v4.5: روشن، هم‌رنگ صفحه؛ تنها بلوک تیره‌ی سایت بخش اپلیکیشن است) ---------- */
.foot { position: relative; margin-top: 90px; padding: 0 0 26px; color: var(--text); }
.foot__cta { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 28px 32px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--sun-100), var(--pink-100) 55%, var(--violet-100)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 24px 50px -30px var(--pink-glow); overflow: hidden; }
.foot__cta-art { rotate: -10deg; filter: drop-shadow(0 12px 14px rgb(120 40 80 / .25)); }
.foot__cta h2 { font-size: clamp(20px, 2.3vw, 28px); font-weight: 900; line-height: 1.6; text-wrap: balance; color: var(--ink); }
.foot__cta-act { display: flex; gap: 10px; flex-wrap: wrap; }
.foot__main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .9fr); gap: 34px; margin-top: 40px; }
.foot__about p { margin-top: 12px; color: var(--text-2); font-size: 14px; max-width: 46ch; }
.foot__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pf { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-s); background: var(--c50, var(--s2)); color: var(--c800, var(--text)); box-shadow: inset 0 0 0 1px var(--c100, var(--line)); font-size: 12.5px; font-weight: 750; }
.pf .glyph { width: 15px; height: 15px; color: var(--c600, currentColor); }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.foot__links a { white-space: nowrap; }
.foot__links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: var(--r-m); background: linear-gradient(160deg, var(--c50), #fff 80%); box-shadow: inset 0 0 0 1px var(--c100); font-size: 14px; font-weight: 750; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; }
.foot__links a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--c300), 0 12px 22px -16px var(--cglow); color: var(--c800); }
.foot__links a:active { transform: translateY(0) scale(.98); }
.foot__help { display: grid; gap: 10px; align-content: start; }
.foot__help b { font-size: 13.5px; font-weight: 850; color: var(--text-2); }
.foot__contact { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; height: 40px; padding: 0 14px; border-radius: var(--r-m); background: var(--c50); color: var(--c800); font-weight: 750; font-size: 13.5px; }
.foot__contact .glyph { width: 16px; height: 16px; color: var(--c600); }
.foot__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--text-3); }
.foot__made, .foot__stage { display: inline-flex; align-items: center; gap: 6px; }
.foot__stage { padding: 4px 12px; border-radius: 999px; background: var(--sun-50); color: var(--sun-800); box-shadow: inset 0 0 0 1px var(--sun-200); font-weight: 750; }
.foot__stage .glyph { width: 15px; height: 15px; color: var(--sun-600); }
.foot__legal { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.foot__legal li { display: flex; align-items: flex-start; gap: 6px; }
.foot__legal .glyph { flex: none; width: 15px; height: 15px; margin-top: 4px; color: var(--violet-500); }
.foot__made .glyph { color: var(--pink-500); }
@media (max-width: 1000px) { .foot__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__about { grid-column: 1 / -1; } }
@media (max-width: 760px) { .foot__cta { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; text-align: center; justify-items: center; } .foot__cta-art { display: none; } }
@media (max-width: 560px) { .foot { margin-top: 60px; } .foot__main { grid-template-columns: minmax(0, 1fr); } .foot__links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- auth split screen ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100vh; background: #fff; }
.auth__form { position: relative; display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__box { width: min(440px, 100%); margin: auto; padding: 36px 0; }
.auth__box h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 950; letter-spacing: -.6px; }
.auth__box > p { margin-top: 6px; color: var(--text-2); }
.auth__perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.auth__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12.5px; color: var(--text-3); }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__visual { position: relative; margin: 12px; margin-inline-start: 0; border-radius: 34px; overflow: hidden; background: var(--g-night); color: #fff; isolation: isolate; }
.auth__visual .blob { opacity: .75; filter: blur(60px); }
.auth__mesh { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 15% 15%, var(--pink-500), transparent 38%),
  radial-gradient(circle at 85% 25%, var(--orange-400), transparent 35%),
  radial-gradient(circle at 70% 85%, var(--cyan-400), transparent 40%),
  radial-gradient(circle at 20% 80%, var(--violet-500), transparent 45%), var(--g-night); }
.auth__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%); }
.auth__vin { position: relative; height: 100%; min-height: 640px; padding: 40px; display: flex; flex-direction: column; }
.auth__headline { max-width: 460px; }
.auth__headline .kicker { color: var(--sun-300); }
.auth__headline .kicker::before { background: var(--sun-300); }
.auth__headline h2 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 46px); font-weight: 950; line-height: 1.3; letter-spacing: -.8px; }
.auth__headline p { margin-top: 10px; color: rgb(255 255 255 / .78); font-size: 15px; }
.auth__stage { position: relative; flex: 1; margin-top: 26px; min-height: 360px; }
.fw { position: absolute; color: var(--ink); border-radius: 22px; padding: 14px 16px; background: rgb(255 255 255 / .9); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -22px rgb(0 0 0 / .55); border: 1px solid rgb(255 255 255 / .9); }
.fw--glass { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .28); backdrop-filter: blur(16px) saturate(1.4); }
.fw small { display: block; font-size: 11.5px; color: var(--text-3); }
.fw--glass small { color: rgb(255 255 255 / .7); }
.fw b { font-weight: 850; }
/* ---------- ورود و عضویت (۵٫۱): زبانه‌ها و پنل‌ها ---------- */
.acc { display: grid; gap: 18px; }
.acc__mhero { display: none; }
.acc__tabs { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 20px; background: var(--s2); isolation: isolate; }
.acc__tabs [role="tab"] { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 6px 10px; border: 0; border-radius: 16px; background: transparent; color: var(--text-2); font: inherit; text-align: start; cursor: pointer; transition: color .25s; }
.acc__tabs [role="tab"] > .glyph { width: 22px; height: 22px; flex: none; transition: transform .35s var(--bounce); }
.acc__tabs [role="tab"] span { display: grid; line-height: 1.35; }
.acc__tabs [role="tab"] b { font-size: 15px; font-weight: 900; }
.acc__tabs [role="tab"] small { font-size: 11.5px; color: var(--text-3); font-weight: 650; }
.acc__tabs [aria-selected="true"] { color: var(--ink); }
.acc__tabs [aria-selected="true"] > .glyph { color: var(--violet-600); transform: scale(1.1) rotate(-6deg); }
.acc__tabs.is-signup [aria-selected="true"] > .glyph { color: var(--pink-500); }
.acc__tabs [role="tab"]:focus-visible { outline: 3px solid var(--violet-300); outline-offset: -3px; }
.acc__ink { position: absolute; z-index: -1; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc((100% - 14px) / 2); border-radius: 16px; background: #fff; box-shadow: var(--sh-2); transition: transform .4s var(--ease); }
.acc__ink::after { content: ""; position: absolute; inset-inline: 22%; bottom: 0; height: 3px; border-radius: 3px; background: var(--g-aurora); }
.acc__tabs.is-signup .acc__ink { transform: translateX(calc(-100% - 4px)); }
.acc__head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 950; letter-spacing: -.6px; margin-top: 12px; }
.acc__head p { margin-top: 4px; color: var(--text-2); }
.acc__panel { display: grid; gap: 18px; }
.acc__panel.is-in { animation: tab-in .45s var(--ease) both; }
.acc__panel .demo-q, .acc__panel .auth__perks { margin-top: 0; }
.acc .auth__alt { margin-top: 0; }
.auth__alt .link { border: 0; background: none; padding: 0; font: inherit; color: var(--violet-700); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.auth__alt .link .glyph { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .acc__ink { transition: none; } }

/* موبایل و تبلت: ستون تصویری حذف می‌شود؛ یک نوار رنگی جمع‌وجور، زبانه‌های چسبان بالا و فرم تک‌ستونه */
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
  .auth__visual { display: none; }
  .auth__form { padding: 14px 16px max(16px, env(safe-area-inset-bottom)); }
  .auth__box { width: min(520px, 100%); margin: 0 auto; padding: 14px 0 22px; }
  .acc { gap: 14px; }
  .acc__mhero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 24px; background: radial-gradient(circle at 12% 20%, rgb(255 255 255 / .28), transparent 40%), var(--g-sunset); color: #fff; overflow: hidden; box-shadow: 0 18px 30px -20px var(--pink-glow); }
  .auth--signup .acc__mhero { background: radial-gradient(circle at 12% 20%, rgb(255 255 255 / .28), transparent 40%), var(--g-aurora); }
  .acc__mhero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .35) 1.2px, transparent 1.4px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(240deg, #000, transparent 60%); mask-image: linear-gradient(240deg, #000, transparent 60%); pointer-events: none; }
  .acc__mhero-txt { position: relative; z-index: 1; display: grid; gap: 2px; min-width: 0; }
  .acc__mhero-txt b { font-size: 17px; font-weight: 950; }
  .acc__mhero-txt small { font-size: 12px; opacity: .92; }
  .acc__mhero-art { position: relative; z-index: 1; display: flex; align-items: flex-end; flex: none; }
  .acc__mhero-art .ico { filter: drop-shadow(0 8px 10px rgb(0 0 0 / .25)); }
  .acc__mhero-art .ico + .ico { margin-inline-start: -8px; }
  .acc__mhero-art .ico:nth-child(2) { transform: rotate(-10deg) translateY(-6px); }
  .acc__tabs { position: sticky; top: 8px; z-index: 5; box-shadow: 0 10px 24px -18px rgb(24 22 45 / .4); }
  .acc__tabs [role="tab"] { min-height: 52px; }
  .acc__head .badge, .acc__head p { display: none; }
  .acc__head h1 { margin-top: 0; font-size: 23px; }
  .acc__panel { gap: 14px; }
  .acc .form-stack { gap: 12px; }
  .input, .select, .textarea { font-size: 16px; }
}
@media (max-width: 380px) { .acc__mhero-art .ico:nth-child(3) { display: none; } .acc__tabs [role="tab"] small { display: none; } .acc .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- dashboard shell ---------- */
.page-dash { background: #fff; }
.dash { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px; overflow-y: auto; background:
  radial-gradient(circle at 100% 0, var(--violet-50), transparent 40%), var(--s1); border-inline-end: 1px solid var(--line); scrollbar-width: thin; z-index: var(--z-drawer); }
.dash--admin .side { background: radial-gradient(circle at 100% 0, var(--cyan-50), transparent 40%), var(--s1); }
.side > * { flex-shrink: 0; }
.side__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.side__me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.side__me b { display: block; font-weight: 850; font-size: 14.5px; line-height: 1.4; }
.side__me small { display: block; font-size: 12px; color: var(--text-3); }
.side__me-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--s2); color: var(--text-2); }
.side__me-link:hover { background: var(--violet-100); color: var(--violet-700); }
.side__nav { display: flex; flex-direction: column; gap: 3px; }
.side__group { margin: 12px 12px 4px; font-size: 11.5px; font-weight: 800; color: var(--text-3); }
.side__nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 10px; border-radius: 15px; font-weight: 750; font-size: 14px; color: var(--text-2); transition: .2s var(--ease); }
.side__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: .25s var(--ease); flex: none; }
.side__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__nav a:hover { background: #fff; color: var(--text); }
.side__nav a:hover .side__ico { transform: rotate(-8deg) scale(1.06); }
.side__nav a[aria-current] { background: #fff; color: var(--ink); box-shadow: var(--sh-2); }
.side__nav a[aria-current] .side__ico { background: var(--c100); box-shadow: none; }
.side__nav a[aria-current]::before { content: ""; position: absolute; inset-inline-start: -14px; top: 12px; bottom: 12px; width: 5px; border-radius: 0 6px 6px 0; background: var(--c500); }
.side__promo { position: relative; margin-top: auto; padding: 18px 16px 16px; border-radius: 22px; color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.side__promo b { font-size: 15px; font-weight: 900; }
.side__promo small { font-size: 12px; opacity: .85; line-height: 1.7; padding-inline-end: 50px; }
.side__promo .btn { margin-top: 6px; }
.side__promo-art { position: absolute; inset-inline-end: 10px; top: 12px; }
.side__out .btn { justify-content: flex-start; color: var(--text-3); }
.dash__main { min-width: 0; display: flex; flex-direction: column; }
.dtop { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: 14px; height: 74px; padding: 0 28px; background: rgb(255 255 255 / .82); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid var(--line); }
.dtop__search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; max-width: 460px; height: 46px; padding: 0 14px; gap: 10px; border-radius: 15px; background: var(--s1); border: 1.5px solid var(--line); transition: .2s; }
.dtop__search:focus-within { background: #fff; border-color: var(--violet-300); box-shadow: 0 0 0 4px var(--violet-a12); }
.dtop__search .glyph { width: 19px; height: 19px; color: var(--text-3); }
.dtop__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 14px; }
.dtop__search kbd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1px solid var(--line-2); font: 700 12px var(--font); color: var(--text-3); }
.dtop__date { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--sun-50); color: var(--warn-text); font-size: 13px; font-weight: 750; white-space: nowrap; }
.dtop__date .glyph { width: 16px; height: 16px; }
.dtop__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.dtop__btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--s1); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; list-style: none; transition: .2s; }
.dtop__btn::-webkit-details-marker, .dtop__me::-webkit-details-marker { display: none; }
.dtop__btn:hover { background: #fff; color: var(--text); }
.dtop__btn .glyph { width: 21px; height: 21px; }
.dtop__dot { position: absolute; top: -5px; inset-inline-end: -5px; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--g-sunset); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; box-shadow: 0 0 0 3px #fff; }
.dtop__me { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 6px; border-radius: 15px; cursor: pointer; list-style: none; font-weight: 750; font-size: 14px; }
.dtop__me:hover { background: var(--s1); }
.dtop__me .glyph { width: 14px; height: 14px; color: var(--text-3); }
.pop { position: relative; }
.pop[open] > summary { background: #fff; box-shadow: var(--sh-2); }
.pop__panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: var(--z-pop); width: 340px; max-width: calc(100vw - 24px); padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-4); animation: fade-up .25s var(--ease) both; }
.pop__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px; }
.pop__list li a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-radius: 14px; font-size: 13px; line-height: 1.65; }
.pop__list li a:hover { background: var(--s1); }
.pop__list li.is-new a { background: var(--violet-50); }
.pop__list li span b { display: block; font-weight: 750; }
.pop__list li span small { color: var(--text-3); font-size: 11.5px; }
.pop__empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.pop__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; height: 40px; border-radius: 13px; background: var(--s1); font-weight: 750; font-size: 13px; color: var(--violet-700); }
.pop__panel--me { width: 270px; }
.pop__who { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px dashed var(--line-2); }
.pop__who b { display: block; font-size: 14px; }
.pop__who small { display: block; font-size: 11.5px; color: var(--text-3); }
.pop__panel--me a, .pop__panel--me button { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 13.5px; text-align: start; color: var(--text-2); }
.pop__panel--me a:hover, .pop__panel--me button:hover { background: var(--s1); color: var(--text); }
.pop__panel--me .glyph { width: 18px; height: 18px; }
.dash__content { padding: 26px 28px 60px; min-width: 0; }
.phead { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.phead__crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }
.phead__crumbs a:hover { color: var(--violet-700); }
.phead__crumbs .glyph { width: 12px; height: 12px; }
.phead h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 950; letter-spacing: -.6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phead p { color: var(--text-2); margin-top: 4px; font-size: 14px; }
.phead__act { display: flex; gap: 8px; flex-wrap: wrap; }
.tabbar { position: fixed; z-index: var(--z-tabbar); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 2px; min-height: 64px; padding: 6px; border-radius: 24px; background: rgb(255 255 255 / .92); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgb(24 22 45 / .45); }
.tabbar :is(a, button) { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 52px; padding: 5px 2px 4px; border-radius: 17px; font-size: 10.5px; line-height: 1.25; font-weight: 750; color: var(--text-3); -webkit-tap-highlight-color: transparent; transition: color .2s, background .25s; }
.tabbar :is(a, button) > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar :is(a, button) .glyph { flex: none; width: 22px; height: 22px; transition: transform .3s var(--bounce); }
.tabbar :is(a, button):active .glyph { transform: scale(.88); }
.tabbar :is(a, button)[aria-current] { color: var(--violet-700); background: var(--violet-50); }
.tabbar button { border: 0; background: none; font: inherit; font-size: 10.5px; font-weight: 750; color: var(--text-3); cursor: pointer; }
.tabbar :is(a, button)[aria-current] .glyph { transform: translateY(-1px); }
.tabbar__center { justify-content: flex-end; }
.tabbar__center .glyph { box-sizing: content-box; width: 24px; height: 24px; margin-top: -26px; padding: 13px; border-radius: 19px; background: var(--g-sunset); color: #fff; box-shadow: 0 12px 24px -10px var(--pink-glow), 0 0 0 5px #fff; }
.tabbar a.tabbar__center[aria-current] { background: transparent; }
.dash--admin .tabbar__center .glyph { background: var(--g-lagoon); box-shadow: 0 12px 24px -10px var(--blue-glow), 0 0 0 5px #fff; }
.side-scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgb(24 22 45 / .4); backdrop-filter: blur(4px); }
@media (max-width: 1180px) and (min-width: 761px) {
  .dash { grid-template-columns: 88px minmax(0, 1fr); }
  .side { padding: 14px 10px; align-items: center; }
  .side .brand__name, .side .brand__tag, .side__me > :not(.avatar), .side__group, .side__label, .side__promo, .side__out, .side__nav .count { display: none; }
  .side__me { padding: 6px; border-radius: 16px; }
  .side__nav a { width: 56px; justify-content: center; padding: 0; }
  .side__nav a[aria-current]::before { inset-inline-start: -10px; }
  .dtop, .dash__content { padding-inline: 20px; }
}
/* تبلت: تاریخ نوار بالا جا را از جست‌وجو و دکمه‌ها نگیرد (بیرون‌زدگی در ۷۶۱ تا ۹۰۰ پیکسل) */
@media (max-width: 960px) and (min-width: 761px) { .dtop__date { display: none; } }
@media (max-width: 760px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(320px, 88vw); transform: translateX(105%); transition: transform .35s var(--ease); box-shadow: var(--sh-4); }
  .side.is-open { transform: none; }
  .dtop { height: 64px; padding: 0 12px; gap: 10px; }
  .dtop__btn { width: 42px; height: 42px; }
  .dtop__me { padding: 0 4px; }
  .dash__content { padding: 18px 14px calc(104px + env(safe-area-inset-bottom)); }
  .phead h1 { font-size: 24px; }
}
