/* Static mockup mirroring resources/css/tokens.css + design system (Work Plan §4–5) */

:root {
  --primary:        #3A3FCC;
  --primary-hover:  #3236AD;
  --primary-subtle: #EEF0FF;
  --accent:         #007AFF;
  --secondary:      #0F9B8E;

  --success:        #248A3D;
  --warning:        #FF9500;
  --danger:         #D70015;
  --info:           #0071E3;

  --bg-canvas:      #F2F2F7;
  --bg-surface:     #FFFFFF;
  --bg-elevated:    #FFFFFF;
  --border:         #D1D1D6;
  --border-subtle:  #E5E5EA;
  --text-primary:   #000000;
  --text-secondary: #000000;
  --text-tertiary:  #000000;

  --logo-a: #3A3FCC;
  --logo-b: #5E5CE6;

  --module-students:   #3A3FCC;
  --module-admissions: #5E5CE6;
  --module-academics:  #0F9B8E;
  --module-attendance: #248A3D;
  --module-exams:      #0071E3;
  --module-homework:   #00A3A3;
  --module-finance:    #C93400;
  --module-accounting: #8E4EC6;
  --module-hr:         #AF52DE;
  --module-payroll:    #B25000;
  --module-transport:  #F56300;
  --module-library:    #A2845E;
  --module-inventory:  #636366;
  --module-clinic:     #D30F45;
  --module-reports:    #48484A;

  --radius-card:    12px;
  --radius-control: 10px;
  --radius-pill:    999px;
  --shadow-sm:      0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);

  --font-latin:  Inter, "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-arabic: "Almarai", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --font-display: "Almarai", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* Directional Icon Mirroring & Multi-language Fonts */
[dir="rtl"] .icon-directional { transform: scaleX(-1); }
[dir="ltr"] .icon-directional { transform: scaleX(1); }

[lang="en"], [lang="fr"] {
  font-family: var(--font-latin);
}
[lang="ar"] {
  font-family: var(--font-arabic);
}

/* Language Switcher Styling */
.lang-select-wrap {
  display: inline-flex;
  align-items: center;
}
.lang-select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.lang-select:hover, .lang-select:focus {
  border-color: var(--primary);
}

[data-theme="dark"] {
  --primary:        #7A7FF0;
  --primary-hover:  #8E93F5;
  --primary-subtle: #1E1F42;
  --accent:         #0A84FF;
  --secondary:      #2DD4BF;

  --success:        #30D158;
  --warning:        #FF9F0A;
  --danger:         #FF453A;
  --info:           #64D2FF;

  --bg-canvas:      #000000;
  --bg-surface:     #1C1C1E;
  --bg-elevated:    #2C2C2E;
  --border:         #38383A;
  --border-subtle:  #2C2C2E;
  --text-primary:   #F2F2F7;
  --text-secondary: rgba(235,235,245,.82);
  --text-tertiary:  rgba(235,235,245,.65);

  --logo-a: #7A7FF0;
  --logo-b: #BF5AF2;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font-arabic);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .logo { font-family: var(--font-display); font-weight: 800; letter-spacing: -.015em; }

/* smooth theme switching */
body, .card, .sidebar, .panel, .site-nav, .search, .btn, .input, .stat,
.feature, .plan, .mock, .modal, .segment, .topbar .btn-icon, .logo-mark {
  transition: background-color .28s ease, border-color .28s ease, color .2s ease, box-shadow .28s ease;
}

::selection { background: var(--primary-subtle); color: var(--primary); }

/* ================= animation library ================= */
@keyframes f-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes f-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: .9; }
}
@keyframes blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-38px, 26px) scale(1.12); }
  66%      { transform: translate(30px, -18px) scale(.94); }
}
@keyframes blob-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(42px, 22px) scale(1.08); }
  70%      { transform: translate(-26px, -30px) scale(.9); }
}
@keyframes shine {
  0%   { transform: translateX(120%) skewX(-20deg); }
  100% { transform: translateX(-160%) skewX(-20deg); }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-in-bg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(.86); }
  70%  { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left  { transform: translateX(-26px); }
.reveal-left.in, .reveal-right.in { transform: none; }
.reveal-right { transform: translateX(26px); }

/* entering animations */
.animate-in { animation: f-up .8s cubic-bezier(.2,.7,.3,1) both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .48s; }
.delay-5 { animation-delay: .60s; }

.anim-float { animation: float-y 7s ease-in-out infinite; }
.glow { animation: glow-pulse 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- primitives ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--logo-a), var(--logo-b));
  color: #FFF;
  box-shadow: 0 6px 18px rgba(58,63,204,.28);
}
.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(58,63,204,.36);
  transform: translateY(-1px);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(120%) skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::after { animation: shine .9s ease; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-canvas); }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  color: var(--text-primary);
}
.btn-icon svg { width: 20px; height: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}
.input::placeholder { color: var(--text-tertiary); }

