/* =========================================================
   کاریزما سیستم — Stylesheet اصلی
   Mobile-first, RTL
   نسخه: یکپارچه — همه استایل‌ها
   ========================================================= */

/* =========================================================
   1) متغیرها (Variables)
   ========================================================= */
:root{
  /* Brand */
  --c-primary: #E8402C;
  --c-primary-dark: #C82F1E;
  --c-primary-light: #FDECEA;

  --c-navy: #101B3D;
  --c-navy-2: #182B57;

  /* Alias های اختصاصی برای پروفایل/رفرال/ثبت‌نام */
  --brand: #e8402c;
  --brand-2: #ff6a3d;
  --navy: #1e2a52;
  --navy-2: #2c3e70;
  --blue-check: #0095f6;
  --blue-check-2: #0077c8;
  --green: #0f9d58;

  /* Text */
  --c-text: #1A1F36;
  --c-text-muted: #7A8194;
  --c-text-soft: #9CA3AF;

  --text: #1f2937;
  --muted: #6b7280;

  /* Surfaces */
  --c-bg: #F6F7FB;
  --c-white: #FFFFFF;
  --c-border: #EEF0F5;

  --line: #e8ecf3;

  /* Tints for icon chips */
  --tint-red-bg: #FDECEA;   --tint-red-fg: #E8402C;
  --tint-blue-bg: #E9F1FE;  --tint-blue-fg: #3B82F6;
  --tint-green-bg: #E7F8EF; --tint-green-fg: #16A34A;
  --tint-purple-bg:#F1EBFC; --tint-purple-fg:#8B5CF6;
  --tint-orange-bg:#FDF3E6; --tint-orange-fg:#F0972B;
  --tint-pink-bg:  #FDEAF0; --tint-pink-fg:  #EC4899;
  --tint-teal-bg:  #E6F7F6; --tint-teal-fg:  #14B8A6;

  /* Radius */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --radius: 18px;

  /* Shadow */
  --shadow-card: 0 4px 18px rgba(16, 27, 61, 0.06);
  --shadow-pop: 0 10px 30px rgba(232, 64, 44, 0.25);
  --shadow-sm: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md: 0 6px 18px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.04);
  --shadow-lg: 0 20px 45px rgba(16,24,40,.10), 0 8px 18px rgba(16,24,40,.05);

  /* Layout */
  --header-h: 56px;
  --bottomnav-h: 66px;
}

/* =========================================================
   2) اسکرول‌بار
   ========================================================= */
html::-webkit-scrollbar { width: 6px; height: 6px; }
html::-webkit-scrollbar-track { background: var(--c-bg); }
html::-webkit-scrollbar-thumb { background: var(--c-primary); border-radius: 10px; }
html::-webkit-scrollbar-thumb:hover { background: var(--c-primary-dark); }
html { scrollbar-width: thin; scrollbar-color: var(--c-primary) var(--c-bg); }

/* =========================================================
   3) Reset / Base
   ========================================================= */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body { height: 100%; }

body{
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  padding-bottom: calc(var(--bottomnav-h) + 10px);
  overflow-x: hidden;
  margin: 0;
}

a{ text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* utilities */
.text-primary-b{ color: var(--c-primary) !important; }
.section{ padding: 28px 0; }
.section-title{ font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.section-subtitle{ font-size: .82rem; color: var(--c-text-muted); margin-bottom: 16px; }
.section-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.link-more{ font-size: .78rem; color: var(--c-text-muted); white-space: nowrap; display:flex; align-items:center; gap:2px; }
.ltr-input{ direction: ltr; text-align: left; }

/* =========================================================
   4) HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--c-white);
  height: var(--header-h);
  display:flex;
  align-items:center;
  border-bottom: 1px solid var(--c-border);
}
.site-header .brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-text);
}
.site-header .brand .brand-logo{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size: .95rem;
  flex-shrink: 0;
  overflow: hidden;
}
.site-header .brand .brand-logo img{ width: 100%; height: 100%; object-fit: cover; }
.site-header .brand .brand-logo-full{ height: 30px; width: auto; display: block; }
.site-header .brand .bi-chevron-down{ font-size: .7rem; color: var(--c-text-soft); }

.header-actions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  display:flex; align-items:center; justify-content:center;
  color: var(--c-text);
  position: relative;
}
.icon-btn .dot{
  position:absolute; top:6px; left:8px;
  width:7px; height:7px; border-radius:50%;
  background: var(--c-primary);
  border:1.5px solid #fff;
}
.btn-login{
  background: var(--c-primary);
  color:#fff;
  font-size:.8rem;
  font-weight:600;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border:none;
  white-space:nowrap;
}
.btn-login:hover{ background: var(--c-primary-dark); color:#fff; }

/* Search */
.search-wrap{ padding: 14px 0 6px; }
.search-box{
  display:flex; align-items:center; gap:10px;
  background: var(--c-white);
  border:1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 9px 12px;
  box-shadow: var(--shadow-card);
}
.search-box:hover{ border-color: var(--c-primary); }
.search-box i.bi-search{ font-size: 1rem; color: var(--c-text-soft); flex-shrink: 0; }
.search-box .search-placeholder{
  flex: 1; font-size: .8rem; color: var(--c-text-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-box .search-placeholder strong{ color: var(--c-primary); font-weight: 700; }
.search-box .search-placeholder .search-brand-logo{ height: 15px; width: auto; vertical-align: middle; margin-top: -2px; }
.search-box .search-badge{
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--c-border);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-box .search-badge img{ width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* =========================================================
   5) QUICK ICONS
   ========================================================= */
.quick-icons-wrap{
  overflow: hidden;
  padding: 14px 0 4px;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent);
}
.quick-icons-wrap.is-dragging{ cursor: grabbing; }
.quick-icons-track{ display: flex; width: max-content; gap: 8px; will-change: transform; touch-action: pan-y; }
.quick-icon-item{
  flex: 0 0 auto; width: 78px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  text-align:center; color: var(--c-text);
  user-select: none; -webkit-user-drag: none;
}
.quick-icon-item .ico{
  width:52px; height:52px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.25rem; pointer-events: none;
}
.quick-icon-item span:last-child{ font-size:.72rem; font-weight:600; line-height:1.3; pointer-events: none; }

@media (min-width: 992px){ .quick-icons-wrap{ max-width: 640px; } }

/* =========================================================
   6) HERO BANNER
   ========================================================= */
.hero-slider-wrap{ margin-top: 18px; }
.banner-carousel{ position: relative; }
.banner-scroll{
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  gap: 4px; scrollbar-width: none; -ms-overflow-style: none;
}
.banner-scroll::-webkit-scrollbar{ display:none; }
.banner-item{
  flex: 0 0 94%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1280 / 700;
  background: var(--c-bg); display: block;
}
.banner-item img{ width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 768px){ .banner-item{ flex-basis: 100%; aspect-ratio: 1440 / 300; } }
@media (min-width: 992px){ .banner-item{ flex-basis: 100%; } }

.hero-nav-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text); z-index: 5;
  box-shadow: var(--shadow-card);
}
.banner-nav-prev{ right: 8px; }
.banner-nav-next{ left: 8px; }
@media (max-width: 767.98px){ .hero-nav-btn{ display: none; } }

.banner-dots{ display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; }
.banner-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-border);
  transition: width .25s ease, background .25s ease;
  cursor: pointer;
}
.banner-dot.active{ background: var(--c-primary); width: 16px; border-radius: 4px; }

/* =========================================================
   7) SERVICE TABS / CARDS
   ========================================================= */
