/* ============================================================
   WebFinancial — Design System
   فونت: Vazirmatn | پالت: Navy + Teal | RTL
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --c-primary:       #1E40AF;
  --c-primary-dark:  #1E3A8A;
  --c-primary-light: #3B82F6;
  --c-secondary:     #0D9488;
  --c-accent:        #6366F1;
  --c-success:       #059669;
  --c-warning:       #D97706;
  --c-danger:        #DC2626;
  --c-bg:            #F1F5F9;
  --c-surface:       #FFFFFF;
  --c-border:        #E2E8F0;
  --c-text:          #1E293B;
  --c-text-muted:    #64748B;
  --c-sidebar-bg:    #0F172A;
  --c-sidebar-text:  #CBD5E1;
  --c-sidebar-hover: rgba(255,255,255,0.07);
  --c-sidebar-active:#3B82F6;
  --shadow-sm:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:       0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:       0 10px 30px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.07);
  --radius:          12px;
  --radius-sm:       8px;
  --radius-lg:       16px;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  direction: rtl;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif !important;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
  margin: 0; padding: 0;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* همه عناصر MudBlazor فارسی باشند */
* { font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif !important; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Page wrapper ─────────────────────────────────────────── */
.page-content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeUp .25s ease;
}

/* ── Sidebar override ─────────────────────────────────────── */
.mud-drawer {
  background: var(--c-sidebar-bg) !important;
  border-left: none !important;
  border-right: none !important;
  /* کشیده شدن تا انتهای صفحه */
  min-height: calc(100vh - 64px) !important;
  /* خط جداکننده زیر هدر */
  border-top: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: -4px 0 16px rgba(0,0,0,.25) !important;
}
/* اطمینان از پر شدن پس‌زمینه تا انتها */
.mud-drawer-content {
  overflow-x: hidden !important;
  background: var(--c-sidebar-bg) !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
/* ناحیه زیر منو‌ها هم رنگ داشته باشد */
.mud-drawer::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  top: 0;
  background: var(--c-sidebar-bg);
  z-index: -1;
}

/* wrapper داخل drawer */
.nav-menu-wrap {
  padding-top: 12px;
}

/* برچسب‌های بخش */
.nav-section-label {
  color: #64748B;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px 4px;
  margin-top: 4px;
}

/* خط جداکننده سبک‌تر */
.nav-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 8px 12px;
}

/* ── NavLink RTL-friendly ─────────────────────────────────── */
.mud-nav-link {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;   /* icon سمت راست، متن سمت چپ در RTL */
  color: var(--c-sidebar-text) !important;
  border-radius: var(--radius-sm) !important;
  margin: 2px 8px !important;
  padding: 9px 12px !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  gap: 10px !important;
  transition: background .15s ease, color .15s ease !important;
  text-decoration: none !important;
}
.mud-nav-link:hover {
  background: rgba(255,255,255,.07) !important;
  color: #fff !important;
}
/* active: هم کلاس Blazor هم MudBlazor */
.mud-nav-link.active,
.mud-nav-link-active {
  background: rgba(59,130,246,.18) !important;
  color: #93C5FD !important;
  font-weight: 600 !important;
}

/* آیکون داخل NavLink */
.mud-nav-link .mud-icon-root,
.mud-nav-link .mud-nav-link-icon,
.mud-nav-link .mud-nav-link-icon-default {
  color: inherit !important;
  font-size: 20px !important;
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  opacity: .85;
}
.mud-nav-link.active   .mud-icon-root,
.mud-nav-link-active   .mud-icon-root { opacity: 1; }

.mud-nav-group .mud-nav-group-title { color: var(--c-sidebar-text) !important; }
.mud-nav-group-toggle-icon          { color: var(--c-sidebar-text) !important; }

/* ── AppBar override ──────────────────────────────────────── */
.mud-appbar {
  background: linear-gradient(90deg, var(--c-primary-dark) 0%, var(--c-primary) 100%) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.45) !important;
  min-height: 64px !important;
  /* مرز واضح با محتوای زیر */
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
/* همه متن‌ها و آیکون‌های داخل AppBar سفید */
.mud-appbar .mud-typography,
.mud-appbar .mud-text {
  color: white !important;
}

/* Force RTL on toolbar — بدون این Edge.Start سمت چپ می‌ماند */
.mud-toolbar,
.mud-toolbar-appbar {
  direction: rtl !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

/* Edge buttons در RTL */
.mud-icon-button.mud-icon-button-edge-start {
  margin-right: -12px !important;
  margin-left: 0 !important;
}
.mud-icon-button.mud-icon-button-edge-end {
  margin-left: -12px !important;
  margin-right: 0 !important;
}

/* ── Cards / Papers ───────────────────────────────────────── */
.mud-paper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--c-border) !important;
}
.mud-paper:hover { box-shadow: var(--shadow-md) !important; }

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius) !important;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) !important; }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat-card.blue::before  { background: var(--c-primary); }
.stat-card.teal::before  { background: var(--c-secondary); }
.stat-card.red::before   { background: var(--c-danger); }
.stat-card.amber::before { background: var(--c-warning); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-icon.blue  { background: rgba(30,64,175,.1);  color: var(--c-primary); }
.stat-icon.teal  { background: rgba(13,148,136,.1); color: var(--c-secondary); }
.stat-icon.red   { background: rgba(220,38,38,.1);  color: var(--c-danger); }
.stat-icon.amber { background: rgba(217,119,6,.1);  color: var(--c-warning); }
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
  direction: ltr;
  display: block;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--c-text-muted); font-weight: 500; }

