/* ===========================================================================
   HAMERZ EXPO REGISTRY — Design System Core
   Dark · Premium · Futuristic · Technology-driven
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Fonts (self-hosted TTF in public/assets/fonts)
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'KalamehFaNum';
  src: url('../fonts/KALAMEHFANUM-THIN.TTF') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('../fonts/KALAMEHFANUM-REGULAR.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('../fonts/KALAMEHFANUM-BOLD.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KalamehFaNum';
  src: url('../fonts/KALAMEHFANUM-BLACK.TTF') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   2. Design Tokens
   --------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary:    #080B0C;
  --bg-secondary:  #0D1112;
  --bg-card:       #111617;
  --bg-elevated:   #151A1C;
  --bg-hover:      #1A2022;

  /* Brand */
  --brand-teal:    #006366;
  --brand-teal-2:  #008184;
  --brand-green:   #2DFF1E;
  --brand-lime:    #DFFF6C;
  --gray:          #53595D;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #D7DADC;
  --text-muted:     #8D969B;
  --text-faint:     #5C656A;

  /* Borders */
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.14);
  --border-brand:   rgba(0, 131, 134, 0.45);

  /* Status */
  --success: #2FDF8C;
  --warning: #F0B429;
  --danger:  #F2555A;
  --info:    #4FA8FF;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  /* Shadows & glow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --glow-green: 0 0 0 1px rgba(45, 255, 30, 0.35), 0 0 18px rgba(45, 255, 30, 0.18);
  --glow-teal:  0 0 24px rgba(0, 131, 134, 0.35);

  /* Typography */
  --font-fa: 'KalamehFaNum', 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'Roboto Mono', 'Consolas', 'Courier New', monospace;

  /* Layout */
  --sidebar-w: 272px;
  --topbar-h: 68px;
  --container-max: 1280px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.22s;
}

/* ---------------------------------------------------------------------------
   3. Reset & Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  direction: rtl;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-fa);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 99, 102, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(0, 99, 102, 0.12), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.45;
}

h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a {
  color: var(--brand-lime);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
a:hover { color: var(--brand-green); }

img { max-width: 100%; display: block; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

::selection { background: rgba(45, 255, 30, 0.22); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #232a2d;
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: #30393d; }

/* ---------------------------------------------------------------------------
   4. Utilities
   --------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-info    { color: var(--info); }
.text-brand   { color: var(--brand-green); }
.text-lime    { color: var(--brand-lime); }

.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: all var(--speed) var(--ease);
  user-select: none;
  position: relative;
}
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: var(--brand-teal);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-teal-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-accent {
  background: var(--brand-green);
  color: #071008;
  font-weight: 800;
}
.btn-accent:hover:not(:disabled) { background: #5fff4f; transform: translateY(-1px); box-shadow: var(--glow-green); }

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-primary);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--border-strong); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-outline:hover:not(:disabled) { border-color: var(--brand-teal-2); color: #fff; }

.btn-danger {
  background: rgba(242, 85, 90, 0.12);
  color: #ff8084;
  border-color: rgba(242, 85, 90, 0.3);
}
.btn-danger:hover:not(:disabled) { background: rgba(242, 85, 90, 0.22); color: #fff; }

.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: var(--radius-sm); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

.btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   6. Forms
   --------------------------------------------------------------------------- */
.field { margin-bottom: 20px; }

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.field-label .required { color: var(--brand-green); font-size: 15px; line-height: 1; }
.field-label .optional {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 1px 8px;
}

.field-hint { margin-top: 7px; font-size: 12px; color: var(--text-faint); }

.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #ff8084;
}
.field-error .icon { width: 14px; height: 14px; flex: none; }
.field.has-error .field-error { display: flex; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: rgba(242, 85, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 85, 90, 0.1);
}

.input, .textarea, .select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-teal-2);
  box-shadow: 0 0 0 3px rgba(0, 131, 134, 0.18);
  background: var(--bg-card);
}
.input:disabled, .textarea:disabled, .select:disabled { opacity: 0.55; cursor: not-allowed; }
.input[readonly] { color: var(--text-muted); }

.input[type="tel"], .input[type="number"], .input[type="email"] {
  font-family: var(--font-fa);
}

.textarea { min-height: 110px; resize: vertical; }