/* ================= Enterprise Combobox & Custom Select Styling ================= */
select, .select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 46px;
  padding: 0 42px 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-control);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  /* Custom SVG Chevron Arrow for RTL & LTR */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23818CF8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 18px 18px;
}

[dir="rtl"] select, [dir="rtl"] .select {
  padding: 0 16px 0 42px;
  background-position: left 14px center;
}

[dir="ltr"] select, [dir="ltr"] .select {
  padding: 0 42px 0 16px;
  background-position: right 14px center;
}

select:hover, .select:hover {
  border-color: var(--primary);
  background-color: var(--bg-elevated, var(--bg-surface));
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.15);
}

select:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background-color: var(--bg-surface);
}

/* Styling native option popups for dark/light themes */
select option, .select option {
  background-color: #1C1C1E !important;
  color: #F2F2F7 !important;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
}

[data-theme="light"] select option, [data-theme="light"] .select option {
  background-color: #FFFFFF !important;
  color: #1C1C1E !important;
}

select option:hover, select option:focus, select option:active, select option:checked {
  background-color: var(--primary) !important;
  color: #FFFFFF !important;
}

/* Custom Combobox UI Component */
.custom-combobox {
  position: relative;
  width: 100%;
}

.combobox-trigger {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.combobox-trigger:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
}

.combobox-trigger.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.combobox-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  max-height: 260px;
  overflow-y: auto;
  z-index: 999;
  display: none;
  padding: 8px;
}

.combobox-menu.open {
  display: block;
  animation: f-up 0.2s ease;
}

.combobox-item {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.combobox-item:hover, .combobox-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  color: #FFF;
  flex: none;
}
.icon-box svg { width: 18px; height: 18px; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--logo-a), var(--logo-b));
  color: #FFF;
  font-weight: 700;
  font-size: 13px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 17px;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--logo-a), var(--logo-b));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: var(--shadow-sm);
}
.logo-mark svg { width: 20px; height: 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.badge-green  { background: rgba(36,138,61,.12);  color: var(--success); }
.badge-red    { background: rgba(215,0,21,.10);   color: var(--danger); }
.badge-orange { background: rgba(255,149,0,.15);  color: var(--warning); }
.badge-indigo { background: var(--primary-subtle); color: var(--primary); }

.tabular { font-variant-numeric: tabular-nums; }

/* theme toggle visibility */
[data-theme="dark"] .toggle-sun  { display: inline-flex; }
[data-theme="dark"] .toggle-moon { display: none; }
[data-theme="dark"]    .icon-sun  { display: inline-flex; }
[data-theme="dark"]    .icon-moon { display: none; }
.toggle-sun  { display: none; }
.toggle-moon { display: inline-flex; }

/* ================= login page ================= */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  height: 100vh;
}
.login-brand {
  margin-bottom: 36px;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}
.login-card h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.login-card p { margin: 0 0 26px; color: var(--text-secondary); }
.login-card .field { margin-bottom: 16px; }
.login-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.login-actions .btn { width: 100%; height: 46px; }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-tertiary); font-size: 12px; margin: 18px 0;
}
.login-divider::before, .login-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-subtle);
}
.login-footer { color: var(--text-tertiary); font-size: 12px; text-align: center; margin-top: 24px; }

.promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(94,92,230,.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(15,155,142,.22), transparent 60%),
    linear-gradient(160deg, #23243E, #101018);
  color: #F2F2F7;
  padding: 48px;
}
.promo-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 0%, transparent 75%);
}
.promo-content {
  position: relative;
  max-width: 540px;
  text-align: center;
  z-index: 1;
}
.promo-content h2 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 700; }
.promo-content p { color: rgba(242,242,247,.65); margin: 0 0 8px; }
.promo-content .promo-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px;
}
.promo-badges .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(242,242,247,.85);
}
.pill svg { width: 16px; height: 16px; color: #8E93F5; }

/* ================= dashboard ================= */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--bg-surface);
  border-inline-end: 1px solid var(--border-subtle);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.sidebar .logo { padding: 0 8px; margin-bottom: 18px; }
.side-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--radius-control);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav-item.active { background: var(--primary-subtle); color: var(--primary); }
.nav-item.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.nav-item:hover:not(.active) { background: var(--bg-canvas); }
.nav-label { flex: 1; }
.nav-badge {
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.nav-item.active .nav-badge { background: var(--primary); color: #FFF; }

.sidebar-foot {
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-foot .u-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.sidebar-foot .u-role { font-size: 11px; color: var(--text-tertiary); }
.sidebar-foot .avatar { width: 38px; height: 38px; }

.main { padding: 20px 28px 44px; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  position: relative;
}
.topbar .search {
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  color: var(--text-tertiary);
}
.search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.search input::placeholder { color: var(--text-tertiary); }

/* الشعار والاسم الخطي الاحترافي للمدرسة في أعلى منتصف الشاشة */
.school-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.school-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(58,63,204,0.18), rgba(16,185,129,0.12));
  border: 1px solid rgba(96,165,250,0.3);
  padding: 6px 24px;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.school-header-title {
  font-family: 'Aref Ruqaa', 'Amiri', 'Almarai', serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(135deg, #93C5FD 0%, #34D399 50%, #Fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(52, 211, 153, 0.3);
  letter-spacing: 0.2px;
}
.topbar-spacer { flex: 1; }
.topbar .btn-icon { position: relative; }
.notif-dot {
  position: absolute; top: 10px; inset-inline-end: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg-surface);
}

.page-title { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.page-sub { margin: 0 0 22px; color: var(--text-secondary); font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat-delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-two { grid-column: span 2; }

.panel { padding: 20px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-head .link { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; }

.mlist { display: flex; flex-direction: column; }
.m-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.m-row:last-child { border-bottom: none; }
.m-name { font-weight: 600; font-size: 13px; }
.m-meta { color: var(--text-tertiary); font-size: 12px; }
.m-spacer { flex: 1; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: start;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
table.data td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
td.cell-main { font-weight: 600; }
td.cell-sub { color: var(--text-tertiary); font-size: 12px; }

.mini-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  margin-inline-end: 10px;
  vertical-align: middle;
}

.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  gap: 2px;
}
.seg button {
  border: none; background: transparent;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.seg button.active { background: var(--bg-surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.progress-track { height: 6px; border-radius: 3px; background: var(--border-subtle); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--primary); }

.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 10px; }
.chart-bars .bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--logo-b));
  opacity: .9;
  min-height: 6px;
}
.chart-bars .bar:nth-child(2n) { background: linear-gradient(180deg, var(--secondary), #0F9B8E); }
.chart-labels { display: flex; gap: 10px; margin-top: 8px; }
.chart-labels span {
  flex: 1; text-align: center; color: var(--text-tertiary); font-size: 11px;
}

/* ================= landing / marketing page ================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg-canvas) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-nav .inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.sec { max-width: 1180px; margin-inline: auto; padding: 78px 24px 0; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 30px; }
.hero h1 {
  margin: 18px 0;
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: -.03em;
  font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--logo-a), var(--logo-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--text-secondary); font-size: 17px; margin: 0 0 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { height: 48px; padding: 0 24px; }
.hero-note { margin-top: 14px; color: var(--text-tertiary); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }

/* hero atmosphere */
.hero { position: relative; z-index: 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(860px 420px at 50% -12%, var(--primary-subtle), transparent 70%);
  border-radius: 0 0 30px 30px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: -1;
}
.blob-a {
  width: 430px; height: 430px;
  left: -130px; top: -70px;
  background: radial-gradient(circle at 30% 30%, rgba(58,63,204,.32), transparent 65%);
  animation: blob-drift-a 16s ease-in-out infinite;
  opacity: .7;
}
.blob-b {
  width: 380px; height: 380px;
  inset-inline-end: -90px; bottom: -130px;
  background: radial-gradient(circle at 70% 40%, rgba(15,155,142,.28), transparent 65%);
  animation: blob-drift-b 22s ease-in-out infinite;
  opacity: .6;
}
.hero h1 .grad {
  background-size: 220% auto;
  animation: gradient-pan 8s ease infinite;
}
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.mock::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  border-radius: 30px;
  background: radial-gradient(60% 60% at 50% 42%, rgba(94,92,230,.20), transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite;
}
.mock-main .barrow { height: 26px; border-radius: 8px; }
.float-chip { animation: pop-in .7s cubic-bezier(.2,.7,.3,1) both; }
.float-chip.bottom { animation-delay: .55s; }
.float-chip.top { animation-delay: .7s; }

.site-nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.feature { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .28s ease; }
.feature:hover { transform: translateY(-4px); }

.plan { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .28s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.chart-bars .bar { animation: bar-grow .8s cubic-bezier(.2,.7,.3,1) both; transform-origin: bottom; }
.chart-bars .bar:nth-child(1) { animation-delay: .05s; }
.chart-bars .bar:nth-child(2) { animation-delay: .12s; }
.chart-bars .bar:nth-child(3) { animation-delay: .19s; }
.chart-bars .bar:nth-child(4) { animation-delay: .26s; }
.chart-bars .bar:nth-child(5) { animation-delay: .33s; }
.chart-bars .bar:nth-child(6) { animation-delay: .40s; }

.stat-value { transition: color .2s ease; }

.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: conic-gradient(from 200deg at 50% 45%,
    transparent 0deg, rgba(94,92,230,.28) 60deg,
    transparent 140deg, rgba(15,155,142,.20) 220deg,
    transparent 320deg);
  animation: blob-drift-b 18s linear infinite;
}
.cta-band > * { position: relative; z-index: 1; }

.seg button { transition: color .15s ease, background .2s ease, box-shadow .2s ease; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
}
.badge-pill svg { width: 15px; height: 15px; }

.mock {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: 0 20px 80px rgba(99, 102, 241, 0.16), 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 16px 18px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
}
.mock .mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.mock .mock-bar i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.mock .mock-bar i:nth-child(1) { background: #FF5F57; }
.mock .mock-bar i:nth-child(2) { background: #FEBC2E; }
.mock .mock-bar i:nth-child(3) { background: #28C840; }
.mock-title {
  font-size: 11px; color: var(--text-tertiary); font-weight: 600; margin-inline-start: 4px; white-space: nowrap;
}
.mock-nav-tabs {
  margin-inline-start: auto;
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 3px; border-radius: 10px;
  border: 1px solid var(--border-subtle);
}
.mock-tab {
  background: transparent; border: none;
  color: var(--text-secondary);
  padding: 3px 9px; border-radius: 7px;
  font-size: 10.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
  font-family: inherit;
}
.mock-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.mock-tab.active {
  background: var(--primary); color: #ffffff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}
.mock-tab-content {
  display: none;
  animation: fadeInMock 0.35s ease forwards;
  flex: 1;
}
.mock-tab-content.active {
  display: flex; flex-direction: column; justify-content: space-between;
}
@keyframes fadeInMock {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mock-metrics-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.mock-m-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 5px;
  transition: transform 0.2s ease;
}
.mock-m-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.3);
}
.mock-m-header { display: flex; align-items: center; gap: 6px; }
.mock-icon-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mock-icon-dot.pulse-green {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreenDot 2s infinite;
}
@keyframes pulseGreenDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.mock-m-title { font-size: 10.5px; color: var(--text-tertiary); font-weight: 500; }
.mock-m-val {
  font-size: 14.5px; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
}
.mock-m-val small { font-size: 10px; font-weight: 500; color: var(--text-tertiary); }
.mock-pill-green {
  font-size: 9px; background: rgba(16,185,129,0.15); color: #10b981;
  padding: 2px 5px; border-radius: 6px; font-weight: 600;
}
.mock-pill-purple {
  font-size: 9px; background: rgba(139,92,246,0.15); color: #a78bfa;
  padding: 2px 5px; border-radius: 6px; font-weight: 600;
}
.mock-progress-bg {
  width: 100%; height: 5px; background: rgba(255,255,255,0.08);
  border-radius: 3px; overflow: hidden;
}
.mock-progress-bg.lg { height: 8px; border-radius: 4px; }
.mock-progress-fill { height: 100%; border-radius: 3px; transition: width 1s ease-in-out; }
.mock-live-ticker {
  margin-top: 10px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px; padding: 7px 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
}
.ticker-badge {
  background: var(--primary); color: #fff;
  padding: 2px 7px; border-radius: 6px;
  font-weight: 700; font-size: 9.5px; white-space: nowrap;
}
.ticker-text {
  color: var(--text-secondary); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}
.mock-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.02);
}
.mock-mini-table {
  width: 100%; border-collapse: collapse; font-size: 10.5px; text-align: right;
}
.mock-mini-table th {
  padding: 7px 8px; background: rgba(255,255,255,0.05);
  color: var(--text-tertiary); font-weight: 600; border-bottom: 1px solid var(--border-subtle);
}
.mock-mini-table td {
  padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
.mock-mini-table tr:last-child td { border-bottom: none; }
.mock-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 600;
}
.mock-badge.green { background: rgba(16,185,129,0.15); color: #10b981; }
.mock-badge.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.mock-badge.yellow { background: rgba(245,158,11,0.15); color: #fbbf24; }
.mock-badge.orange { background: rgba(249,115,22,0.15); color: #fb923c; }
.mock-table-footer {
  margin-top: 8px; font-size: 10px; color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mock-finance-box {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.mock-fin-row { display: flex; align-items: center; justify-content: space-between; }
.mock-fin-label { font-size: 10.5px; color: var(--text-tertiary); margin-bottom: 3px; }
.mock-fin-amount { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.mock-fin-amount small { font-size: 11px; color: var(--text-tertiary); }
.mock-fin-sub { font-size: 10px; color: var(--text-tertiary); font-weight: 500; margin-inline-start: 6px; }
.mock-badge.green-lg {
  background: rgba(16,185,129,0.2); color: #10b981;
  border: 1px solid rgba(16,185,129,0.3); padding: 5px 10px; border-radius: 20px; font-size: 10px;
}
.mock-fin-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.mock-fin-tags span {
  font-size: 9.5px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
  padding: 3px 7px; border-radius: 6px; color: var(--text-secondary);
}
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md); border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: 12px; font-weight: 600;
}
.float-chip.green { color: var(--success); }
.float-chip.indigo { color: var(--primary); }
.float-chip.gold { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.float-chip.bottom { bottom: -18px; inset-inline-end: 18px; }
.float-chip.top { top: -14px; inset-inline-start: -18px; }
.float-chip.bottom-left { bottom: -18px; inset-inline-start: 18px; }

.trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 58px;
  padding: 22px 6px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 13px;
}
.trust b { color: var(--text-secondary); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

.sec-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.sec-head h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.02em; }
.sec-head p { margin: 0; color: var(--text-secondary); font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feature:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.feature h3 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 13.5px; }

.security-band {
  margin-top: 26px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(140deg, var(--primary-subtle), var(--bg-surface) 55%);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}
.security-band h3 { margin: 0 0 8px; font-size: 19px; }
.security-band p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.security-points { display: flex; flex-direction: column; gap: 12px; }
.security-points .row { display: flex; gap: 10px; align-items: flex-start; color: var(--text-primary); font-size: 13.5px; }
.security-points svg { flex: none; color: var(--secondary); margin-top: 2px; }

/* pricing */
.billing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 13.5px;
  font-weight: 600;
}
.billing .save { color: var(--success); font-size: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.plan.featured { border: 1.5px solid var(--primary); box-shadow: 0 18px 50px rgba(58,63,204,.16); }
.plan-tag {
  position: absolute;
  top: -12px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  direction: rtl;
  transform: translateX(50%);
  background: var(--primary);
  color: #FFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.plan h3 { margin: 0 0 4px; font-size: 17px; }
.plan .plan-desc { margin: 0 0 18px; color: var(--text-tertiary); font-size: 13px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan .price .val { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.plan .price .per { color: var(--text-tertiary); font-size: 13px; font-weight: 500; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-primary); }
.plan li svg { flex: none; color: var(--secondary); margin-top: 3px; }
.plan li.muted { color: var(--text-tertiary); }
.plan .btn { width: 100%; height: 46px; margin-top: auto; }
.plan .btn-ghost:hover { background: var(--primary-subtle); color: var(--primary); border-color: var(--primary); }

.cta-band {
  margin-top: 26px;
  border-radius: 22px;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(94,92,230,.35), transparent 60%),
    linear-gradient(160deg, #23243E, #101018);
  color: #F2F2F7;
}
.cta-band h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.02em; }
.cta-band p { margin: 0 auto 26px; max-width: 520px; color: rgba(242,242,247,.65); }

.footer {
  margin-top: 70px;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 24px;
}
.footer .inner {
  max-width: 1180px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  color: var(--text-tertiary); font-size: 13px;
}

/* modals */
/* modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-backdrop::-webkit-scrollbar { display: none; }
.modal-backdrop.open {
  display: flex;
  animation: fade-in-bg .25s ease both;
}
.modal {
  position: relative;
  width: 94%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
  margin: auto;
}
.modal::-webkit-scrollbar { display: none; }
.modal.modal-wide {
  max-width: 780px;
  width: 95%;
}
.modal.modal-extra-wide {
  max-width: 960px;
  width: 96%;
}

.modal-backdrop.open .modal { animation: modal-in .38s cubic-bezier(.2,.7,.3,1) both; }
.modal h2 { margin: 0 0 6px; font-size: 20px; font-family: var(--font-display); }
.modal .sub { margin: 0 0 22px; color: var(--text-secondary); font-size: 13.5px; }
.modal .field { margin-bottom: 14px; }

.modal-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px; /* left in Arabic, right in English */
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: var(--danger);
  color: #FFF;
  border-color: var(--danger);
  transform: rotate(90deg);
}

.modal .plan-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-control);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.modal .btn { width: 100%; height: 46px; }
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.modal-actions .btn {
  width: auto;
  min-width: 120px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 20px;
    width: 98%;
  }
}

.modal-v-ghost {
  display: block;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12.5px;
  margin-top: 14px;
  text-decoration: none;
}
.plan-v-ghost:hover { color: var(--accent); }

/* Password Visibility Toggle */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-password-wrap .input {
  width: 100%;
  padding-inline-end: 42px;
}
.btn-toggle-pw {
  position: absolute;
  inset-inline-end: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  transition: color .2s ease;
}
.btn-toggle-pw:hover {
  color: var(--primary);
}
.btn-toggle-pw svg {
  width: 18px;
  height: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* OTP Code Box for Email Verification */
.otp-box {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0;
  direction: ltr;
}
.otp-input {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.otp-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

@media (max-width: 1100px) {
  .login-wrap { grid-template-columns: 1fr; }
  .promo { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .span-two { grid-column: span 1; }
  .shell { grid-template-columns: 220px 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .feature-grid, .pricing-grid, .security-band { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .float-chip.top { inset-inline-start: 0; }
}