/* ── Table overrides ──────────────────────────────────────── */
.mud-table-root { direction: rtl !important; }
.mud-table-head .mud-table-cell {
  background: #F8FAFC !important;
  color: var(--c-text-muted) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--c-border) !important;
  padding: 12px 16px !important;
}
.mud-table-body .mud-table-row:hover { background: #F8FAFC !important; }
.mud-table-body .mud-table-cell { padding: 13px 16px !important; font-size: 13.5px !important; }

/* ── Badges / Chips ───────────────────────────────────────── */
.mud-chip { border-radius: 6px !important; font-size: 12px !important; font-weight: 600 !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.mud-button-root { border-radius: var(--radius-sm) !important; font-weight: 600 !important; font-size: 13px !important; }
.mud-button-filled.mud-button-filled-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%) !important;
  box-shadow: 0 4px 14px rgba(30,64,175,.35) !important;
}
.mud-button-filled.mud-button-filled-primary:hover {
  box-shadow: 0 6px 20px rgba(30,64,175,.45) !important;
}

/* ── Text Fields ──────────────────────────────────────────── */
.mud-input-outlined .mud-notch { border-color: var(--c-border) !important; border-radius: var(--radius-sm) !important; }
.mud-input-outlined:hover .mud-notch { border-color: var(--c-primary-light) !important; }
.mud-input-outlined.mud-input-outlined-adorned-end { direction: rtl !important; }

/* ── Pagination ───────────────────────────────────────────── */
.mud-pagination-item-page { border-radius: var(--radius-sm) !important; font-weight: 500 !important; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  display: flex; align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--c-border);
}
.section-header-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}

/* ── Chart Container ──────────────────────────────────────── */
.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}

/* ── Price Display ────────────────────────────────────────── */
.price { direction: ltr; display: inline-block; font-weight: 700; }
.price-primary { color: var(--c-primary); }
.price-success { color: var(--c-success); }
.price-danger  { color: var(--c-danger); }

/* ── Login Page ───────────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  background: var(--c-bg);
}
.login-panel-left {
  flex: 1;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-accent) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}
.login-panel-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -100px; right: -100px;
}
.login-panel-left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  bottom: -80px; left: -80px;
}
.login-panel-right {
  flex: 0 0 440px;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: var(--c-surface);
}
.login-logo-circle {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.12);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}
@media (max-width: 768px) {
  .login-panel-left { display: none; }
  .login-panel-right { flex: 1; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .3s ease; }

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}
.loading-pulse { animation: pulse-soft 1.5s ease infinite; }

/* ── Blazor Error UI ──────────────────────────────────────── */
#blazor-error-ui {
  background: #FEF3C7;
  border-top: 2px solid #D97706;
  bottom: 0; left: 0;
  padding: 10px 20px;
  position: fixed; width: 100%;
  z-index: 9999; display: none;
  font-size: 13px; color: #92400E;
}
#blazor-error-ui .reload { color: var(--c-primary); font-weight: 700; }

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .no-print, .mud-appbar, .mud-drawer { display: none !important; }
  body { background: white; direction: rtl; }
}

/* ── Error Box Component ──────────────────────────────────── */
.error-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  animation: fadeUp .2s ease;
  border: 1px solid transparent;
}
.error-box.error   { background:#FEF2F2; border-color:#FECACA; color:#991B1B; }
.error-box.warning { background:#FFFBEB; border-color:#FDE68A; color:#92400E; }
.error-box.info    { background:#EFF6FF; border-color:#BFDBFE; color:#1E40AF; }
.error-box-icon {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: .85;
}
.error-box-body { flex: 1; }
.error-box-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.error-box-msg   { font-size: 12.5px; opacity: .9; line-height: 1.5; }

/* ── Field Error ──────────────────────────────────────────── */
.field-error {
  font-size: 11.5px;
  color: var(--c-danger);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── Sort Bar ─────────────────────────────────────────────── */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--c-text-muted);
}
.sort-btn {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  background: white;
  cursor: pointer;
  font-size: 11.5px;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--c-text);
  transition: .15s;
  display: flex; align-items: center; gap: 3px;
}
.sort-btn:hover  { border-color: var(--c-primary-light); color: var(--c-primary); }
.sort-btn.active { background: var(--c-primary); color: white; border-color: var(--c-primary); }

/* ── Number direction fix ─────────────────────────────────── */
.num { direction: ltr; display: inline-block; }
.price-tag {
  direction: ltr;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-primary);
}

/* ── Card Section Title ───────────────────────────────────── */
.card-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}
.card-section-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Login Custom Inputs ──────────────────────────────────── */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.login-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  cursor: default;
}
.login-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  color: #1E293B;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.login-input:focus {
  border-color: #3B82F6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.login-input::placeholder { color: #CBD5E1; font-size: 13px; }