/* Select with custom chevron */
.select-wrap { position: relative; }
.select-wrap .select { padding-inline-end: 44px; cursor: pointer; }
.select-wrap::after {
  content: '';
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  width: 9px; height: 9px;
  border-inline-end: 2px solid var(--text-muted);
  border-block-end: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select option { background: var(--bg-card); color: var(--text-primary); }

/* Custom checkbox */
.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox .box {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-secondary);
  display: grid;
  place-items: center;
  transition: all var(--speed) var(--ease);
}
.checkbox .box svg { width: 13px; height: 13px; stroke: #071008; opacity: 0; transform: scale(0.5); transition: all var(--speed) var(--ease); }
.checkbox input:checked + .box { background: var(--brand-green); border-color: var(--brand-green); box-shadow: var(--glow-green); }
.checkbox input:checked + .box svg { opacity: 1; transform: scale(1); }
.checkbox input:focus-visible + .box { outline: 2px solid var(--brand-green); outline-offset: 2px; }
.checkbox .label-text { font-size: 14px; color: var(--text-secondary); }

/* Toggle switch */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track {
  flex: none;
  width: 46px; height: 26px;
  border-radius: 20px;
  background: #252c2f;
  border: 1px solid var(--border-primary);
  transition: all var(--speed) var(--ease);
  position: relative;
}
.toggle .track::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--speed) var(--ease);
}
.toggle input:checked + .track { background: rgba(45, 255, 30, 0.18); border-color: rgba(45,255,30,0.5); }
.toggle input:checked + .track::after { background: var(--brand-green); transform: translateX(-20px); box-shadow: 0 0 8px rgba(45,255,30,0.6); }
.toggle input:focus-visible + .track { outline: 2px solid var(--brand-green); outline-offset: 2px; }

/* ---------------------------------------------------------------------------
   7. Cards
   --------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card-elevated { background: var(--bg-elevated); box-shadow: var(--shadow-md); }

/* ---------------------------------------------------------------------------
   8. Badges
   --------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge-teal    { background: rgba(0, 131, 134, 0.18); color: #5ee3e0; border: 1px solid rgba(0,131,134,0.35); }
.badge-green   { background: rgba(45, 255, 30, 0.12);  color: var(--brand-green); border: 1px solid rgba(45,255,30,0.3); }
.badge-lime    { background: rgba(223, 255, 108, 0.1); color: var(--brand-lime); border: 1px solid rgba(223,255,108,0.28); }
.badge-success { background: rgba(47, 223, 140, 0.12); color: var(--success); border: 1px solid rgba(47,223,140,0.3); }
.badge-warning { background: rgba(240, 180, 41, 0.12); color: var(--warning); border: 1px solid rgba(240,180,41,0.3); }
.badge-danger  { background: rgba(242, 85, 90, 0.12);  color: #ff8084; border: 1px solid rgba(242,85,90,0.3); }
.badge-info    { background: rgba(79, 168, 255, 0.12); color: var(--info); border: 1px solid rgba(79,168,255,0.3); }
.badge-gray    { background: rgba(255,255,255,0.06);  color: var(--text-muted); border: 1px solid var(--border-primary); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--brand-green); box-shadow: 0 0 6px var(--brand-green); }

/* ---------------------------------------------------------------------------
   9. Toast
   --------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s var(--ease);
}
.toast.out { animation: toast-out 0.25s var(--ease) forwards; }
.toast .t-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.toast .t-icon svg { width: 18px; height: 18px; }
.toast .t-body { flex: 1; font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.toast-success .t-icon { background: rgba(47,223,140,0.14); color: var(--success); }
.toast-error .t-icon   { background: rgba(242,85,90,0.14);  color: #ff8084; }
.toast-info .t-icon    { background: rgba(79,168,255,0.14); color: var(--info); }
.toast-warning .t-icon { background: rgba(240,180,41,0.14); color: var(--warning); }
.toast .t-close { background: none; border: none; color: var(--text-faint); padding: 4px; display: grid; place-items: center; }
.toast .t-close svg { width: 16px; height: 16px; }
.toast .t-close:hover { color: #fff; }

@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ---------------------------------------------------------------------------
   10. Modal
   --------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(4, 6, 7, 0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fade-in 0.2s var(--ease);
}
.modal {
  width: 100%; max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  animation: modal-in 0.25s var(--ease);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.modal-close { background: none; border: none; color: var(--text-muted); padding: 4px; display: grid; place-items: center; border-radius: 8px; }
.modal-close:hover { background: var(--bg-hover); color: #fff; }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { font-size: 14.5px; color: var(--text-secondary); }
.modal-foot { display: flex; gap: 10px; margin-top: 22px; }
.modal-foot .btn { flex: 1; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------
   11. Skeleton
   --------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(100deg, var(--bg-elevated) 40%, #1c2326 50%, var(--bg-elevated) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------------------
   12. Empty state
   --------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.empty-state .es-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  display: grid; place-items: center;
  color: var(--text-faint);
}
.empty-state .es-icon svg { width: 32px; height: 32px; }
.empty-state h3 { color: var(--text-secondary); font-size: 16px; margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; margin: 0; }

/* ---------------------------------------------------------------------------
   13. Wizard progress
   --------------------------------------------------------------------------- */
