/* ═══════════════════════════════════════════════════════
   Shahab Clinic - Public / Front-end Styles
   Developer: محمد مهدی‌نژاد | mahdinezhad.ir
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
/* آیکون‌ها اکنون به‌صورت لوکال و جدا از طریق wp_enqueue_style (shahab-icons) بار می‌شوند؛ نیازی به import خارجی نیست. */

:root {
  /* ── پالت پاستیلی یکپارچه (فاز ۱) ── */
  --sh-primary:       #E8547A;          /* blush rose — نرم‌تر از قرمز تند قبلی */
  --sh-primary-lt:    #FFE4EE;
  --sh-primary-hover: #D43F65;
  --sh-sidebar:       #3B4A6B;          /* midnight indigo — جایگزین #0F172A */
  --sh-sidebar-lt:    #4E5E82;
  --sh-secondary:     #334155;
  --sh-secondary-lt:  #EEF2F8;
  --sh-accent:        #5B9BD5;          /* sky pastel */
  --sh-accent-lt:     #E8F4FD;
  --sh-accent2:       #6DBEAB;          /* mint */
  --sh-accent2-lt:    #E3F7F3;
  --sh-accent3:       #9B7FE8;          /* lavender */
  --sh-accent3-lt:    #F0EBFF;
  --sh-accent4:       #F0A070;          /* peach */
  --sh-accent4-lt:    #FFF0E8;
  --sh-danger:        #E05252;
  --sh-danger-lt:     #FDEAEA;
  --sh-warning:       #E8A020;
  --sh-warning-lt:    #FFF5DC;
  --sh-success:       #2DB87A;
  --sh-success-lt:    #E2F7EE;
  --sh-info:          #5B9BD5;
  --sh-info-lt:       #E8F4FD;
  --sh-dark:          #1E293B;
  --sh-gray:          #64748B;
  --sh-gray-lt:       #94A3B8;
  --sh-light:         #F7F8FC;
  --sh-page-bg:       #F4F6FB;
  --sh-border:        #E4E8F0;
  --sh-radius:        14px;
  --sh-radius-sm:     10px;
  --sh-shadow:        0 4px 20px rgba(30,41,59,.07);
  --sh-shadow-sm:     0 2px 10px rgba(30,41,59,.06);
  --sh-font:          'Vazirmatn', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* ─── Student Panel Wrapper ──────────────────────── */
.sh-student-panel {
  font-family: var(--sh-font);
  direction: rtl;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  color: var(--sh-dark);
  background: var(--sh-page-bg);
  min-height: 100vh;
}
.sh-student-panel *, .sh-instr-panel * {
  font-family: var(--sh-font) !important;
}

/* ─── Header ─────────────────────────────────────── */
.sh-sp-header {
  background: linear-gradient(135deg, #3B4A6B 0%, #4E3B7A 60%, #6B3A5E 100%);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(59,74,107,.22);
}
.sh-sp-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.sh-sp-avatar-ring { position: relative; display: inline-flex; flex-shrink: 0; }
.sh-sp-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}
.sh-sp-avatar img { width: 100% !important; height: 100% !important; max-width: 100% !important; border-radius: 50% !important; object-fit: cover !important; object-position: center !important; }
.sh-sp-avatar-dot {
  position: absolute; bottom: -1px; left: -1px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid var(--sh-primary, #FE4A55);
  transition: box-shadow .4s ease, background-color .4s ease, transform .2s ease;
}
.sh-sp-avatar-dot.green  { background: #2ecc71; box-shadow: 0 0 6px 2px rgba(46,204,113,.85), 0 0 14px 5px rgba(46,204,113,.4); }
.sh-sp-avatar-dot.red    { background: #EF4444; box-shadow: 0 0 6px 2px rgba(239,68,68,.85), 0 0 14px 5px rgba(239,68,68,.4); }
.sh-sp-avatar-dot.yellow { background: #f1c40f; box-shadow: 0 0 6px 2px rgba(241,196,15,.85), 0 0 14px 5px rgba(241,196,15,.4); }
.sh-sp-avatar-dot.neon-blue { background: #0066ff; box-shadow: 0 0 6px 2px rgba(0,102,255,.85), 0 0 14px 5px rgba(0,102,255,.4); }
.sh-sp-status-label { font-size: .68rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.sh-sp-status-green  { color: #eafaf0; background: rgba(46,204,113,.25); }
.sh-sp-status-red    { color: #fdecea; background: rgba(239,68,68,.28); }
.sh-sp-status-yellow { color: #fffbea; background: rgba(241,196,15,.28); }
.sh-sp-status-neon-blue { color: #eaf6ff; background: rgba(0,102,255,.25); }
.sh-sp-avatar-edit {
  position: absolute; top: -2px; right: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--sh-primary,#FE4A55);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .15s;
}
.sh-sp-avatar-edit:hover { transform: scale(1.1); }
.sh-sp-info h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; }
.sh-sp-info p  { margin: 2px 0; font-size: .88rem; opacity: .88; }
.sh-sp-medal   { margin-right: auto; font-size: 2.5rem; }

/* ── دکمه‌های خروج/بازگشت به سایت (هدر داشبورد هنرجو و مربی) ──
   قبلاً این دکمه‌ها هیچ استایلی نداشتند و به‌صورت لینک ساده و کم‌رنگ
   روی پس‌زمینه تیره نمایش داده می‌شدند که باعث می‌شد کاربر فکر کند کار نمی‌کنند. */
.sh-sp-header-actions { display: flex; align-items: center; gap: 8px; margin-right: auto; flex-shrink: 0; }
.sh-sp-back-btn, .sh-sp-logout-btn, .sh-instr-logout-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-size: .82rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  border: 1.5px solid rgba(255,255,255,.35);
  white-space: nowrap;
}
.sh-sp-back-btn { background: rgba(255,255,255,.12); color: #fff; }
.sh-sp-back-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); color: #fff; }
.sh-sp-logout-btn, .sh-instr-logout-btn { background: rgba(255,255,255,.95); color: var(--sh-danger, #EF4444); border-color: transparent; }
.sh-sp-logout-btn:hover, .sh-instr-logout-btn:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); transform: translateY(-1px); color: var(--sh-danger, #EF4444); }
@media (max-width: 480px) {
  .sh-sp-back-btn span, .sh-sp-logout-btn span, .sh-instr-logout-btn span { display: none; }
  .sh-sp-back-btn, .sh-sp-logout-btn, .sh-instr-logout-btn { padding: 9px 12px; }
}

/* ── منوی کشویی موبایل: جایگزین دو دکمه «بازگشت به سایت» و «خروج» فقط در حالت موبایل ── */
.sh-sp-mobile-menu { display: none; }
@media (max-width: 768px) {
  .sh-sp-header, .sh-instr-header { position: relative; }
  .sh-sp-header-actions .sh-sp-back-btn,
  .sh-sp-header-actions .sh-sp-logout-btn,
  .sh-sp-header-actions .sh-instr-logout-btn { display: none; }
  .sh-sp-mobile-menu {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
  }
  .sh-sp-mobile-menu-btn {
    width: 64px !important; height: 64px !important;
    border-radius: 12px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 4.2rem !important;
    cursor: pointer;
    padding: 0;
    transition: transform .12s, opacity .12s;
  }
  .sh-sp-mobile-menu-btn:hover, .sh-sp-mobile-menu-btn:focus, .sh-sp-mobile-menu-btn:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none;
  }
  .sh-sp-mobile-menu-btn:hover { opacity: .75; }
  .sh-sp-mobile-menu-btn:active { transform: translateY(2px); }
  .sh-sp-mobile-menu-btn .sh-sp-menu-icon,
  .sh-sp-mobile-menu-btn i { color: #fff !important; background: transparent !important; font-size: 4.2rem !important; }
  .sh-sp-menu-icon { font-size: 4.2rem !important; color: #fff; }
  .sh-sp-mobile-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: .82rem; font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
  }
  .sh-sp-mobile-pill-home { background: #c8f0df; color: var(--sh-primary); }
  .sh-sp-mobile-pill-home:hover { background: #b0e8d0; color: var(--sh-primary); }
  .sh-sp-mobile-pill-logout { background: #fde0e8; color: #EF4444; }
  .sh-sp-mobile-pill-logout:hover { background: #fcccd8; color: #EF4444; }
}

/* ── آیکون منو (FontAwesome) ── */
/* .sh-hamburger-icon و span‌های آن دیگر استفاده نمی‌شوند — جایگزین شده با .sh-sp-menu-icon */

/* ── منوی تمام‌صفحه (تمام عرض) ── */
.sh-sp-fullmenu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  overflow-y: auto;
}
.sh-sp-fullmenu-overlay.open { display: block; }
.sh-sp-fullmenu-inner {
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
@media (max-width: 380px) {
  .sh-sp-fullmenu-inner { padding-left: 12px; padding-right: 12px; }
}
.sh-sp-fullmenu-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
}
.sh-sp-fullmenu-close {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: color .15s, transform .12s;
}
.sh-sp-fullmenu-close:hover { color: #EF4444; transform: scale(1.15); filter: none; }
.sh-sp-fullmenu-close:active { transform: scale(0.95); box-shadow: none; }

/* ── باکس‌های نمایش سریع لینک/کد اختصاصی (بالای منوی کشویی) ── */
.sh-sp-quickboxes { display: flex; flex-direction: column; gap: 5px; margin-bottom: 3px; width: 100%; }
.sh-sp-quickbox {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid transparent;
  padding: 9px 11px;
  min-height: 48px;
}
.sh-qb-icon { flex: 0 0 auto; }
.sh-qb-icon-wrap {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 30px;
}
.sh-sp-quickbox-link { background: #e3f8ee; border-color: #9fdcbf; color: #0f7a4d; }
.sh-sp-quickbox-code { background: #e9edfb; border-color: #aebdec; color: #2c3f8a; }
/* کد معرف دقیقاً وسط کارت خودش قرار بگیرد (نه چسبیده به آیکون) */
.sh-sp-quickbox-code .sh-sp-quickbox-text { align-items: center; text-align: center; }
.sh-sp-quickbox-code .sh-sp-quickbox-text > strong[dir="ltr"] { text-align: center; }
.sh-sp-quickbox-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sh-sp-quickbox-text > span[dir="ltr"],
.sh-sp-quickbox-text > strong[dir="ltr"] {
  font-size: .92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.sh-qb-label {
  font-size: .78rem;
  font-weight: 500;
  opacity: .8;
  line-height: 1.35;
  white-space: normal;
}
/* دکمه کپی — هر دو کارت دقیقاً هم‌اندازه (عرض ثابت)، پس‌زمینه صورتی پاستلی و متن
   تیره، با هاور واضح تا کاملاً قابل مشاهده و متمایز از پس‌زمینه‌ی کارت باشند. */
.sh-sp-quickbox-copybtn.sh-copy-chip {
  flex: 0 0 auto;
  border: none;
  background: #ffd9e6;
  border-radius: 999px;
  height: 32px;
  min-width: 92px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a3184f;
  font-size: .8rem;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.sh-sp-quickbox-copybtn.sh-copy-chip:hover { background: #ffc4d8; }
.sh-sp-quickbox-code .sh-sp-quickbox-copybtn.sh-copy-chip { background: #ffd9e6; color: #a3184f; }
.sh-sp-quickbox-code .sh-sp-quickbox-copybtn.sh-copy-chip:hover { background: #ffc4d8; }
/* درخواست: پس‌زمینه دو دکمه «کپی لینک» و «کپی کد» داخل منوی کشویی داشبورد هنرجو در حالت موبایل صورتی پاستلی باشد. */
.sh-sp-fullmenu-overlay .sh-sp-quickbox-link .sh-sp-quickbox-copybtn.sh-copy-chip { background: #ffd9e6; color: #a3184f; }
.sh-sp-fullmenu-overlay .sh-sp-quickbox-link .sh-sp-quickbox-copybtn.sh-copy-chip:hover { background: #ffc4d8; }
.sh-sp-quickbox-copybtn.sh-copy-chip:active { transform: scale(.96); }
.sh-sp-quickbox-copybtn.sh-copy-chip.copied { background: var(--sh-success, #22a06b); color: #fff; }
.sh-sp-quickbox-code .sh-sp-quickbox-copybtn.sh-copy-chip.copied { background: var(--sh-success, #22a06b); color: #fff; }
@media (max-width: 380px) {
  .sh-qb-label { font-size: .70rem; }
}

.sh-sp-fullmenu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sh-sp-fullmenu-list li a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f8faf9;
  border: 1.5px solid #e4ede9;
  color: #1E293B;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
/* wrapper آیکون — دایره پاستیلی */
.sh-menu-icon-wrap {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 34px;
  transition: transform .15s;
}
.sh-menu-icon-wrap i { font-size: 1.02rem; }
/* رنگ‌های پاستیلی */
.sh-mi-green  { background: #c8f0df; color: var(--sh-primary); }
.sh-mi-orange { background: #fde8cc; color: #b35c00; }
.sh-mi-blue   { background: #d0e8fb; color: #1a5f8a; }
.sh-mi-purple { background: #e6d9f7; color: #5a2d82; }
.sh-mi-pink   { background: #fcdde8; color: #a02050; }
.sh-mi-teal   { background: #cdf1ee; color: #0d7d74; }
.sh-mi-amber  { background: #fdeecb; color: #8a5a00; }
.sh-mi-red    { background: #fbd8d8; color: #a02020; }
.sh-mi-indigo { background: #dde0fb; color: #38408a; }
.sh-mi-cyan   { background: #cdeef8; color: #0b6f8f; }
.sh-mi-lime   { background: #e6f4c9; color: #5a6e10; }
.sh-sp-fullmenu-list li:nth-child(1) a:hover { background: #eaf4f0; border-color: #b2d8c8; }
.sh-sp-fullmenu-list li:nth-child(2) a:hover { background: #fef6ed; border-color: #f5c99a; }
.sh-sp-fullmenu-list li:nth-child(3) a:hover { background: #eaf3fb; border-color: #a8d0ed; }
.sh-sp-fullmenu-list li:nth-child(4) a:hover { background: #f0eafb; border-color: #c8a8f0; }
.sh-sp-fullmenu-list li:nth-child(5) a:hover { background: #fdf0f5; border-color: #f0a8c0; }
.sh-sp-fullmenu-list li a:hover .sh-menu-icon-wrap { transform: scale(1.1); }

.sh-sp-fullmenu-footer { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.sh-sp-fullmenu-footer .sh-sp-mobile-pill { justify-content: center; padding: 11px 16px; font-size: .9rem; font-weight: 800; border-radius: 12px; border: 2px solid transparent; transition: background .18s, border-color .18s; }
.sh-sp-mobile-pill-home { background: #c8f0df; color: var(--sh-primary); border-color: #a8e6cf; }
.sh-sp-mobile-pill-home:hover { background: #b0e8d0; color: var(--sh-primary); }
.sh-sp-mobile-pill-logout { background: #fde0e8; color: #EF4444; border-color: #f5b0c0; }
.sh-sp-mobile-pill-logout:hover { background: #fcccd8; color: #EF4444; }

/* ── منوی کشویی موبایل داشبورد مربی: فاصله‌ها کمتر (تا دو دکمه پایین کامل دیده شوند) + فونت/آیکون کمی بزرگ‌تر
   (فقط منوی مربی #sh-instr-fullmenu-overlay؛ منوی هنرجو دست‌نخورده می‌ماند) ── */
#sh-instr-fullmenu-overlay .sh-sp-fullmenu-inner { gap: 3px; padding-top: 2px; }
#sh-instr-fullmenu-overlay .sh-sp-quickboxes { gap: 4px; margin-bottom: 2px; }
#sh-instr-fullmenu-overlay .sh-sp-quickbox { padding: 6px 10px; min-height: 40px; }
#sh-instr-fullmenu-overlay .sh-sp-fullmenu-list { gap: 3px; }
#sh-instr-fullmenu-overlay .sh-sp-fullmenu-list li a { padding: 8px 12px; font-size: 1.02rem; }
#sh-instr-fullmenu-overlay .sh-menu-icon-wrap { width: 37px; height: 37px; flex-basis: 37px; }
#sh-instr-fullmenu-overlay .sh-menu-icon-wrap i { font-size: 1.05rem; }
#sh-instr-fullmenu-overlay .sh-sp-fullmenu-footer { gap: 4px; margin-top: 0; }
#sh-instr-fullmenu-overlay .sh-sp-fullmenu-footer .sh-sp-mobile-pill { padding: 10px 16px; font-size: .95rem; }
#sh-instr-fullmenu-overlay .sh-sp-fullmenu-footer .sh-sp-mobile-pill i { font-size: 1.05rem; }
#sh-instr-fullmenu-overlay .sh-qb-label { font-size: .74rem; }
#sh-instr-fullmenu-overlay .sh-sp-quickbox-text > span[dir="ltr"],
#sh-instr-fullmenu-overlay .sh-sp-quickbox-text > strong[dir="ltr"] { font-size: .87rem; }

/* ─── Header: Mobile Friendly ───────────────────── */
@media (max-width: 768px) {
  .sh-student-panel { padding: 10px 10px 16px; }
  .sh-sp-header, .sh-instr-header {
    flex-wrap: wrap;
    padding: 18px 16px;
    gap: 12px;
  }
  .sh-sp-avatar-wrap { order: 1; }
  .sh-sp-info { order: 2; flex: 1 1 auto; min-width: 0; }
  .sh-sp-info h2 { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-sp-info p { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-sp-medal { order: 3; margin-right: 0; font-size: 1.8rem; flex-shrink: 0; }
  .sh-sp-header-actions {
    order: 4;
    width: 100%;
    margin-right: 0;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 10px;
  }
  .sh-membership-days { font-size: .72rem; }
}
@media (max-width: 380px) {
  .sh-sp-avatar { width: 52px; height: 52px; font-size: 1.4rem; }
  .sh-sp-info h2 { font-size: .95rem; }
}

/* ─── هدر داشبورد مربی در موبایل: چیدمان اختصاصی (فقط پنل مربی، بدون تأثیر روی پنل هنرجو) ───
   ردیف ۱: آواتار هم‌تراز و در کنار نام و نام‌خانوادگی (سمت راست)
   ردیف ۲: توضیحات، درست زیر آواتار
   ردیف ۳: کد مربی + دکمه کپی لینک دعوت جلوی آن
   ردیف ۴: گوشه چپ → تگ مدت عضویت مربی و کنار آن آیکون زنگوله و آیکون تیکت */
@media (max-width: 768px) {
  .sh-instr-header {
    padding: 14px 14px !important;
    gap: 6px !important;
  }
  .sh-instr-header .sh-sp-avatar-wrap { gap: 0; }
  .sh-instr-header .sh-sp-avatar { width: 46px; height: 46px; font-size: 1.15rem; border-width: 2px; }
  .sh-instr-header .sh-sp-status-label { display: none; }
  .sh-instr-header .sh-sp-info { display: contents; }
  .sh-instr-header .sh-sp-info h2 {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    margin: 0;
    font-size: 1rem !important;
  }
  .sh-instr-header .sh-sp-info p:nth-of-type(1) {
    order: 3;
    flex: 0 0 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin: 2px 0 0;
    font-size: .74rem !important;
  }
  .sh-instr-header .sh-sp-info p:nth-of-type(2) {
    order: 4;
    flex: 0 0 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin: 4px 0 0;
  }
  .sh-instr-header .sh-sp-header-actions {
    justify-content: space-between;
    padding-top: 8px !important;
    gap: 6px !important;
  }
  .sh-instr-header .sh-sp-header-actions .sh-membership-days    { order: 1; }
  .sh-instr-header .sh-sp-header-actions .sh-tuition-countdown  { order: 2; }
  .sh-instr-header .sh-sp-header-actions .sh-header-icons-group { order: 3; }
  .sh-instr-header .sh-copy-chip { padding: 2px 12px; }
  .sh-instr-header .sh-membership-days,
  .sh-instr-header .sh-tuition-countdown { padding: 3px 8px; font-size: .68rem !important; }
  .sh-instr-header .sh-header-bell,
  .sh-instr-header .sh-header-ticket { width: 30px; height: 30px; font-size: 13px; }
}

/* ─── Overview Cards: Equal-Size on Mobile ──────── */
@media (max-width: 768px) {
  .sh-sp-cards { grid-template-columns: repeat(2, 1fr); }
  .sh-sp-card { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 12px; }
  .sh-sp-card-icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .sh-sp-card-title { font-size: .7rem; }
  .sh-sp-card-val { font-size: .95rem; }
}
@media (max-width: 380px) {
  .sh-sp-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ─── Account Settings Boxes: Equal-Size on Mobile ── */
@media (max-width: 600px) {
  .sh-acct-card { padding: 14px; }
  .sh-acct-photo-preview { width: 56px; height: 56px; }
}

/* ─── موبایل ناو حذف شده — تب‌های اسکرول‌پذیر برای همه سایزها ─── */
.sh-sp-mobile-nav { display: none !important; }
@media (max-width: 768px) {
  .sh-sp-tabs {
    display: flex !important;
    padding: 4px 2px 8px;
  }
}

/* ─── Tabs ───────────────────────────────────────── */
.sh-sp-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.sh-sp-tabs::-webkit-scrollbar { display: none; }
.sh-sp-tab {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 30px;
  border: 1.5px solid transparent;
  background: #fff;
  color: #6c757d;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.sh-sp-tab:hover, .sh-sp-tab.active {
  background: var(--sh-primary);
  color: #fff;
  border-color: var(--sh-primary);
}

/* ─── رنگ‌بندی هر تب (طبق طرح دسترسی سریع) ───────────
   هر تب یک رنگ پس‌زمینه ملایم مخصوص خودش دارد و هنگام فعال/هاور شدن
   به همان رنگ به‌صورت پررنگ (solid) با متن سفید تبدیل می‌شود. */
/* ── رنگ‌بندی پاستیلی تب‌های هنرجو ── */
.sh-sp-tabs .sh-sp-tab:nth-child(1)  { background: #FFE4EE; color: #C0456A; }   /* blush */
.sh-sp-tabs .sh-sp-tab:nth-child(2)  { background: #FFF0E8; color: #B5611A; }   /* peach */
.sh-sp-tabs .sh-sp-tab:nth-child(3)  { background: #E8F4FD; color: #2B6EA0; }   /* sky */
.sh-sp-tabs .sh-sp-tab:nth-child(4)  { background: #E3F7F3; color: #1A7A60; }   /* mint */
.sh-sp-tabs .sh-sp-tab:nth-child(5)  { background: #F0EBFF; color: #5E35B1; }   /* lavender */
.sh-sp-tabs .sh-sp-tab:nth-child(6)  { background: #FDEAEA; color: #B03030; }   /* soft red */
.sh-sp-tabs .sh-sp-tab:nth-child(7)  { background: #E8F4FD; color: #2B6EA0; }   /* sky */
.sh-sp-tabs .sh-sp-tab:nth-child(8)  { background: #FFF5DC; color: #9A7010; }   /* butter */
.sh-sp-tabs .sh-sp-tab:nth-child(9)  { background: #FFE4EE; color: #A03060; }   /* blush */
.sh-sp-tabs .sh-sp-tab:nth-child(10) { background: #EEF2F8; color: #4A5568; }   /* fog */
.sh-sp-tabs .sh-sp-tab:nth-child(11) { background: #E3F7F3; color: #1A6B50; }   /* mint */

.sh-sp-tabs .sh-sp-tab:nth-child(1):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(1).active  { background: #C0456A; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(2):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(2).active  { background: #B5611A; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(3):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(3).active  { background: #2B6EA0; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(4):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(4).active  { background: #1A7A60; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(5):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(5).active  { background: #5E35B1; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(6):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(6).active  { background: #B03030; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(7):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(7).active  { background: #2B6EA0; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(8):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(8).active  { background: #9A7010; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(9):hover,  .sh-sp-tabs .sh-sp-tab:nth-child(9).active  { background: #A03060; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(10):hover, .sh-sp-tabs .sh-sp-tab:nth-child(10).active { background: #4A5568; color: #fff; }
.sh-sp-tabs .sh-sp-tab:nth-child(11):hover, .sh-sp-tabs .sh-sp-tab:nth-child(11).active { background: #1A6B50; color: #fff; }

/* ─── Tab Content ────────────────────────────────── */
.sh-sp-content { display: none; }
.sh-sp-content.active { display: block; }

/* ─── Overview Cards ─────────────────────────────── */
.sh-sp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.sh-sp-card {
  background: #fff;
  border-radius: var(--sh-radius);
  padding: 18px 16px;
  box-shadow: var(--sh-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 4px solid transparent;
}
.sh-sp-card.green  { border-color: #22C55E; }
.sh-sp-card.blue   { border-color: #2980b9; }
.sh-sp-card.orange { border-color: #f39c12; }
.sh-sp-card.red    { border-color: #EF4444; }
.sh-sp-card.purple { border-color: #8e44ad; }
.sh-sp-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sh-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.sh-sp-card.green  .sh-sp-card-icon { background: var(--sh-primary-lt); color: #22C55E; }
.sh-sp-card.blue   .sh-sp-card-icon { background: #e8f1f9; color: #2980b9; }
.sh-sp-card.orange .sh-sp-card-icon { background: #fff3e0; color: #f39c12; }
.sh-sp-card.red    .sh-sp-card-icon { background: #fdecea; color: #EF4444; }
.sh-sp-card.purple .sh-sp-card-icon { background: #f3e8ff; color: #8e44ad; }
.sh-sp-card-title { font-size: .75rem; color: #6c757d; margin-bottom: 2px; }
.sh-sp-card-val   { font-size: 1.1rem; font-weight: 800; }

/* ─── Sections ───────────────────────────────────── */
.sh-sp-section {
  background: #fff;
  border-radius: var(--sh-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--sh-shadow);
}
.sh-sp-section h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sh-primary);
  display: flex; align-items: center; gap: 8px;
}

/* ─── Notification ───────────────────────────────── */
.sh-sp-notif {
  background: #f8faf9;
  border-right: 4px solid var(--sh-primary);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: .88rem;
}
.sh-sp-notif b { display: block; margin-bottom: 4px; color: var(--sh-primary); }
.sh-sp-notif p { margin: 0; color: #555; }

/* ─── Referral Code Display ──────────────────────── */
.sh-sp-code {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sh-primary);
  letter-spacing: 4px;
  background: var(--sh-light);
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px dashed var(--sh-primary);
  margin-bottom: 12px;
}

/* ─── Small Cards ────────────────────────────────── */
.sh-sp-small-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  gap: 4px;
}
.sh-sp-small-card.green  { background: var(--sh-primary-lt); color: var(--sh-primary); }
.sh-sp-small-card.red    { background: #fdecea; color: #EF4444; }
.sh-sp-small-card.blue   { background: #e8f1f9; color: #2980b9; }
.sh-sp-small-card.purple { background: #f3e8ff; color: #8e44ad; }
.sh-sp-small-card b      { font-size: 1.5rem; }
.sh-sp-small-card small  { font-size: .75rem; font-weight: 500; }

/* ─── Payment Row ────────────────────────────────── */
.sh-sp-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: .88rem;
  gap: 12px;
  flex-wrap: wrap;
}
.sh-sp-pay-row:last-child { border-bottom: none; }

/* ─── تاریخچه پرداخت با فیلتر ماه ────────────────── */
.sh-sp-pay-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sh-sp-pay-header h3 { margin: 0; }
/* نسخهٔ ۲.۵۶.۰ — فیلترهای «تاریخچه پرداخت شهریه» و «چک‌لیست حضور و غیاب» به‌صورت یک کارتِ وسط‌چین با عرض ۵۰٪ (هم در دسکتاپ و هم موبایل) */
.sh-sp-pay-filter-bar {
  display: flex; gap: 16px; flex-wrap: nowrap; margin: 0 auto 14px; justify-content: center;
  width: 100%; background: var(--sh-light); border-radius: 12px; padding: 14px 16px;
}
.sh-sp-pay-filter-bar label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: .78rem; color: #6c757d; font-weight: 600; text-align: center; flex: 1 1 0; justify-content: center; }
.sh-sp-pay-filter-bar select {
  padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--sh-border);
  font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: .82rem; background: #fff; color: #1E293B;
  flex: 1 1 0; min-width: 0;
}
@media (max-width: 700px) {
  .sh-sp-pay-filter-bar { flex-wrap: nowrap; gap: 8px; padding: 12px 10px; }
  .sh-sp-pay-filter-bar label { flex-direction: column; gap: 4px; font-size: .72rem; }
}

/* ─── کارت‌های بالای تب شهریه: شماره کارت مربی + مانده تا پایان شهریه ────────────────── */
.sh-sp-pay-topcards { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.sh-sp-pay-topcard {
  flex: 1 1 300px; border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.sh-sp-pay-topcard-card {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe6cf 100%);
  border: 1.5px solid #ffd9ac;
}
.sh-sp-pay-topcard-countdown {
  background: linear-gradient(135deg, #eaf7ff 0%, #d9edff 100%);
  border: 1.5px solid #b9dcff;
}
.sh-sp-pay-topcard-label { font-size: .8rem; font-weight: 800; color: #6c757d; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sh-sp-pay-topcard-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.sh-sp-pay-topcard-value { font-size: 1rem; font-weight: 800; color: #1E293B; background: rgba(255,255,255,.65); padding: 6px 12px; border-radius: 10px; }
.sh-sp-pay-topcard-big { font-size: 1.7rem; font-weight: 800; color: #2980b9; }
.sh-sp-copy-btn {
  border: none; cursor: pointer; padding: 8px 16px; border-radius: 10px; font-size: .8rem; font-weight: 700;
  background: var(--sh-primary); color: #fff; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 3px 10px rgba(232,84,122,.3);
}
.sh-sp-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(232,84,122,.4); }
.sh-sp-copy-btn:active { transform: translateY(0); }
@media (max-width: 700px) {
  .sh-sp-pay-topcards { flex-direction: column; }
  .sh-sp-pay-topcard { flex: 1 1 100%; width: 100%; }
}

/* ─── کارت «اعلام پرداخت شهریه» ────────────────── */
.sh-sp-selfpay-card {
  background: linear-gradient(160deg, #fff 0%, #fff8fa 100%);
  border: 1.5px solid #f6d9e2;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 6px 22px rgba(232,84,122,.08);
}
.sh-sp-selfpay-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sh-sp-selfpay-header-icon {
  width: 46px; height: 46px; min-width: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sh-primary), #ff8a90);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(232,84,122,.3);
}
.sh-sp-selfpay-header h3 { margin: 0 0 3px; font-size: 1.05rem; color: #2f2130; }
.sh-sp-selfpay-header p { margin: 0; font-size: .8rem; color: #8a8a95; }
.sh-sp-selfpay-empty { background: var(--sh-light); border-radius: 12px; padding: 14px 16px; font-size: .85rem; color: #6c757d; display: flex; align-items: center; gap: 8px; }

.sh-sp-selfpay-amount {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #fff0f4, #ffe4ee);
  border-radius: 14px; padding: 16px; margin-bottom: 16px; text-align: center;
}
.sh-sp-selfpay-amount-label { font-size: .78rem; font-weight: 700; color: #b05a72; }
.sh-sp-selfpay-amount-value { font-size: 1.7rem; font-weight: 800; color: var(--sh-primary); }
.sh-sp-selfpay-amount-value small { font-size: .85rem; font-weight: 600; }
.sh-sp-selfpay-amount-discount { font-size: .76rem; color: #22a06b; font-weight: 700; display: flex; align-items: center; gap: 5px; }

.sh-sp-selfpay-methods { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sh-sp-selfpay-method-btn {
  flex: 1 1 160px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: 14px; border: 2px solid var(--sh-border);
  background: #fff; cursor: pointer; font-family: inherit; font-size: .88rem; font-weight: 700; color: #4a4a55;
  transition: all .18s ease;
}
.sh-sp-selfpay-method-btn:hover { border-color: var(--sh-primary); }
.sh-sp-selfpay-method-icon { font-size: 1.05rem; color: var(--sh-primary); }
.sh-sp-selfpay-method-btn.sh-sp-selfpay-method-active {
  background: linear-gradient(135deg, var(--sh-primary), #ff8a90); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(232,84,122,.3);
}
.sh-sp-selfpay-method-btn.sh-sp-selfpay-method-active .sh-sp-selfpay-method-icon { color: #fff; }

.sh-sp-selfpay-panel { display: none; margin-top: 16px; animation: shSpFadeIn .25s ease; }
.sh-sp-selfpay-panel-open { display: block; }
@keyframes shSpFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.sh-sp-selfpay-cardnum {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--sh-light); border-radius: 12px; padding: 12px 14px; font-size: .84rem; margin-bottom: 14px;
}
.sh-sp-selfpay-cardnum i { color: var(--sh-primary); }
.sh-sp-selfpay-cardnum code { font-weight: 800; font-size: .9rem; color: #1E293B; background: #fff; padding: 4px 10px; border-radius: 8px; }

.sh-sp-selfpay-input-label { display: block; font-size: .8rem; font-weight: 700; color: #6c757d; margin-bottom: 6px; }
.sh-sp-selfpay-input {
  width: 100%; max-width: 340px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--sh-border);
  font-family: inherit; font-size: .86rem; margin-bottom: 14px; display: block;
}
.sh-sp-selfpay-input:focus { outline: none; border-color: var(--sh-primary); }

.sh-sp-selfpay-datetime { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sh-sp-selfpay-datetime-field { flex: 1 1 90px; display: flex; flex-direction: column; gap: 5px; }
.sh-sp-selfpay-datetime-field span { font-size: .72rem; font-weight: 700; color: #9a9aa5; text-align: center; }
.sh-sp-selfpay-datetime-field select {
  padding: 9px 8px; border-radius: 10px; border: 1.5px solid var(--sh-border);
  font-family: inherit; font-size: .82rem; text-align: center; background: #fff; color: #1E293B;
}
.sh-sp-selfpay-datetime-field select:focus { outline: none; border-color: var(--sh-primary); }

.sh-sp-selfpay-submit {
  border: none; cursor: pointer; padding: 12px 26px; border-radius: 12px; font-size: .9rem; font-weight: 800;
  background: linear-gradient(135deg, #17a589, #2ecc9b); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(23,165,137,.32); transition: transform .15s ease, box-shadow .15s ease;
}
.sh-sp-selfpay-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23,165,137,.42); }
.sh-sp-selfpay-submit:active { transform: translateY(0); }

.sh-sp-selfpay-msg { margin-top: 12px; font-size: .84rem; font-weight: 700; }
.sh-sp-selfpay-msg-ok  { color: #22a06b; }
.sh-sp-selfpay-msg-err { color: #EF4444; }
/* کارتِ «حضور ماه جاری» در تب حضور و غیاب — همان الگوی وسط‌چین و عرض ۵۰٪ */
.sh-sp-att-stats { justify-content: center; width: 50%; min-width: 260px; margin: 0 auto 16px; }
@media (max-width: 700px) { .sh-sp-att-stats { width: 50%; min-width: 220px; } }
.sh-sp-table-wrap { overflow-x: auto; border: 1px solid var(--sh-border); border-radius: 10px; }
.sh-sp-table { width: 100%; border-collapse: collapse; font-size: .84rem; white-space: nowrap; }
.sh-sp-table thead th {
  background: linear-gradient(90deg, var(--sh-primary), #ff8a90); color: #fff; font-weight: 400; font-size: .82rem;
  padding: 10px 12px; text-align: center; border-bottom: 2px solid var(--sh-border);
}
.sh-sp-table tbody td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--sh-border); }
.sh-sp-table tbody tr:hover { background: rgba(254,74,85,.04); }
.sh-sp-empty { color: var(--sh-gray); font-size: .85rem; text-align: center; padding: 16px 0; }

/* ─── Evaluation Grid ────────────────────────────── */
.sh-sp-eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.sh-sp-metric {
  background: var(--sh-light);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.sh-sp-metric-label { font-size: .75rem; color: #6c757d; margin-bottom: 6px; }
.sh-sp-metric-val   { font-size: 1.4rem; font-weight: 800; color: var(--sh-primary); }

/* ─── Ticket ─────────────────────────────────────── */
.sh-sp-ticket {
  background: var(--sh-light);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  font-size: .88rem;
}

/* ─── Service Card ───────────────────────────────── */
.sh-sp-service-card {
  background: #fff;
  border: 1.5px solid var(--sh-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.sh-sp-service-card b { font-size: 1rem; font-weight: 700; display: block; margin-bottom: 4px; }
.sh-sp-service-card p { margin: 4px 0 8px; font-size: .85rem; color: #666; }

/* ─── Form in panel ──────────────────────────────── */
.sh-sp-form-group { margin-bottom: 14px; }
.sh-sp-form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.sh-sp-form-group input,
.sh-sp-form-group textarea,
.sh-sp-form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--sh-border);
  border-radius: 8px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .88rem;
  direction: rtl;
}
.sh-sp-btn {
  background: var(--sh-primary);
  color: #fff !important;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background .2s;
}
.sh-sp-btn:hover { background: var(--sh-secondary); color: #fff !important; }

/* ─── Badges (reuse) ─────────────────────────────── */
.sh-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.sh-badge.green  { background: var(--sh-success-lt); color: var(--sh-success); }
.sh-badge.red    { background: #fdecea; color: #EF4444; }
.sh-badge.yellow { background: #fff8e1; color: #e67e22; }
.sh-badge.blue   { background: #e8f1f9; color: #2980b9; }
.sh-badge.gray   { background: #f0f0f0; color: #6c757d; }
.sh-badge.neon-blue {
  background: #eaf6ff;
  color: #0066ff;
  box-shadow: 0 0 0 1px #0066ff33, 0 0 8px rgba(0, 132, 255, .45);
}

/* ─── Public Stats ───────────────────────────────── */
.sh-public-stats {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.sh-public-stats h2 { color: var(--sh-primary); margin-bottom: 20px; }
.sh-ps-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.sh-ps-card {
  background: #fff;
  border-radius: var(--sh-radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--sh-shadow);
}
.sh-ps-icon { font-size: 2rem; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.sh-ps-val  { font-size: 2rem; font-weight: 800; color: var(--sh-primary); }
.sh-ps-label { font-size: .85rem; color: #6c757d; }
.sh-ps-class {
  background: #fff;
  border-radius: var(--sh-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--sh-shadow);
}
.sh-ps-class h3 { margin: 0 0 10px; color: var(--sh-primary); font-size: .95rem; }
.sh-ps-top {
  background: var(--sh-light);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
}

/* ─── Public Register ────────────────────────────── */
.sh-register-form {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--sh-radius);
  padding: 30px;
  box-shadow: var(--sh-shadow);
}
.sh-register-form h2 { margin: 0 0 24px; color: var(--sh-primary); }
.sh-reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sh-reg-group { margin-bottom: 14px; }
.sh-reg-group label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.sh-req { color: #EF4444; }
.sh-reg-group input,
.sh-reg-group select,
.sh-reg-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--sh-border);
  border-radius: 8px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 1rem;
  direction: rtl;
  background: #fff;
}
.sh-reg-group textarea { min-height: 90px; resize: vertical; }
.sh-reg-group input:focus,
.sh-reg-group select:focus,
.sh-reg-group textarea:focus {
  outline: none;
  border-color: #7bc79e;
  box-shadow: 0 0 0 3px rgba(45,140,99,.14);
}
.sh-reg-btn {
  width: 100%;
  padding: 13px;
  background: var(--sh-primary);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.sh-reg-btn:hover { background: var(--sh-secondary); color: #fff !important; }
.sh-reg-btn-ghost { background: #fff; color: var(--sh-primary); border: 1.5px solid var(--sh-border); }
.sh-reg-btn-ghost:hover { background: var(--sh-light); }
.sh-reg-btn-primary { background: var(--sh-primary); color: #fff !important; }
a.sh-reg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

/* ─── Registration Wizard ─────────────────────────── */
.sh-wizard {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow);
  overflow: hidden;
  border: 1px solid var(--sh-border);
  font-size: 1.06rem;
}
.sh-wiz-header { background: var(--sh-primary); color: #fff; padding: 22px 26px; }
.sh-wiz-header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.sh-wiz-header-text { min-width: 0; flex: 1 1 auto; }
.sh-wiz-back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ffffff;
  border: none;
  color: var(--sh-primary) !important; font-size: .85rem; font-weight: 700;
  padding: 8px 16px; border-radius: 10px;
  text-decoration: none; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  transition: background .18s, transform .15s, box-shadow .15s;
}
.sh-wiz-back-btn i { font-size: .82rem; }
.sh-wiz-back-btn:hover {
  background: #f0f7f3;
  color: var(--sh-secondary) !important; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
}
@media (max-width: 480px) {
  .sh-wiz-back-btn { font-size: .76rem; padding: 7px 12px; }
}
.sh-wiz-title { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sh-wiz-sub { font-size: .86rem; opacity: .85; margin-top: 4px; }

.sh-wiz-steps { position: relative; display: flex; justify-content: space-between; padding: 24px 26px 10px; gap: 4px; }
.sh-wiz-steps::before {
  content: ""; position: absolute; top: 45px; right: 13%; left: 13%; height: 3px;
  background: var(--sh-border); z-index: 0; border-radius: 3px;
}
.sh-wiz-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; font-size: .82rem; color: #9fb3a9; font-weight: 700; }
.sh-wiz-dot {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2.5px solid var(--sh-border);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; color: #9fb3a9;
  transition: all .25s; box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.sh-wiz-step.active .sh-wiz-dot { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; box-shadow: 0 6px 16px rgba(254,74,85,.30); transform: scale(1.08); }
.sh-wiz-step.active { color: var(--sh-primary); }
.sh-wiz-step.done .sh-wiz-dot { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; box-shadow: 0 4px 12px rgba(14,165,233,.3); }
.sh-wiz-step.done { color: var(--sh-accent); }

#sh-reg-msg { padding: 0 26px; }
.sh-wiz-pane { padding: 10px 26px 26px; }

.sh-reg-row3 { grid-template-columns: 1fr 1fr 1fr !important; }

.sh-wiz-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
.sh-wiz-photo {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--sh-light); border: 2px dashed var(--sh-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #9fb3a9; overflow: hidden;
}
.sh-wiz-photo img { width: 100%; height: 100%; object-fit: cover; }
.sh-wiz-photo-btn {
  font-size: .78rem; font-weight: 700; color: var(--sh-primary);
  background: var(--sh-light); border: 1px solid var(--sh-border);
  padding: 7px 14px; border-radius: 20px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.sh-wiz-photo-status { font-size: .72rem; color: var(--sh-success); }

.sh-wiz-toggle2 { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-wiz-toggle2 label {
  flex: 1; min-width: 120px; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 12px; border: 1.5px solid var(--sh-border); border-radius: 10px; cursor: pointer;
  font-size: .95rem; font-weight: 700; color: #5d6e66; white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.sh-wiz-toggle2 input { accent-color: var(--sh-primary); width: 16px; height: 16px; flex-shrink: 0; }
.sh-wiz-toggle2 label:hover { border-color: #b9d4c4; background: #f5faf7; }
.sh-wiz-toggle2 label:has(input:checked),
.sh-wiz-toggle2 label.sh-toggle-checked {
  border-color: var(--sh-primary); background: var(--sh-primary-lt); color: var(--sh-primary); box-shadow: 0 2px 8px rgba(254,74,85,.12);
}

.sh-wiz-box { background: var(--sh-light); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--sh-border); transition: border-color .2s, box-shadow .2s; }
.sh-wiz-box:hover, .sh-wiz-box:focus-within { border-color: var(--sh-primary); box-shadow: 0 0 0 3px rgba(254,74,85,.07); }
.sh-wiz-box label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 8px; color: var(--sh-primary); }
.sh-wiz-box select { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--sh-border); font-family: inherit; }
.sh-wiz-box-danger { background: #fdf1ef; border-color: #f6d6d0; }
.sh-wiz-box-danger label { color: var(--sh-danger); }
.sh-wiz-box-info { background: #eaf3fb; border-color: #cfe3f5; display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.sh-wiz-box-info label { margin: 0; color: var(--sh-info); }

.sh-wiz-consent {
  display: flex; align-items: center; gap: 10px; background: #fff8e8; border: 1px solid #f3e0ad;
  border-radius: 10px; padding: 12px 14px; font-size: .85rem; font-weight: 600; color: #7d5b00; cursor: pointer; margin-bottom: 6px;
}
.sh-wiz-consent input { width: 18px; height: 18px; accent-color: var(--sh-accent); flex-shrink: 0; }

.sh-wiz-ref-name { margin-top: 8px; font-size: .82rem; color: var(--sh-success); background: #eaf8f0; padding: 8px 12px; border-radius: 8px; }
.sh-wiz-hint { font-size: .75rem; color: #8a9a92; margin-top: 8px; line-height: 1.8; }

.sh-wiz-alert { padding: 10px 14px; border-radius: 8px; font-size: .85rem; margin-bottom: 10px; }
.sh-wiz-alert.error { background: #fdecea; color: var(--sh-danger); }
.sh-wiz-alert.success { background: var(--sh-primary-lt); color: var(--sh-primary); }

/* ── دکمه‌های قبل/بعد - رنگ ملایم و اصولی ───────────── */
.sh-wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.sh-wiz-nav .sh-reg-btn {
  width: auto; flex: 0 0 auto; padding: 12px 26px; margin-top: 0;
  border-radius: 10px; font-size: .92rem; transition: transform .15s, box-shadow .15s, background .2s, border-color .2s;
}
.sh-wiz-nav .sh-reg-btn:not(.sh-reg-btn-ghost) {
  background: var(--sh-primary);
  box-shadow: 0 4px 14px rgba(254,74,85,.22);
}
.sh-wiz-nav .sh-reg-btn:not(.sh-reg-btn-ghost):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(254,74,85,.3); }
.sh-wiz-nav .sh-reg-btn-ghost {
  background: #f6f9f7; color: #5d6e66; border: 1.5px solid var(--sh-border);
}
.sh-wiz-nav .sh-reg-btn-ghost:hover { background: #eef3f0; border-color: #b9d4c4; color: var(--sh-primary); transform: translateY(-2px); }
.sh-wiz-pane[data-pane="1"] .sh-wiz-nav { justify-content: flex-end; }

/* ── تب‌های روش پرداخت - واکنش‌گرا ──────────────────── */
.sh-wiz-pay-tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.sh-wiz-pay-tab {
  flex: 1 1 0; min-width: 90px; padding: 12px 8px; border-radius: 10px; border: 1.5px solid var(--sh-border); background: #fff;
  font-family: inherit; font-size: .88rem; font-weight: 700; color: #6c7d75; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .18s;
}
.sh-wiz-pay-tab i { font-size: 1.2rem; }
.sh-wiz-pay-tab:hover { border-color: #b9d4c4; background: #f5faf7; }
.sh-wiz-pay-tab.active { border-color: var(--sh-primary); background: var(--sh-primary); color: #fff; box-shadow: 0 4px 12px rgba(254,74,85,.25); }

/* ── کارت بانکی - طراحی واقعی، طلایی و واکنش‌گرا ────── */
.sh-bank-card {
  position: relative; border-radius: 18px; padding: clamp(18px,5vw,26px) clamp(16px,4vw,24px); color: #fff; overflow: hidden;
  box-shadow: 0 10px 28px rgba(12,53,38,.35);
}
/* حالت پیش‌فرض (بدون تصویر دلخواه ادمین): طرح طلایی زیبا و آماده */
.sh-bank-card.sh-bank-card--gold {
  background: #B4884A;
  box-shadow: 0 10px 28px rgba(122,90,19,.4);
}
.sh-bank-card.sh-bank-card--gold::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.10);
  pointer-events: none;
}
/* حالتی که ادمین تصویر دلخواه خودش را آپلود کرده: تصویر به‌طور کامل و واضح نمایش داده می‌شود */
.sh-bank-card.sh-bank-card--custom {
  background: #0c3526;
}
.sh-bank-card.sh-bank-card--custom .sh-bank-card-bg { opacity: 1; }
.sh-bank-card.sh-bank-card--custom::after {
  background: rgba(0,0,0,.35) !important;
}
.sh-bank-card::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.sh-bank-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.sh-bank-card-chip { position: relative; font-weight: 800; font-size: clamp(.85rem,2.6vw,1rem); display: flex; align-items: center; gap: 8px; margin-bottom: clamp(18px,5vw,26px); opacity: .92; }
.sh-bank-card-number {
  position: relative; font-size: clamp(1.4rem,5.5vw,2rem) !important; font-weight: 800; text-align: center;
  letter-spacing: clamp(2px,1.2vw,4px) !important; margin-bottom: 8px; word-break: break-all;
}
.sh-bank-card-holder { position: relative; text-align: center; font-size: clamp(.85rem,2.6vw,1rem); font-weight: 700; opacity: .92; margin-bottom: clamp(14px,4vw,20px); }
.sh-bank-card-row3 { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: .8rem; flex-wrap: wrap; }
.sh-bank-card-amount { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sh-bank-card-amount .l { font-size: .72rem; opacity: .8; }
.sh-bank-card-amount .v { font-size: clamp(1.05rem,3.2vw,1.3rem); font-weight: 800; }
.sh-bank-copy {
  border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; font-weight: 700;
  padding: 10px 20px; border-radius: 10px; cursor: pointer; font-size: .85rem; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s, border-color .2s; white-space: nowrap;
}
.sh-bank-copy:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.85); transform: translateY(-1px); }
.sh-bank-copy.copied { background: var(--sh-success); border-color: var(--sh-success); color: #fff; }
.sh-bank-card-date { position: relative; margin-top: 14px; font-size: .72rem; opacity: .78; display: flex; align-items: center; gap: 5px; justify-content: flex-start; }

.sh-online-pay-box, .sh-pos-box {
  text-align: center; background: var(--sh-light); border: 1px solid var(--sh-border); border-radius: 12px; padding: clamp(20px,5vw,28px) 16px;
}
.sh-online-pay-icon { font-size: clamp(2.4rem,8vw,3rem); color: var(--sh-success); margin-bottom: 12px; display: block; }
.sh-pos-icon { font-size: 2.2rem; color: var(--sh-secondary); margin-bottom: 10px; display: block; }
.sh-online-pay-box p { font-size: clamp(.92rem,3vw,1.02rem); font-weight: 700; color: var(--sh-primary); margin-bottom: 14px; }
.sh-pos-box p { font-size: .85rem; color: #5d6e66; margin-bottom: 14px; line-height: 1.9; }
.sh-pos-confirm-note { margin-top: 10px; background: #eafaf0; color: var(--sh-primary); border-radius: 8px; padding: 9px 12px; font-size: .78rem; display: flex; align-items: center; gap: 6px; text-align: right; }

/* ─── Success Modal ──────────────────────────────── */
.sh-wiz-modal-overlay {
  position: fixed; inset: 0; background: rgba(20,40,30,.55); z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.sh-wiz-modal {
  font-family: 'Vazirmatn', Tahoma, sans-serif; direction: rtl;
  background: #fff; border-radius: 18px; padding: 30px 26px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  margin: auto;
  max-height: 90vh; max-height: 90dvh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sh-wiz-modal-icon { font-size: 3rem; color: var(--sh-success); margin-bottom: 10px; }
.sh-wiz-modal h3 { margin: 0 0 8px; color: var(--sh-primary); font-size: 1.15rem; }
.sh-wiz-modal-note { font-size: .86rem; color: var(--sh-danger); background: #fdf1ef; padding: 10px; border-radius: 8px; margin-bottom: 16px; }
.sh-wiz-modal-box { background: var(--sh-light); border-radius: 10px; padding: 14px; margin-bottom: 18px; text-align: right; }
.sh-wiz-modal-box div { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; border-bottom: 1px dashed var(--sh-border); }
.sh-wiz-modal-box div:last-child { border-bottom: none; }
.sh-wiz-modal-box b { color: var(--sh-primary); }
.sh-wiz-modal .sh-reg-btn { width: 100%; }

/* ── گزارش کامل ثبت‌نام (مودال تأیید نهایی) ── */
.sh-wiz-modal-report { max-width: 640px; text-align: right; }
.sh-wiz-report-hello { text-align: center; font-size: 1rem; color: var(--sh-primary); font-weight: 700; margin: -4px 0 16px; }
.sh-wiz-report-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px;
}
.sh-wiz-report-card {
  border-radius: 12px; padding: 12px 14px; background: var(--sh-light);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.sh-wiz-report-card .l { font-size: .78rem; color: #7a8a82; display: flex; align-items: center; gap: 5px; word-break: break-word; }
.sh-wiz-report-card .v { font-size: 1rem; font-weight: 800; color: var(--sh-primary); word-break: break-word; }
.sh-wiz-report-card.green  { background: var(--sh-primary-lt); }
.sh-wiz-report-card.green  .v { color: var(--sh-primary); }
.sh-wiz-report-card.red    { background: #fdecea; }
.sh-wiz-report-card.red    .v { color: #EF4444; }
.sh-wiz-report-card.yellow { background: #fff8e1; }
.sh-wiz-report-card.yellow .v { color: #e67e22; }
.sh-wiz-report-card.blue   { background: #e8f1f9; }
.sh-wiz-report-card.blue   .v { color: #2980b9; }
.sh-wiz-report-card.purple { background: #f3e8ff; }
.sh-wiz-report-card.purple .v { color: #8e44ad; }
.sh-wiz-report-card.span2  { grid-column: span 2; }
.sh-wiz-report-card-split {
  flex-direction: row; align-items: stretch; padding: 0; overflow: hidden;
}
.sh-wiz-report-split-part {
  flex: 1 1 50%; min-width: 0;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px;
  padding: 12px 14px;
}
.sh-wiz-report-split-part .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-wiz-report-split-part .v { font-size: .88rem; white-space: nowrap; }
.sh-wiz-report-split-part:first-child { border-left: 1px dashed rgba(0,0,0,.08); }
.sh-wiz-report-code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--sh-primary); color: #fff;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.sh-wiz-report-code-box span { font-size: .88rem; }
.sh-wiz-report-code-box b { font-size: 1.35rem; letter-spacing: 1px; }
.sh-wiz-report-code-note { font-size: .82rem; background: #f3e8ff; color: #8e44ad; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; line-height: 1.9; }

.sh-wiz-report-actions { margin-top: 12px; }
.sh-wiz-report-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 16px;
  padding: 15px 20px; font-size: 1.02rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
}
/* طبق درخواست: دکمه اشتراک‌گذاری بنفش پاستیلی و دکمه ورود به پروفایل سبز
   پاستیلی، هر دو با حاشیه گرد و یک هاور کمی پررنگ‌تر از رنگ پایه. */
.sh-wiz-report-btn-dark {
  background: #E7D3F7; color: #6E3B9E;
}
.sh-wiz-report-btn-dark:hover { background: #D8B9F1; }
.sh-wiz-report-btn-primary {
  background: #CFF3DE; color: #1F7A4D;
}
.sh-wiz-report-btn-primary:hover:not(:disabled) { background: #B3E9C9; }
.sh-wiz-report-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 420px) {
  .sh-wiz-report-btn { padding: 13px 16px; font-size: .92rem; }
}
@media (max-width: 600px) {
  .sh-wiz-report-grid { grid-template-columns: 1fr 1fr; }
  .sh-wiz-report-card.span2 { grid-column: span 2; }
}
@media (max-width: 420px) {
  .sh-wiz-report-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sh-wiz-report-card { padding: 9px 10px; gap: 2px; }
  .sh-wiz-report-card .l { font-size: .7rem; }
  .sh-wiz-report-card .v { font-size: .88rem; }
  .sh-wiz-report-card.span2 { grid-column: span 2; }
  .sh-wiz-report-split-part { padding: 9px 10px; gap: 4px; }
  .sh-wiz-report-split-part .l { font-size: .68rem; }
  .sh-wiz-report-split-part .v { font-size: .78rem; }
}


/* ── باشگاه مشتریان (معرفی) ── */
.sh-club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sh-club-card {
  border-radius: var(--sh-radius); padding: 20px; text-align: center; box-shadow: var(--sh-shadow);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sh-club-card.green  { background: var(--sh-primary-lt); }
.sh-club-card.purple { background: #f3e8ff; }
.sh-club-card.blue   { background: #e8f1f9; }
.sh-club-card i { font-size: 1.6rem; }
.sh-club-card.green  i { color: var(--sh-primary); }
.sh-club-card.purple i { color: #8e44ad; }
.sh-club-card.blue   i { color: #2980b9; }
.sh-club-card .sh-club-card-label { font-size: .82rem; color: #55605a; }
.sh-club-card .sh-club-card-value { font-size: 1.5rem; font-weight: 800; }
.sh-club-card.green  .sh-club-card-value { color: var(--sh-primary); }
.sh-club-card.purple .sh-club-card-value { color: #8e44ad; }
.sh-club-card.blue   .sh-club-card-value { color: #2980b9; }
.sh-club-hint { font-size: .84rem; color: #55605a; line-height: 2; margin: 14px 0 18px; }
.sh-club-list { display: flex; flex-direction: column; gap: 10px; }
.sh-club-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--sh-light); border-radius: 12px; padding: 12px 16px; flex-wrap: wrap;
}
@media (max-width: 700px) { .sh-club-grid { grid-template-columns: 1fr; } }

/* رتبه‌بندی معرفی کلاس — لیست آکاردئونی پاستیلی */
.sh-lb-accordion { display: flex; flex-direction: column; gap: 10px; }
.sh-lb-item {
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,.04);
}
.sh-lb-item[open] { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sh-lb-summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; flex-wrap: wrap;
}
.sh-lb-summary::-webkit-details-marker { display: none; }
.sh-lb-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.65);
}
.sh-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sh-lb-avatar-fallback { font-weight: 800; font-size: .95rem; color: #55605a; }
.sh-lb-name { font-weight: 600; flex: 1 1 auto; min-width: 120px; }
.sh-lb-me .sh-lb-name { font-weight: 800; }
.sh-lb-points {
  font-size: .82rem; font-weight: 700; background: rgba(255,255,255,.7);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.sh-lb-chevron { font-size: .78rem; color: #55605a; transition: transform .2s ease; }
.sh-lb-item[open] .sh-lb-chevron { transform: rotate(180deg); }
.sh-lb-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.sh-lb-body-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .84rem; background: rgba(255,255,255,.55); border-radius: 8px; padding: 6px 12px;
}
.sh-lb-p1 { background: #FDE8EF; }
.sh-lb-p2 { background: #E8F1FD; }
.sh-lb-p3 { background: #E9F9EE; }
.sh-lb-p4 { background: #FFF6E0; }
.sh-lb-p5 { background: #F1E9FD; }
@media (max-width: 700px) { .sh-lb-points { order: 3; } }


/* ─── Instructor Panel ───────────────────────────── */
.sh-instr-panel { font-family: var(--sh-font); direction: rtl; max-width: 1080px; margin: 0 auto; padding: 16px; color: var(--sh-dark); background: var(--sh-page-bg); min-height: 100vh; }
.sh-instr-header { background: linear-gradient(135deg, #3B4A6B 0%, #4E3B7A 60%, #6B3A5E 100%); border-radius: 20px; padding: 24px; color: #fff; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(59,74,107,.22); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sh-instr-header h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; color: #fff; }
.sh-instr-header p  { margin: 2px 0; font-size: .88rem; opacity: .88; color: #fff; }
.sh-instr-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.sh-instr-card { background: #fff; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 16px; text-align: center; box-shadow: var(--sh-shadow); }
.sh-instr-card i { font-size: 1.7rem; color: var(--sh-secondary); margin-bottom: 6px; display: block; }
.sh-instr-card .v { font-size: 1.3rem; font-weight: 800; color: var(--sh-primary); }
.sh-instr-card .l { font-size: .86rem; color: #7a8a82; }
.sh-instr-section { background: #fff; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-shadow); }
.sh-instr-section h3 { margin: 0 0 14px; font-size: 1rem; color: var(--sh-primary); }

/* ── کلاس‌های من + درخواست کلاس جدید ─────────────── */
.sh-instr-my-classes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sh-instr-class-chip { display: flex; align-items: center; gap: 8px; background: var(--sh-light); border: 1px solid var(--sh-border); border-radius: 10px; padding: 8px 12px; font-size: .82rem; }
.sh-instr-class-chip-name { font-weight: 700; color: var(--sh-primary); }

/* ── سهم مربی و تسویه‌حساب ────────────────────────── */
.sh-instr-settle-request { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.sh-instr-settle-request input { flex: 1; min-width: 180px; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--sh-border); font-family: inherit; }
.sh-instr-settle-list { display: flex; flex-direction: column; gap: 8px; }
.sh-instr-settle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--sh-light); border: 1px solid var(--sh-border); border-radius: 10px; padding: 10px 14px; font-size: .82rem; flex-wrap: wrap; }
.sh-instr-settle-row .amt { font-weight: 800; color: var(--sh-primary); }
.sh-instr-settle-row .track { font-size: .72rem; color: #8a9a92; direction: ltr; }
.sh-instr-settle-row .note { font-size: .75rem; color: #5d6e66; width: 100%; margin-top: 4px; }

/* ── تسویه‌حساب مالی با باشگاه — نمایش آکاردئونی ─────── */
.sh-clubsettle-acc-item { border: 1px solid var(--sh-border); border-radius: 10px; background: #fff; overflow: hidden; }
.sh-clubsettle-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; cursor: pointer; flex-wrap: wrap; }
.sh-clubsettle-acc-amt { font-size: .85rem; font-weight: 800; color: var(--sh-primary); }
.sh-clubsettle-acc-date { font-size: .75rem; color: #8a9a92; direction: ltr; }
.sh-clubsettle-acc-caret { font-size: .78rem; color: #8a9a92; margin-inline-start: auto; transition: transform .15s; }
.sh-clubsettle-acc-item.open .sh-clubsettle-acc-caret { transform: rotate(180deg); }
.sh-clubsettle-acc-body { display: none; padding: 0 14px 12px; border-top: 1px solid var(--sh-border); }
.sh-clubsettle-acc-item.open .sh-clubsettle-acc-body { display: block; padding-top: 10px; }
.sh-clubsettle-acc-row { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: #555; margin-bottom: 6px; flex-wrap: wrap; }
.sh-clubsettle-acc-note { font-size: .78rem; color: #555; margin-top: 4px; }
.sh-clubsettle-acc-note-form { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sh-clubsettle-acc-note-form input { flex: 1; min-width: 140px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--sh-border); font-family: inherit; font-size: .8rem; }
@media (max-width: 600px) {
  .sh-clubsettle-acc-head { padding: 10px 12px; }
  .sh-clubsettle-acc-amt { font-size: .8rem; width: 100%; }
  .sh-clubsettle-acc-date { font-size: .72rem; }
  .sh-clubsettle-acc-row { font-size: .76rem; }
  .sh-clubsettle-acc-note-form { flex-direction: column; }
  .sh-clubsettle-acc-note-form button { width: 100%; }
}

/* ── تنظیمات حساب کاربری (پارشیال مشترک هنرجو/مربی) ── */
.sh-acct-section { background: #fff; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-shadow); }
.sh-acct-section h3 { margin: 0 0 14px; font-size: 1rem; color: var(--sh-primary); }
.sh-acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-acct-card { background: var(--sh-light); border: 1px solid var(--sh-border); border-radius: 12px; padding: 16px; }
.sh-acct-label { display: block; font-size: .85rem; font-weight: 700; color: var(--sh-primary); margin-bottom: 12px; }
.sh-acct-card input[type=password] { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--sh-border); font-family: inherit; margin-bottom: 8px; }
.sh-acct-hint { font-size: .72rem; color: #8a9a92; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.sh-acct-photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sh-acct-photo-preview { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid var(--sh-border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #c3d0c9; flex-shrink: 0; }
.sh-acct-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.sh-acct-photo-actions { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.sh-acct-file-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--sh-border); border-radius: 8px; padding: 8px 14px; font-size: .78rem; font-weight: 700; color: var(--sh-primary); cursor: pointer; width: fit-content; transition: border-color .15s; }
.sh-acct-file-btn:hover { border-color: var(--sh-primary); }
.sh-acct-photo-filename { font-size: .72rem; color: #8a9a92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-acct-save-btn { width: 100%; padding: 10px; border: none; border-radius: 8px; background: var(--sh-primary); color: #fff; font-weight: 700; font-size: .82rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, transform .15s; }
.sh-acct-save-btn:hover:not(:disabled) { background: var(--sh-secondary); transform: translateY(-1px); }
.sh-acct-save-btn:disabled { opacity: .5; cursor: not-allowed; }
.sh-acct-msg { font-size: .78rem; margin-top: 8px; min-height: 1.2em; }
.sh-acct-msg.success { color: var(--sh-success); }
.sh-acct-msg.error { color: var(--sh-danger); }

/* ── اطلاعات هویتی قابل ویرایش (پارشیال مشترک هنرجو/مربی) ── */
.sh-acct-card-full { grid-column: 1 / -1; }
.sh-acct-id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.sh-acct-id-field-wide { grid-column: 1 / -1; }
.sh-acct-id-field label { display: block; font-size: .74rem; color: #7a8a82; font-weight: 600; margin-bottom: 4px; }
.sh-acct-id-field input[type=text] { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--sh-border); font-family: inherit; font-size: .85rem; background: #fff; }
.sh-acct-id-field input[disabled] { background: var(--sh-light); color: #8a9a92; }
@media (max-width: 600px) { .sh-acct-id-grid { grid-template-columns: 1fr; } }

/* ── دکمه‌های کپی کد/لینک (شناسه مربی، لینک دعوت هنرجو) ── */
.sh-copy-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sh-light); border: 1.5px solid var(--sh-border); border-radius: 8px;
  padding: 6px 12px; font-size: .78rem; font-weight: 700; color: var(--sh-primary);
  cursor: pointer; font-family: inherit; transition: all .18s;
}
.sh-copy-chip:hover { border-color: var(--sh-secondary); background: #eafaf0; }
.sh-copy-chip.copied { background: var(--sh-success); border-color: var(--sh-success); color: #fff; }

/* ── نسخه‌ی پاستیلی دکمه‌ی کپی روی هدر تیره (هدر مربی/هنرجو) ──
   قبلاً همان دکمه‌ی روشن معمولی روی پس‌زمینه‌ی سبز تیره‌ی هدر استفاده می‌شد که نامتناسب و زننده بود؛
   این نسخه هم‌رنگ و هم‌اندازه با تگ وضعیت/برچسب‌های کنارش (پاستیلی، حاشیه گرد کامل) شده است. */
.sh-sp-header .sh-copy-chip,
.sh-instr-header .sh-copy-chip {
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .74rem;
}
.sh-sp-header .sh-copy-chip:hover,
.sh-instr-header .sh-copy-chip:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.55); }
.sh-sp-header .sh-copy-chip.copied,
.sh-instr-header .sh-copy-chip.copied { background: #a8e6cf; border-color: #a8e6cf; color: #0d5a38; }

/* ── دعوت هنرجو (پنل مربی) ─────────────────────────── */
.sh-instr-invite-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-instr-invite-box { display: flex; flex-direction: column; gap: 8px; }
.sh-instr-invite-label { font-size: .78rem; color: #7a8a82; font-weight: 600; }
.sh-copy-toast {
  display: inline-block; margin-right: 8px; font-size: .74rem; color: var(--sh-success);
  font-weight: 700; animation: shCopyFade .3s ease;
}
@keyframes shCopyFade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .sh-instr-invite-row { flex-direction: column; } }
@media (max-width: 480px) { .sh-instr-header h2 { font-size: 1.05rem; } }
@media (max-width: 600px) { .sh-acct-grid { grid-template-columns: 1fr; } }

/* ─── مودال برش عکس پروفایل (کادر مربعی قابل جابجایی و تغییر اندازه از هر چهار طرف) ─── */
.sh-crop-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,25,18,.65);
  align-items: center; justify-content: center;
  padding: 16px;
}
.sh-crop-overlay.open { display: flex; }
.sh-crop-modal {
  background: #fff; border-radius: 16px; padding: 20px;
  max-width: 340px; width: 100%; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.sh-crop-modal h4 { margin: 0 0 14px; font-size: .95rem; color: var(--sh-primary); }
.sh-crop-stage-outer {
  width: 100%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: #111; border-radius: 10px; overflow: hidden;
  border: 3px solid var(--sh-border);
}
.sh-crop-stage {
  position: relative; touch-action: none; line-height: 0;
  user-select: none; -webkit-user-select: none;
  overflow: hidden; cursor: grab;
}
.sh-crop-stage:active { cursor: grabbing; }
.sh-crop-stage img { display: block; position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.sh-crop-zoom-row { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.sh-crop-zoom-btn {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--sh-border); background: #fff; color: var(--sh-primary, #FE4A55);
  font-size: .78rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sh-crop-zoom-range { flex: 1 1 auto; accent-color: var(--sh-primary, #FE4A55); }
.sh-crop-box {
  position: absolute; top: 0; left: 0; z-index: 2;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55);
  cursor: move; touch-action: none;
}
.sh-crop-grid { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.sh-crop-grid::before, .sh-crop-grid::after {
  content: ''; position: absolute; background: #fff;
}
.sh-crop-grid::before { left: 33.333%; top: 0; width: 1px; height: 100%; box-shadow: 66.666% 0 0 #fff; }
.sh-crop-grid::after  { top: 33.333%; left: 0; height: 1px; width: 100%; box-shadow: 0 66.666% 0 #fff; }
.sh-crop-handle {
  position: absolute; z-index: 3; width: 18px; height: 18px;
  background: #fff; border: 2px solid var(--sh-primary, #FE4A55); border-radius: 50%;
  transform: translate(-50%, -50%);
  touch-action: none;
}
.sh-crop-handle.tl { top: 0; left: 0; cursor: nwse-resize; }
.sh-crop-handle.tr { top: 0; left: 100%; cursor: nesw-resize; }
.sh-crop-handle.bl { top: 100%; left: 0; cursor: nesw-resize; }
.sh-crop-handle.br { top: 100%; left: 100%; cursor: nwse-resize; }
.sh-crop-hint { font-size: .72rem; color: #8a9a92; margin: 0 0 14px; }
.sh-crop-actions { display: flex; gap: 10px; }
.sh-crop-actions .sh-crop-confirm { flex: 1; }
.sh-crop-cancel {
  flex: 1; padding: 10px; border: 1.5px solid var(--sh-border); background: #fff;
  border-radius: 8px; font-weight: 700; font-size: .82rem; color: #7a8a83; cursor: pointer;
}
.sh-instr-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.sh-instr-table th, .sh-instr-table td { padding: 8px; border-bottom: 1px solid var(--sh-border); text-align: center; }
.sh-instr-table th { background: var(--sh-light); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
  .sh-sp-cards  { grid-template-columns: 1fr 1fr; }
  .sh-ps-cards  { grid-template-columns: 1fr; }
  .sh-reg-row   { grid-template-columns: 1fr; }
  .sh-reg-row3  { grid-template-columns: 1fr 1fr !important; }
  .sh-sp-service-card { flex-direction: column; }
  .sh-wiz-step span:last-child { display: none; }
  .sh-wiz-pane { padding: 10px 14px 20px; }
  .sh-wiz-pay-tabs { flex-wrap: wrap; }
  .sh-wiz-pay-tab { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .sh-instr-cards { grid-template-columns: 1fr; }
  .sh-wiz-nav .sh-reg-btn { flex: 1 1 auto; padding: 12px 16px; }
  .sh-bank-card-row3 { flex-direction: column; align-items: stretch; gap: 8px; }
  .sh-bank-copy { width: 100%; justify-content: center; }
  .sh-wizard { border-radius: 12px; }
  .sh-wiz-header { padding: 16px 18px; }
  .sh-wiz-modal { padding: 20px 14px; border-radius: 14px; max-height: 88vh; max-height: 88dvh; }
  .sh-wiz-modal-box div { font-size: .86rem; flex-direction: column; align-items: flex-start; gap: 3px; }
  .sh-wiz-modal-overlay { align-items: center; padding: 12px; }
}
@media (max-width: 400px) {
  .sh-reg-row3  { grid-template-columns: 1fr !important; }
  .sh-wiz-pay-tab { flex: 1 1 100%; }
  .sh-wiz-toggle2 label { min-width: 100%; }
  .sh-wiz-title { font-size: 1.05rem; }
  .sh-wiz-dot { width: 34px; height: 34px; font-size: .88rem; }
  .sh-wiz-steps::before { top: 35px; }
}
.shahab-notice {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  padding: 16px 20px;
  background: #fff8e1;
  border-right: 4px solid #f39c12;
  border-radius: 8px;
  color: #7d4e00;
}


/* ═══════════════════════════════════════════════════
   صفحه ورود هنرجویان  [shahab_student_login]
   ═══════════════════════════════════════════════════ */

/* ─── Wrapper ────────────────────────────────────── */
.sh-login-wrap {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  padding: 20px;
}

/* ─── Card ───────────────────────────────────────── */
.sh-login-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(254,74,85,.12);
  position: relative;
}

/* ─── Back button ────────────────────────────────── */
.sh-login-back {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: .83rem;
  color: var(--sh-gray);
  text-decoration: none;
  background: #f0f4f2;
  padding: 5px 12px;
  border-radius: 20px;
  transition: background .2s, color .2s;
  display: flex; align-items: center; gap: 5px;
}
.sh-login-back:hover { background: var(--sh-primary); color: #fff; }

/* ─── Icon ───────────────────────────────────────── */
.sh-login-icon-wrap {
  text-align: center;
  margin: 8px 0 16px;
}
.sh-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 18px;
  background: var(--sh-primary-lt);
  color: var(--sh-primary);
  font-size: 1.8rem;
}

/* ─── Title ──────────────────────────────────────── */
.sh-login-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 22px;
}

/* ─── Tabs ───────────────────────────────────────── */
.sh-login-tabs {
  display: flex;
  background: #f0f4f2;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.sh-login-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: .93rem;
  font-weight: 600;
  color: #7a8a82;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.sh-login-tab.active {
  background: #fff;
  color: var(--sh-primary);
  box-shadow: 0 2px 8px rgba(254,74,85,.12);
}

/* ─── Pane ───────────────────────────────────────── */
.sh-login-pane { display: none; }
.sh-login-pane.active { display: block; }

/* ─── Fields ─────────────────────────────────────── */
.sh-login-field {
  position: relative;
  margin-bottom: 14px;
}
.sh-login-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sh-border);
  border-radius: 11px;
  font-family: inherit;
  font-size: 1.02rem;
  color: #1E293B;
  background: #fafcfb;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  direction: rtl;
}
.sh-login-field input::placeholder { color: #aac0b5; }
.sh-login-field input:focus {
  border-color: var(--sh-primary);
  box-shadow: 0 0 0 3px rgba(254,74,85,.10);
}
.sh-pass-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--sh-gray);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

/* ─── Remember me ────────────────────────────────── */
.sh-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: #6c7d73;
  margin-bottom: 18px;
  cursor: pointer;
  justify-content: flex-end;
}
.sh-login-remember input[type=checkbox] {
  width: 17px; height: 17px;
  accent-color: var(--sh-primary);
}

/* ─── Login button ───────────────────────────────── */
.sh-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: var(--sh-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(254,74,85,.22);
}
.sh-login-btn:hover:not(:disabled) {
  background: var(--sh-secondary);
  box-shadow: 0 6px 20px rgba(254,74,85,.3);
  transform: translateY(-1px);
}
.sh-login-btn:disabled { opacity: .65; cursor: not-allowed; }
.sh-login-btn-outline {
  background: transparent;
  color: var(--sh-primary);
  border: 2px solid var(--sh-primary);
  box-shadow: none;
}
.sh-login-btn-outline:hover:not(:disabled) {
  background: var(--sh-primary);
  color: #fff;
}

/* ─── Messages ───────────────────────────────────── */
#sh-login-msg { margin-top: 14px; }
.sh-login-error, .sh-login-success {
  padding: 10px 14px;
  border-radius: 9px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sh-login-error   { background: #fdf1ef; color: #EF4444; border-right: 3px solid #EF4444; }
.sh-login-success { background: var(--sh-primary-lt); color: var(--sh-primary); border-right: 3px solid #22C55E; }

/* ─── OTP boxes ──────────────────────────────────── */
.sh-otp-hint {
  font-size: .88rem;
  color: #7a8a82;
  text-align: center;
  margin-bottom: 14px;
}
.sh-otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  direction: ltr;
  margin-bottom: 14px;
}
.sh-otp-box {
  width: 52px; height: 56px;
  border: 1.5px solid var(--sh-border);
  border-radius: 11px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--sh-primary);
  background: #fafcfb;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sh-otp-box:focus {
  border-color: var(--sh-primary);
  box-shadow: 0 0 0 3px rgba(254,74,85,.12);
}
.sh-otp-timer {
  text-align: center;
  font-size: .83rem;
  color: var(--sh-gray);
  margin-bottom: 16px;
}
.sh-otp-timer a { color: var(--sh-primary); font-weight: 600; }

/* ─── Welcome Popup ──────────────────────────────── */
.sh-welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(240,244,248,.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.sh-welcome-popup {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(254,74,85,.18);
  animation: sh-popup-in .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sh-popup-in {
  from { opacity:0; transform:scale(.8); }
  to   { opacity:1; transform:scale(1); }
}
.sh-welcome-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #e0f5ea;
  color: #22C55E;
  font-size: 2.6rem;
  margin-bottom: 22px;
  animation: sh-shield-pulse 1.5s ease-in-out infinite;
}
@keyframes sh-shield-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(39,174,96,.3); }
  50%      { box-shadow: 0 0 0 14px rgba(39,174,96,.0); }
}
.sh-welcome-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 8px;
}
.sh-welcome-sub {
  color: #7a8a82;
  font-size: 1.02rem;
  margin: 0;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  .sh-login-card { padding: 28px 18px 24px; border-radius: 16px; }
  .sh-otp-box { width: 44px; height: 50px; font-size: 1.2rem; }
  .sh-welcome-popup { padding: 36px 24px; }
}

/* نمودارهای گرافیکی رنگی (Shahab_Charts) — نسخه‌ی فرانت‌اند */
.sh-chart-box{ --cb-color:var(--sh-primary); background:#fff; border:1px solid var(--sh-border); border-radius:12px; box-shadow:0 2px 16px rgba(254,74,85,.10); overflow:hidden; margin-bottom:16px; }
.sh-chart-box-head{ background:color-mix(in srgb, var(--cb-color) 10%, #fff); color:var(--cb-color); font-weight:700; padding:10px 14px; border-bottom:1px solid var(--sh-border); }
.sh-chart-box-head i{ margin-left:6px; }
.sh-chart-box-body{ padding:16px; }
.sh-charts-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin:16px 0; }
.sh-chart-donut-wrap{ text-align:center; margin:0 auto; }
.sh-chart-donut{ width:100%; display:block; }
/* نمودار عقربه‌ای چهار رنگ (چهار فصل) */
.sh-chart-gauge4-wrap{ text-align:center; margin:0 auto; max-width:340px; }
.sh-chart-gauge4{ width:100%; display:block; }
.sh-chart-gauge4-current-season{ font-size:.8rem; font-weight:700; color:var(--sh-primary); background:color-mix(in srgb, var(--sh-primary) 10%, #fff); border-radius:20px; padding:4px 12px; display:inline-block; margin-bottom:8px; }
.sh-chart-gauge4-filter{ display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.sh-chart-gauge4-filter label{ font-size:.76rem; color:var(--sh-gray); font-weight:600; }
.sh-chart-gauge4-select{ padding:5px 10px; border-radius:8px; border:1px solid var(--sh-border); font-family:inherit; font-size:.8rem; background:#fff; color:#1E293B; }
.sh-chart-label{ margin-top:6px; font-size:.8rem; color:#6c757d; font-weight:600; }
.sh-chart-cluster{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.sh-chart-bars{ display:flex; align-items:flex-end; gap:14px; justify-content:center; padding-top:10px; height:140px; }
.sh-chart-bar-col{ display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; min-width:44px; }
.sh-chart-bar-value{ font-weight:800; color:#1E293B; margin-bottom:4px; font-size:.9rem; }
.sh-chart-bar-track{ flex:1; width:26px; background:#eef2f0; border-radius:8px; display:flex; align-items:flex-end; overflow:hidden; }
.sh-chart-bar-fill{ width:100%; border-radius:8px; }
.sh-chart-bar-label{ margin-top:6px; font-size:.72rem; color:#6c757d; text-align:center; max-width:70px; }
.sh-chart-hbars{ display:flex; flex-direction:column; gap:10px; }
.sh-chart-hbar-row{ display:flex; align-items:center; gap:10px; }
.sh-chart-hbar-label{ width:110px; font-size:.82rem; color:#1E293B; flex-shrink:0; }
.sh-chart-hbar-track{ flex:1; background:#eef2f0; border-radius:20px; height:14px; overflow:hidden; }
.sh-chart-hbar-fill{ height:100%; border-radius:20px; }
.sh-chart-hbar-value{ width:34px; text-align:left; font-weight:700; font-size:.82rem; color:#1E293B; }
.sh-chart-gauge-card{ --gc-color:var(--sh-primary); text-align:center; background:color-mix(in srgb, var(--gc-color) 6%, #fff); border:1px solid var(--sh-border); border-radius:8px; padding:14px; }
.sh-chart-gauge-icon{ color:var(--gc-color); font-size:1.3rem; margin-bottom:6px; }
.sh-chart-gauge-title{ margin-top:6px; font-size:.82rem; font-weight:700; color:#1E293B; }

/* ══════════════ لیدربورد / سکوی قهرمانی — طرح پاستیلی (فاز ۱) ══════════════ */
.sh-leaderboard{ background:#fff; border:1px solid #ECF0F8; border-radius:18px; padding:22px 20px; box-shadow:0 4px 24px rgba(59,74,107,.08); font-family:'Vazirmatn',Tahoma,sans-serif; }
.sh-lb-title{ text-align:center; font-weight:800; color:#3B4A6B; margin-bottom:18px; font-size:1.08rem; display:flex; align-items:center; justify-content:center; gap:8px; }
.sh-lb-title i{ color:#F0A070; font-size:1.1rem; }
.sh-podium{ display:flex; align-items:flex-end; justify-content:center; gap:14px; margin-bottom:20px; }
.sh-podium-col{ display:flex; flex-direction:column; align-items:center; width:100px; }
.sh-podium-crown{ color:#F0A070; font-size:1.3rem; margin-bottom:4px; }
.sh-podium-avatar{ position:relative; width:68px; height:68px; border-radius:50%; background:linear-gradient(135deg,#E8F4FD,#F0EBFF); display:flex; align-items:center; justify-content:center; overflow:hidden; font-size:1.5rem; font-weight:800; margin-bottom:8px; color:#3B4A6B; font-family:'Vazirmatn',Tahoma,sans-serif; }
.sh-podium-avatar img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.sh-podium-r1 .sh-podium-avatar{ width:82px; height:82px; border:3px solid #F0A070; box-shadow:0 0 0 5px rgba(240,160,112,.15); background:linear-gradient(135deg,#FFF0E8,#FFE4EE); color:#B5611A; }
.sh-podium-r2 .sh-podium-avatar{ width:70px; height:70px; border:3px solid #A0B4CC; box-shadow:0 0 0 4px rgba(160,180,204,.15); background:linear-gradient(135deg,#EEF4FA,#E8F4FD); color:#2B6EA0; }
.sh-podium-r3 .sh-podium-avatar{ width:64px; height:64px; border:3px solid #C4A07A; box-shadow:0 0 0 4px rgba(196,160,122,.12); background:linear-gradient(135deg,#FFF5DC,#FFF0E8); color:#9A7010; }
.sh-podium-medal{ position:absolute; top:-11px; left:50%; transform:translateX(-50%); width:22px; height:22px; border-radius:50%; color:#fff; font-size:.7rem; font-weight:800; display:flex; align-items:center; justify-content:center; font-family:'Vazirmatn',Tahoma,sans-serif; box-shadow:0 2px 6px rgba(0,0,0,.18); }
.sh-medal-gold  { background:linear-gradient(135deg,#F0A070,#E0854A); }
.sh-medal-silver{ background:linear-gradient(135deg,#A0B4CC,#7898B4); }
.sh-medal-bronze{ background:linear-gradient(135deg,#C4A07A,#A8845A); }
.sh-podium-name{ font-weight:800; font-size:.84rem; color:#1E293B; text-align:center; margin-top:2px; font-family:'Vazirmatn',Tahoma,sans-serif; }
.sh-podium-sub{ font-size:.70rem; color:#7A8BA0; text-align:center; margin-top:2px; }
.sh-podium-instructor{ font-size:.64rem; color:#9B7FE8; margin-top:2px; font-weight:700; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center; }
.sh-podium-instructor a{ color:#9B7FE8; text-decoration:underline; }
.sh-lb-instructor{ color:#9B7FE8 !important; font-weight:700; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.sh-lb-instructor a{ color:#9B7FE8; text-decoration:underline; }
.sh-podium-bar{ position:relative; margin-top:10px; width:100%; border-radius:10px 10px 0 0; text-align:center; padding:8px 0; font-size:.84rem; font-weight:800; font-family:'Vazirmatn',Tahoma,sans-serif; }
.sh-podium-bar-gold  { background:linear-gradient(180deg,#FFE4C8,#F0C898); color:#7A4810; height:72px; }
.sh-podium-bar-silver{ background:linear-gradient(180deg,#DCE8F4,#C4D8EC); color:#25507A; height:52px; }
.sh-podium-bar-bronze{ background:linear-gradient(180deg,#F0E4CC,#E4D0B0); color:#7A5820; height:38px; }
.sh-podium-r1{ order:2; } .sh-podium-r2{ order:1; } .sh-podium-r3{ order:3; }
.sh-lb-list{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.sh-lb-row{ display:flex; align-items:center; gap:12px; padding:10px 14px; background:#F7F8FC; border:1px solid #ECF0F8; border-radius:12px; transition:background .15s; }
.sh-lb-row:hover{ background:#EEF2FA; }
.sh-lb-rank{ width:28px; font-weight:800; color:#3B4A6B; font-size:.85rem; font-family:'Vazirmatn',Tahoma,sans-serif; }
.sh-lb-avatar{ width:40px; height:40px; border-radius:50%; flex-shrink:0; background:linear-gradient(135deg,#E8F4FD,#F0EBFF); display:flex; align-items:center; justify-content:center; overflow:hidden; color:#3B4A6B; font-size:.95rem; font-weight:700; border:2px solid #D8E4F4; font-family:'Vazirmatn',Tahoma,sans-serif; }
.sh-lb-avatar img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.sh-lb-avatar i{ font-size:.9rem; color:#94A3B8; }
.sh-lb-name{ flex:1; font-size:.85rem; color:#1E293B; font-weight:700; font-family:'Vazirmatn',Tahoma,sans-serif; }
.sh-lb-name small{ display:block; color:#7A8BA0; font-weight:400; font-size:.72rem; }
.sh-lb-score{ font-weight:800; color:#E8547A; font-size:.9rem; font-family:'Vazirmatn',Tahoma,sans-serif; }

/* ── Toast قرصی تایید کپی (از بالا نمایش داده می‌شود) ── */
.sh-copy-toast-pill {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d4f5e5;
  border: 1.5px solid #a8e6cf;
  color: var(--sh-primary);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 4px 18px rgba(254,74,85,.15);
  pointer-events: none;
  opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
  white-space: nowrap;
}
.sh-copy-toast-pill.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* راهنمای شماره موبایل زیر فیلد تلفن هنرجو (فرم ثبت‌نام): در حالت دسکتاپ بزرگ‌تر نمایش داده شود */
@media (min-width: 769px) {
  .sh-phone-hint { font-size: .86rem !important; }
}