/* رمز عبور با دکمه چشم */
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-wrap .login-input {
  padding-left: 44px;   /* فضا برای دکمه چشم */
}
.login-eye-btn {
  position: absolute;
  left: 12px;
  top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.login-eye-btn:hover { background: #F1F5F9; }

/* دکمه ورود */
.login-btn {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E40AF 0%, #6366F1 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(30,64,175,.35);
  transition: opacity .2s, box-shadow .2s, transform .1s;
  letter-spacing: .2px;
}
.login-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(30,64,175,.45);
  transform: translateY(-1px);
}
.login-btn:active:not(:disabled) { transform: translateY(0); }
.login-btn:disabled { opacity: .7; cursor: not-allowed; }

/* اسپینر لودینگ */
.login-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MudBlazor Outlined Input RTL Fix ────────────────────── */
/* جلوگیری از overlap شدن label با border در RTL */
.mud-input-outlined .mud-input-label-outlined {
  right: 14px !important;
  left: auto !important;
  transform-origin: right center !important;
}
.mud-input-outlined .mud-input-label-outlined.mud-input-label-inputselect,
.mud-input-outlined .mud-input-label-outlined.mud-shrink {
  transform: translate(0, -22px) scale(.75) !important;
  background: white;
  padding: 0 4px;
  right: 10px !important;
  left: auto !important;
}
/* Notch باز شود در سمت راست برای RTL */
.mud-input-outlined fieldset {
  text-align: right !important;
}
.mud-input-outlined fieldset legend {
  margin-right: 8px !important;
  margin-left: auto !important;
  text-align: right !important;
}
/* آیکون adornment در RTL */
.mud-input-adornment-start {
  order: 1 !important;
}
.mud-input-slot {
  flex-direction: row-reverse;
}

/* ── Invoice Item Inputs ──────────────────────────────────── */
.item-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 13.5px;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  color: #1E293B;
  background: white;
  border: 1.5px solid #E2E8F0;
  border-radius: 7px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  /* مخفی کردن اسپینر مرورگر */
  -moz-appearance: textfield;
  appearance: textfield;
}
.item-input::-webkit-inner-spin-button,
.item-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.item-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.12);
  background: #FAFFFE;
}
.item-input::placeholder { color: #CBD5E1; font-size: 12px; }
.item-input-center { text-align: center; }
.item-input-ltr    { direction: ltr; text-align: left; }

/* ── Summary Panel Inputs ─────────────────────────────────── */
.summary-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-input-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.filter-btn {
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  white-space: nowrap;
}
.filter-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.filter-btn:disabled { opacity: .55; cursor: not-allowed; }
.filter-btn.primary {
  background: linear-gradient(135deg, #1E40AF, #6366F1);
  color: white;
  box-shadow: 0 4px 12px rgba(30,64,175,.3);
}
.filter-btn.success {
  background: white;
  color: #059669;
  border: 1.5px solid #059669;
}
.filter-btn.success:hover:not(:disabled) { background: #F0FDF4; }

/* ══════════════════════════════════════════════════════════
   Persian Date Picker — redesigned (21st.dev inspired)
   ══════════════════════════════════════════════════════════ */

/* wrapper */
.pdate-wrap {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 160px;
}
.pdate-label {
  font-size: 12.5px; font-weight: 600;
  color: #475569;
}

/* trigger input */
.pdate-input-wrap {
  position: relative; display: flex; align-items: center; cursor: pointer;
}
.pdate-icon {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  pointer-events: none; display: flex; align-items: center;
  color: #94A3B8; z-index: 1;
  transition: color .15s;
}
.pdate-input-wrap:hover .pdate-icon { color: #6366F1; }
.pdate-input {
  width: 100%; height: 42px;
  padding: 0 36px 0 14px;
  font-size: 13.5px;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl; text-align: right;
  color: #0F172A; background: #fff;
  border: 1.5px solid #E2E8F0; border-radius: 10px;
  outline: none; box-sizing: border-box; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
  caret-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
.pdate-input-wrap:hover .pdate-input { border-color: #C7D2FE; background: #FAFBFF; }
.pdate-input-wrap.open .pdate-input,
.pdate-input-wrap:focus-within .pdate-input {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  background: #fff;
}
.pdate-input::placeholder { color: #CBD5E1; font-size: 13px; }

/* ── Calendar Popup ──────────────────────────────────────── */
.pdate-calendar {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 9999;
  width: 296px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07),
              0 10px 40px -4px rgba(0,0,0,.14),
              0 0 0 1px rgba(255,255,255,.7) inset;
  font-family: 'Vazirmatn', sans-serif;
  animation: pdateIn .18s cubic-bezier(.34,1.4,.64,1);
  overflow: visible;
}
@keyframes pdateIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Header ──────────────────────────────────────────────── */
.pdate-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px; direction: rtl;
  border-bottom: 1px solid #F1F5F9;
}
.pdate-cal-title {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
  padding: 4px 10px; border-radius: 8px;
  transition: background .15s;
}
.pdate-cal-title:hover { background: #F1F5F9; }
.pdate-month-name {
  font-size: 14px; font-weight: 700; color: #0F172A;
}
.pdate-year {
  font-size: 14px; font-weight: 400; color: #64748B;
}
.pdate-title-chevron {
  color: #94A3B8; transition: transform .2s;
  display: flex; align-items: center;
}
.pdate-cal-title.month-open .pdate-title-chevron { transform: rotate(180deg); }

.pdate-nav-btn {
  background: none; border: 1.5px solid #E2E8F0; color: #64748B;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 16px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.pdate-nav-btn:hover {
  background: #F8FAFC; border-color: #C7D2FE; color: #6366F1;
}

/* ── Weekday row ─────────────────────────────────────────── */
.pdate-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 6px 8px 2px; direction: rtl;
}
.pdate-weekdays span {
  text-align: center; font-size: 11px; font-weight: 700;
  color: #CBD5E1; padding: 4px 0; letter-spacing: .3px;
}

/* ── Day grid ────────────────────────────────────────────── */
.pdate-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 2px 8px 8px; gap: 1px; direction: rtl;
}
.pdate-day {
  aspect-ratio: 1; width: 100%;
  border: none; background: none;
  font-size: 12.5px; font-family: 'Vazirmatn', sans-serif;
  color: #1E293B; border-radius: 50%; cursor: pointer;
  transition: background .12s, color .12s, transform .1s;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pdate-day:hover:not(.other):not(.selected) {
  background: #EEF2FF; color: #4338CA;
  transform: scale(1.08);
}
.pdate-day.other { color: #E2E8F0; cursor: default; pointer-events: none; }

/* امروز — نقطه زیر عدد */
.pdate-day.today:not(.selected) {
  color: #6366F1; font-weight: 700;
}
.pdate-day.today:not(.selected)::after {
  content: '';
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: #6366F1;
}

/* انتخاب شده */
.pdate-day.selected {
  background: #4338CA !important;
  color: #fff !important; font-weight: 700;
  box-shadow: 0 2px 10px rgba(67,56,202,.4);
  transform: scale(1.05);
}

/* ── Footer ──────────────────────────────────────────────── */
.pdate-cal-footer {
  display: flex; gap: 6px;
  padding: 8px 12px 12px;
  border-top: 1px solid #F8FAFC;
}
.pdate-today-btn, .pdate-clear-btn {
  flex: 1; height: 30px; border-radius: 8px;
  font-size: 12px; font-family: 'Vazirmatn', sans-serif;
  font-weight: 600; cursor: pointer; transition: .15s; border: 1.5px solid;
}
.pdate-today-btn {
  background: #EEF2FF; color: #4338CA; border-color: #C7D2FE;
}
.pdate-today-btn:hover { background: #E0E7FF; }
.pdate-clear-btn {
  background: #FFF; color: #94A3B8; border-color: #E2E8F0;
}
.pdate-clear-btn:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }

/* ── Month Picker Overlay ─────────────────────────────────── */
.pdate-month-overlay {
  position: absolute; inset: 0;
  background: #fff; border-radius: 16px; z-index: 2;
  display: flex; flex-direction: column;
  animation: pdateIn .15s ease;
  padding: 12px;
}
.pdate-month-overlay-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 10px; border-bottom: 1px solid #F1F5F9;
  direction: rtl;
}
.pdate-month-overlay-year {
  font-size: 15px; font-weight: 700; color: #0F172A;
}
.pdate-month-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-top: 10px; direction: rtl;
}
.pdate-month-btn {
  height: 40px; border: 1.5px solid transparent; border-radius: 10px;
  font-size: 12.5px; font-family: 'Vazirmatn', sans-serif;
  font-weight: 500; cursor: pointer; color: #334155;
  background: #F8FAFC;
  transition: background .14s, border-color .14s, color .14s;
}
.pdate-month-btn:hover { background: #EEF2FF; border-color: #C7D2FE; color: #4338CA; }
.pdate-month-btn.active {
  background: #4338CA; border-color: #4338CA; color: #fff; font-weight: 700;
  box-shadow: 0 2px 8px rgba(67,56,202,.35);
}
.pdate-overlay-nav {
  background: none; border: 1.5px solid #E2E8F0; color: #64748B;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.pdate-overlay-nav:hover { background: #F8FAFC; border-color: #C7D2FE; color: #6366F1; }

/* ── Form Fields (جایگزین MudTextField برای RTL) ─────────── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  text-align: right;
}
.form-label.required::after {
  content: ' *';
  color: #DC2626;
  font-weight: 700;
}
.form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 13.5px;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  color: #1E293B;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-input:focus {
  border-color: #3B82F6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-input::placeholder { color: #CBD5E1; font-size: 12.5px; }
.form-input.has-error {
  border-color: #FCA5A5 !important;
  background: #FFF5F5;
}
.form-input.has-error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.1); }

.form-error {
  font-size: 11.5px;
  color: #DC2626;
  display: flex;
  align-items: center;
  gap: 3px;
}
.form-error::before {
  content: '⚠';
  font-size: 11px;
}

/* PersianDatePicker داخل form-field ارتفاع یکسان */
.form-field .pdate-wrap { gap: 0; }
.form-field .pdate-input { height: 42px; }

/* (pdate styles moved to block above) */

/* ════════════════════════════════════════════════════════════
   AUTH PAGE — Animated Login (inspired by modern-animated-sign-in)
   ════════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────── */
.auth-root {
  min-height: 100vh;
  display: flex;
  direction: rtl;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  background: #F8FAFC;
}

/* ── Left: Orbit Panel ────────────────────────────────────── */
.auth-left {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #312E81 100%);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) { .auth-left { display: none; } }

/* Ripple background */
.ripple-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
}
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  animation: ripple-pulse 2.4s ease infinite;
  background: rgba(255,255,255,.02);
}
@keyframes ripple-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50%      { transform: translate(-50%,-50%) scale(.92); }
}

/* مرکز */
.orbit-center {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 10; text-align: center;
}
.orbit-center-logo {
  width: 68px; height: 68px;
  background: linear-gradient(135deg,rgba(99,102,241,.5),rgba(30,64,175,.4));
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  margin-bottom: 6px;
  box-shadow: 0 4px 24px rgba(99,102,241,.35);
}
.orbit-center-text {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #A5B4FC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.3px;
}
.orbit-center-sub {
  font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .3px;
}

/* SVG مدارها */
.orbit-path {
  position: absolute; pointer-events: none; z-index: 2;
  margin-left: -50%; margin-top: -50%;
  top: 50%; left: 50%;
}

/* آیتم‌های مداری */
.orbit-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 5;
  animation: orbit calc(var(--dur) * 1s) linear calc(var(--dl) * 1s) infinite;
}
.orbit-item.orbit-rev {
  animation-direction: reverse;
}
@keyframes orbit {
  0%   { transform: rotate(0deg)   translateY(calc(var(--r) * 1px)) rotate(0deg); }
  100% { transform: rotate(360deg) translateY(calc(var(--r) * 1px)) rotate(-360deg); }
}
.orbit-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
  transition: background .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.orbit-icon.lg { width: 42px; height: 42px; border-radius: 12px; }
.orbit-icon:hover { background: rgba(255,255,255,.2); }

/* Footer text */
.auth-left-footer {
  position: absolute; bottom: 28px;
  font-size: 12px; color: rgba(255,255,255,.4);
  text-align: center; padding: 0 32px;
  z-index: 10;
}

/* ── Right: Form Panel ────────────────────────────────────── */
.auth-right {
  width: 480px; flex-shrink: 0;
  background: white;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  box-shadow: -4px 0 40px rgba(0,0,0,.06);
}
@media (max-width: 900px) {
  .auth-right { width: 100%; box-shadow: none; }
}
.auth-form-wrap { width: 100%; max-width: 360px; }

/* ── BoxReveal animation ──────────────────────────────────── */
.br-item {
  position: relative;
  overflow: hidden;
  animation: br-fade calc(.5s) ease calc(var(--br-delay, 0s)) both;
}
@keyframes br-fade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form elements ────────────────────────────────────────── */
.auth-title {
  font-size: 28px; font-weight: 800;
  color: #0F172A; margin: 0; letter-spacing: -.5px;
}
.auth-sub {
  font-size: 14px; color: #64748B; margin: 8px 0 0;
}
.auth-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}

/* Mouse-follow glow input wrapper */
.glow-input-wrap {
  --mx: 50%; --my: 50%; --gv: 0;
  background: radial-gradient(100px circle at var(--mx) var(--my),
    rgba(59,130,246,calc(var(--gv) * .6)), transparent 80%);
  padding: 2px; border-radius: 10px;
  transition: background .25s;
}
.auth-input {
  width: 100%; height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl; text-align: right;
  color: #1E293B; background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  outline: none; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,.06), 0 1px 0 rgba(25,28,33,.02), 0 0 0 1px rgba(25,28,33,.06);
}
.auth-input:focus {
  border-color: #6366F1; background: #fff;
  box-shadow: 0 0 0 2px rgba(99,102,241,.25);
}
.auth-input::placeholder { color: #9CA3AF; font-size: 13px; }

/* دکمه چشم */
.auth-eye {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #9CA3AF; padding: 4px; border-radius: 5px;
  display: flex; align-items: center;
  transition: color .15s;
}
.auth-eye:hover { color: #6366F1; }

/* Captcha */
.captcha-question {
  flex-shrink: 0; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border: 1.5px solid #C7D2FE;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: #4338CA; direction: ltr;
  white-space: nowrap; user-select: none; transition: opacity .2s;
}
.captcha-question:hover { opacity: .8; }

/* خطا */
.auth-error-box {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 8px;
  background: #FEF2F2; border: 1px solid #FECACA;
  color: #DC2626; font-size: 13px;
}

/* دکمه ورود */
.auth-submit {
  width: 100%; height: 44px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #E2E8F0 0%, #E2E8F0 100%);
  border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14.5px; font-weight: 700;
  color: #1E293B;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 -1px 0 rgba(255,255,255,.25) inset;
}
.auth-submit:hover:not(:disabled) .bottom-gradient-line,
.auth-submit:hover:not(:disabled) .bottom-gradient-blur { opacity: 1; }
.auth-submit:disabled { opacity: .65; cursor: not-allowed; }
.auth-submit-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; position: relative; z-index: 1;
}
/* bottom shimmer lines — مثل React BottomGradient */
.bottom-gradient-line, .bottom-gradient-blur {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; opacity: 0;
  transition: opacity .45s;
}
.bottom-gradient-line {
  background: linear-gradient(90deg, transparent, #06B6D4, transparent);
}
.bottom-gradient-blur {
  width: 50%; margin: 0 auto; bottom: 0;
  background: linear-gradient(90deg, transparent, #6366F1, transparent);
  filter: blur(3px); height: 2px;
}

/* اسپینر */
.auth-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: #1E293B;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}

.auth-footer-note {
  text-align: center; margin-top: 32px;
  font-size: 12px; color: #94A3B8;
}

/* ════════════════════════════════════════════════════════════
   FORGOT PASSWORD PAGE
   ════════════════════════════════════════════════════════════ */
.fp-root {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: 24px; direction: rtl; font-family: 'Vazirmatn', sans-serif;
}
.fp-card {
  background: #fff; border-radius: 20px; padding: 40px 36px;
  width: 100%; max-width: 440px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.fp-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 18px; font-weight: 700; color: #1E293B;
}
/* Steps */
.fp-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 28px;
}
.fp-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; color: #94A3B8; min-width: 60px;
}
.fp-step.active { color: #6366F1; }
.fp-step.done   { color: #22C55E; }
.fp-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #E2E8F0; color: #94A3B8;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.fp-step.active .fp-step-dot { background: #6366F1; color: #fff; }
.fp-step.done   .fp-step-dot { background: #22C55E; color: #fff; }
.fp-step-line {
  flex: 1; height: 2px; background: #E2E8F0; margin: 0 4px;
  margin-bottom: 14px; /* align with dot center */
}
.fp-step-line.done { background: #22C55E; }
/* Form */
.fp-title { font-size: 20px; font-weight: 700; color: #1E293B; margin: 0 0 6px; }
.fp-sub   { font-size: 13px; color: #64748B; margin: 0 0 24px; }
.fp-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.fp-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #E2E8F0;
  border-radius: 10px; font-size: 14px; outline: none;
  font-family: 'Vazirmatn', sans-serif; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  background: #F8FAFC; color: #1E293B;
}
.fp-input:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); background: #fff; }
.fp-otp { letter-spacing: 6px; font-size: 18px; text-align: center; }
.fp-btn {
  width: 100%; padding: 12px; margin-top: 20px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #6366F1, #818CF8);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Vazirmatn', sans-serif; transition: opacity .2s;
}
.fp-btn:disabled { opacity: .65; cursor: not-allowed; }
.fp-btn:hover:not(:disabled) { opacity: .9; }
.fp-back {
  display: block; text-align: center; margin-top: 16px;
  font-size: 13px; color: #94A3B8; text-decoration: none;
}
.fp-back:hover { color: #6366F1; }
.fp-error {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 10px 12px; border-radius: 8px;
  background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; font-size: 13px;
}
.fp-resend {
  text-align: center; font-size: 12px; color: #94A3B8; margin-top: 10px;
}
.fp-link {
  background: none; border: none; color: #6366F1; font-size: 12px;
  cursor: pointer; font-family: 'Vazirmatn', sans-serif;
  text-decoration: underline;
}
.fp-eye {
  position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94A3B8;
}
/* strength bar */
.fp-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.fp-strength-bar {
  flex: 1; height: 4px; border-radius: 2px; background: #E2E8F0; overflow: hidden;
}
.fp-strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }
/* success */
.fp-success { text-align: center; padding: 16px 0; }
.fp-success-icon { margin-bottom: 16px; }
/* spinner */
.fp-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .65s linear infinite;
}

/* ════════════════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════════════════ */
.lp-root {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  background: #F8FAFC;
  color: #1E293B;
  overflow-x: hidden;
}

/* ── Navbar ────────────────────────────────────────────────── */
.lp-nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.lp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px; height: 64px;
}
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #1E40AF, #6366F1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-logo-icon.small { width: 28px; height: 28px; border-radius: 7px; }
.lp-logo-text { font-size: 17px; font-weight: 800; color: #0F172A; }
.lp-nav-links { display: flex; gap: 6px; margin-right: auto; }
.lp-nav-link {
  padding: 6px 14px; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: #475569;
  text-decoration: none; transition: background .15s, color .15s;
}
.lp-nav-link:hover { background: #F1F5F9; color: #1E40AF; }
.lp-nav-actions { display: flex; gap: 8px; }
.lp-btn-ghost {
  height: 36px; padding: 0 16px; border-radius: 8px;
  border: 1.5px solid #E2E8F0; background: transparent;
  font-size: 13.5px; font-weight: 600; color: #475569;
  cursor: pointer; transition: .15s;
  font-family: 'Vazirmatn', sans-serif;
}
.lp-btn-ghost:hover { border-color: #6366F1; color: #6366F1; }
.lp-btn-primary {
  height: 36px; padding: 0 18px; border-radius: 8px;
  border: none; background: linear-gradient(135deg, #1E40AF, #6366F1);
  font-size: 13.5px; font-weight: 700; color: white;
  cursor: pointer; transition: opacity .15s, transform .1s;
  font-family: 'Vazirmatn', sans-serif;
  box-shadow: 0 4px 14px rgba(30,64,175,.3);
}
.lp-btn-primary:hover { opacity: .9; transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────── */
.lp-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0F172A 0%, #1E3A8A 55%, #312E81 100%);
  overflow: hidden;
  padding-top: 64px;
}
.lp-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.lp-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
    transparent 0%, rgba(15,23,42,.2) 60%, rgba(15,23,42,.6) 100%);
}
.lp-hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  max-width: 680px; padding: 0 24px;
}
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.4);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 600; margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.lp-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6EE7B7; box-shadow: 0 0 6px #6EE7B7;
  animation: pulse-soft 2s infinite;
}
.lp-hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 20px;
}
.lp-hero-thin {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 300; opacity: .8; font-style: italic;
  display: block; margin-bottom: 4px;
}
.lp-hero-desc {
  font-size: 16px; line-height: 1.9;
  opacity: .75; margin: 0 0 36px;
}
.lp-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.lp-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 28px; border-radius: 12px;
  border: none; background: white; color: #1E3A8A;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
}
.lp-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,.28); }
.lp-cta-primary.large { height: 54px; padding: 0 36px; font-size: 16px; }
.lp-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  color: white; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif; backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.lp-cta-ghost:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); }