.wizard-progress { display: flex; justify-content: space-between; position: relative; margin: 8px 0 4px; }
.wizard-progress::before {
  content: '';
  position: absolute;
  top: 17px;
  inset-inline: 40px;
  height: 2px;
  background: var(--border-primary);
}
.wizard-progress .w-fill {
  position: absolute;
  top: 17px;
  inset-inline-start: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-green));
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 10px rgba(45,255,30,0.4);
}
.w-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 70px; }
.w-step .w-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  color: var(--text-muted);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  transition: all var(--speed) var(--ease);
}
.w-step .w-dot svg { width: 17px; height: 17px; }
.w-step .w-label { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; transition: color var(--speed); }
.w-step.active .w-dot { background: var(--brand-teal); border-color: var(--brand-teal-2); color: #fff; box-shadow: var(--glow-teal); }
.w-step.active .w-label { color: var(--text-secondary); }
.w-step.done .w-dot { background: var(--brand-green); border-color: var(--brand-green); color: #071008; }
.w-step.done .w-label { color: var(--brand-green); }

/* ---------------------------------------------------------------------------
   14. OTP input
   --------------------------------------------------------------------------- */
.otp-row { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp-box {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: all var(--speed) var(--ease);
  -moz-appearance: textfield;
}
.otp-box::-webkit-outer-spin-button, .otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-box:focus { outline: none; border-color: var(--brand-green); box-shadow: var(--glow-green); }
.otp-box.filled { border-color: var(--brand-teal-2); }
.otp-box.error { border-color: var(--danger); }

/* ---------------------------------------------------------------------------
   15. Tables (shared)
   --------------------------------------------------------------------------- */
.table-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 760px;
}
table.data thead th {
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(24, 31, 33, 0.98), rgba(18, 24, 26, 0.98));
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-primary);
  white-space: nowrap;
}
table.data tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
  vertical-align: middle;
}
table.data tbody tr { transition: background var(--speed), box-shadow var(--speed); }
table.data tbody tr:hover { background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02); }
table.data tbody tr:last-child td { border-bottom: none; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--border-primary); flex-wrap: wrap; }
.pagination .page-link {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-primary);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all var(--speed);
}
.pagination .page-link:hover { border-color: var(--border-strong); color: #fff; }
.pagination .page-link.active { background: var(--brand-teal); border-color: var(--brand-teal-2); color: #fff; }
.pagination .page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ---------------------------------------------------------------------------
   16. Misc
   --------------------------------------------------------------------------- */
.logo-type {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 19px;
  color: var(--text-primary);
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-teal), #012f31);
  border: 1px solid var(--brand-teal-2);
  display: grid; place-items: center;
  color: var(--brand-green);
  box-shadow: var(--glow-teal);
}
.logo-mark svg { width: 21px; height: 21px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.kbd-note { font-size: 12px; color: var(--text-faint); }

/* ---------------------------------------------------------------------------
   17. Jalali date picker
   --------------------------------------------------------------------------- */
.jdate-wrap { position: relative; }
.jdate-wrap .jdate-display { cursor: pointer; }
.jdate-popup {
  position: fixed;
  z-index: 950;
  width: 292px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: none;
  direction: rtl;
  font-family: var(--font-fa);
}
.jdate-popup.open { display: block; animation: modal-in 0.18s var(--ease); }
.jdate-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.jdate-nav {
  width: 30px; height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: grid; place-items: center;
  font-size: 15px;
  transition: all var(--speed);
}
.jdate-nav:hover { color: #fff; border-color: var(--border-strong); background: var(--bg-hover); }
.jdate-title { flex: 1; text-align: center; display: flex; gap: 6px; justify-content: center; align-items: baseline; }
.jdate-month { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.jdate-year { font-size: 13px; color: var(--brand-green); font-family: var(--font-mono); }
.jdate-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4px;
}
.jdate-weekdays span {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  padding: 4px 0;
}
.jdate-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.jdate-grid .jdate-empty { aspect-ratio: 1; }
.jdate-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 9px;
  font-size: 13px;
  transition: all var(--speed);
}
.jdate-day:hover { background: var(--bg-hover); color: #fff; }
.jdate-day.today { border: 1px solid var(--brand-teal-2); color: var(--text-primary); }
.jdate-day.selected {
  background: var(--brand-green);
  color: #071008;
  font-weight: 700;
  box-shadow: var(--glow-green);
}
.jdate-foot { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-primary); }
.jdate-foot button {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 12.5px;
  transition: all var(--speed);
}
.jdate-foot button:hover { color: #fff; border-color: var(--border-strong); }
.jdate-foot .jdate-clear:hover { color: #ff8084; border-color: rgba(242,85,90,0.4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