.tab-pills{ display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
.tab-pills::-webkit-scrollbar{ display:none; }
.tab-pill{
  flex:0 0 auto; display:flex; align-items:center; gap:6px;
  padding:9px 16px; border-radius: var(--radius-pill);
  background: var(--c-white); border:1px solid var(--c-border);
  font-size:.78rem; font-weight:600; color: var(--c-text-muted);
}
.tab-pill i{ font-size:.9rem; }
.tab-pill.active{ background: var(--c-primary); border-color: var(--c-primary); color:#fff; }

.service-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.service-card{
  background: var(--c-white); border-radius: var(--radius-md);
  padding:14px; box-shadow: var(--shadow-card);
  display:flex; flex-direction:column; gap:8px;
}
.service-card .ico{
  width:42px; height:42px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.05rem; margin-bottom:2px;
}
.service-card h3{ font-size:.85rem; font-weight:700; margin:0; }
.service-card p{ font-size:.7rem; color: var(--c-text-muted); margin:0; line-height:1.5; min-height: 30px; }
.service-card .btn-enter{
  margin-top:auto; display:inline-flex; align-items:center; gap:4px;
  align-self:flex-start; background: var(--c-primary-light);
  color: var(--c-primary); font-size:.72rem; font-weight:700;
  padding:6px 14px; border-radius: var(--radius-pill);
}
.service-card .btn-enter i{ font-size:.85rem; }

/* =========================================================
   8) REG LIST
   ========================================================= */
.reg-list{ display:flex; flex-direction:column; gap:10px; }
.reg-item{
  background: var(--c-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding:14px;
  display:flex; align-items:center; gap:12px;
}
.reg-item .ico{
  width:46px; height:46px; border-radius: 13px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.15rem; flex-shrink:0;
}
.reg-item .body{ flex:1; min-width:0; }
.reg-item h3{ font-size:.85rem; font-weight:700; margin:0 0 2px; }
.reg-item p{ font-size:.72rem; color:var(--c-text-muted); margin:0; }
.reg-item .bi-chevron-left{ color: var(--c-text-soft); font-size:.85rem; }

/* =========================================================
   9) CTA BANNER
   ========================================================= */
.cta-banner{
  position:relative;
  background: linear-gradient(150deg, var(--c-navy) 10%, var(--c-navy-2) 100%);
  border-radius: var(--radius-lg); overflow:hidden;
  padding: 24px 20px; color:#fff;
}
.cta-banner .badge-pill{
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  font-size:.68rem; padding:5px 12px;
  border-radius: var(--radius-pill); margin-bottom:12px;
}
.cta-banner .badge-pill i{ color: var(--c-primary); }
.cta-banner h2{ font-size:1.2rem; font-weight:800; margin-bottom:8px; max-width: 78%; }
.cta-banner p{ font-size:.75rem; color: rgba(255,255,255,.7); line-height:1.7; max-width: 85%; margin-bottom:16px; }
.cta-banner .btn-hero{
  background: var(--c-primary); color:#fff;
  font-size:.78rem; font-weight:700;
  padding:9px 18px; border-radius: var(--radius-pill);
  display:inline-flex; align-items:center; gap:6px;
}
.cta-banner .cta-illustration{ margin-top:18px; text-align:center; opacity:.95; }
.cta-banner .cta-illustration svg{ width: 78%; max-width:220px; height:auto; }

/* =========================================================
   10) LOGIN TYPE GRID
   ========================================================= */
.login-type-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.login-type-card{
  background: var(--c-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding:20px 12px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  text-align:center;
}
.login-type-card .ico{
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
}
.login-type-card span{ font-size:.85rem; font-weight:700; }

/* =========================================================
   11) WHY US LIST
   ========================================================= */
.why-list{ display:flex; flex-direction:column; gap:10px; }
.why-item{
  background: var(--c-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding:14px;
  display:flex; align-items:center; gap:12px;
}
.why-item .ico{
  width:42px; height:42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; flex-shrink:0;
}
.why-item h3{ font-size:.83rem; font-weight:700; margin:0 0 2px; }
.why-item p{ font-size:.7rem; color:var(--c-text-muted); margin:0; }

/* =========================================================
   12) STATS
   ========================================================= */
.stats-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.stat-card{
  background: var(--c-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding:16px 10px;
  text-align:center;
}
.stat-card .num{ font-size:1.15rem; font-weight:800; color: var(--c-primary); }
.stat-card .lbl{ font-size:.72rem; color: var(--c-text-muted); margin-top:2px; }

/* =========================================================
   13) TOOLS SCROLLER
   ========================================================= */
.tools-scroller{ display:flex; gap:10px; overflow-x:auto; padding-bottom:6px; scrollbar-width:none; }
.tools-scroller::-webkit-scrollbar{ display:none; }
.tool-chip{
  flex:0 0 auto; display:flex; align-items:center; gap:8px;
  background: var(--c-white); border:1px solid var(--c-border);
  border-radius: var(--radius-pill); padding:9px 14px;
  font-size:.75rem; font-weight:600; white-space:nowrap;
}
.tool-chip .ico{
  width:26px;height:26px; border-radius:50%;
  display:flex;align-items:center;justify-content:center; font-size:.8rem;
}

/* =========================================================
   14) FOOTER
   ========================================================= */
.site-footer{
  background: var(--c-navy);
  color: rgba(255,255,255,.85);
  padding: 30px 0 0;
  margin-top: 12px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
.site-footer .brand{ display:flex; align-items:center; gap:10px; color:#fff; font-weight:700; margin-bottom:8px; }
.site-footer .brand .brand-logo{
  width:38px;height:38px;border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  color: var(--c-primary);
}
.site-footer p.desc{ font-size:.75rem; color: rgba(255,255,255,.55); line-height:1.7; margin-bottom:16px; }
.site-footer .social-row{ display:flex; gap:10px; margin-bottom:26px; }
.site-footer .social-row a{
  width:34px;height:34px;border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  color:#fff; font-size:.85rem;
}
.site-footer h4{ font-size:.85rem; font-weight:700; color:#fff; margin-bottom:14px; }
.site-footer ul{ list-style:none; padding:0; margin:0 0 26px; }
.site-footer ul li{ margin-bottom:12px; }
.site-footer ul li a, .site-footer ul li span{ font-size:.78rem; color: rgba(255,255,255,.6); }
.site-footer ul li i{ margin-left:8px; color: var(--c-primary); }
.site-footer .addr-block{ font-size:.78rem; color: rgba(255,255,255,.6); line-height:1.8; padding-bottom:18px; }
.site-footer .copy-bar{
  border-top: 1px solid rgba(255,255,255,.08);
  text-align:center; font-size:.7rem;
  color: rgba(255,255,255,.4);
  padding: 14px 0 calc(var(--bottomnav-h) + 14px);
}

/* =========================================================
   15) MOBILE BOTTOM NAV + OFFCANVAS
   ========================================================= */
.bottom-nav{
  position: fixed; bottom:0; right:0; left:0;
  height: var(--bottomnav-h);
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 20px rgba(16,27,61,.06);
  z-index: 1040; display:flex; align-items:center;
}
.bottom-nav .nav-inner{
  width:100%; display:grid;
  grid-template-columns: repeat(5, 1fr); align-items:center;
}
.bottom-nav .bn-item{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  color: var(--c-text-soft); font-size:.63rem; font-weight:600;
}
.bottom-nav .bn-item i{ font-size:1.15rem; }
.bottom-nav .bn-item.active{ color: var(--c-primary); }
.bottom-nav .bn-item.bn-center{ position:relative; color: var(--c-primary); }
.bottom-nav .bn-center .bn-center-circle{
  width:50px; height:50px; border-radius:50%;
  background: var(--c-primary);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.3rem; margin-top:-26px;
  box-shadow: var(--shadow-pop); border: 4px solid var(--c-bg);
}

.offcanvas-mobile-menu{ width: 82vw; max-width: 340px; }
.offcanvas-mobile-menu .offcanvas-header{ border-bottom:1px solid var(--c-border); }
.mobile-menu-logo { height: 40px; width: auto; object-fit: contain; }
.mm-profile{
  display:flex; align-items:center; gap:10px;
  background: var(--c-bg); border-radius: var(--radius-md);
  padding:12px; margin-bottom:18px;
}
.mm-profile .ico{
  width:42px;height:42px;border-radius:50%;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display:flex;align-items:center;justify-content:center; font-size:1.1rem;
}
.mm-profile .lbl{ font-size:.7rem; color:var(--c-text-muted); }
.mm-profile .val{ font-size:.85rem; font-weight:700; }
.mm-nav{ list-style:none; padding:0; margin:0; }
.mm-nav li + li{ margin-top:2px; }
.mm-nav a{
  display:flex; align-items:center; gap:12px;
  padding:12px 8px; border-radius: var(--radius-sm);
  color: var(--c-text); font-size:.85rem; font-weight:600;
}
.mm-nav a i{
  width:34px;height:34px; border-radius:10px;
  background: var(--c-bg);
  display:flex;align-items:center;justify-content:center;
  font-size:1rem; color: var(--c-text-muted);
}
.mm-nav a:hover{ background: var(--c-bg); }
.mm-nav a.text-danger i{ color: var(--c-primary); background: var(--c-primary-light); }

/* =========================================================
   16) LOGGED-IN BANNER (index.php)
   ========================================================= */
.logged-in-banner {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  margin: 12px 0;
}
.user-info { display: flex; align-items: flex-start; gap: 12px; }
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #eef2ff;
  display: flex; align-items: center; justify-content: center;
  color: #22315e; font-size: 22px; flex-shrink: 0;
}
.user-text { flex: 1; min-width: 0; }
.user-greeting { font-weight: 600; color: #22315e; margin-bottom: 6px; }
.user-role-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.user-role {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #065f46;
  background: #d1fae5;
  padding: 3px 10px; border-radius: 12px;
  font-weight: 500; white-space: nowrap;
}
.role-school {
  font-size: 10px; color: #047857;
  background: rgba(255,255,255,.5);
  padding: 0 4px; border-radius: 6px; margin-right: 2px;
}
.user-role-empty { color: #6b7280; background: #f3f4f6; }

/* =========================================================
   17) AUTH (login.php)
   ========================================================= */
.auth-wrapper { width: 100%; max-width: 460px; margin: 0 auto; }

.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  padding: 38px 34px;
  box-shadow:
    0 20px 60px rgba(15, 35, 52, 0.10),
    0 5px 20px rgba(15, 35, 52, 0.05);
  backdrop-filter: blur(15px);
}

.auth-card .brand { text-align: center; margin-bottom: 28px; }
.auth-card .brand-logo { width: 65%; height: auto; object-fit: contain; margin-bottom: 8px; }
.auth-title {
  font-size: 24px; font-weight: 800; color: #0b121f;
  margin-bottom: 8px; text-align: center;
}
.auth-subtitle {
  font-size: 14px; line-height: 1.9; color: #71808d;
  text-align: center; margin-bottom: 28px;
}

.input-wrapper { position: relative; }
.input-icon {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: #8795a2; font-size: 18px; pointer-events: none;
}

.auth-card .form-control {
  height: 54px; border-radius: 15px;
  border: 1px solid #dce3e8;
  padding-right: 48px; padding-left: 15px;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-card .form-control:focus {
  border-color: #0a4a6b;
  box-shadow: 0 0 0 4px rgba(10, 74, 107, 0.08);
}
.auth-card .form-label { font-size: 13px; font-weight: 600; color: #344454; margin-bottom: 8px; }

.btn-auth {
  width: 100%; height: 54px; border: 0;
  border-radius: 15px; background: #0a4a6b;
  color: #fff; font-size: 15px; font-weight: 700;
  margin-top: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-auth:hover {
  background: #083c57; transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(10, 74, 107, 0.18);
}
.btn-auth:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

.otp-section { display: none; }
.otp-section.active { display: block; }
.mobile-section.hidden { display: none; }

.otp-info {
  background: #f3f7f9; border-radius: 15px;
  padding: 13px 15px; font-size: 13px;
  color: #657684; margin-bottom: 20px; text-align: center;
}
.otp-mobile { font-weight: 700; color: #0a4a6b; }

.otp-cards {
  display: flex; justify-content: center;
  gap: 12px; direction: ltr;
}
.otp-digit {
  width: 58px; height: 68px; border-radius: 16px;
  border: 2px solid #dce3e8; background: #fff;
  text-align: center; font-size: 28px; font-weight: 700;
  color: #0b121f; caret-color: #0a4a6b;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  outline: none;
}
.otp-digit:focus {
  border-color: #0a4a6b;
  box-shadow: 0 0 0 4px rgba(10, 74, 107, 0.10);
  transform: translateY(-2px);
}
.otp-digit.filled { border-color: #20ad96; background: #f6fffc; }

.otp-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.text-btn {
  background: transparent; border: 0; color: #0a4a6b;
  font-family: inherit; font-size: 13px; padding: 5px; cursor: pointer;
}
.text-btn:disabled { color: #a7b1b8; cursor: not-allowed; }

.message-box {
  display: none; border-radius: 13px;
  padding: 12px 14px; margin-bottom: 18px;
  font-size: 13px; line-height: 1.8;
}
.message-box.show { display: block; }
.message-error { background: #fff1f1; color: #b42318; border: 1px solid #ffd5d2; }
.message-success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }

.back-link {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 22px;
  color: #7a8792; font-size: 13px; text-decoration: none;
}
.back-link:hover { color: #0a4a6b; }
.auth-footer { text-align: center; color: #9aa5ad; font-size: 11px; margin-top: 20px; }

/* =========================================================
   18) ROLE SELECT MODAL (login.php)
   ========================================================= */
.role-modal-content {
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(32, 173, 150, 0.18), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(10, 74, 107, 0.20), transparent 45%),
    linear-gradient(135deg, #0b1a2b 0%, #0a4a6b 100%) !important;
  box-shadow:
    0 30px 80px rgba(10, 30, 50, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  position: relative;
}
.role-modal-content::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  pointer-events: none; opacity: 0.6;
}
.role-modal-body {
  position: relative; z-index: 1;
  padding: 36px 28px 30px !important;
  color: #fff;
}
.role-modal-logo-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 0 6px rgba(255, 255, 255, 0.04);
  animation: roleLogoPulse 3s ease-in-out infinite;
}
@keyframes roleLogoPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 6px rgba(255,255,255,0.04); }
  50%      { box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 0 12px rgba(255,255,255,0.02); }
}
.role-modal-logo-wrap img { width: 52px; height: 52px; object-fit: contain; }
.role-modal-title {
  font-size: 22px; font-weight: 800; color: #ffffff;
  margin-bottom: 8px; letter-spacing: -0.3px;
}
.role-modal-subtitle {
  font-size: 13.5px; color: rgba(255, 255, 255, 0.72);
  line-height: 1.9; margin-bottom: 26px;
}

.role-btn {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff; font-family: inherit;
  font-size: 14.5px; font-weight: 600;
  text-align: right; cursor: pointer;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: roleBtnIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.role-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.role-btn:hover::before { transform: translateX(100%); }
.role-btn:hover {
  transform: translateY(-3px) scale(1.015);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.role-btn:active { transform: translateY(-1px) scale(0.99); }

.role-btn-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #ffffff;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.28s ease;
}
.role-btn:hover .role-btn-icon {
  transform: rotate(-6deg) scale(1.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.10));
}
.role-btn-text { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: right; }
.role-btn-title { font-size: 14.5px; font-weight: 700; color: #ffffff; line-height: 1.5; }
.role-btn-desc { font-size: 11.5px; font-weight: 400; color: rgba(255, 255, 255, 0.65); line-height: 1.5; }
.role-btn-arrow {
  flex-shrink: 0; font-size: 16px; color: rgba(255, 255, 255, 0.5);
  transition: all 0.28s ease;
}
.role-btn:hover .role-btn-arrow { color: #ffffff; transform: translateX(-4px); }

.role-btn[data-role="manager"] .role-btn-icon { background: linear-gradient(135deg, #20ad96, #0a4a6b); border-color: rgba(32, 173, 150, 0.5); }
.role-btn[data-role="manager"]:hover { border-color: rgba(32, 173, 150, 0.6); box-shadow: 0 14px 32px rgba(32, 173, 150, 0.25), 0 0 0 1px rgba(32, 173, 150, 0.4); }
.role-btn[data-role="moaven"] .role-btn-icon { background: linear-gradient(135deg, #3b82f6, #1e40af); border-color: rgba(59, 130, 246, 0.5); }
.role-btn[data-role="moaven"]:hover { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 14px 32px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.4); }
.role-btn[data-role="teacher"] .role-btn-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); border-color: rgba(139, 92, 246, 0.5); }
.role-btn[data-role="teacher"]:hover { border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 14px 32px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.4); }
.role-btn[data-role="student"] .role-btn-icon { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: rgba(245, 158, 11, 0.5); }
.role-btn[data-role="student"]:hover { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 14px 32px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.4); }
.role-btn[data-role="parent"] .role-btn-icon { background: linear-gradient(135deg, #ec4899, #be185d); border-color: rgba(236, 72, 153, 0.5); }
.role-btn[data-role="parent"]:hover { border-color: rgba(236, 72, 153, 0.6); box-shadow: 0 14px 32px rgba(236, 72, 153, 0.25), 0 0 0 1px rgba(236, 72, 153, 0.4); }
.role-btn[data-role="athlete"] .role-btn-icon { background: linear-gradient(135deg, #10b981, #047857); border-color: rgba(16, 185, 129, 0.5); }
.role-btn[data-role="athlete"]:hover { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 14px 32px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.4); }
.role-btn[data-role="regular"] .role-btn-icon { background: linear-gradient(135deg, #64748b, #334155); border-color: rgba(148, 163, 184, 0.4); }
.role-btn[data-role="regular"]:hover { border-color: rgba(148, 163, 184, 0.6); box-shadow: 0 14px 32px rgba(100, 116, 139, 0.28), 0 0 0 1px rgba(148, 163, 184, 0.4); }

.role-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  color: rgba(255, 255, 255, 0.4); font-size: 11.5px;
}
.role-divider::before,
.role-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.role-modal-close {
  position: absolute; top: 14px; left: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  z-index: 5;
}
.role-modal-close:hover {
  background: rgba(255, 70, 70, 0.25);
  border-color: rgba(255, 70, 70, 0.5);
  color: #fff; transform: rotate(90deg);
}
@keyframes roleBtnIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.role-btn:nth-child(1) { animation-delay: 0.05s; }
.role-btn:nth-child(2) { animation-delay: 0.12s; }
.role-btn:nth-child(3) { animation-delay: 0.19s; }
.role-btn:nth-child(4) { animation-delay: 0.26s; }
.role-btn:nth-child(5) { animation-delay: 0.33s; }
.role-btn:nth-child(6) { animation-delay: 0.40s; }

/* =========================================================
   19) PROFILE PAGE
   ========================================================= */
.profile-wrap {
  max-width: 760px;
  margin: 28px auto 60px;
  padding: 0 14px;
}

/* Hero Card (پروفایل) */
.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 18px;
}
.hero-card::before {
  content: "";
  position: absolute; inset: -2px;
  background:
    radial-gradient(400px 120px at 100% 0%, rgba(0,149,246,.10), transparent 70%),
    radial-gradient(360px 140px at 0% 100%, rgba(232,64,44,.08), transparent 70%);
  pointer-events: none;
}
.profile-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; padding-right: 8px;
}

.avatar-big {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-check), var(--blue-check-2));
  color: #fff; font-weight: 800; font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,149,246,.35);
  position: relative; cursor: pointer;
  transition: transform .2s ease; z-index: 1;
}
.avatar-big:hover { transform: scale(1.03); }
.avatar-image-wrap {
  position: absolute; inset: 0; border-radius: 50%;
  overflow: hidden; display: grid; place-items: center; z-index: 1;
}
.avatar-image-wrap .avatar-image {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.avatar-big .verified-badge {
  position: absolute; bottom: -3px; left: -3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  z-index: 5; pointer-events: none;
}
.avatar-big .verified-badge svg {
  width: 20px; height: 20px;
  filter: drop-shadow(0 1px 3px rgba(0,149,246,.45));
}
.avatar-big .avatar-edit-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px; opacity: 0;
  transition: opacity .25s ease;
  z-index: 3; pointer-events: none;
}
.avatar-big:hover .avatar-edit-overlay { opacity: 1; }
.avatar-big.loading .avatar-edit-overlay { opacity: 1; background: rgba(15, 23, 42, 0.75); }
.avatar-big.loading .avatar-edit-overlay::after {
  content: ''; width: 26px; height: 26px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
  position: absolute;
}
.avatar-big.loading .avatar-edit-overlay i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.profile-meta { flex: 1; min-width: 0; }
.profile-name {
  font-weight: 800; font-size: 22px; color: var(--navy);
  margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.profile-sub {
  font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.profile-sub .sub-item { display: inline-flex; align-items: center; gap: 5px; }
.profile-sub .sub-item i { color: var(--navy-2); font-size: 13px; }
.profile-sub .badge-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.badge-status.active  { background: rgba(15,157,88,.12); color: var(--green); }
.badge-status.pending { background: rgba(232,64,44,.10); color: var(--brand); }
.badge-status.blocked { background: rgba(220,53,69,.12); color: #dc3545; }

/* Tabs */
.tabs-nav {
  position: relative; z-index: 1;
  display: flex; gap: 6px; margin-top: 20px;
  padding: 4px;
  background: rgba(30,42,82,.05);
  border-radius: 12px; overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1; min-width: 120px;
  padding: 10px 14px;
  border: none; background: transparent;
  border-radius: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; transition: all .2s ease;
  font-family: inherit; white-space: nowrap;
}
.tab-btn.active {
  background: #fff; color: var(--navy);
  box-shadow: 0 2px 6px rgba(16,24,40,.08);
}
.tab-btn:hover:not(.active) { color: var(--navy-2); }
.tab-panel { display: none; animation: fadeUp .35s ease; }
.tab-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-md); margin-bottom: 18px;
}
.card-title {
  font-size: 16px; font-weight: 800; color: var(--navy);
  margin: 0 0 4px;
  display: inline-flex; align-items: center; gap: 8px;
}
.card-title i { color: var(--brand); font-size: 17px; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

/* Forms (Base) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 14px; }
.form-label {
  font-weight: 600; font-size: 13px; color: var(--navy);
  margin-bottom: 6px; display: block;
}
.form-control {
  border-radius: 12px; border: 1.5px solid var(--line);
  padding: 11px 14px; font-size: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%; font-family: inherit;
  color: var(--text); box-sizing: border-box;
}
.form-control:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232,64,44,.10);
}
.form-control:disabled,
.form-control[readonly] {
  background: #f7f9fc; color: var(--muted); cursor: not-allowed;
}
.form-text { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* Birth Date */
.birthdate-wrap { position: relative; display: flex; }
#birth_date_jalali {
  flex: 1; cursor: pointer; padding-left: 44px;
  direction: ltr; text-align: left; letter-spacing: 2px;
}
.birthdate-icon {
  position: absolute; left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px;
  border: none; background: rgba(232,64,44,.08);
  color: var(--brand);
  display: grid; place-items: center;
  cursor: pointer; transition: all .2s ease;
  font-size: 15px;
}
.birthdate-icon:hover { background: rgba(232,64,44,.15); }
.bd-status-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fbfcfe, #f5f8ff);
  border: 1.5px solid var(--line);
  border-radius: 12px; margin-top: 8px;
}
.bd-status-wrap input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brand); cursor: pointer; flex-shrink: 0;
}
.bd-status-wrap label {
  font-size: 12.5px; color: var(--navy);
  cursor: pointer; user-select: none;
}

/* Gender */
.gender-group { display: flex; gap: 8px; }
.gender-option { flex: 1; position: relative; cursor: pointer; }
.gender-option input { position: absolute; opacity: 0; pointer-events: none; }
.gender-option .gender-label {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: #fff;
  transition: all .2s ease;
}
.gender-option input:checked + .gender-label {
  border-color: var(--brand);
  background: rgba(232,64,44,.05);
  color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232,64,44,.08);
}
.gender-option .gender-label i { font-size: 16px; }

/* Buttons (Global) */
.btn {
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 600; font-size: 14px;
  font-family: inherit; cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(232,64,44,.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #d63825, #f55a2f);
  box-shadow: 0 10px 24px rgba(232,64,44,.35);
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--navy);
}
.btn-outline:hover { background: #f7f9fc; border-color: #d8dfea; }
.btn-outline-secondary {
  border: 1.5px solid var(--line);
  color: var(--navy); background: #fff;
}
.btn-outline-secondary:hover { background: #f7f9fc; border-color: #d8dfea; }
.btn-danger {
  background: #fff;
  border: 1.5px solid rgba(220,53,69,.3);
  color: #dc3545;
}
.btn-danger:hover { background: rgba(220,53,69,.05); border-color: #dc3545; }
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16,185,129,.28);
}

/* Roles (Profile) */
.roles-list { display: flex; flex-direction: column; gap: 12px; }
.role-item {
  border: 1.5px solid var(--line);
  border-radius: 14px; padding: 14px;
  background: #fff;
  transition: all .2s ease;
}
.role-item:hover {
  border-color: rgba(0,149,246,.3);
  box-shadow: 0 6px 16px rgba(0,149,246,.08);
}
.role-item .role-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.role-item .role-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
}
.role-item .role-icon.parent  { background: linear-gradient(135deg, #e8402c, #ff6a3d); }
.role-item .role-icon.student { background: linear-gradient(135deg, #0095f6, #0077c8); }
.role-item .role-icon.teacher { background: linear-gradient(135deg, #16a34a, #15803d); }
.role-item .role-icon.school_manager { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.role-item .role-icon.athlete { background: linear-gradient(135deg, #f59e0b, #d97706); }
.role-item .role-icon.moaven  { background: linear-gradient(135deg, #0891b2, #0e7490); }
.role-item .role-icon.default { background: linear-gradient(135deg, #6b7280, #4b5563); }
.role-item .role-title { font-weight: 800; font-size: 15px; color: var(--navy); }
.role-item .role-name { font-size: 12px; color: var(--muted); margin-top: 2px; }
.role-item .role-schools {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}
.role-item .role-school-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #fbfcfe, #f5f8ff);
  border-radius: 10px;
  font-size: 13px; color: var(--navy-2);
}
.role-item .role-school-item i { color: var(--blue-check); font-size: 14px; flex-shrink: 0; }
.role-item .role-no-school { font-size: 12px; color: var(--muted); font-style: italic; padding: 6px 0; }
.roles-empty, .roles-loading {
  text-align: center; padding: 30px 16px;
  color: var(--muted); font-size: 13px;
}
.roles-empty i, .roles-loading i {
  display: block; font-size: 32px; color: #c9d2e0; margin-bottom: 10px;
}

/* Security (Profile) */
.security-list { display: flex; flex-direction: column; gap: 10px; }
.security-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff;
}
.security-item .si-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.security-item.ok .si-icon { background: rgba(15,157,88,.10); color: var(--green); }
.security-item.warn .si-icon { background: rgba(232,64,44,.10); color: var(--brand); }
.security-item .si-body { flex: 1; }
.security-item .si-title { font-weight: 700; font-size: 14px; color: var(--navy); }
.security-item .si-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Datepicker (Persian) */
.datepicker-plot-area {
  font-family: 'Vazirmatn', sans-serif !important;
  border: 1px solid rgba(232,64,44,.25) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(11,29,58,.18), 0 5px 20px rgba(11,29,58,.08) !important;
  overflow: hidden; direction: rtl;
}
.datepicker-plot-area .header { background: var(--navy) !important; color: #fff !important; }
.datepicker-plot-area .header .title { color: #fff !important; }
.datepicker-plot-area .header .btn-prev,
.datepicker-plot-area .header .btn-next { color: var(--brand-2) !important; }
.datepicker-plot-area .table-days thead tr { background: #f8f7f4 !important; }
.datepicker-plot-area .table-days th { color: var(--navy) !important; }
.datepicker-plot-area .table-days td span { border-radius: 8px !important; }
.datepicker-plot-area .table-days td span:hover { background: rgba(232,64,44,.12) !important; color: var(--navy) !important; }
.datepicker-plot-area .table-days td.selected span { background: var(--brand) !important; color: #fff !important; font-weight: 700 !important; }
.datepicker-plot-area .table-days td.today span { border: 1px solid var(--brand) !important; }

/* Username Live Check */
.username-wrap { position: relative; }
.username-wrap .form-control { padding-left: 44px; }
.username-status-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px; display: none; line-height: 1;
}
.username-status-icon.show { display: block; animation: usernameIconPop .3s ease; }
@keyframes usernameIconPop {
  0%   { transform: translateY(-50%) scale(0.4); opacity: 0; }
  60%  { transform: translateY(-50%) scale(1.15); opacity: 1; }
  100% { transform: translateY(-50%) scale(1); opacity: 1; }
}
.username-wrap.is-available .form-control { border-color: #0f9d58; box-shadow: 0 0 0 4px rgba(15,157,88,.10); }
.username-wrap.is-available .username-status-icon { color: #0f9d58; }
.username-wrap.is-taken .form-control,
.username-wrap.is-invalid .form-control { border-color: #dc3545; box-shadow: 0 0 0 4px rgba(220,53,69,.10); }
.username-wrap.is-taken .username-status-icon,
.username-wrap.is-invalid .username-status-icon { color: #dc3545; }
.username-wrap.is-checking .form-control { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.10); }
.username-wrap.is-checking .username-status-icon { color: #f59e0b; }
.username-feedback {
  display: none; font-size: 12.5px; margin-top: 6px;
  padding: 7px 12px; border-radius: 10px;
  align-items: center; gap: 6px; font-weight: 600;
}
.username-feedback.show { display: flex; animation: fadeUp .25s ease; }
.username-feedback.success { background: rgba(15,157,88,.10); color: #0f9d58; border: 1px solid rgba(15,157,88,.25); }
.username-feedback.error { background: rgba(220,53,69,.08); color: #dc3545; border: 1px solid rgba(220,53,69,.25); }
.username-feedback.checking { background: rgba(245,158,11,.08); color: #b45309; border: 1px solid rgba(245,158,11,.25); }
.username-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(245,158,11,.3);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* =========================================================
   20) REGISTER PAGES (school / student / teacher)
   ========================================================= */
.register-wrap { max-width: 640px; margin: 24px auto; padding: 0 12px; }
.register-wrap.wide { max-width: 760px; }
.register-card {
  background: #fff; border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Step Indicator */
.step-indicator {
  display: flex; justify-content: space-between;
  margin-bottom: 24px; gap: 4px;
}
.step-dot {
  flex: 1; height: 6px; border-radius: 3px;
  background: #e5e7eb;
  transition: background .35s ease, transform .35s ease;
}
.step-dot.active { background: #e8402c; }
.step-dot.done   { background: #22315e; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .35s ease; }
.alert-slot:empty { display: none; }

/* User Welcome Card (school-register) */
.user-welcome {
  background: linear-gradient(135deg, #0a4a6b 0%, #083c57 100%);
  color: #fff; border-radius: 16px;
  padding: 18px 22px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  box-shadow: 0 8px 20px rgba(10, 74, 107, 0.20);
}
.user-welcome .user-info { display: flex; align-items: center; gap: 12px; }
.user-welcome .user-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.user-welcome .user-text { line-height: 1.5; }
.user-welcome .user-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.user-welcome .user-mobile {
  font-size: 13px; opacity: 0.85;
  direction: ltr; text-align: right;
  font-family: monospace, 'Vazirmatn'; letter-spacing: 1px;
}
.user-welcome .user-mobile i { margin-left: 4px; opacity: 0.9; }

/* School Card (لیست مدارس) */
.school-card {
  border: 1px solid #e9ecef; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 14px;
  transition: box-shadow .2s ease, transform .2s ease;
  background: #fff;
}
.school-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-2px); }
.school-card .school-name { font-weight: 700; font-size: 16px; color: #0b121f; margin-bottom: 6px; }
.school-card .school-meta { font-size: 13px; color: #6b7a88; line-height: 1.9; }
.school-card .school-meta i { color: #0a4a6b; margin-left: 4px; }
.school-card .badge-status { font-size: 11px; padding: 4px 10px; border-radius: 20px; }

.empty-state { text-align: center; padding: 48px 16px; }
.empty-state i { font-size: 56px; color: #c7d0d8; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-top: 16px; color: #344454; }
.empty-state p { color: #7a8792; font-size: 14px; margin-bottom: 20px; }

.btn-new-school {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0a4a6b; color: #fff;
  border: 0; border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.btn-new-school:hover { background: #083c57; color: #fff; transform: translateY(-1px); }

/* Popular Cities */
.popular-cities {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.popular-cities .popular-title {
  font-size: 12.5px; font-weight: 700; color: #475569;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.popular-cities .popular-title i { color: #e8402c; }
.popular-cities .popular-list { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-city-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  color: #334155; cursor: pointer;
  transition: all .2s ease; font-family: inherit;
}
.popular-city-btn:hover {
  background: #0a4a6b; color: #fff;
  border-color: #0a4a6b; transform: translateY(-1px);
}
.popular-city-btn.active { background: #0a4a6b; color: #fff; border-color: #0a4a6b; }
.popular-city-btn i { font-size: 14px; }

/* Gender Simple (school-register) */
.gender-simple-group {
  display: flex; gap: 24px; align-items: center; padding: 6px 0;
}
.gender-simple {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; margin: 0;
  font-size: 15px; font-weight: 500; color: #334155;
}
.gender-simple input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: #0a4a6b; cursor: pointer; margin: 0;
}

/* =========================================================
   21) STUDENT REGISTER (Hero خاص + مدارس + Academic Box)
   ========================================================= */
.student-hero-card {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-lg);
}
.student-hero-card::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: inherit;
  background:
    radial-gradient(400px 120px at 100% 0%, rgba(0,149,246,.10), transparent 70%),
    radial-gradient(360px 140px at 0% 100%, rgba(232,64,44,.08), transparent 70%);
  pointer-events: none; z-index: 0; overflow: hidden;
}
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; position: relative; z-index: 1;
}
.brand-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: rgba(30,42,82,.06);
  border: 1px solid rgba(30,42,82,.08);
  padding: 6px 12px; border-radius: 999px;
}
.brand-chip i { color: var(--blue-check); }
.progress-pill { font-size: 12px; color: var(--muted); font-weight: 500; }

.verified-banner {
  position: relative; z-index: 1; margin-top: 18px;
  display: none; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,149,246,.08), rgba(0,119,200,.05));
  border: 1px solid rgba(0,149,246,.18);
  animation: slideDown .45s cubic-bezier(.2,.8,.2,1);
}
.verified-banner.show { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.verified-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-check), var(--blue-check-2));
  color: #fff; font-weight: 700; font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0,149,246,.35);
  position: relative;
}
.verified-avatar::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-check), var(--blue-check-2));
  opacity: .25; z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .25; }
  50%      { transform: scale(1.12); opacity: .08; }
}
.verified-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.verified-name {
  font-weight: 700; font-size: 15.5px; color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.verified-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ig-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0,149,246,.5));
  animation: tickPop .55s cubic-bezier(.2,1.4,.4,1);
}
.ig-tick svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes tickPop {
  0%   { transform: scale(.3) rotate(-15deg); opacity: 0; }
  55%  { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Form title/sub */
.form-title {
  position: relative; z-index: 1;
  margin: 22px 0 4px;
  font-size: 20px; font-weight: 800; color: var(--navy);
  letter-spacing: -.2px;
}
.form-sub {
  position: relative; z-index: 1;
  color: var(--muted); font-size: 13px;
  margin-bottom: 20px; line-height: 1.8;
}

/* Schools List */
.schools-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px; min-height: 60px;
}
.schools-loading {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 20px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.schools-empty {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 24px 16px;
  background: linear-gradient(135deg, #fbfcfe, #f5f8ff);
  border: 1.5px dashed var(--line);
  border-radius: 14px;
}
.schools-empty i { display: block; font-size: 28px; color: #c9d2e0; margin-bottom: 8px; }

/* School Card (student) */
.schools-list .school-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: all .2s ease;
  animation: fadeUp .35s ease;
  position: relative;
}
.schools-list .school-card:hover {
  border-color: rgba(0,149,246,.35);
  box-shadow: 0 6px 16px rgba(0,149,246,.10);
}
.schools-list .school-card.selected {
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(232,64,44,.15);
}
.schools-list .school-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,149,246,.14), rgba(0,119,200,.08));
  color: var(--blue-check); font-size: 19px; flex-shrink: 0;
}
.schools-list .school-info { flex: 1; min-width: 0; }
.schools-list .school-name {
  font-weight: 700; font-size: 14.5px; color: var(--navy);
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.schools-list .school-meta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.schools-list .school-meta .badge-soft {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(30,42,82,.06);
  font-size: 11px; font-weight: 500; color: var(--navy-2);
}
.schools-list .school-meta .badge-pending {
  background: rgba(232,64,44,.10); color: var(--brand);
}
.school-select-btn {
  border: none; background: var(--navy);
  color: #fff; border-radius: 10px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
  flex-shrink: 0; font-family: inherit;
}
.school-select-btn:hover { background: var(--brand); }
.schools-list .school-card.selected .school-select-btn { background: var(--brand); }
.school-remove {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer; transition: all .15s ease;
  flex-shrink: 0;
}
.school-remove:hover { background: rgba(232,64,44,.08); color: var(--brand); }

/* New School Card */
.new-school-card {
  padding: 16px;
  background: linear-gradient(135deg, #fbfcfe, #f5f8ff);
  border: 1.5px dashed rgba(0,149,246,.3);
  border-radius: 14px;
  margin-bottom: 12px;
  animation: fadeUp .35s ease;
  overflow: visible;
}
.new-school-header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy); font-size: 14px;
  margin-bottom: 14px;
}
.new-school-header i { color: var(--blue-check); font-size: 16px; }
.new-school-close {
  margin-right: auto;
  width: 28px; height: 28px; border-radius: 8px;
  border: none; background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer; transition: all .15s ease;
}
.new-school-close:hover { background: rgba(220,53,69,.08); color: #dc3545; }
.btn-add-school {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  border: 1.5px dashed var(--line);
  border-radius: 12px; background: #fff;
  color: var(--navy); font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: all .2s ease;
  margin-bottom: 8px;
}
.btn-add-school:hover {
  border-color: var(--blue-check);
  background: rgba(0,149,246,.04);
  color: var(--blue-check);
}
.btn-add-school i { font-size: 16px; }

/* Academic Box */
.academic-box {
  padding: 16px;
  background: linear-gradient(135deg, #fbfcfe, #f5f8ff);
  border: 1.5px dashed rgba(0,149,246,.3);
  border-radius: 14px;
  margin-top: 12px;
  animation: fadeUp .35s ease;
}
.academic-box-title {
  font-weight: 700; color: var(--navy); font-size: 13.5px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.academic-box-title i { color: var(--blue-check); }

/* Success Box */
.success-box {
  text-align: center; padding: 30px 16px;
  position: relative; z-index: 1;
}
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #d1f5e0, #a7ebc5);
  color: #0f9d58; font-size: 42px;
  box-shadow: 0 12px 28px rgba(15,157,88,.22);
  animation: tickPop .6s cubic-bezier(.2,1.4,.4,1);
}
.success-box .btn { margin: 4px; }

/* Profile Complete Card */
.profile-complete-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; margin: 22px 0 18px;
  background: linear-gradient(135deg, rgba(0,149,246,.06), rgba(0,119,200,.03));
  border: 1.5px solid rgba(0,149,246,.20);
  border-radius: 16px;
  text-align: right;
  animation: fadeUp .55s ease;
  position: relative; overflow: hidden;
}
.profile-complete-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: profileShine 3s ease-in-out .5s infinite;
  pointer-events: none;
}
@keyframes profileShine {
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.pcc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-check), var(--blue-check-2));
  color: #fff; font-size: 22px; flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0,149,246,.28);
}
.pcc-body { flex: 1; min-width: 0; }
.pcc-title { font-size: 14.5px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.pcc-desc { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.pcc-desc strong { color: var(--navy-2); font-weight: 700; }
.pcc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important; border-radius: 12px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 8px 18px rgba(232,64,44,.22);
  white-space: nowrap; flex-shrink: 0;
}
.pcc-btn:hover {
  background: linear-gradient(135deg, #d63825, #f55a2f);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(232,64,44,.32);
  color: #fff !important;
}
.pcc-btn:active { transform: translateY(0); }

/* =========================================================
   22) TOM SELECT RTL
   ========================================================= */
.ts-wrapper .ts-control {
  font-family: 'Vazirmatn', sans-serif !important;
  border-radius: 12px !important;
  min-height: 46px !important;
  direction: rtl !important;
  text-align: right !important;
  padding-right: 14px !important;
  padding-left: 42px !important;
  border: 1.5px solid var(--line) !important;
  font-size: 14px !important;
}
.ts-wrapper.focus .ts-control {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(232,64,44,.10) !important;
}
.ts-wrapper .ts-control > input {
  direction: rtl !important; text-align: right !important;
  padding: 0 !important; margin: 0 !important;
  font-family: 'Vazirmatn', sans-serif !important;
}
.ts-wrapper .ts-control > input::placeholder {
  text-align: right !important; direction: rtl !important; opacity: .7 !important;
}
.ts-wrapper .ts-control > .item {
  padding: 0 !important; margin: 0 !important;
  text-align: right !important; direction: rtl !important;
}
.ts-wrapper.single .ts-control::after,
.ts-wrapper .ts-control::after {
  display: none !important;
  content: none !important;
  border: none !important;
}
.ts-wrapper.single .ts-control {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231e2a52' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  background-size: 14px 14px !important;
}
.ts-wrapper.single.dropdown-active .ts-control {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e8402c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 11l6-6 6 6'/%3E%3C/svg%3E") !important;
}
.ts-dropdown {
  position: absolute !important;
  z-index: 99999 !important;
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl !important; text-align: right !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--line) !important;
  background: #fff !important;
  box-shadow:
    0 20px 45px rgba(16,24,40,.15),
    0 8px 18px rgba(16,24,40,.08) !important;
  margin-top: 6px !important;
}
.ts-dropdown .ts-dropdown-content {
  max-height: 420px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
.ts-dropdown .option {
  text-align: right !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  cursor: pointer;
  transition: background .15s ease;
}
.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: rgba(232,64,44,.08) !important;
  color: var(--brand) !important;
}
.ts-dropdown .option.selected {
  background: rgba(0,149,246,.10) !important;
  color: var(--blue-check) !important;
  font-weight: 700;
}
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar { width: 8px; }
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-track { background: transparent; }
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(30,42,82,.2); border-radius: 4px;
}
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: rgba(30,42,82,.35);
}
@media (max-width: 480px) {
  .ts-dropdown .ts-dropdown-content { max-height: 55vh !important; }
  .ts-dropdown .option { padding: 10px 12px !important; font-size: 13px !important; }
}

select.form-select {
  padding-right: 14px !important;
  padding-left: 34px !important;
  text-align: right; direction: rtl;
}
select.form-select option { direction: rtl; text-align: right; }

/* =========================================================
   23) MODERN TOAST
   ========================================================= */
.mtoast-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background .28s ease, backdrop-filter .28s ease;
}
.mtoast-overlay.show {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}
.mtoast-card {
  position: relative;
  min-width: 300px; max-width: 420px;
  width: calc(100% - 40px);
  background: #ffffff;
  border-radius: 22px;
  padding: 32px 26px 24px;
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.28),
    0 10px 30px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
  transform: translateY(20px) scale(0.94);
  opacity: 0;
  transition:
    transform .38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .28s ease;
}
.mtoast-overlay.show .mtoast-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mtoast-icon-wrap {
  width: 76px; height: 76px;
  margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  animation: mtoastIconPop .5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mtoast-icon-wrap::before {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%; opacity: 0.15;
  animation: mtoastRingPulse 2s ease-in-out infinite;
}
.mtoast-icon-wrap i {
  font-size: 36px; color: #fff;
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}
@keyframes mtoastIconPop {
  0%   { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg);  opacity: 1; }
  100% { transform: scale(1) rotate(0deg);     opacity: 1; }
}
@keyframes mtoastRingPulse {
  0%, 100% { transform: scale(1);   opacity: 0.15; }
  50%      { transform: scale(1.15); opacity: 0.05; }
}
.mtoast-card.success .mtoast-icon-wrap {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}
.mtoast-card.success .mtoast-icon-wrap::before { background: #10b981; }
.mtoast-card.success .mtoast-title { color: #065f46; }
.mtoast-card.success .mtoast-progress { background: linear-gradient(90deg, #10b981, #34d399); }
.mtoast-card.error .mtoast-icon-wrap {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
}
.mtoast-card.error .mtoast-icon-wrap::before { background: #ef4444; }
.mtoast-card.error .mtoast-title { color: #991b1b; }
.mtoast-card.error .mtoast-progress { background: linear-gradient(90deg, #ef4444, #f87171); }
.mtoast-card.warning .mtoast-icon-wrap {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}
.mtoast-card.warning .mtoast-icon-wrap::before { background: #f59e0b; }
.mtoast-card.warning .mtoast-title { color: #92400e; }
.mtoast-card.warning .mtoast-progress { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.mtoast-card.info .mtoast-icon-wrap {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}
.mtoast-card.info .mtoast-icon-wrap::before { background: #3b82f6; }
.mtoast-card.info .mtoast-title { color: #1e40af; }
.mtoast-card.info .mtoast-progress { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.mtoast-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.2px; }
.mtoast-message {
  font-size: 14px; color: #64748b; line-height: 1.9;
  margin-bottom: 20px;
  white-space: pre-line; word-break: break-word;
}
.mtoast-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; min-width: 110px;
  padding: 11px 26px; border: none;
  border-radius: 12px; font-family: inherit;
  font-size: 14px; font-weight: 700;
  color: #fff; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.mtoast-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.mtoast-btn:active { transform: translateY(0); }
.mtoast-card.success .mtoast-btn { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35); }
.mtoast-card.error .mtoast-btn { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35); }
.mtoast-card.warning .mtoast-btn { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35); }
.mtoast-card.info .mtoast-btn { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35); }
.mtoast-progress {
  position: absolute; bottom: 0; right: 0; left: 0;
  height: 4px; border-radius: 0 0 22px 22px;
  transform-origin: right;
  animation: mtoastProgress linear forwards;
}
@keyframes mtoastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
.mtoast-close {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b; font-size: 14px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s ease;
}
.mtoast-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  transform: rotate(90deg);
}

/* =========================================================
   24) REFERRAL PAGE
   ========================================================= */
.ref-wrap { max-width: 760px; margin: 28px auto 60px; padding: 0 14px; }

.ref-activate-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 520px; margin: 20px auto;
}
.ref-activate-icon {
  width: 88px; height: 88px; margin: 0 auto 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid; place-items: center;
  font-size: 42px;
  box-shadow: 0 14px 34px rgba(232,64,44,.32);
}
.ref-activate-title {
  font-size: 20px; font-weight: 800;
  color: var(--navy); margin: 0 0 12px;
}
.ref-activate-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.9; margin: 0 0 26px;
}
.ref-btn-activate {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border: none;
  border-radius: 14px; padding: 14px 38px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 26px rgba(232,64,44,.32);
  transition: transform .15s ease, box-shadow .2s ease;
}
.ref-btn-activate:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232,64,44,.4); }
.ref-btn-activate:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.ref-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f3 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}
.ref-hero::before {
  content: ""; position: absolute; inset: -2px;
  background:
    radial-gradient(400px 120px at 100% 0%, rgba(0,149,246,.08), transparent 70%),
    radial-gradient(360px 140px at 0% 100%, rgba(232,64,44,.08), transparent 70%);
  pointer-events: none;
}
.ref-hero-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.ref-hero-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid; place-items: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(232,64,44,.3);
  flex-shrink: 0;
}
.ref-hero-text h1 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.ref-hero-text p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

.ref-code-box {
  position: relative; z-index: 1;
  background: #fff;
  border: 2px dashed rgba(232,64,44,.3);
  border-radius: 14px;
  padding: 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ref-code-label { font-size: 12px; color: var(--muted); }
.ref-code-value {
  font-size: 26px; font-weight: 800;
  color: var(--brand); letter-spacing: 2px;
  direction: ltr; font-family: monospace;
}
.ref-copy-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border: none;
  border-radius: 10px; padding: 9px 22px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px rgba(232,64,44,.28);
  transition: transform .15s ease;
}
.ref-copy-btn:hover { transform: translateY(-1px); }

.ref-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(30,42,82,.05);
  border-radius: 14px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none;
}
.ref-tabs::-webkit-scrollbar { display: none; }
.ref-tab {
  flex: 1; min-width: 90px;
  padding: 10px 12px;
  border: none; background: transparent;
  border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; transition: all .2s ease; white-space: nowrap;
}
.ref-tab.active {
  background: #fff; color: var(--navy);
  box-shadow: 0 2px 6px rgba(16,24,40,.08);
}
.ref-tab:hover:not(.active) { color: var(--navy); }

.ref-panel { display: none; }
.ref-panel.active { display: block; animation: fadeUp .3s ease; }
.ref-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}
.ref-card-title {
  font-size: 15px; font-weight: 800;
  color: var(--navy); margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.ref-card-title i { color: var(--brand); }
.ref-loading {
  text-align: center; padding: 40px 20px;
  color: var(--muted); font-size: 13px;
}
.ref-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(232,64,44,.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-left: 6px; vertical-align: middle;
}

/* =========================================================
   25) RESPONSIVE
   ========================================================= */
@media (min-width: 768px){
  .service-grid{ grid-template-columns: repeat(4,1fr); }
  .login-type-grid{ grid-template-columns: repeat(4,1fr); }
  .stats-grid{ grid-template-columns: repeat(4,1fr); }
  .reg-list{ flex-direction:row; }
  .reg-item{ flex:1; flex-direction:column; align-items:flex-start; text-align:right; }
  .cta-banner{ display:flex; align-items:center; justify-content:space-between; padding:40px; }
  .cta-banner .cta-illustration{ margin-top:0; }
}
@media (min-width: 992px){
  .bottom-nav{ display:none; }
  body{ padding-bottom:0; }
  .site-footer .copy-bar{ padding-bottom:14px; }
  .why-list, .why-list .why-item{ flex: 1 1 auto; }
  .why-list{ flex-direction:row; flex-wrap:wrap; }
  .why-item{ flex:1 1 calc(50% - 5px); }
}
@media (min-width: 576px) and (max-width: 991.98px){
  .service-grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 767.98px){
  .site-header .brand .brand-logo-full { height: 22px; width: auto; }
}
@media (max-width: 380px){
  .site-header .brand .brand-logo-full { height: 20px; }
}
@media (max-width: 480px){
  .auth-card { padding: 30px 22px; border-radius: 22px; }
  .auth-title { font-size: 21px; }
  .otp-cards { gap: 8px; }
  .otp-digit { width: 48px; height: 58px; font-size: 24px; border-radius: 13px; }
  .role-modal-body { padding: 28px 20px 24px !important; }
  .role-modal-title { font-size: 19px; }
  .role-btn { padding: 12px 14px; border-radius: 16px; }
  .role-btn-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
  .role-btn-title { font-size: 13.5px; }
  .role-btn-desc { font-size: 10.5px; }
  .profile-wrap { margin: 14px auto 40px; padding: 0 10px; }
  .hero-card { padding: 16px; }
  .avatar-big { width: 64px; height: 64px; font-size: 24px; }
  .profile-name { font-size: 18px; }
  .register-wrap { margin-top: 16px; padding: 0 10px; }
  .student-hero-card { padding: 20px 16px 18px; border-radius: 16px; }
  .form-title { font-size: 18px; }
  .verified-avatar { width: 40px; height: 40px; font-size: 15px; }
  .verified-name { font-size: 14px; }
  .ig-tick { width: 20px; height: 20px; }
  .step2-actions { flex-direction: column-reverse; gap: 10px; }
  .step2-actions > .step2-actions-group { width: 100%; flex-direction: column; }
  .step2-actions .btn { width: 100%; }
  .mtoast-card { padding: 28px 20px 20px; border-radius: 18px; }
  .mtoast-icon-wrap { width: 64px; height: 64px; }
  .mtoast-icon-wrap i { font-size: 30px; }
  .mtoast-title { font-size: 16px; }
  .mtoast-message { font-size: 13px; }
  .profile-complete-card { flex-direction: column; text-align: center; padding: 18px 14px; }
  .pcc-icon { width: 56px; height: 56px; font-size: 26px; }
  .pcc-body { text-align: center; }
  .pcc-btn { width: 100%; justify-content: center; margin-top: 4px; }
}
@media (max-width: 520px){
  .profile-complete-card { flex-direction: column; text-align: center; }
}