.lp-hero-trust { display: flex; align-items: center; gap: 12px; justify-content: center; opacity: .7; font-size: 13px; }
.lp-trust-avatars { display: flex; }
.lp-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  margin-left: -8px;
}

.lp-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: .5;
}
.lp-scroll-dot {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.5); border-radius: 11px;
  position: relative;
}
.lp-scroll-dot::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: white; border-radius: 2px;
  animation: scroll-dot 1.8s ease infinite;
}
@keyframes scroll-dot { 0%,100%{top:6px;opacity:1} 70%{top:18px;opacity:0} }

/* ── Sections ──────────────────────────────────────────────── */
.lp-section { padding: 96px 24px; }
.lp-section-dark { background: linear-gradient(135deg, #0F172A, #1E3A8A); color: white; }
.lp-section-inner { max-width: 1200px; margin: 0 auto; }
.lp-section-tag {
  display: inline-block;
  background: rgba(99,102,241,.12); color: #6366F1;
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 20px; padding: 4px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.lp-section-tag.light { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.lp-section-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  margin: 0 0 12px; letter-spacing: -.02em;
}
.lp-section-title.light { color: white; }
.lp-section-sub { font-size: 16px; color: #64748B; margin: 0 0 56px; }

/* ── Features Grid ─────────────────────────────────────────── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.lp-feature-card {
  background: white; border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.lp-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.lp-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #1E40AF;
}
.lp-feature-title { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.lp-feature-desc { font-size: 13.5px; color: #64748B; line-height: 1.7; margin: 0; }

/* ── Steps ─────────────────────────────────────────────────── */
.lp-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  position: relative;
}
@media(max-width:700px){ .lp-steps { grid-template-columns: 1fr; } }
.lp-step { padding: 32px; text-align: center; position: relative; }
.lp-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
  margin: 0 auto 20px;
}
.lp-step-line {
  display: none;
  position: absolute; top: 60px; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.3), transparent);
}
.lp-step-line.show { display: block; }
.lp-step-title { font-size: 18px; font-weight: 700; color: white; margin: 0 0 10px; }
.lp-step-desc { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.7; margin: 0; }

/* ── Stats ─────────────────────────────────────────────────── */
.lp-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media(max-width:700px){ .lp-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.lp-stat-item {
  text-align: center; padding: 40px 20px;
  background: white; border: 1px solid #E2E8F0;
  border-radius: 16px;
}
.lp-stat-num { font-size: 42px; font-weight: 800; color: #1E40AF; margin-bottom: 8px; direction: ltr; }
.lp-stat-label { font-size: 14px; color: #64748B; font-weight: 500; }

/* ── CTA Banner ────────────────────────────────────────────── */
.lp-cta-section {
  position: relative; overflow: hidden; padding: 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #312E81 100%);
}
.lp-cta-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 96px 32px;
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.lp-canvas-cta { z-index: 1; }
.lp-cta-title { font-size: clamp(28px,4vw,42px); font-weight: 800; color: white; margin: 0 0 12px; }
.lp-cta-sub { font-size: 16px; color: rgba(255,255,255,.7); margin: 0 0 36px; }

/* ── Footer ─────────────────────────────────────────────────── */
.lp-footer { background: #0F172A; padding: 48px 32px 32px; }
.lp-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.lp-footer-brand .lp-logo-text { color: white; }
.lp-footer-tagline { font-size: 13px; color: rgba(255,255,255,.4); margin: 8px 0 0; }
.lp-footer-copy { font-size: 12.5px; color: rgba(255,255,255,.35); }

/* ── Root ─────────────────────────────────────────────────── */
.lp2-root {
  background: #000;
  color: white;
  font-family: Vazirmatn, sans-serif;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Navbar ───────────────────────────────────────────────── */
.lp2-nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, transparent 100%);
  backdrop-filter: blur(0px);
  transition: background .3s, backdrop-filter .3s;
}
.lp2-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lp2-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}
.lp2-logo-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.lp2-nav-links {
  display: flex; gap: 32px;
}
.lp2-nav-links a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}
.lp2-nav-links a:hover { color: white; }
.lp2-nav-cta { display: flex; gap: 10px; }
.lp2-nav-login {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  padding: 8px 20px;
  border-radius: 8px;
  font-family: Vazirmatn, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lp2-nav-login:hover { border-color: white; color: white; }
.lp2-nav-signup {
  background: white;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: Vazirmatn, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.lp2-nav-signup:hover { opacity: .85; }

/* ── Hero ─────────────────────────────────────────────────── */
.lp2-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.lp2-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Glow orb behind text */
.lp2-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transition: transform .08s linear;
}

.lp2-hero-body {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 24px;
}

/* Floating badges */
.lp2-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.lp2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  color: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
}
.lp2-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp2-badge-dot.green { background: #34D399; box-shadow: 0 0 6px #34D399; }
.lp2-badge-dot.blue  { background: #60A5FA; box-shadow: 0 0 6px #60A5FA; }

/* Hero title */
.lp2-title {
  margin: 0 0 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.lp2-title-thin {
  display: block;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.75);
}
.lp2-title-bold {
  display: block;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: white;
}

.lp2-desc {
  margin: 0 0 32px;
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(255,255,255,.45);
  line-height: 1.9;
}

/* Buttons */
.lp2-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.lp2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: Vazirmatn, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.lp2-btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.lp2-btn-primary.large { padding: 14px 36px; font-size: 16px; }
.lp2-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.2);
  padding: 12px 28px;
  border-radius: 10px;
  font-family: Vazirmatn, sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s;
  backdrop-filter: blur(6px);
}
.lp2-btn-outline:hover { border-color: rgba(255,255,255,.5); color: white; transform: translateY(-1px); }

/* Trust row */
.lp2-trust {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp2-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #000;
  margin-inline-start: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.lp2-avatar:first-child { margin-inline-start: 0; }
.lp2-trust-text {
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
  margin-inline-start: 4px;
}

/* ── Ticker ───────────────────────────────────────────────── */
.lp2-ticker {
  position: absolute;
  bottom: 60px; right: 0; left: 0;
  z-index: 4;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.lp2-ticker-inner {
  display: inline-flex;
  gap: 0;
  animation: lp2-scroll 28s linear infinite;
  white-space: nowrap;
}
@keyframes lp2-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.lp2-tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
}
.lp2-tick-val { color: rgba(255,255,255,.75); font-weight: 600; }
.lp2-tick-chg { font-size: 11px; }
.lp2-tick-item.up   .lp2-tick-chg { color: #34D399; }
.lp2-tick-item.down .lp2-tick-chg { color: #F87171; }
.lp2-tick-sep {
  color: rgba(255,255,255,.15);
  font-size: 18px;
  line-height: 1;
}

/* ── Scroll indicator ─────────────────────────────────────── */
.lp2-scroll {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 5px;
}
.lp2-scroll-inner {
  width: 3px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: lp2-scroll-dot 1.6s ease-in-out infinite;
}
@keyframes lp2-scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── Sections ─────────────────────────────────────────────── */
.lp2-section {
  padding: 100px 0;
}
.lp2-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.lp2-section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
  text-align: center;
}
.lp2-section-h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: white;
  text-align: center;
  margin: 0 0 56px;
  line-height: 1.3;
}
.lp2-section-h2 em {
  font-style: italic;
  color: rgba(255,255,255,.55);
  font-weight: 300;
}

/* ── Feature Grid ─────────────────────────────────────────── */
.lp2-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width:900px){ .lp2-feat-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:540px){ .lp2-feat-grid { grid-template-columns: 1fr; } }

.lp2-feat-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color .25s, background .25s, transform .25s;
}
.lp2-feat-card:hover {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  transform: translateY(-4px);
}
.lp2-feat-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--c);
  margin-bottom: 16px;
}
.lp2-feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}
.lp2-feat-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  margin: 0;
}

/* ── Stats dark strip ─────────────────────────────────────── */
.lp2-stats {
  background: rgba(255,255,255,.025);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 64px 0;
}
.lp2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
@media(max-width:700px){ .lp2-stats-grid { grid-template-columns: repeat(2,1fr); } }
.lp2-stat {
  text-align: center;
  padding: 32px 16px;
  border-inline-end: 1px solid rgba(255,255,255,.07);
}
.lp2-stat:last-child { border-inline-end: none; }
.lp2-stat-num {
  font-size: clamp(28px,4vw,44px);
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  direction: ltr;
}
.lp2-stat-lbl {
  font-size: 13.5px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ── CTA section ──────────────────────────────────────────── */
.lp2-cta {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #000;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.lp2-canvas-cta {
  z-index: 1;
  opacity: .7;
}
.lp2-cta-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 96px 32px;
}
.lp2-cta-h2 {
  font-size: clamp(26px,4vw,46px);
  font-weight: 800;
  color: white;
  margin: 0 0 14px;
}
.lp2-cta-p {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  margin: 0 0 36px;
}

/* ── Footer ───────────────────────────────────────────────── */
.lp2-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}
.lp2-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── صفحات وضعیت مسیر (دسترسی نداشتن / یافت نشد / در حال بررسی) ─── */
.access-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 72px 24px;
  min-height: 50vh;
}

.route-authorizing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 72px 24px;
  color: var(--c-text-muted);
  font-size: 14px;
}
