﻿/* Esheba Dashboard
   Shell geometry (sidebar / main offset) — ONE source of truth for user/admin/support panels.
   Do not override --dash-sidebar-width / --dash-sidebar-collapsed-width per panel. */
:root {
  --dash-sidebar-width: 220px;
  --dash-sidebar-collapsed-width: 72px;
  --dash-shell-bp: 992px;
}

.dash-body {
  overflow: hidden;
}

.dash {
  display: flex;
  height: 100vh;
  height: 100dvh;
  height: calc(100dvh - var(--esheba-global-alert-h, 0px));
}

/* Theme-aligned scrollbars */
.dash-sidebar,
.dash-nav,
.dash-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 122, 140, 0.45) transparent;
}

.dash-sidebar::-webkit-scrollbar,
.dash-nav::-webkit-scrollbar,
.dash-content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.dash-sidebar::-webkit-scrollbar-track,
.dash-nav::-webkit-scrollbar-track,
.dash-content::-webkit-scrollbar-track {
  background: transparent;
}

.dash-sidebar::-webkit-scrollbar-thumb,
.dash-nav::-webkit-scrollbar-thumb,
.dash-content::-webkit-scrollbar-thumb {
  background: rgba(26, 122, 140, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

[data-theme="dark"] .dash-sidebar::-webkit-scrollbar-thumb,
[data-theme="dark"] .dash-nav::-webkit-scrollbar-thumb,
[data-theme="dark"] .dash-content::-webkit-scrollbar-thumb {
  background: rgba(98, 196, 212, 0.45);
}

/* Sidebar */
.dash-sidebar {
  position: fixed;
  top: var(--esheba-global-alert-h, 0px);
  right: 0;
  width: var(--dash-sidebar-width);
  height: 100vh;
  height: 100dvh;
  height: calc(100dvh - var(--esheba-global-alert-h, 0px));
  background: var(--esheba-surface);
  border-left: 1px solid var(--esheba-border);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  transition: width 0.2s ease, transform var(--esheba-transition);
  overflow: hidden;
}

.dash-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--esheba-border);
  flex-shrink: 0;
}

.dash-brand {
  font-size: 1.1rem;
}

.dash-brand .esheba-brand__mark {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

.dash-sidebar__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--esheba-bg-alt);
  border-radius: 8px;
  color: var(--esheba-navy);
  cursor: pointer;
}

.dash-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
}

.dash-nav__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--esheba-muted);
  padding: 0.75rem 0.75rem 0.35rem;
}

.dash-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--esheba-radius-sm);
  color: var(--esheba-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--esheba-transition);
  margin-bottom: 0.15rem;
}

.dash-nav__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

.dash-nav__item:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
  text-decoration: none;
}

.dash-nav__item.active {
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.14), rgba(61, 184, 200, 0.1));
  color: var(--esheba-teal);
  font-weight: 700;
  box-shadow: inset 3px 0 0 #d97706;
}

.dash-nav__item.active svg {
  opacity: 1;
}

.dash-nav__item--sub {
  padding-inline-start: 1.85rem;
  font-size: 0.8125rem;
  margin-top: -0.05rem;
}

.dash-nav__item--sub svg {
  width: 16px;
  height: 16px;
}

.dash-nav__group {
  margin-bottom: 0.15rem;
}

.dash-nav__group-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: var(--esheba-radius-sm);
  background: transparent;
  color: var(--esheba-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: all var(--esheba-transition);
}

.dash-nav__group-toggle > svg:first-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

.dash-nav__group-toggle:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

.dash-nav__group.is-active > .dash-nav__group-toggle {
  color: var(--esheba-teal);
}

.dash-nav__group.is-active > .dash-nav__group-toggle > svg:first-child {
  opacity: 1;
}

.dash-nav__chevron {
  width: 16px;
  height: 16px;
  margin-right: auto;
  margin-left: 0;
  opacity: 0.55;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dash-nav__group.is-open > .dash-nav__group-toggle .dash-nav__chevron {
  transform: rotate(180deg);
}

.dash-nav__group-body {
  padding-bottom: 0.2rem;
}

body.dash-skin-solid .dash-nav__group-toggle {
  color: var(--esheba-muted);
}

body.dash-skin-solid .dash-nav__group-toggle:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

body.dash-skin-solid .dash-nav__group.is-active > .dash-nav__group-toggle {
  color: var(--esheba-teal);
}

.dash-nav__item--soon {
  opacity: 0.65;
  cursor: default;
}

.dash-nav__item--muted {
  color: var(--esheba-muted);
  font-size: 0.825rem;
}

.dash-nav__badge {
  margin-right: auto;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: var(--esheba-bg-alt);
  border-radius: 999px;
  color: var(--esheba-muted);
}

.dash-sidebar__foot {
  padding: 0.75rem;
  border-top: 1px solid var(--esheba-border);
  flex-shrink: 0;
}

.dash-app-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.3rem 0.35rem 0.3rem 0.5rem;
  border-radius: 8px;
  background: var(--esheba-bg-alt);
  font-size: 0.62rem;
}

.dash-app-version__info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.dash-app-version__label {
  color: var(--esheba-muted);
  font-weight: 600;
}

.dash-app-version__value {
  font-weight: 700;
  color: var(--esheba-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.62rem;
}

.dash-app-version__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  color: var(--esheba-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--esheba-transition), background var(--esheba-transition);
}

.dash-app-version__logout svg {
  width: 13px;
  height: 13px;
}

.dash-app-version__logout:hover {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

[data-theme="dark"] .dash-app-version__value {
  color: var(--esheba-muted);
}

/* Main area — margin reserved for fixed sidebar on desktop only */
.dash-main {
  flex: 1;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  height: calc(100dvh - var(--esheba-global-alert-h, 0px));
  overflow: hidden;
  transition: margin-right 0.2s ease;
}

@media (min-width: 992px) {
  .dash-main {
    margin-right: var(--dash-sidebar-width);
  }
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--esheba-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--esheba-border);
  flex-shrink: 0;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.panel-nav--compact .panel-nav__choices {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 4px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
}

.panel-nav--compact .panel-nav__choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.28rem 0.48rem;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  box-shadow: none;
}

.panel-nav__choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.panel-nav__choice-icon svg {
  width: 14px;
  height: 14px;
}

.panel-nav__choice-title {
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel-nav__choice.is-current {
  border-color: transparent;
  background: color-mix(in srgb, var(--esheba-teal) 14%, transparent);
  color: var(--esheba-teal);
  box-shadow: none;
  pointer-events: none;
  font-weight: 800;
}

.panel-nav__choice[data-panel-target="support"].is-current {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  box-shadow: none;
}

.panel-nav__choice[data-panel-target="admin"].is-current {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  box-shadow: none;
}

.panel-nav--compact .panel-nav__choice.is-available:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
  border-color: transparent;
}

.panel-nav__lead {
  display: none;
}

.panel-nav__choices {
  display: inline-flex;
  align-items: stretch;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.panel-nav__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.panel-nav__choice-body,
.panel-nav__choice-desc,
.panel-nav__choice-here,
.panel-nav__choice-go {
  display: none !important;
}

.panel-nav__choice.is-current .panel-nav__choice-here {
  display: none;
}

.panel-nav__choice.is-available .panel-nav__choice-go {
  display: none;
}

.dash-sidebar__foot .panel-nav {
  margin-bottom: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.dash-sidebar__foot .panel-nav--compact .panel-nav__choices {
  width: 100%;
  justify-content: space-between;
}

.dash-sidebar__foot .panel-nav--compact .panel-nav__choice {
  flex: 1;
  padding: 0.32rem 0.3rem;
}

[data-theme="dark"] .panel-nav__choice[data-panel-target="support"].is-current {
  color: #60a5fa;
}

[data-theme="dark"] .panel-nav__choice[data-panel-target="admin"].is-current {
  color: #fbbf24;
}

.role-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(26, 122, 140, 0.12);
  color: var(--esheba-teal);
}

.role-badge--support {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.role-badge--admin {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.profile-field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: var(--esheba-muted);
  line-height: 1.6;
}

[data-theme="dark"] .role-badge--support {
  color: #60a5fa;
}

[data-theme="dark"] .role-badge--admin {
  color: #fbbf24;
}

.role-mock-list {
  display: grid;
  gap: 0.55rem;
}

.role-mock-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--esheba-text);
  cursor: pointer;
}

.role-mock-item input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--esheba-teal);
}

@media (max-width: 767px) {
  .dash-topbar__right > .panel-nav,
  .dash-topbar__right > [data-panel-nav] {
    display: none !important;
  }

  .sp-conversation-panel {
    max-height: none;
    min-height: 460px;
  }

  .sp-composer {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-composer__controls {
    flex-direction: row;
    min-width: 0;
  }

  .sp-composer__controls .sp-status-select {
    flex: 1;
  }

  .device-item {
    flex-wrap: wrap;
  }
}

@media (min-width: 992px) {
  .dash-sidebar__foot .panel-nav,
  .dash-sidebar__foot [data-panel-nav] {
    display: none !important;
  }
}

.dash-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.dash-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  position: relative;
}

.dash-topbar__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0;
}

.dash-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--esheba-bg-alt);
  border-radius: var(--esheba-radius-sm);
  color: var(--esheba-navy);
  cursor: pointer;
}

.dash-wallet-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--esheba-navy);
}

.dash-wallet-pill svg {
  color: var(--esheba-gold);
}

.dash-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--esheba-radius-sm);
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
  text-decoration: none;
  transition: all var(--esheba-transition);
}

.dash-icon-btn:hover {
  background: var(--esheba-surface);
  border-color: var(--esheba-teal);
  color: var(--esheba-navy);
}

.dash-icon-btn.active {
  border-color: var(--esheba-teal);
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.14), rgba(61, 184, 200, 0.1));
}

.dash-icon-btn svg {
  width: 20px;
  height: 20px;
}

.dash-icon-btn__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--esheba-surface);
}

.dash-icon-btn__dot[hidden] {
  display: none;
}

.dash-icon-btn__dot--blink {
  animation: notif-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes notif-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    transform: scale(1.18);
  }
}

.dash-icon-btn--profile {
  border-radius: 12px;
}

.dash-icon-btn--profile.active {
  border-color: var(--esheba-teal);
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.14), rgba(61, 184, 200, 0.1));
}

.dash-icon-btn--logout:hover {
  border-color: rgba(239, 68, 68, 0.45);
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

.notif-dropdown {
  position: relative;
}

.notif-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: auto;
  width: min(340px, calc(100vw - 1.5rem));
  max-height: 70vh;
  overflow: auto;
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: 14px;
  box-shadow: var(--esheba-shadow-lg);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--esheba-transition);
  z-index: 1200;
}

.notif-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.35rem 0.7rem;
  border-bottom: 1px solid var(--esheba-border);
  margin-bottom: 0.65rem;
  font-weight: 700;
  color: var(--esheba-navy);
}

.notif-menu__all {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--esheba-teal);
}

.notif-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.notif-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
}

.notif-item__title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--esheba-navy);
}

.notif-item__msg {
  font-size: 0.78rem;
  color: var(--esheba-text);
  margin: 0.15rem 0 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.notif-item__time {
  font-size: 0.76rem;
  color: var(--esheba-muted);
}

.notif-item--unread {
  border-color: rgba(26, 122, 140, 0.5);
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.1), rgba(61, 184, 200, 0.06));
}

/* ?????? ???? ???????? ???? ???? ?????? (???? ????? ?????? ?? ?????? ????????) */
.notif-item--support {
  padding: 0;
  border-color: rgba(26, 122, 140, 0.55);
}

.notif-item__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  padding: 0.6rem;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background var(--esheba-transition);
}

.notif-item__link:hover {
  background: rgba(26, 122, 140, 0.08);
}

.notif-tag--support {
  background: rgba(26, 122, 140, 0.18);
  color: var(--esheba-teal);
}

.notif-empty {
  list-style: none;
  padding: 1rem 0.6rem;
  text-align: center;
  color: var(--esheba-muted);
  font-size: 0.82rem;
}

.notif-empty--page {
  padding: 2rem 1rem;
}

.notif-page-item--unread {
  border-inline-start: 3px solid var(--esheba-teal);
}

.dash-content {
  flex: 1;
  min-height: 0;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  overflow-x: hidden;
}

.dash-body .dash-content {
  max-width: none;
  margin-inline: 0;
  width: 100%;
}

.dash-content-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--esheba-border);
  font-size: 0.78rem;
}

.dash-content-footer a {
  color: var(--esheba-muted);
  text-decoration: none;
}

.dash-content-footer a:hover {
  color: var(--esheba-teal);
}

.dash-collapse-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  border-radius: 8px;
  color: var(--esheba-navy);
  cursor: pointer;
}

.dash-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 992px) {
  html.dash-sidebar-collapsed .dash-sidebar,
  html.dash-sidebar-collapsed body.dash-skin-solid .dash-sidebar,
  html.dash-sidebar-collapsed body.ap-body .dash-sidebar {
    width: var(--dash-sidebar-collapsed-width);
  }

  html.dash-sidebar-collapsed .dash-main,
  html.dash-sidebar-collapsed body.ap-body .dash-main,
  html.dash-sidebar-collapsed body.dash-skin-solid .dash-main {
    margin-right: var(--dash-sidebar-collapsed-width);
  }

  html.dash-sidebar-collapsed .dash-nav__text,
  html.dash-sidebar-collapsed .dash-sidebar__brand-text,
  html.dash-sidebar-collapsed .dash-sidebar__foot,
  html.dash-sidebar-collapsed .dash-nav__label,
  html.dash-sidebar-collapsed .dash-nav__chevron,
  html.dash-sidebar-collapsed .dash-nav__group-body,
  html.dash-sidebar-collapsed .ap-role-banner,
  html.dash-sidebar-collapsed .sp-role-banner {
    display: none !important;
  }

  html.dash-sidebar-collapsed .dash-nav__item {
    justify-content: center;
    padding-inline: 0.55rem;
  }

  html.dash-sidebar-collapsed .dash-nav__group-toggle {
    justify-content: center;
    padding-inline: 0.55rem;
  }

  html.dash-sidebar-collapsed .dash-collapse-btn svg {
    transform: scaleX(-1);
  }

  .dash-collapse-btn,
  body.dash-skin-solid .dash-collapse-btn {
    display: inline-flex;
  }
}

.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--esheba-overlay);
  z-index: 1040;
}

/* Dashboard widgets */
.dash-welcome {
  text-align: right;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--esheba-border);
}

.dash-welcome__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--esheba-navy);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.dash-welcome__desc {
  color: var(--esheba-muted);
  margin: 0;
  font-size: 0.925rem;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-stat-card {
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: var(--esheba-radius);
  padding: 1.25rem;
  box-shadow: var(--esheba-shadow);
}

.dash-stats--compact {
  gap: 0.65rem;
}

.dash-stat-card--compact {
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  box-shadow: none;
}

.dash-stat-card--compact .dash-stat-card__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  border-radius: 4px;
}

.dash-stat-card--compact .dash-stat-card__value {
  font-size: 1.05rem;
}

.dash-stat-card--compact .dash-stat-card__label {
  font-size: 0.74rem;
}

.dash-stat-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.dash-stat-card__icon--teal { background: rgba(26, 122, 140, 0.12); }
.dash-stat-card__icon--gold { background: rgba(212, 175, 55, 0.15); }
.dash-stat-card__icon--green { background: rgba(34, 197, 94, 0.12); }
.dash-stat-card__icon--blue { background: rgba(59, 130, 246, 0.12); }

.dash-stat-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.dash-stat-card__label {
  font-size: 0.8rem;
  color: var(--esheba-muted);
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.dash-panel {
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: var(--esheba-radius);
  box-shadow: var(--esheba-shadow);
  overflow: hidden;
}

/* Bank picker dropdown must escape the panel box */
.dash-panel:has(.bank-search-select),
.dash-panel__body:has(.bank-search-select) {
  overflow: visible;
}

.dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--esheba-border);
}

.dash-panel__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0;
}

.dash-panel__body {
  padding: 1.25rem;
}

.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dash-quick-actions--compact {
  gap: 0.55rem;
}

.dash-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.75rem;
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: var(--esheba-radius-sm);
  color: var(--esheba-navy);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--esheba-transition);
  cursor: pointer;
}

.dash-quick-actions--compact .dash-action-btn {
  padding: 0.72rem 0.5rem;
  font-size: 0.74rem;
  border-radius: 10px;
}

.dash-quick-actions--compact .dash-action-btn__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.92rem;
}

.dash-action-btn:hover {
  border-color: var(--esheba-teal);
  background: var(--esheba-surface);
  transform: translateY(-2px);
  color: var(--esheba-navy);
  text-decoration: none;
}

.dash-action-btn__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.15), rgba(61, 184, 200, 0.1));
  border-radius: 12px;
  font-size: 1.15rem;
}

.dash-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--esheba-muted);
  font-size: 0.9rem;
}

.dash-empty__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.dash-summary-list {
  display: grid;
  gap: 0.4rem;
}

.dash-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  box-shadow: none;
}

.dash-summary-item__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--esheba-muted);
}

.dash-summary-item__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--esheba-navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-secure-note {
  margin-top: 0.75rem;
  border: 1px dashed var(--esheba-border);
  border-radius: 10px;
  background: var(--esheba-bg-alt);
  color: var(--esheba-muted);
  font-size: 0.8rem;
  line-height: 1.8;
  padding: 0.65rem 0.75rem;
}

.quick-inquiry-form {
  display: grid;
  gap: 0.8rem;
}

.quick-inquiry-form__row {
  display: grid;
  gap: 0.35rem;
}

.quick-inquiry-form__label {
  font-size: 0.82rem;
  color: var(--esheba-muted);
}

.quick-inquiry-form__control {
  width: 100%;
  border: 1px solid var(--esheba-border);
  border-radius: 10px;
  background: var(--esheba-bg-alt);
  color: var(--esheba-text);
  padding: 0.6rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.86rem;
}

.quick-inquiry-form__control:focus {
  outline: none;
  border-color: var(--esheba-teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.15);
}

.quick-inquiry-form__actions--dual {
  gap: 0.5rem;
}

.plate-fields {
  display: grid;
  grid-template-columns: 2.6rem 3.4rem 2.4rem 2.6rem;
  gap: 0.35rem;
  align-items: center;
}

.plate-fields .quick-inquiry-form__control {
  text-align: center;
  padding-inline: 0.25rem;
}

.iran-plate {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 22rem;
  padding: 0.45rem 0.55rem;
  border: 2px solid #1f2937;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.iran-plate__iran {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 3rem;
  margin-inline-start: 0.15rem;
  padding: 0.25rem 0.3rem;
  border-radius: 0.25rem;
  background: #0b3d91;
  color: #fff;
  flex-shrink: 0;
}

.iran-plate__iran-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
}

.iran-plate__iran-flag {
  font-size: 0.85rem;
  line-height: 1;
}

.iran-plate__input {
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  min-height: 2.4rem;
  background: #fff;
  color: #0f172a;
}

.iran-plate__input--city {
  width: 2.4rem;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 800;
  caret-color: #fff;
  box-shadow: none !important;
}

.iran-plate__input--city::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}

.iran-plate__input--first {
  width: 2.6rem;
}

.iran-plate__input--letter {
  width: 2.4rem;
}

.iran-plate__input--second {
  width: 3.4rem;
  flex: 1;
}

.plate-sample-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted);
  line-height: 1.6;
}

.server-slot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.server-slot-tab {
  border: 1px solid var(--esheba-border);
  background: #fff;
  color: var(--esheba-muted);
  border-radius: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.server-slot-tab.active {
  border-color: var(--esheba-teal);
  color: var(--esheba-teal);
  background: rgba(13, 148, 136, 0.08);
  font-weight: 600;
}

.quick-inquiry-form__cache-hint {
  margin: 0.55rem 0 0;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--esheba-muted);
}

.esheba-btn--ghost {
  background: transparent;
  border: 1px dashed var(--esheba-border);
  color: var(--esheba-muted);
}

.esheba-btn--ghost:hover {
  border-color: var(--esheba-teal);
  color: var(--esheba-teal);
}

.quick-inquiry-form__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quick-inquiry-form__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted);
}

.quick-inquiry-form__field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--esheba-muted);
}

.quick-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding: 0.2rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.quick-mode-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  border-radius: 3px;
  padding: 0.4rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  box-shadow: none;
}

.quick-mode-tab:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

.quick-inquiry-form__hint--error {
  color: #dc2626;
}

.quick-inquiry-form__hint--success {
  color: var(--esheba-teal);
  font-weight: 600;
}

.inquiry-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.inquiry-result-badge--live {
  color: #065f46;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.inquiry-result-badge--cache {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.inquiry-result-badge--loading {
  color: var(--esheba-teal);
  background: rgba(26, 122, 140, 0.1);
  border: 1px solid rgba(26, 122, 140, 0.25);
}

/* نوار پیشرفت استعلام */
.inquiry-progress {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 122, 140, 0.22);
  background:
    linear-gradient(180deg, rgba(26, 122, 140, 0.08), rgba(26, 122, 140, 0.02));
}

.inquiry-progress__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.inquiry-progress__spinner {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(26, 122, 140, 0.25);
  border-top-color: var(--esheba-teal, #1a7a8c);
  animation: inquiry-spin 0.75s linear infinite;
  flex-shrink: 0;
}

.inquiry-progress__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--esheba-navy);
}

.inquiry-progress__desc {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  color: var(--esheba-muted);
  line-height: 1.45;
}

.inquiry-progress__track {
  position: relative;
  height: 0.38rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(26, 122, 140, 0.12);
}

.inquiry-progress__bar {
  position: absolute;
  inset-block: 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a7a8c, #38bdf8, #1a7a8c);
  background-size: 200% 100%;
  animation: inquiry-bar-slide 1.15s ease-in-out infinite;
}

.inquiry-progress__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inquiry-progress__step {
  font-size: 0.7rem;
  color: var(--esheba-muted);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
}

.inquiry-progress__step.is-active {
  color: var(--esheba-teal);
  border-color: rgba(26, 122, 140, 0.35);
  background: rgba(26, 122, 140, 0.1);
  font-weight: 700;
}

.inquiry-progress__step.is-done {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

@keyframes inquiry-spin {
  to { transform: rotate(360deg); }
}

@keyframes inquiry-bar-slide {
  0% { inset-inline-start: -40%; }
  100% { inset-inline-start: 100%; }
}

[data-theme="dark"] .inquiry-progress {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.35));
}

[data-theme="dark"] .inquiry-progress__title {
  color: #e2e8f0;
}

[data-theme="dark"] .inquiry-progress__desc,
[data-theme="dark"] .inquiry-progress__step {
  color: #94a3b8;
}

[data-theme="dark"] .inquiry-progress__step {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .inquiry-progress__step.is-active {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(56, 189, 248, 0.14);
}

[data-theme="dark"] .inquiry-progress__track {
  background: rgba(148, 163, 184, 0.18);
}

.bank-preview-card--loading {
  pointer-events: none;
}

.bank-preview-card--loading .bank-preview-card__main {
  filter: saturate(0.7) brightness(0.92);
}

.bank-preview-card__loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  background: rgba(6, 18, 34, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.bank-preview-card__loading .inquiry-progress {
  width: min(100%, 18rem);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 24, 42, 0.82);
}

.bank-preview-card__loading .inquiry-progress__title,
.bank-preview-card__loading .inquiry-progress__desc,
.bank-preview-card__loading .inquiry-progress__step {
  color: rgba(255, 255, 255, 0.92);
}

.bank-preview-card__loading .inquiry-progress__step {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.bank-preview-card__loading .inquiry-progress__step.is-active {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(56, 189, 248, 0.16);
}

.bank-preview-card__loading .inquiry-progress__track {
  background: rgba(255, 255, 255, 0.14);
}


.inquiry-result-box {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
}

.inquiry-result-box .dash-panel__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--esheba-navy);
  white-space: nowrap;
}

.inquiry-result-box .inquiry-result-badge {
  margin: 0;
  flex-shrink: 0;
}

.inquiry-result-note {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--esheba-muted);
  font-weight: 500;
  min-width: 0;
}

.inquiry-result-note[hidden] {
  display: none !important;
}

.inquiry-result-note--cache {
  color: #92400e;
}

.inquiry-result-note--live {
  color: #047857;
}

.dash-panel__head--result {
  display: block;
  padding-bottom: 0.55rem;
}

.dash-panel__body--result {
  padding-top: 0.65rem;
}

.bank-preview-card--idle .bank-preview-card__numbers,
.bank-preview-card--idle .bank-preview-card__footer {
  opacity: 0.72;
}

.bank-preview-card--success {
  box-shadow: 0 10px 28px rgba(8, 28, 68, 0.28);
}

.bank-preview-card--success .bank-preview-card__numbers,
.bank-preview-card--success .bank-preview-card__footer {
  opacity: 1;
}

.bank-preview-card--success-cache {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5), 0 10px 28px rgba(8, 28, 68, 0.28);
}

.bank-preview-card {
  --bpc-focus: #f6e27a;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.1rem;
  grid-template-areas: "main rail";
  direction: ltr;
  overflow: hidden;
  border-radius: 8px;
  min-height: 0;
  background:
    linear-gradient(155deg, #0a2340 0%, #123a5c 52%, #0f4a62 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(8, 28, 68, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bank-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    repeating-linear-gradient(
      -32deg,
      transparent 0,
      transparent 7px,
      rgba(255, 255, 255, 0.07) 7px,
      rgba(255, 255, 255, 0.07) 8px
    );
}

.bank-preview-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.14) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.14) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 100%);
  mask-image: linear-gradient(to top, #000 8%, transparent 100%);
}

.bank-preview-card__main,
.bank-preview-card__rail {
  z-index: 1;
}

.bank-preview-card__main {
  grid-area: main;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem 0.65rem;
  min-width: 0;
  direction: rtl;
}

.bank-preview-card__brand-fade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.11;
}

.bank-preview-card__brand-fade img {
  width: min(42%, 7.5rem);
  height: auto;
  /* ???? ???? ??? ???? ???? ???? ???????? ??? E ???? ??????? */
  mix-blend-mode: screen;
  filter: none;
}

.bank-preview-card__main > *:not(.bank-preview-card__brand-fade) {
  position: relative;
  z-index: 1;
}

.bank-preview-card__rail {
  grid-area: rail;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.6rem 0.3rem 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.bank-preview-card__mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--esheba-logo-bg, #0B3D4C);
  box-shadow: none;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bank-preview-card__mark-img {
  width: 85%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.bank-preview-card__mark-letter {
  font-size: 1.05rem;
  font-weight: 900;
  color: #12306e;
  line-height: 1;
  letter-spacing: -0.04em;
}

.bank-preview-card__rail-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: none;
}

.bank-preview-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.bank-preview-card__bank {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.bank-preview-card__logo {
  position: static;
  width: 2rem;
  height: 2rem;
  opacity: 1;
  pointer-events: auto;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.15rem;
  flex-shrink: 0;
}

.bank-preview-card__logo[hidden] {
  display: none !important;
}

.bank-preview-card__bank-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-preview-card__watermark {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.38;
  letter-spacing: 0.01em;
  max-width: 58%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-preview-card__chip {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #d7dde8 0%, #9aa6bb 40%, #c9d0dc 70%, #8e9aaf 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.bank-preview-card__numbers {
  display: grid;
  gap: 0.32rem;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.bank-preview-card__line {
  min-width: 0;
}

.bank-preview-card__line[hidden] {
  display: none !important;
}

.bank-preview-card__field-label {
  display: block;
  font-size: 0.6rem;
  opacity: 0.7;
  margin-bottom: 0.08rem;
  font-weight: 600;
}

.bank-preview-card__field-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.bank-preview-card__field-value {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: none;
  transition: color 0.2s ease, font-size 0.2s ease, opacity 0.2s ease;
}

.bank-preview-card__sheba,
.bank-preview-card__card-no,
.bank-preview-card__account {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  word-break: normal;
  overflow-wrap: normal;
}

.bank-preview-card__sheba {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.bank-preview-card__card-no {
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.bank-preview-card__account {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.bank-preview-card__holder {
  font-size: 0.9rem;
  letter-spacing: 0;
  font-weight: 800;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.bank-preview-card__copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bank-preview-card__copy-btn svg {
  width: 0.85rem;
  height: 0.85rem;
}

.bank-preview-card__copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.48);
}

.bank-preview-card__copy-btn:active {
  transform: none;
}

.bank-preview-card__copy-btn.is-copied {
  background: rgba(52, 211, 153, 0.35);
  border-color: rgba(52, 211, 153, 0.7);
}

.bank-preview-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.15rem;
}

.bank-preview-card__status {
  flex-shrink: 0;
  max-width: 46%;
}

.bank-preview-card__status .bank-preview-card__field-label {
  display: inline;
  margin: 0 0.25rem 0 0;
  opacity: 0.75;
}

.bank-preview-card__status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.15rem 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 800;
  background: transparent;
  border: 0;
  line-height: 1.3;
  word-break: break-word;
}

.bank-preview-card__status-pill.is-active {
  color: #bbf7d0;
}

.bank-preview-card__status-pill.is-inactive {
  color: #fecaca;
}

.bank-preview-card__identity {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.bank-preview-card__identity .bank-preview-card__field-row {
  justify-content: flex-end;
}

.bank-preview-card__identity .bank-preview-card__field-value {
  flex: 0 1 auto;
  text-align: right;
  white-space: normal;
}

.ap-user-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--esheba-navy, #0f2744);
  font-size: 0.86rem;
  font-weight: 600;
}

.bank-preview-card__line.is-focus .bank-preview-card__field-label {
  opacity: 0.92;
  color: var(--bpc-focus);
}

.bank-preview-card__line.is-focus .bank-preview-card__field-value {
  color: #fffef5;
  font-weight: 800;
}

.bank-preview-card__line.is-focus .bank-preview-card__sheba {
  font-size: 0.88rem;
}

.bank-preview-card__line.is-focus .bank-preview-card__card-no {
  font-size: 1.18rem;
  color: #fff8cf;
}

.bank-preview-card__line.is-focus .bank-preview-card__copy-btn {
  border-color: rgba(246, 226, 122, 0.55);
  background: rgba(246, 226, 122, 0.18);
  color: #fff8cf;
}

.bank-preview-card__status.is-focus .bank-preview-card__field-label {
  color: var(--bpc-focus);
  opacity: 0.95;
}

.bank-preview-card__status.is-focus .bank-preview-card__status-pill {
  box-shadow: 0 0 0 1px rgba(246, 226, 122, 0.45);
}

.bank-preview-card__sheba-prefix {
  opacity: 0.85;
  margin-left: 0.15rem;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .dash-panel__body--result {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.85rem;
  }

  .bank-preview-card {
    grid-template-columns: minmax(0, 1fr) 3.1rem;
    overflow: hidden;
    border-radius: 8px;
  }

  .bank-preview-card__main {
    padding: 0.75rem 0.7rem 0.8rem;
    gap: 0.5rem;
  }

  .bank-preview-card__rail {
    padding: 0.55rem 0.25rem 0.65rem;
  }

  .bank-preview-card__rail-brand {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .bank-preview-card__mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .bank-preview-card__chip {
    width: 28px;
    height: 20px;
  }

  .bank-preview-card__field-row {
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .bank-preview-card__field-value,
  .bank-preview-card__sheba,
  .bank-preview-card__card-no,
  .bank-preview-card__account {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
  }

  .bank-preview-card__card-no {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }

  .bank-preview-card__sheba {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .bank-preview-card__account {
    font-size: 0.8rem;
  }

  .bank-preview-card__holder {
    font-size: 0.86rem;
  }

  .bank-preview-card__footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
  }

  .bank-preview-card__status {
    max-width: none;
  }

  .bank-preview-card__identity .bank-preview-card__field-row {
    justify-content: flex-end;
  }

  .bank-preview-card__line.is-focus .bank-preview-card__sheba {
    font-size: 0.78rem;
  }

  .bank-preview-card__line.is-focus .bank-preview-card__card-no {
    font-size: 1.02rem;
  }
}

@media (max-width: 420px) {
  .bank-preview-card {
    grid-template-columns: minmax(0, 1fr) 2.85rem;
  }

  .bank-preview-card__main {
    padding: 0.7rem 0.65rem 0.75rem;
  }

  .bank-preview-card__sheba {
    font-size: 0.68rem;
  }
}

.bank-search-select {
  position: relative;
  z-index: 5;
}

.bank-search-select__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--esheba-border);
  border-radius: 10px;
  background: var(--esheba-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.bank-search-select__list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  max-height: 280px;
}

.bank-search-select__item {
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-search-select__item:hover,
.bank-search-select__item:focus {
  background: rgba(26, 122, 140, 0.1);
}

.bank-search-select__item.is-selected {
  background: color-mix(in srgb, var(--esheba-teal, #0d9488) 16%, transparent);
  color: var(--esheba-teal, #0d9488);
  font-weight: 700;
}

.inquiry-notice--info {
  border-color: rgba(26, 122, 140, 0.3);
  background: rgba(26, 122, 140, 0.07);
}

.inquiry-notice--cache {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.07);
}

.quick-mode-tab.active {
  color: var(--esheba-teal);
  border-color: transparent;
  background: color-mix(in srgb, var(--esheba-teal) 14%, transparent);
  box-shadow: none;
}

.dash-panel--soft {
  border-style: dashed;
  box-shadow: none;
}

.dash-grid-2--tight {
  gap: 0.85rem;
}

.dash-guide-list {
  margin: 0;
  padding: 0 1rem 0 0;
  color: var(--esheba-muted);
  font-size: 0.84rem;
  line-height: 2;
}

.inquiry-steps {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--esheba-text);
  font-size: 0.9rem;
  line-height: 1.9;
}

.inquiry-steps__note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--esheba-muted);
  font-weight: 600;
}

.inquiry-service-meta {
  margin-top: 0.85rem;
}

.inquiry-service-meta__card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 39, 68, 0.04);
  border: 1px solid var(--esheba-border, #e5e7eb);
}

.inquiry-service-meta__tier {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  margin-bottom: 0.45rem;
}

.inquiry-service-meta__summary,
.inquiry-service-meta__returned,
.inquiry-service-meta__price,
.inquiry-service-meta__billing {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--esheba-muted);
  line-height: 1.6;
}

.dash-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.dash-table thead {
  background: var(--esheba-table-head-bg);
}

.dash-table th {
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--esheba-table-head-text);
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--esheba-border);
  text-align: right;
  white-space: nowrap;
}

.dash-table td {
  padding: 0.75rem;
  color: var(--esheba-text);
  border-bottom: 1px solid var(--esheba-border);
  vertical-align: middle;
  text-align: right;
}

/*
  اعداد/کدهای LTR باید زیر هدر RTL بمانند.
  dir=ltr به‌تنهایی text-align را چپ می‌کند و مبلغ کنار ستون بعدی دیده می‌شود.
*/
.dash-table td[dir="ltr"],
.dash-table th[dir="ltr"],
.dash-table .dash-table__num,
.ap-table td[dir="ltr"],
.ap-table th[dir="ltr"],
.ap-table .dash-table__num {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.dash-table tbody tr:nth-child(even) td {
  background: var(--esheba-table-row-alt);
}

.dash-table tbody tr:hover td {
  background: var(--esheba-table-row-hover);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.order-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.order-table-wrap .dash-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.dash-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dash-badge--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.dash-badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

[data-theme="dark"] .dash-badge--success {
  color: #4ade80;
}

[data-theme="dark"] .dash-badge--danger {
  color: #f87171;
}

@media (max-width: 991px) {
  .dash-collapse-btn,
  body.dash-skin-solid .dash-collapse-btn {
    display: none !important;
  }
}

/* Mobile — drawer overlay; content uses full width */
@media (max-width: 991px) {
  .dash-sidebar {
    width: min(280px, 88vw);
    transform: translateX(100%);
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .dash-sidebar__close {
    display: flex;
  }

  .dash-main {
    margin-right: 0;
  }

  .dash-menu-btn {
    display: flex;
  }

  .dash-overlay.open {
    display: block;
  }

  .dash-wallet-pill {
    display: inline-flex;
    max-width: min(42vw, 9.5rem);
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  .dash-wallet-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dash-topbar {
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .dash-topbar__left {
    gap: 0.25rem;
  }

  .dash-topbar__actions {
    gap: 0.15rem;
  }

  .dash-topbar__title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }

  .dash-icon-btn,
  .esheba-theme-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 768px) {
  .dash-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .dash-stats--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dash-grid-2 {
    grid-template-columns: 1.2fr 1fr;
  }

  .dash-quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .dash-content {
    padding: 1.5rem;
  }
}

/* Profile page */
.profile-page__lead {
  margin: 0 0 0.75rem;
}

.profile-shell {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  min-width: 0;
}

.profile-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0.85rem;
  padding: 0.2rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.profile-tabs--side {
  margin: 0;
  width: 100%;
}

.profile-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  border-radius: 3px;
  padding: 0.38rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.profile-tab:hover {
  color: var(--esheba-text);
  background: rgba(0, 0, 0, 0.04);
}

.profile-tab.active {
  color: var(--esheba-teal);
  border-color: transparent;
  background: rgba(26, 122, 140, 0.12);
}

/* Desktop: tabs on the right (RTL start), content on the left */
@media (min-width: 768px) {
  .profile-shell {
    grid-template-columns: 11.75rem minmax(0, 1fr);
  }

  .profile-tabs--side {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    position: sticky;
    top: 0.75rem;
    align-self: start;
  }

  .profile-tabs--side .profile-tab {
    width: 100%;
    text-align: start;
    white-space: normal;
    line-height: 1.35;
    padding: 0.55rem 0.7rem;
  }

  .profile-tabs--side .profile-tab.active {
    box-shadow: inset -3px 0 0 var(--esheba-teal);
  }
}

.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
}

.profile-grid__full {
  grid-column: 1 / -1;
}

.profile-complete {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--esheba-teal);
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  padding: 0.22rem 0.5rem;
}

.profile-account__layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
}

.profile-account__content {
  min-width: 0;
}

.profile-head--compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--esheba-border);
}

.profile-head__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt, rgba(0, 0, 0, 0.02));
}

.profile-chip span {
  font-weight: 700;
  color: var(--esheba-text);
}

.profile-head__chips .role-badge-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.profile-form__pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.profile-field.profile-field--inline {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  padding: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  justify-content: stretch;
}

.profile-field--inline .profile-field__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esheba-muted);
  white-space: nowrap;
}

.profile-field--inline .profile-field__input,
.profile-field--inline .profile-field__control {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.profile-field--inline .profile-field__value {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.profile-field--span {
  grid-column: 1 / -1;
  max-width: 22rem;
}

@media (max-width: 720px) {
  .profile-account__layout {
    grid-template-columns: 1fr;
  }

  .profile-form__pairs {
    grid-template-columns: 1fr;
  }

  .profile-field--span {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .profile-field.profile-field--inline {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--esheba-navy, #0B3D4C);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-weight: 700;
  color: var(--esheba-navy);
  font-size: 0.95rem;
}

.profile-meta {
  font-size: 0.8rem;
  color: var(--esheba-muted);
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.profile-fields--meta {
  margin-top: 0.65rem;
}

.profile-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.profile-form__grid .profile-field {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.25rem;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
}

.profile-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esheba-muted);
}

.profile-field__value {
  font-size: 0.84rem;
  color: var(--esheba-navy);
  font-weight: 600;
}

.profile-birthdate-edit {
  margin-top: 0;
}

.profile-birthdate-selects {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: 0.4rem;
}

.profile-birthdate-select {
  margin-top: 0;
  min-width: 0;
}

.profile-field__input {
  width: 100%;
  margin-top: 0;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  color: var(--esheba-text);
  padding: 0.5rem 0.65rem;
  font-family: var(--esheba-font);
  font-size: 0.84rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.profile-field__input::placeholder {
  color: var(--esheba-muted);
  opacity: 0.75;
}

.profile-field__input:disabled {
  opacity: 0.75;
}

.profile-field__input:not(:disabled):focus {
  outline: none;
  border-color: var(--esheba-teal);
  box-shadow: none;
}

.profile-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.profile-tip {
  margin: 0.65rem 0 0;
}

.profile-password-section,
.profile-role-mock {
  margin-top: 0.85rem;
}

.security-list {
  display: grid;
  gap: 0.5rem;
}

.security-item {
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  background: var(--esheba-bg-alt);
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: center;
}

.security-item > :last-child {
  margin-inline-start: auto;
  flex-shrink: 0;
}

.security-item > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.security-item__title {
  color: var(--esheba-navy);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 0.15rem;
}

.security-item__desc {
  color: var(--esheba-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.security-item__link {
  color: var(--esheba-teal);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}

.pref-list {
  display: grid;
  gap: 0.5rem;
}

.pref-item {
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  background: var(--esheba-bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  transition: var(--esheba-transition);
  border-radius: 999px;
}

.switch__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  right: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--esheba-transition);
}

.switch input:checked + .switch__slider {
  background: var(--esheba-teal);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(-18px);
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.activity-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
}

.activity-item__dot {
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--esheba-teal);
  box-shadow: none;
  flex-shrink: 0;
}

.activity-item__title {
  color: var(--esheba-navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.activity-item__meta {
  color: var(--esheba-muted);
  font-size: 0.78rem;
}

.notif-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.notif-tag--urgent {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.notif-tag--important {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.notif-tag--normal {
  background: rgba(26, 122, 140, 0.14);
  color: var(--esheba-teal);
}

.notifications-page {
  display: grid;
  gap: 0.85rem;
}

.notif-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0.2rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.notif-filter {
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  border-radius: 3px;
  padding: 0.38rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.notif-filter:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

.notif-filter:focus-visible {
  outline: 2px solid var(--esheba-teal);
  outline-offset: 2px;
}

.notif-filter.active {
  color: var(--esheba-teal);
  border-color: transparent;
  background: color-mix(in srgb, var(--esheba-teal) 14%, transparent);
  box-shadow: none;
}

.notif-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.notif-page-item {
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  padding: 0.7rem 0.8rem;
  box-shadow: none;
}

.notif-page-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.notif-page-item__time {
  font-size: 0.74rem;
  color: var(--esheba-muted);
  white-space: nowrap;
}

.notif-page-item__title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1.4;
}

.notif-page-item__text {
  margin: 0;
  color: var(--esheba-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

[data-theme="dark"] .notif-tag--urgent {
  color: #f87171;
}

[data-theme="dark"] .notif-tag--important {
  color: #fbbf24;
}

/* Orders page */
.orders-stats {
  margin-bottom: 0.85rem;
}

.orders-stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.orders-stat-tile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
  min-width: 0;
}

.orders-stat-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.orders-stat-tile__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.orders-stat-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.orders-stat-tile__value {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-stat-tile__label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.9;
}

.orders-stat-tile--count {
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.14), rgba(61, 184, 200, 0.08));
  border-color: rgba(26, 122, 140, 0.22);
  color: #0f4c5c;
}

.orders-stat-tile--count .orders-stat-tile__icon {
  background: rgba(26, 122, 140, 0.18);
  color: var(--esheba-teal, #1a7a8c);
}

.orders-stat-tile--amount {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(234, 179, 8, 0.08));
  border-color: rgba(180, 140, 20, 0.22);
  color: #7c5e10;
}

.orders-stat-tile--amount .orders-stat-tile__icon {
  background: rgba(212, 175, 55, 0.22);
  color: #a16207;
}

[data-theme="dark"] .orders-stat-tile--count {
  background: linear-gradient(135deg, rgba(98, 196, 212, 0.16), rgba(26, 122, 140, 0.08));
  border-color: rgba(98, 196, 212, 0.25);
  color: #b8ecf4;
}

[data-theme="dark"] .orders-stat-tile--count .orders-stat-tile__icon {
  background: rgba(98, 196, 212, 0.2);
  color: #62c4d4;
}

[data-theme="dark"] .orders-stat-tile--amount {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(234, 179, 8, 0.06));
  border-color: rgba(251, 191, 36, 0.22);
  color: #fde68a;
}

[data-theme="dark"] .orders-stat-tile--amount .orders-stat-tile__icon {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

@media (max-width: 767px) {
  .orders-stat-tiles {
    gap: 0.45rem;
  }

  .orders-stat-tile {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
  }

  .orders-stat-tile__value {
    font-size: 1.15rem;
  }

  .orders-stat-tile__label {
    font-size: 0.65rem;
  }
}

/* Dashboard home — app-style hero + shortcuts */
.dash-home {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dash-home .panel-promos {
  margin-bottom: 0;
}

.dash-home__top {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-home-hero {
  display: block;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(212, 175, 55, 0.22), transparent 55%),
    linear-gradient(145deg, #0f2744 0%, #1a3a5c 48%, #0d2038 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-home-hero:hover,
.dash-home-hero:focus-visible {
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.22);
}

.dash-home-hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.dash-home-hero__label {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
}

.dash-home-hero__link {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
  white-space: nowrap;
}

.dash-home-hero__value-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dash-home-hero__value {
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #fde68a;
}

.dash-home-hero__unit {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
}

.dash-home-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  max-width: 12rem;
}

.dash-home-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: 14px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.dash-home-action:hover,
.dash-home-action:focus-visible {
  text-decoration: none;
  color: inherit;
}

.dash-home-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
}

.dash-home-action__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.dash-home-action__label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.dash-home-action--inquiry .dash-home-action__icon {
  background: rgba(26, 122, 140, 0.14);
  color: var(--esheba-teal, #1a7a8c);
}

.dash-home-action--charge .dash-home-action__icon {
  background: rgba(212, 175, 55, 0.16);
  color: #a16207;
}

.dash-home-action--package .dash-home-action__icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.dash-home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.dash-home-hub {
  margin: 1rem 0 1.25rem;
}

.dash-home-stat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.dash-home-stat:hover,
.dash-home-stat:focus-visible {
  text-decoration: none;
  color: inherit;
}

.dash-home-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.dash-home-stat__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dash-home-stat__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.dash-home-stat__value {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-home-stat__label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.88;
}

.dash-home-stat--package {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.06));
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e40af;
}

.dash-home-stat--package .dash-home-stat__icon {
  background: rgba(59, 130, 246, 0.16);
  color: #2563eb;
}

.dash-home-stat--usage {
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.14), rgba(61, 184, 200, 0.08));
  border-color: rgba(26, 122, 140, 0.22);
  color: #0f4c5c;
}

.dash-home-stat--usage .dash-home-stat__icon {
  background: rgba(26, 122, 140, 0.18);
  color: var(--esheba-teal, #1a7a8c);
}

[data-theme="dark"] .dash-home-hero {
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(251, 191, 36, 0.16), transparent 55%),
    linear-gradient(145deg, #0a1628 0%, #132a45 48%, #081220 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .dash-home-hero__value {
  color: #fbbf24;
}

[data-theme="dark"] .dash-home-action {
  background: var(--ms-card-bg, var(--esheba-surface));
  border-color: var(--ms-card-border, var(--esheba-border));
}

[data-theme="dark"] .dash-home-action--inquiry .dash-home-action__icon {
  background: rgba(98, 196, 212, 0.16);
  color: #62c4d4;
}

[data-theme="dark"] .dash-home-action--charge .dash-home-action__icon {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

[data-theme="dark"] .dash-home-action--package .dash-home-action__icon {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
}

[data-theme="dark"] .dash-home-stat--package {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(37, 99, 235, 0.06));
  border-color: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}

[data-theme="dark"] .dash-home-stat--package .dash-home-stat__icon {
  background: rgba(96, 165, 250, 0.18);
  color: #60a5fa;
}

[data-theme="dark"] .dash-home-stat--usage {
  background: linear-gradient(135deg, rgba(98, 196, 212, 0.16), rgba(26, 122, 140, 0.08));
  border-color: rgba(98, 196, 212, 0.25);
  color: #b8ecf4;
}

[data-theme="dark"] .dash-home-stat--usage .dash-home-stat__icon {
  background: rgba(98, 196, 212, 0.2);
  color: #62c4d4;
}

@media (max-width: 767px) {
  .dash-home {
    gap: 0.65rem;
  }

  .dash-home-hero {
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 14px;
    box-shadow: none;
  }

  .dash-home-hero:hover,
  .dash-home-hero:focus-visible {
    transform: none;
    box-shadow: none;
  }

  .dash-home-hero__value {
    font-size: 1.85rem;
  }

  .dash-home-action {
    padding: 0.55rem 0.25rem;
    border-radius: 12px;
  }

  .dash-home-action:hover {
    border-color: var(--esheba-border);
    background: var(--esheba-surface);
  }

  .dash-home-action__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
  }

  .dash-home-action__label {
    font-size: 0.68rem;
  }

  .dash-home-stat {
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
  }

  .dash-home-stat__value {
    font-size: 0.88rem;
  }

  .dash-home-inquiry {
    margin-top: 0.15rem !important;
  }
}

.order-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0.85rem;
  padding: 0.2rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.order-filter {
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  border-radius: 3px;
  padding: 0.38rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.order-filter:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

.order-filter.active {
  color: var(--esheba-teal);
  border-color: transparent;
  background: color-mix(in srgb, var(--esheba-teal) 14%, transparent);
  box-shadow: none;
}

.order-table th,
.order-table td {
  white-space: nowrap;
}

.order-table__id {
  width: 18%;
}

.order-table__type {
  width: 18%;
}

.order-table__amount {
  width: 20%;
}

.order-table__status {
  width: 14%;
}

.order-table__when {
  width: 30%;
}

.order-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.48rem;
  border-radius: 4px;
}

.order-type--package {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.order-type--wallet {
  background: rgba(212, 175, 55, 0.16);
  color: #a16207;
}

[data-theme="dark"] .order-type--package {
  color: #60a5fa;
}

[data-theme="dark"] .order-type--wallet {
  color: #fbbf24;
}

.dash-badge--failed {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.dash-badge--pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

[data-theme="dark"] .dash-badge--failed {
  color: #f87171;
}

[data-theme="dark"] .dash-badge--pending {
  color: #fbbf24;
}

@media (max-width: 767px) {
  .order-table {
    font-size: 0.78rem;
  }

  /* Orders (خریدها) mobile: کارت اپلیکیشنی فشرده */
  .order-table thead {
    display: none;
  }

  .order-table,
  .order-table tbody,
  .order-table tr,
  .order-table td {
    display: block;
    width: 100%;
  }

  .order-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id status"
      "type type"
      "amount amount"
      "when when";
    gap: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--esheba-border);
    border-radius: 12px;
    background: var(--esheba-surface);
  }

  .order-table tr:last-child {
    margin-bottom: 0;
  }

  .order-table tr:hover td,
  .order-table tbody tr:hover td {
    background: transparent;
  }

  .order-table td {
    padding: 0;
    border: none;
    text-align: right !important;
    direction: rtl;
    white-space: normal;
    overflow: visible;
  }

  .order-table td::before {
    display: none;
  }

  .order-table__id {
    grid-area: id;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--esheba-muted);
    direction: ltr;
    text-align: right !important;
    unicode-bidi: isolate;
  }

  .order-table__type {
    grid-area: type;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .order-table__amount {
    grid-area: amount;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--esheba-navy);
    direction: ltr;
    text-align: right !important;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
  }

  .order-table__status {
    grid-area: status;
    justify-self: end;
    align-self: start;
  }

  .order-table__when {
    grid-area: when;
    font-size: 0.72rem;
    color: var(--esheba-muted);
    direction: rtl;
    text-align: right !important;
    padding-top: 0.15rem;
    border-top: 1px dashed color-mix(in srgb, var(--esheba-border) 80%, transparent);
    margin-top: 0.15rem;
  }

  .order-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    padding: 0;
  }
}

/* Wallet page */
.wallet-balance-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  background: var(--esheba-navy);
  color: #fff;
  box-shadow: none;
  border: 1px solid transparent;
}

.wallet-balance-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 0;
  white-space: nowrap;
}

.wallet-balance-card__value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.wallet-balance-card__value span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.wallet-balance-card__meta {
  margin: 0;
  margin-inline-start: auto;
  font-size: 0.75rem;
  opacity: 0.8;
  white-space: nowrap;
}

.wallet-main-grid {
  margin-top: 0.85rem;
}

.wallet-charge-form .quick-inquiry-form__actions {
  margin-top: 0.75rem;
}

.wallet-gateway-choices {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
  box-shadow: none;
}

.wallet-charge-form .quick-inquiry-form__row {
  margin-bottom: 0.35rem;
}

.wallet-charge-form .quick-inquiry-form__actions {
  margin-top: 0.85rem;
  padding-top: 0;
}

.wallet-charge-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.wallet-charge-preset {
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  color: var(--esheba-navy);
  border-radius: 4px;
  padding: 0.45rem 0.4rem;
  font-family: var(--esheba-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  box-shadow: none;
}

.wallet-charge-preset:hover,
.wallet-charge-preset.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--esheba-teal) 14%, transparent);
  color: var(--esheba-teal);
}

.wallet-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0.85rem 0;
  padding: 0.2rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.wallet-filter {
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  border-radius: 3px;
  padding: 0.38rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.wallet-filter:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

.wallet-filter.active {
  color: var(--esheba-teal);
  border-color: transparent;
  background: color-mix(in srgb, var(--esheba-teal) 14%, transparent);
  box-shadow: none;
}

.wallet-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.48rem;
  border-radius: 4px;
  white-space: nowrap;
}

.wallet-type--charge {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.wallet-type--inquiry {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.wallet-type--gift {
  background: rgba(212, 175, 55, 0.16);
  color: #a16207;
}

.wallet-type--affiliate {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.wallet-type--refund {
  background: rgba(26, 122, 140, 0.14);
  color: var(--esheba-teal);
}

.wallet-amount--plus {
  color: #15803d;
  font-weight: 700;
}

.wallet-amount--minus {
  color: #dc2626;
  font-weight: 700;
}

.wallet-amount--gift {
  color: #a16207;
  font-weight: 700;
}

.wallet-amount--affiliate {
  color: #1a7a8c;
  font-weight: 700;
}

.dash-summary-item--deposit {
  border-color: color-mix(in srgb, #15803d 28%, var(--esheba-border));
  background: color-mix(in srgb, #22c55e 8%, var(--esheba-surface));
  border-inline-start: 3px solid #16a34a;
}

.dash-summary-item--inquiry {
  border-color: color-mix(in srgb, #dc2626 28%, var(--esheba-border));
  background: color-mix(in srgb, #ef4444 8%, var(--esheba-surface));
  border-inline-start: 3px solid #dc2626;
}

.dash-summary-item--gift {
  border-color: color-mix(in srgb, #d4af37 35%, var(--esheba-border));
  background: color-mix(in srgb, #d4af37 10%, var(--esheba-surface));
  border-inline-start: 3px solid #ca8a04;
}

.dash-summary-item--affiliate {
  border-color: color-mix(in srgb, #1a7a8c 30%, var(--esheba-border));
  background: color-mix(in srgb, #1a7a8c 8%, var(--esheba-surface));
  border-inline-start: 3px solid #1a7a8c;
}

.wallet-table {
  table-layout: fixed;
  width: 100%;
}

.wallet-table th,
.wallet-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-table__type {
  width: 14%;
  white-space: nowrap;
}

.wallet-table__desc {
  width: 44%;
}

.wallet-table__amount {
  width: 18%;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right !important;
  white-space: nowrap;
}

.wallet-table__date {
  width: 24%;
  text-align: right !important;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.wallet-table th.wallet-table__amount {
  text-align: right !important;
  direction: rtl;
}

.wallet-table th.wallet-table__date {
  text-align: right !important;
  direction: rtl;
}

/* بلوک تاریخ: در RTL با flex-end به چپ می‌رود — فقط text-align */
.wallet-when {
  display: block;
  text-align: right;
  line-height: 1.3;
}

.wallet-when__date,
.wallet-when__time {
  display: block;
  text-align: right;
}

.wallet-when__date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--esheba-text, inherit);
  font-variant-numeric: tabular-nums;
}

.wallet-when__time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esheba-muted, #64748b);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .wallet-amount--plus {
  color: #4ade80;
}

[data-theme="dark"] .wallet-amount--minus {
  color: #f87171;
}

[data-theme="dark"] .wallet-amount--gift {
  color: #fbbf24;
}

[data-theme="dark"] .wallet-amount--affiliate {
  color: #62c4d4;
}

[data-theme="dark"] .wallet-type--charge {
  color: #4ade80;
}

[data-theme="dark"] .wallet-type--inquiry {
  color: #f87171;
}

@media (min-width: 576px) {
  .wallet-charge-presets {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .wallet-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
    scrollbar-width: thin;
  }

  .wallet-filter {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .wallet-balance-card {
    padding: 0.65rem 0.85rem;
    gap: 0.25rem 0.55rem;
  }

  .wallet-balance-card__value {
    font-size: 1.05rem;
    word-break: break-word;
  }

  .wallet-balance-card__meta {
    margin-inline-start: 0;
    flex: 1 0 100%;
    opacity: 0.75;
  }

  .wallet-charge-form .esheba-btn--primary,
  .wallet-charge-form .esheba-btn--gold {
    width: 100%;
  }

  .wallet-table thead {
    display: none;
  }

  .wallet-table,
  .wallet-table tbody,
  .wallet-table tr,
  .wallet-table td {
    display: block;
    width: 100%;
  }

  .wallet-table tr {
    margin-bottom: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--esheba-border);
    border-radius: 0.85rem;
    background: var(--esheba-surface);
  }

  .wallet-table tr:last-child {
    margin-bottom: 0;
  }

  .wallet-table td {
    display: grid;
    grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    align-items: start;
    padding: 0.35rem 0;
    border: none;
    text-align: right !important;
    direction: rtl;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .wallet-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--esheba-muted);
  }

  .wallet-table__amount {
    direction: ltr;
    text-align: right !important;
    unicode-bidi: isolate;
  }

  .wallet-table__date {
    direction: rtl;
    text-align: right !important;
  }

  .wallet-when,
  .wallet-when__date,
  .wallet-when__time {
    text-align: right;
  }

  .wallet-table__desc {
    word-break: break-word;
  }

  .order-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    padding: 0;
  }

  .order-table-wrap .wallet-table {
    border: none;
  }
}

/* Packages page */
.packages-page__note {
  margin: 0 0 0.75rem;
}

.packages-extra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.packages-extra-hint {
  margin: 0 0 0.75rem;
}

.packages-notes-panel {
  margin-top: 0.85rem;
}

.package-active-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  margin-bottom: 0.85rem;
  box-shadow: none;
}

.package-active-banner__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esheba-muted);
  margin: 0;
  white-space: nowrap;
}

.package-active-banner__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--esheba-navy);
  margin: 0;
}

.package-active-banner__meta {
  font-size: 0.78rem;
  color: var(--esheba-muted);
  margin: 0;
  margin-inline-start: auto;
}

.package-active-banner .dash-badge {
  border-radius: 4px;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.package-card {
  position: relative;
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  padding: 1rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.package-card--featured {
  border-color: color-mix(in srgb, var(--esheba-gold, #d4af37) 55%, var(--esheba-border));
  box-shadow: none;
}

.package-card__ribbon {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--esheba-gold, #d4af37);
  color: #1a2e35;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
}

.package-card__ribbon--custom {
  background: var(--esheba-teal);
  color: #fff;
}

.package-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.package-card--featured .package-card__head,
.package-card--custom .package-card__head {
  margin-top: 1.35rem;
}

.package-card__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.package-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
  background: var(--esheba-bg-alt);
  color: var(--esheba-muted);
}

.package-card__badge--gold {
  background: color-mix(in srgb, var(--esheba-gold, #d4af37) 18%, transparent);
  color: #a16207;
}

.package-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--esheba-navy);
  margin-bottom: 0.65rem;
}

.package-card__price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--esheba-muted);
}

.package-card__features {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.package-card__features li {
  font-size: 0.82rem;
  color: var(--esheba-text);
  padding-right: 1rem;
  position: relative;
}

.package-card__features li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--esheba-teal);
}

.package-card__desc {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--esheba-muted);
  line-height: 1.7;
  flex: 1;
}

.package-card__btn {
  width: 100%;
  justify-content: center;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .packages-extra-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .package-active-banner__meta {
    margin-inline-start: 0;
    flex: 1 0 100%;
  }
}

@media (min-width: 992px) {
  .profile-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-tabs,
  .profile-tabs--side {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .profile-tabs .profile-tab,
  .profile-tabs--side .profile-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .security-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .security-item > :last-child {
    margin-inline-start: 0;
  }

  .device-item__actions {
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-start;
    padding-inline-start: 2rem;
  }
}

/* Affiliate page */
.affiliate-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(26, 122, 140, 0.45);
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.08), rgba(61, 184, 200, 0.04));
  margin-bottom: 1rem;
}

.affiliate-code-box__code {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--esheba-navy);
}

.affiliate-link-box {
  margin-top: 0.25rem;
}

.affiliate-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.affiliate-link-row .quick-inquiry-form__control {
  flex: 1;
  min-width: 0;
}

.affiliate-table th,
.affiliate-table td {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .affiliate-code-box {
    flex-direction: column;
    align-items: stretch;
  }

  .affiliate-code-box__code {
    text-align: center;
  }

  .affiliate-link-row {
    flex-direction: column;
  }

  .affiliate-table {
    font-size: 0.78rem;
  }
}

/* Inquiry shortcuts (dashboard) */
.inquiry-shortcut-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.inquiry-shortcut-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--esheba-radius);
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--esheba-transition), box-shadow var(--esheba-transition), transform var(--esheba-transition);
}

.inquiry-shortcut-card:hover {
  border-color: rgba(26, 122, 140, 0.45);
  box-shadow: var(--esheba-shadow);
  transform: translateY(-1px);
  color: inherit;
}

.inquiry-shortcut-card__icon {
  font-size: 1.35rem;
}

.inquiry-shortcut-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.inquiry-shortcut-card__desc {
  font-size: 0.8rem;
  color: var(--esheba-muted);
}

@media (min-width: 768px) {
  .inquiry-shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Financial inquiry */
.financial-service-desc {
  margin: 0.85rem 0 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
}

.financial-service-desc__title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--esheba-navy);
}

.financial-service-desc__price {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--esheba-teal, #1a7a8c);
  font-variant-numeric: tabular-nums;
}

.financial-service-desc__body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--esheba-muted);
}

.financial-form-panel {
  display: none;
  gap: 0.8rem;
}

.financial-form-panel.active {
  display: grid;
}

.bulk-mode-panel {
  display: none;
}

.bulk-mode-panel.active {
  display: block;
  margin-top: 1rem;
}

.inquiry-result-panel {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.inquiry-result-mount {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.offense-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.offense-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 122, 140, 0.2);
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.12), rgba(61, 184, 200, 0.06));
}

.offense-summary__item--amount {
  border-color: rgba(180, 140, 20, 0.22);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(234, 179, 8, 0.06));
}

.offense-summary__label {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}

.offense-summary__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--esheba-navy);
  font-variant-numeric: tabular-nums;
}

.offense-summary__plate {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--esheba-muted);
  text-align: left;
}

.offense-card-list {
  display: grid;
  gap: 0.65rem;
}

.offense-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--esheba-border);
  border-radius: 14px;
  background: var(--esheba-surface);
}

.offense-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1.45;
}

.offense-card__amount {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #a16207;
  font-variant-numeric: tabular-nums;
}

.offense-card__place,
.offense-card__when,
.offense-card__note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--esheba-muted);
}

.offense-card__note {
  color: var(--esheba-teal, #1a7a8c);
  font-weight: 600;
}

.offense-card__image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--esheba-teal, #1a7a8c) 10%, transparent);
  font-size: 0.78rem;
  font-weight: 700;
}

.offense-card__image-muted {
  font-weight: 600;
  color: var(--esheba-muted);
}
  color: var(--esheba-teal, #1a7a8c);
}

.offense-card__image-btn {
  border: 1px solid color-mix(in srgb, var(--esheba-teal, #1a7a8c) 35%, transparent);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--esheba-teal, #1a7a8c);
  background: var(--esheba-surface);
}

.offense-card__details {
  margin-top: 0.35rem;
  border-top: 1px dashed var(--esheba-border);
  padding-top: 0.45rem;
}

.offense-card__details > summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--esheba-teal, #1a7a8c);
  list-style: none;
  user-select: none;
}

.offense-card__details > summary::-webkit-details-marker {
  display: none;
}

.offense-card__details > summary::before {
  content: "▼ ";
  font-size: 0.65rem;
}

.offense-card__details[open] > summary::before {
  content: "▲ ";
}

.offense-card__detail-list {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.offense-card__detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.offense-card__detail-list dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--esheba-muted);
}

.offense-card__detail-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.offense-card__detail-list dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--esheba-navy);
}

.offense-empty {
  margin: 0;
  text-align: center;
  color: var(--esheba-muted);
  font-size: 0.88rem;
  padding: 1.5rem 0.5rem;
}

.guild-card > .offense-card__detail-list {
  margin-top: 0.35rem;
}

.guild-card > .offense-card__detail-list > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 32%) 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(26, 122, 140, 0.1);
}

.guild-card > .offense-card__detail-list > div:last-child {
  border-bottom: none;
}

.guild-card > .offense-card__detail-list dt {
  font-size: 0.78rem;
  color: var(--esheba-muted);
  font-weight: 600;
  margin: 0;
}

[data-theme="dark"] .offense-card__amount {
  color: #fbbf24;
}

[data-theme="dark"] .offense-summary__value {
  color: inherit;
}

@media (max-width: 767px) {
  .offense-summary {
    grid-template-columns: 1fr;
  }

  .offense-card {
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
  }

  .offense-card__amount {
    font-size: 1.05rem;
  }
}

.inquiry-result-panel__status {
  text-align: center;
  padding: 1.5rem 1rem;
}

.inquiry-result-panel__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.65rem;
  opacity: 0.65;
}

.inquiry-result-panel__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.inquiry-result-panel__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--esheba-muted);
  line-height: 1.8;
}

.inquiry-result-panel__list {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.inquiry-result-panel__list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--esheba-border);
}

.inquiry-result-panel__list dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--esheba-muted);
}

.inquiry-result-panel__list dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--esheba-navy);
  text-align: left;
}

.inquiry-result-panel__list--rich {
  gap: 0.75rem;
}

.inquiry-result-panel__list--rich > .inquiry-result-row,
.inquiry-result-panel__list--nested > .inquiry-result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--esheba-border);
}

.inquiry-result-value {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(100%, 22rem);
  justify-content: flex-end;
}

.inquiry-result-value__text {
  font-weight: 700;
  word-break: break-word;
  text-align: left;
}

.inquiry-result-value__text--ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.inquiry-result-copy {
  flex-shrink: 0;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  color: var(--esheba-teal, #1a7a8c);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.4;
}

.inquiry-result-copy:hover {
  border-color: var(--esheba-teal, #1a7a8c);
}

.inquiry-result-copy.is-copied {
  background: color-mix(in srgb, var(--esheba-teal, #1a7a8c) 12%, transparent);
}

.inquiry-result-block {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--esheba-border);
  border-radius: 10px;
  background: var(--esheba-bg-alt, #f7fafb);
}

.inquiry-result-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.inquiry-result-block__title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.inquiry-result-json {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.72rem;
  line-height: 1.55;
  overflow: auto;
  max-height: 16rem;
  white-space: pre;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: text;
}

.inquiry-result-panel__list--nested {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

[data-theme="dark"] .inquiry-result-block {
  background: color-mix(in srgb, var(--esheba-surface) 88%, #000);
}

[data-theme="dark"] .inquiry-result-json {
  background: #020617;
}

@media (max-width: 767px) {
  .inquiry-result-panel__list--rich > .inquiry-result-row,
  .inquiry-result-panel__list--nested > .inquiry-result-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .inquiry-result-value {
    max-width: 100%;
    justify-content: space-between;
  }

  .inquiry-result-json {
    max-height: 12rem;
    font-size: 0.68rem;
  }
}

/* Bulk inquiry */
.bulk-service-row {
  max-width: 420px;
}

.bulk-actions {
  margin-top: 1rem;
}

.bulk-history-panel {
  margin-top: 1.25rem;
}

.bulk-history-search {
  max-width: 200px;
}

.bulk-upload-zone {
  position: relative;
  margin-top: 1rem;
  border: 1px dashed var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  box-shadow: none;
}

.bulk-upload-zone:hover,
.bulk-upload-zone.dragover,
.bulk-upload-zone.has-file {
  border-color: color-mix(in srgb, var(--esheba-teal) 45%, var(--esheba-border));
  background: color-mix(in srgb, var(--esheba-teal) 8%, var(--esheba-surface));
}

.bulk-upload-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.bulk-upload-zone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--esheba-teal);
}

.bulk-upload-zone__title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--esheba-navy);
}

.bulk-upload-zone__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--esheba-muted);
}

.bulk-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
  box-shadow: none;
}

.bulk-summary__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

.bulk-summary__label {
  color: var(--esheba-muted);
}

.bulk-summary__value {
  font-weight: 700;
  color: var(--esheba-navy);
}

.bulk-table th,
.bulk-table td {
  white-space: nowrap;
}

@media (min-width: 576px) {
  .bulk-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .bulk-table {
    font-size: 0.78rem;
  }
}

/* Support page */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.support-page {
  display: grid;
  gap: 0.85rem;
}

.support-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
}

.support-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.support-filter {
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  border-radius: 3px;
  padding: 0.38rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.support-filter:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

.support-filter:focus-visible,
.support-ticket-item:focus-visible,
.support-create-panel__close:focus-visible {
  outline: 2px solid var(--esheba-teal);
  outline-offset: 2px;
}

.support-filter.active {
  color: var(--esheba-teal);
  border-color: transparent;
  background: color-mix(in srgb, var(--esheba-teal) 14%, transparent);
  box-shadow: none;
}

.support-create-panel {
  margin-bottom: 0;
}

.support-create-panel .dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-create-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  color: var(--esheba-muted);
  cursor: pointer;
  padding: 0;
}

.support-create-panel__close:hover {
  color: var(--esheba-navy);
  background: var(--esheba-bg-alt);
}

.support-textarea {
  resize: vertical;
  min-height: 96px;
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
}

.support-list-panel .dash-panel__body {
  padding-top: 0.35rem;
}

.support-ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.support-ticket-item {
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  background: var(--esheba-surface);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  box-shadow: none;
}

.support-ticket-item--new {
  border-color: color-mix(in srgb, var(--esheba-teal) 45%, var(--esheba-border));
  border-inline-start: 3px solid var(--esheba-teal);
  background: color-mix(in srgb, var(--esheba-teal) 8%, var(--esheba-surface));
}

.support-new-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: var(--esheba-teal);
  color: #fff;
  white-space: nowrap;
}

/* ?????? ???? ??????? ???? ??? ???? ??? ??????? */
.dash-nav__item--badged {
  position: relative;
}

.dash-nav__item--badged .dash-nav__item-text {
  flex: 1;
}

.sp-nav-badge {
  margin-inline-start: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sp-nav-badge[hidden] {
  display: none;
}

.sp-nav-badge--blink {
  animation: sp-badge-pulse 1.5s ease-in-out infinite;
}

.sp-nav-badge--urgent {
  background: #dc2626;
}

@keyframes sp-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

.support-ticket-item:hover {
  border-color: color-mix(in srgb, var(--esheba-teal) 40%, var(--esheba-border));
  background: color-mix(in srgb, var(--esheba-teal) 6%, var(--esheba-surface));
}

/* Active ticket: firm accent bar, no soft glow */
.support-ticket-item.active {
  position: relative;
  border-color: var(--esheba-teal);
  background: color-mix(in srgb, var(--esheba-teal) 12%, var(--esheba-surface));
  box-shadow: none;
}

.support-ticket-item.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 3px;
  border-radius: 0;
  background: var(--esheba-teal);
}

.support-ticket-item.active .support-ticket-item__subject {
  color: var(--esheba-teal);
}

.support-ticket-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.support-ticket-item__id {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--esheba-muted);
}

.support-ticket-item__subject {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1.5;
}

.support-ticket-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--esheba-muted);
}

.support-badge--progress {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

[data-theme="dark"] .support-badge--progress {
  color: #60a5fa;
}

.support-detail-panel {
  min-height: 320px;
  padding: 0.9rem;
}

.support-detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-detail__head {
  padding: 0.75rem 0.85rem;
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
}

.support-detail__head-main {
  min-width: 0;
}

.support-subject-label {
  display: inline;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--esheba-muted);
  margin: 0;
  flex-shrink: 0;
}

.support-subject-label::after {
  content: ":";
  margin-inline-start: 1px;
}

.support-detail__id {
  font-size: 0.78rem;
  color: var(--esheba-muted);
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.support-detail__subject {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.support-detail__badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.support-detail__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.support-detail__type {
  font-size: 0.76rem;
  color: var(--esheba-muted);
}

.support-detail__time {
  font-size: 0.76rem;
  color: var(--esheba-muted);
  white-space: nowrap;
}

.support-thread {
  display: grid;
  gap: 0.75rem;
  max-height: 340px;
  overflow-y: auto;
  padding-left: 0.15rem;
}

.support-message {
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--esheba-border);
  max-width: 82%;
  box-shadow: none;
}

.support-message--user {
  background: var(--esheba-bg-alt);
  align-self: flex-end;
  justify-self: end;
  border-end-end-radius: 2px;
}

.support-message--staff {
  background: color-mix(in srgb, var(--esheba-teal) 10%, var(--esheba-surface));
  align-self: flex-start;
  justify-self: start;
  border-color: color-mix(in srgb, var(--esheba-teal) 30%, var(--esheba-border));
  border-end-start-radius: 2px;
}

.support-message__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.support-message__sender {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.support-message__time {
  font-size: 0.72rem;
  color: var(--esheba-muted);
}

.support-message__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--esheba-text);
}

.support-reply-form {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
}

.support-closed-note {
  font-size: 0.82rem;
  color: var(--esheba-muted);
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.support-detail--empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .support-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  }

  .sp-tickets-layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.55fr);
  }
}

@media (max-width: 767px) {
  .support-message--user {
    margin-left: 0;
  }

  .support-message--staff {
    margin-right: 0;
  }

  .support-detail__head {
    flex-direction: column;
  }
}

/* Settings page */
.settings-page__lead {
  margin: 0 0 0.75rem;
}

.settings-grid .profile-panel:not(.active) {
  display: none;
}

.settings-section-desc {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--esheba-muted);
  line-height: 1.55;
}

.settings-theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.settings-theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.45rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
  font-family: var(--esheba-font);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.settings-theme-option:hover,
.settings-theme-option.active {
  border-color: rgba(26, 122, 140, 0.45);
  background: rgba(26, 122, 140, 0.1);
  color: var(--esheba-teal);
}

.settings-theme-option__swatch {
  width: 28px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid var(--esheba-border);
  flex-shrink: 0;
}

.settings-theme-option__swatch--light {
  background: linear-gradient(135deg, #f8fafc 50%, #e2e8f0 50%);
}

.settings-theme-option__swatch--dark {
  background: linear-gradient(135deg, #1e293b 50%, #0f172a 50%);
  border-color: #334155;
}

.settings-theme-option__swatch--system {
  background: linear-gradient(90deg, #f8fafc 50%, #1e293b 50%);
}

.settings-theme-option__icon {
  font-size: 1.15rem;
}

.settings-theme-option__label {
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-field--disabled {
  opacity: 0.72;
}

.settings-defaults {
  display: grid;
  gap: 0.35rem;
}

.settings-defaults__row {
  margin-top: 0.65rem;
}

.dash-wallet-pill__masked {
  letter-spacing: 0.12em;
}

@media (max-width: 479px) {
  .settings-theme-options {
    grid-template-columns: 1fr;
  }
}

/* Support staff panel */
.sp-body .sp-sidebar {
  border-left: 3px solid rgba(59, 130, 246, 0.35);
}

.sp-role-banner {
  margin: 0.85rem 0.85rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(26, 122, 140, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sp-role-banner__label {
  font-size: 0.72rem;
  color: var(--esheba-muted);
}

.sp-role-banner__value {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2563eb;
}

[data-theme="dark"] .sp-role-banner__value {
  color: #60a5fa;
}

.sp-topbar-role {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
  margin-right: 0.35rem;
}

[data-theme="dark"] .sp-topbar-role {
  color: #60a5fa;
}

.sp-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--esheba-transition), box-shadow var(--esheba-transition);
}

.sp-agent-pill:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--esheba-shadow);
  color: inherit;
}

.sp-agent-pill__avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1a7a8c);
}

.sp-agent-pill__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--esheba-navy);
}

.sp-panel-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--esheba-teal);
  text-decoration: none;
}

.sp-panel-link:hover {
  color: var(--esheba-teal);
  text-decoration: underline;
}

.sp-ticket-link {
  color: var(--esheba-teal);
  font-weight: 700;
  text-decoration: none;
}

.sp-ticket-link:hover {
  text-decoration: underline;
}

.sp-queue-table th,
.sp-queue-table td {
  white-space: nowrap;
}

.sp-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.sp-kpi-item {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
}

.sp-kpi-item__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--esheba-navy);
  margin-bottom: 0.25rem;
}

.sp-kpi-item__label {
  font-size: 0.76rem;
  color: var(--esheba-muted);
}

.sp-user-chip {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--esheba-muted);
}

.sp-ticket-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--esheba-border);
  margin-bottom: 0.5rem;
}

.sp-ticket-actions--closed {
  grid-template-columns: 1fr;
}

.sp-ticket-actions .sp-close-btn {
  align-self: end;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .sp-kpi-row {
    grid-template-columns: 1fr;
  }

  .sp-ticket-actions {
    grid-template-columns: 1fr;
  }

  .sp-agent-pill__name {
    display: none;
  }

  .sp-queue-table {
    font-size: 0.78rem;
  }
}

/* Support conversation (chat layout) */
.sp-tickets-layout {
  align-items: stretch;
}

.sp-conversation-panel {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: min(82vh, 760px);
  overflow: hidden;
}

.sp-conversation-panel .dash-panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  padding: 0;
}

.sp-conversation-panel__body {
  flex: 1;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
}

.sp-conversation-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sp-conversation-stack[hidden] {
  display: none !important;
}

.sp-conversation {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.sp-conversation[hidden] {
  display: none !important;
}

.sp-conversation-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--esheba-surface);
  z-index: 1;
}

.sp-conversation-empty[hidden] {
  display: none !important;
}

.sp-conversation .sp-action-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0 1rem 0.65rem;
}

.sp-ticket-lists {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sp-search {
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 380px;
}

.sp-search__input {
  width: 100%;
}

.support-ticket-empty {
  list-style: none;
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: var(--esheba-muted);
  font-size: 0.85rem;
}

.dash-panel__foot.ap-pager {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid var(--esheba-border);
  margin-top: 0;
}

.dash-panel__foot.ap-pager[hidden] {
  display: none;
}

.sp-list-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0 0.15rem;
}

.sp-list-section__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.sp-list-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(26, 122, 140, 0.12);
  color: var(--esheba-teal);
}

.sp-list-section--archive .sp-list-section__title {
  color: var(--esheba-muted);
}

.sp-list-section--archive .sp-list-section__count {
  background: var(--esheba-bg-alt);
  color: var(--esheba-muted);
}

.sp-list-section--archive .support-ticket-item {
  opacity: 0.92;
}

.password-status-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
}

.password-status-card--on {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
}

.password-status-card--off {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
}

.password-status-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.password-status-card__body {
  flex: 1;
  min-width: 0;
}

.password-status-card__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--esheba-navy);
  margin-bottom: 0.25rem;
}

.password-status-card__desc {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--esheba-muted);
}

.password-status-card > .dash-badge {
  flex-shrink: 0;
  align-self: center;
}

.sp-conversation__header {
  flex-shrink: 0;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--esheba-border);
  background: var(--esheba-bg);
}

.sp-conversation__header-main {
  min-width: 0;
}

.sp-conversation__topline,
.support-detail__topline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.45rem;
  min-width: 0;
}

.sp-conversation__topline .sp-conversation__id,
.support-detail__topline .support-detail__id {
  margin-inline-end: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.sp-conversation__subject {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.sp-conversation__badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.support-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin-top: 0;
}

.support-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  font-size: 0.74rem;
}

.support-meta__label {
  color: var(--esheba-muted);
  font-weight: 600;
}

.support-meta__label::after {
  content: ":";
  margin-inline-start: 1px;
}

.support-meta__value {
  font-weight: 700;
  color: var(--esheba-text);
}

.support-meta__value[dir="ltr"] {
  font-variant-numeric: tabular-nums;
}

.sp-conversation__phone {
  font-variant-numeric: tabular-nums;
}

.sp-conversation__id {
  font-size: 0.78rem;
  color: var(--esheba-muted);
  font-weight: 700;
}

.sp-conversation__type {
  font-size: 0.76rem;
  color: var(--esheba-muted);
}

.sp-conversation__time {
  font-size: 0.76rem;
  color: var(--esheba-muted);
  margin-top: 0.25rem;
}

.sp-conversation__thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--esheba-surface);
}

.sp-chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--esheba-border);
}

.sp-chat-bubble--user {
  align-self: flex-end;
  background: var(--esheba-bg-alt);
  border-bottom-right-radius: 4px;
}

.sp-chat-bubble--staff {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.12), rgba(61, 184, 200, 0.06));
  border-color: rgba(26, 122, 140, 0.25);
  border-bottom-left-radius: 4px;
}

.sp-chat-bubble__sender {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--esheba-navy);
  margin-bottom: 0.25rem;
}

.sp-chat-bubble__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--esheba-text);
}

.sp-chat-bubble__time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--esheba-muted);
  text-align: left;
}

.sp-composer {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--esheba-border);
  background: var(--esheba-bg);
}

.sp-composer--closed {
  justify-content: center;
}

.sp-composer__controls {
  order: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.sp-composer__reply {
  order: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.sp-composer__reply .sp-reply-input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
}

.sp-composer__controls .sp-status-select {
  font-size: 0.8rem;
  padding: 0.45rem 0.55rem;
  min-width: 118px;
}

.sp-composer__controls .sp-close-btn {
  white-space: nowrap;
}

/* Device list (profile) */
.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.device-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
}

.device-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.device-item--current {
  border-color: rgba(26, 122, 140, 0.35);
}

.device-item__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.device-item__body {
  flex: 1;
  min-width: 0;
}

.device-item__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--esheba-navy);
  margin-bottom: 0.2rem;
}

.device-item__meta {
  font-size: 0.76rem;
  color: var(--esheba-muted);
}

/* Admin panel */
.ap-body .ap-sidebar {
  border-left: 3px solid rgba(217, 119, 6, 0.55);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent 180px),
    var(--esheba-surface);
}

.ap-body .dash-nav__label {
  letter-spacing: 0.02em;
  color: #b45309;
  font-weight: 800;
  opacity: 0.95;
}

[data-theme="dark"] .ap-body .dash-nav__label {
  color: #fbbf24;
}

.ap-body .dash-nav__item.active {
  background: rgba(217, 119, 6, 0.14);
  color: #92400e;
  box-shadow: inset -3px 0 0 #d97706;
}

[data-theme="dark"] .ap-body .dash-nav__item.active {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  box-shadow: inset -3px 0 0 #fbbf24;
}

.ap-settings-card--accent {
  border-color: rgba(194, 65, 12, 0.35);
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.08), rgba(245, 158, 11, 0.05));
}

.ap-settings-card--accent .ap-settings-card__title {
  color: #9a3412;
}

.ap-role-banner {
  margin: 0.65rem 0.85rem 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.04));
}

.ap-role-banner__label {
  display: block;
  font-size: 0.7rem;
  color: var(--esheba-muted);
  margin-bottom: 0.15rem;
}

.ap-role-banner__value {
  font-size: 0.86rem;
  font-weight: 800;
  color: #d97706;
}

[data-theme="dark"] .ap-role-banner__value {
  color: #fbbf24;
}

.ap-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(245, 158, 11, 0.08);
  text-decoration: none;
  color: var(--esheba-navy);
}

.ap-agent-pill__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #b45309);
}

.ap-agent-pill__name {
  font-size: 0.78rem;
  font-weight: 700;
}

.ap-agent-pill--icon-only {
  padding: 0.2rem;
  border-radius: 50%;
}

.ap-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ap-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ap-toolbar .ap-search {
  flex: 1;
  min-width: 220px;
}

.ap-panel-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--esheba-teal);
  text-decoration: none;
}

.ap-panel-link:hover {
  text-decoration: underline;
}

.ap-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.ap-quick-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all var(--esheba-transition);
}

.ap-quick-card:hover {
  border-color: rgba(217, 119, 6, 0.45);
  color: #d97706;
  background: rgba(245, 158, 11, 0.06);
}

.ap-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.ap-settings-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ap-settings-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--esheba-border);
}

.ap-settings-section:first-child {
  padding-top: 0;
}

.ap-settings-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.ap-settings-section__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--esheba-text);
}

.ap-settings-fields {
  display: grid;
  gap: 1rem 2rem;
  margin-top: 0.85rem;
}

.ap-settings-fields--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ap-settings-fields--1col {
  grid-template-columns: minmax(0, 1fr);
}

.ap-settings-fields--tight {
  margin-top: 0.85rem;
}

.ap-settings-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.ap-settings-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--esheba-text);
  line-height: 1.45;
}

.ap-settings-field__input {
  width: 11rem;
  max-width: 100%;
  border: 1px solid var(--esheba-border);
  border-radius: 10px;
  background: var(--esheba-bg-alt);
  color: var(--esheba-text);
  padding: 0.55rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.86rem;
  text-align: left;
}

.ap-settings-field__input:focus {
  outline: none;
  border-color: var(--esheba-teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.15);
}

.ap-settings-field__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ap-settings-field__hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--esheba-muted);
  max-width: 22rem;
}

.ap-settings-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
  overflow: hidden;
}

.ap-settings-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--esheba-text);
  cursor: pointer;
  border-bottom: 1px solid var(--esheba-border);
}

.ap-settings-option:last-child {
  border-bottom: none;
}

.ap-settings-option input {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--esheba-teal);
}

.ap-settings-section .settings-section-desc {
  margin: 0;
}

.ap-settings-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--esheba-border);
}

.ap-readonly-note {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed rgba(217, 119, 6, 0.45);
  background: rgba(245, 158, 11, 0.06);
  font-size: 0.84rem;
  color: var(--esheba-text);
}

.ap-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}

/* Admin data tables */
.ap-cell-muted {
  display: block;
  font-size: 0.74rem;
  color: var(--esheba-muted);
  margin-top: 0.1rem;
}

.ap-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--esheba-border);
  border-radius: 0;
  background: var(--esheba-surface);
}

.ap-table-wrap--scroll {
  max-height: min(62vh, 520px);
  overflow-y: auto;
}

.ap-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.84rem;
  min-width: 640px;
}

.ap-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.ap-table th {
  padding: 0.7rem 1rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--esheba-table-head-text);
  text-align: right;
  white-space: nowrap;
  background: var(--esheba-table-head-bg);
  border-bottom: 1px solid var(--esheba-border);
}

.ap-table td {
  padding: 0.8rem 1rem;
  color: var(--esheba-text);
  text-align: right;
  vertical-align: middle;
  border-bottom: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
}

.ap-table tbody tr:last-child td {
  border-bottom: none;
}

.ap-table tbody tr:nth-child(even) td {
  background: var(--esheba-table-row-alt);
}

.ap-table tbody tr:hover td {
  background: var(--esheba-table-row-hover);
}

.ap-col-num,
.ap-table th.ap-col-num,
.ap-table td.ap-col-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ap-col-center,
.ap-table th.ap-col-center,
.ap-table td.ap-col-center {
  text-align: center;
}

.ap-col-actions {
  white-space: nowrap;
  min-width: 5.75rem;
  width: 5.75rem;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.ap-table th.ap-col-actions {
  text-align: center;
}

/* Users table ? auto-fit, no sticky header (prevents header/body drift) */
.ap-table-wrap--users {
  overflow-x: auto;
}

.ap-table--users {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.ap-table--users thead {
  position: static;
}

.ap-table--users th,
.ap-table--users td {
  padding: 0.75rem 0.85rem;
  box-sizing: border-box;
}

.ap-table--users th {
  white-space: normal;
  line-height: 1.35;
  vertical-align: bottom;
}

.ap-table--users .users-col-user {
  min-width: 7.5rem;
}

.ap-table--users .users-col-phone,
.ap-table--users .users-col-money,
.ap-table--users th.users-col-phone,
.ap-table--users th.users-col-money {
  text-align: center;
}

.ap-table--users .users-col-phone .ap-amount,
.ap-table--users .users-col-money .ap-amount {
  display: inline-block;
}

.ap-table--users .users-col-phone {
  min-width: 6.5rem;
}

.ap-table--users .users-col-money {
  min-width: 6.75rem;
}

.ap-table--users .users-col-roles {
  min-width: 7rem;
}

.ap-table--users .users-col-status {
  min-width: 4.5rem;
}

.ap-table--users .users-col-date {
  min-width: 5.5rem;
}

.ap-table--users .users-col-actions {
  min-width: 5.75rem;
  width: 5.75rem;
}

.ap-table--users td.ap-table-empty {
  text-align: center;
  color: var(--esheba-muted);
}

.ap-role-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.ap-user-modal-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--esheba-text);
}

.ap-user-modal-phone {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.82rem;
  color: var(--esheba-muted);
}

.ap-user-section-label {
  display: block;
  padding: 0;
  margin: 0 0 0.5rem;
}

.ap-user-roles {
  margin-bottom: 1rem;
}

.ap-modal__dialog--wide {
  width: min(100%, 600px);
}

.ap-modal__dialog--user {
  width: min(100%, 760px);
  max-height: min(92vh, 820px);
}

.ap-modal__foot--split {
  justify-content: space-between;
  flex-wrap: wrap;
}

.ap-modal__foot-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* User manage modal layout */
.ap-um-head-text {
  min-width: 0;
}

.ap-um-head-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted);
}

.ap-um-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.9rem 1rem !important;
}

.ap-um-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
}

.ap-um-hero__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ap-um-hero__name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1.3;
}

.ap-um-hero__phone {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--esheba-muted);
  font-variant-numeric: tabular-nums;
}

.ap-um-status {
  width: auto;
  min-width: 7.5rem;
  margin: 0;
}

.ap-um-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.ap-um-stats .ap-user-stat {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 4px;
}

.ap-um-stats .ap-user-stat__label {
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
}

.ap-um-stats .ap-user-stat__value {
  font-size: 0.9rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-um-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.65rem;
  align-items: start;
}

.ap-um-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  min-width: 0;
}

.ap-um-card__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.ap-um-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ap-um-role {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--esheba-text);
  cursor: pointer;
  user-select: none;
}

.ap-um-role input {
  margin: 0;
  accent-color: var(--esheba-teal);
}

.ap-um-role:has(input:disabled) {
  opacity: 0.72;
  cursor: default;
}

.ap-um-role:has(input:checked) {
  border-color: color-mix(in srgb, var(--esheba-teal) 45%, var(--esheba-border));
  background: color-mix(in srgb, var(--esheba-teal) 10%, var(--esheba-surface));
  color: var(--esheba-teal);
}

.ap-um-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--esheba-muted);
  line-height: 1.4;
}

.ap-um-credit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
}

.ap-um-credit-grid .quick-inquiry-form__row {
  margin: 0;
}

.ap-um-credit-grid .quick-inquiry-form__label {
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
}

.ap-um-credit-grid__full {
  grid-column: 1 / -1;
}

.ap-um-credit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  justify-content: flex-start;
  margin-top: 0.15rem;
}

.ap-um-credit-hint {
  flex: 1 1 12rem;
  min-height: 1.25rem;
  margin: 0;
  font-weight: 600;
}

.ap-save-hint--error {
  color: #b91c1c;
  font-weight: 600;
}

.ap-um-hint {
  min-height: 1.1rem;
  margin: 0;
}

@media (max-width: 720px) {
  .ap-um-layout {
    grid-template-columns: 1fr;
  }

  .ap-um-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-um-credit-grid {
    grid-template-columns: 1fr;
  }
}

.ap-cell-primary {
  font-weight: 800;
  color: var(--esheba-text);
}

.ap-cell-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--esheba-muted);
}

.ap-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  display: inline-block;
}

.ap-phone {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ap-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Click / focus tip (help) */
.ap-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  margin-inline-start: 0.2rem;
  padding: 0;
  border: 1px solid var(--esheba-border);
  border-radius: 50%;
  background: var(--esheba-bg-alt);
  color: var(--esheba-muted);
  font: inherit;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
}

.ap-tip__icon {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.ap-tip__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(16.5rem, 70vw);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  color: var(--esheba-text);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: right;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

/* داخل جدول: fixed تا overflow اسکرول جدول را خراب نکند */
.ap-tip--fixed .ap-tip__panel {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 1400;
  width: min(16.5rem, calc(100vw - 1.5rem));
  max-width: 16.5rem;
}

.ap-tip.is-open .ap-tip__panel,
.ap-tip:not(.ap-tip--fixed):focus-within .ap-tip__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ap-th-with-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  white-space: nowrap;
  max-width: 100%;
}

.ap-th-with-tip .ap-tip {
  flex-shrink: 0;
}

.ap-table th .ap-tip__panel {
  font-weight: 500;
}

.ms-stat-card__label .ap-tip {
  display: inline-flex;
}

.ap-disc-stats .ms-stat-card__label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
}

body.ap-body.dash-skin-solid .ap-tip {
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  color: var(--ms-muted);
}

body.ap-body.dash-skin-solid .ap-tip.is-open,
body.ap-body.dash-skin-solid .ap-tip:not(.ap-tip--fixed):focus-within {
  border-color: color-mix(in srgb, var(--ms-accent) 40%, var(--ms-card-border));
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.ap-body.dash-skin-solid .ap-tip__panel {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  color: var(--ms-text);
  border-radius: var(--ms-radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.ap-notif-cell {
  max-width: 22rem;
}

.ap-notif-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22rem;
}

.jalali-date-selects {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr 1.05fr;
  gap: 0.5rem;
  align-items: center;
}

.jalali-date-selects .quick-inquiry-form__control {
  width: 100%;
  text-align: center;
  text-align-last: center;
}

.jalali-date-preview {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esheba-teal);
  min-height: 1.1rem;
}

.ap-amount {
  display: inline-block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.ap-amount--pos {
  color: #15803d;
}

[data-theme="dark"] .ap-amount--pos {
  color: #4ade80;
}

.ap-amount--neg {
  color: #b91c1c;
}

[data-theme="dark"] .ap-amount--neg {
  color: #f87171;
}

.ap-amount-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--esheba-muted);
  margin-right: 0.2rem;
}

.ap-table-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--esheba-muted);
  font-size: 0.86rem;
}

/* Row-number column */
.ap-col-idx,
.ap-table th.ap-col-idx,
.ap-table td.ap-col-idx {
  width: 3rem;
  text-align: center;
  color: var(--esheba-muted);
  font-variant-numeric: tabular-nums;
}

/* Small relative stats above tables */
.ap-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.ap-stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esheba-text);
  background: var(--esheba-surface-alt, rgba(11, 61, 76, 0.06));
  border: 1px solid var(--esheba-border);
}

.ap-stat-chip b {
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ap-stat-chip--ok {
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
  border-color: rgba(21, 128, 61, 0.25);
}

[data-theme="dark"] .ap-stat-chip--ok {
  color: #4ade80;
}

.ap-stat-chip--muted {
  color: var(--esheba-muted);
}

/* Toggle switch (form-like on/off control) */
.ap-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  vertical-align: middle;
}

.ap-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ap-switch__track {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--esheba-border);
  transition: background 0.22s ease;
}

.ap-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ap-switch__input:checked + .ap-switch__track {
  background: #15803d;
}

.ap-switch__input:checked + .ap-switch__track::after {
  transform: translateX(-20px);
}

.ap-switch__input:focus-visible + .ap-switch__track {
  outline: 2px solid var(--esheba-primary, #0b3d4c);
  outline-offset: 2px;
}

.ap-switch__input:disabled + .ap-switch__track {
  opacity: 0.55;
  cursor: default;
}

.ap-switch--sm .ap-switch__track {
  width: 34px;
  height: 18px;
}

.ap-switch--sm .ap-switch__track::after {
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
}

.ap-switch--sm .ap-switch__input:checked + .ap-switch__track::after {
  transform: translateX(-16px);
}

/* Toast notifications */
.ap-toast-host {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 13000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.ap-toast {
  min-width: 220px;
  max-width: min(90vw, 420px);
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.ap-toast--show {
  opacity: 1;
  transform: translateY(0);
}

.ap-toast--success {
  background: #15803d;
}

.ap-toast--error {
  background: #b91c1c;
}

.ap-toast--info {
  background: #0b3d4c;
}

.ap-save-hint {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--esheba-muted);
  min-height: 1.4em;
}

.ap-save-hint--ok {
  color: #15803d;
  font-weight: 600;
}

/* User panel ? prominent notifications */
.dash-notify-toast-host {
  z-index: 10050;
}

.dash-notify-toast {
  font-size: 0.92rem;
  line-height: 1.65;
  padding: 0.9rem 1.25rem;
  max-width: min(92vw, 480px);
}

.dash-notify-modal__dialog {
  max-width: 440px;
}

.dash-notify-modal__message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--dash-text, #0f172a);
  white-space: pre-line;
  text-align: right;
}

.dash-notify-modal__message--ltr {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
}

.dash-notify-modal--error .dash-notify-modal__message {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.dash-notify-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.dash-notify-modal__ok {
  min-width: 7rem;
}

.dash-notify-modal--error .ap-modal__title {
  color: #b91c1c;
}

.dash-notify-modal--success .ap-modal__title {
  color: #15803d;
}

.dash-notify-modal--warning .ap-modal__title {
  color: #b45309;
}

/* Users pagination + small filter row */
.ap-users-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.6rem;
}

.ap-users-role-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ap-users-role-filter__label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--esheba-muted);
  white-space: nowrap;
}

.ap-pager {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.ap-pager__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.ap-pager__meta {
  font-size: 0.78rem;
  color: var(--esheba-muted);
}

.ap-pager__btn--active {
  background: linear-gradient(135deg, #0B3D4C, #1A7A8C) !important;
  color: var(--esheba-on-primary) !important;
  border-color: transparent !important;
}

.ap-pager__btn--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.ap-finance-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
  padding: 0.15rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.ap-finance-tab {
  padding: 0.32rem 0.65rem;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.ap-finance-tab:hover {
  color: var(--esheba-text);
  background: rgba(0, 0, 0, 0.04);
}

.ap-finance-tab.active {
  color: var(--esheba-teal);
  border-color: transparent;
  background: rgba(26, 122, 140, 0.12);
}

.ap-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ap-user-stat {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
}

.ap-user-stat__label {
  display: block;
  font-size: 0.72rem;
  color: var(--esheba-muted);
  margin-bottom: 0.25rem;
}

.ap-user-stat__value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

@media (max-width: 767px) {
  .ap-form-grid,
  .ap-quick-grid,
  .ap-settings-fields--2col {
    grid-template-columns: 1fr;
  }

  .ap-user-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-um-layout {
    grid-template-columns: 1fr;
  }

  .ap-um-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-um-credit-grid {
    grid-template-columns: 1fr;
  }
}

/* Inquiry inputs â€” digit slots + free-text account */
.card-input-group,
.sheba-input-group,
[data-account-slots] {
  width: 100%;
}

.digit-slot-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  width: 100%;
}

.digit-slot-field__prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.6rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--esheba-teal);
  flex-shrink: 0;
}

.digit-slot-field__body {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.digit-slot-field__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.digit-slot-field__group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.45rem 0.45rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
}

.digit-slot-field__cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1.7rem;
  border: 0;
  border-bottom: 2px dashed color-mix(in srgb, var(--esheba-border) 65%, var(--esheba-navy));
  border-radius: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--esheba-navy);
}

.digit-slot-field__cell.is-filled {
  border-bottom-style: solid;
  border-bottom-color: var(--esheba-teal);
}

.digit-slot-field__cell.is-active {
  border-bottom-style: solid;
  border-bottom-color: var(--esheba-teal);
  background: transparent;
  position: relative;
}

.digit-slot-field.is-focused .digit-slot-field__cell.is-active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 1.15em;
  margin-top: -0.55em;
  margin-left: -1px;
  background: var(--esheba-teal, #0d9488);
  border-radius: 1px;
  animation: esheba-digit-caret 1s step-end infinite;
  pointer-events: none;
}

.digit-slot-field.is-focused .digit-slot-field__cell.is-active.is-filled::after {
  left: calc(50% + 0.35em);
}

@keyframes esheba-digit-caret {
  50% { opacity: 0; }
}

.digit-slot-field.is-focused .digit-slot-field__group {
  border-color: color-mix(in srgb, var(--esheba-teal) 50%, var(--esheba-border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--esheba-teal) 18%, transparent);
}

.digit-slot-field.is-complete .digit-slot-field__group {
  border-color: color-mix(in srgb, var(--esheba-teal) 40%, var(--esheba-border));
}

.digit-slot-field__capture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  outline: none;
  z-index: 1;
}

.digit-slot-field__counter {
  flex: 1 0 100%;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted, #64748b);
}

.digit-slot-field__counter.is-incomplete {
  color: #b45309;
}

.digit-slot-field__counter.is-ready {
  color: var(--esheba-teal);
  font-weight: 600;
}

.sheba-input-group .digit-slot-field__track,
[data-account-slots] .digit-slot-field__track {
  flex-wrap: wrap;
}

.quick-inquiry-form__actions .esheba-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.quick-inquiry-form--locked .conversion-form-panel input,
.quick-inquiry-form--locked .conversion-form-panel select,
.quick-inquiry-form--locked .conversion-form-panel textarea {
  pointer-events: none;
  opacity: 0.72;
  cursor: not-allowed;
}

.quick-inquiry-form--locked .digit-slot-field {
  pointer-events: none;
  opacity: 0.72;
}

.quick-inquiry-form--service-disabled .conversion-form-panel,
.quick-inquiry-form--service-disabled .financial-form-panel,
.quick-inquiry-form--service-disabled .service-form-panel,
.quick-inquiry-form--service-disabled .server-slot-tabs,
.inquiry-panel--service-disabled {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.15);
}

.quick-inquiry-form--service-disabled .conversion-form-panel input,
.quick-inquiry-form--service-disabled .conversion-form-panel select,
.quick-inquiry-form--service-disabled .conversion-form-panel textarea,
.quick-inquiry-form--service-disabled .financial-form-panel input,
.quick-inquiry-form--service-disabled .financial-form-panel select,
.quick-inquiry-form--service-disabled .financial-form-panel textarea,
.quick-inquiry-form--service-disabled .service-form-panel input,
.quick-inquiry-form--service-disabled .service-form-panel select,
.quick-inquiry-form--service-disabled .service-form-panel textarea,
.inquiry-panel--service-disabled input,
.inquiry-panel--service-disabled select,
.inquiry-panel--service-disabled textarea {
  cursor: not-allowed;
}

.quick-inquiry-form--service-disabled .digit-slot-field,
.inquiry-panel--service-disabled .digit-slot-field,
.inquiry-panel--service-disabled .iran-plate {
  pointer-events: none;
  opacity: 0.85;
}

.quick-mode-tab--disabled,
.quick-mode-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.financial-form-panel[hidden],
.credit-form-panel[hidden] {
  display: none !important;
}

.inquiry-notices {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.inquiry-notice {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
  font-size: 0.8rem;
  color: var(--esheba-text);
}

.inquiry-notice--warn {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.inquiry-notice--instant {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(59, 130, 246, 0.07);
}

.inquiry-notice--stored {
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(148, 163, 184, 0.1);
}

.inquiry-notice__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.inquiry-notice__body {
  display: block;
  line-height: 1.75;
}

.profile-current-password-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.profile-current-password-head .quick-inquiry-form__label {
  margin-bottom: 0;
}

.profile-forgot-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-forgot-password__btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--dash-primary, #2563eb);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-forgot-password__btn:hover {
  opacity: 0.85;
}

.profile-forgot-password__btn--ghost {
  color: var(--esheba-text-muted, #64748b);
  font-weight: 500;
}

.profile-password-otp {
  margin: 0.35rem 0 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.profile-password-otp--active {
  border-color: rgba(37, 99, 235, 0.45);
}

.profile-password-otp__head {
  margin-bottom: 0.75rem;
}

.profile-password-otp__title {
  display: block;
  font-size: 0.92rem;
  color: var(--esheba-text, #0f172a);
  margin-bottom: 0.25rem;
}

.profile-password-otp__desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--esheba-text-muted, #64748b);
}

.profile-password-otp__controls {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.profile-password-otp__input {
  flex: 1 1 9rem;
  min-width: 8rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.profile-password-otp__send {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 2.55rem;
  padding-inline: 1rem;
}

[data-theme="dark"] .profile-password-otp {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.35));
}

[data-theme="dark"] .profile-password-otp__title {
  color: #e2e8f0;
}

.service-disabled-banner {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  font-size: 0.84rem;
}

[data-theme="dark"] .service-disabled-banner {
  color: #fca5a5;
}

.credit-type-tabs {
  margin-bottom: 0.5rem;
}

@media (max-width: 575px) {
  .card-input-group .digit-slot-field__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .digit-slot-field__cell {
    height: 1.55rem;
    font-size: 0.95rem;
  }
}

.ap-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.ap-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ap-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--esheba-border);
  border-radius: 999px;
  transition: background 0.2s;
}

.ap-toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  right: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.ap-toggle input:checked + .ap-toggle__slider {
  background: var(--esheba-teal);
}

.ap-toggle input:checked + .ap-toggle__slider::before {
  transform: translateX(-18px);
}

.ap-toggle--sm {
  width: 34px;
  height: 18px;
  flex-shrink: 0;
}

.ap-toggle--sm .ap-toggle__slider::before {
  height: 14px;
  width: 14px;
  right: 2px;
  bottom: 2px;
}

.ap-toggle--sm input:checked + .ap-toggle__slider::before {
  transform: translateX(-16px);
}

/* Admin modal (no Bootstrap CSS required) */
body.ap-modal-open {
  overflow: hidden;
}

.ap-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ap-modal[hidden] {
  display: none !important;
}

.ap-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.ap-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.ap-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--esheba-border);
}

.ap-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.ap-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--esheba-bg-alt);
  color: var(--esheba-muted);
  cursor: pointer;
}

.ap-modal__close:hover {
  color: var(--esheba-navy);
}

.ap-modal__body {
  padding: 1rem 1.1rem;
  overflow-y: auto;
}

.ap-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--esheba-border);
}

/* Settings hub */
.ap-settings-crumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: var(--esheba-muted);
}

.ap-settings-crumb__link {
  color: var(--esheba-teal);
  font-weight: 700;
  text-decoration: none;
}

.ap-settings-crumb__link:hover {
  text-decoration: underline;
}

.ap-settings-crumb__current {
  color: var(--esheba-navy);
  font-weight: 700;
}

.ap-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

/* Settings hub — centered MS-style list */
.ap-settings-hub {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.25rem 0 1.5rem;
}

.ap-settings-hub__inner {
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.ap-settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.ap-settings-group__title {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--esheba-muted);
  letter-spacing: 0;
}

.ap-settings-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  overflow: hidden;
}

.ap-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--esheba-border);
  transition: background 0.12s ease;
}

.ap-settings-row:last-child {
  border-bottom: 0;
}

.ap-settings-row:hover {
  background: var(--esheba-bg-alt);
  text-decoration: none;
}

.ap-settings-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--ms-radius, 4px);
  background: var(--esheba-bg-alt);
  color: var(--esheba-teal);
}

.ap-settings-row__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ap-settings-row__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.ap-settings-row__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--esheba-navy);
  line-height: 1.35;
}

.ap-settings-row__desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--esheba-muted);
}

.ap-settings-row__chevron {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--esheba-muted);
  opacity: 0.7;
}

.ap-settings-row__chevron svg {
  width: 16px;
  height: 16px;
}

.ap-settings-row:hover .ap-settings-row__chevron {
  color: var(--esheba-teal);
  opacity: 1;
}

.ap-settings-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
  text-decoration: none;
  transition: all var(--esheba-transition);
  min-height: 96px;
}

.ap-settings-card:hover {
  border-color: rgba(11, 61, 76, 0.35);
  background: var(--esheba-surface);
  transform: translateY(-1px);
}

.ap-settings-card__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.ap-settings-card__desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--esheba-muted);
}

.settings-section-desc {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted);
}

.ap-table--service-tariffs {
  min-width: 0;
  width: 100%;
}

.ap-table--service-tariffs .svc-cost,
.ap-table--service-tariffs .svc-price {
  width: 6rem;
  min-width: 5.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  font-family: var(--esheba-font);
}

.ap-table--service-tariffs .svc-margin--profit {
  color: var(--esheba-success, #0a7a3e);
}

.ap-table--service-tariffs .svc-margin--loss {
  color: var(--esheba-danger, #c0392b);
}

.ap-page-head--compact {
  margin-bottom: 0.85rem;
}

.ap-service-catalog {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  min-height: calc(100vh - 12rem);
}

.ap-service-catalog__nav,
.ap-service-catalog__detail {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ap-service-catalog__nav-body {
  padding: 0.5rem !important;
  flex: 1 1 auto;
  overflow: auto;
}

.ap-service-catalog__detail > .dash-panel__body {
  flex: 1 1 auto;
}

.ap-service-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ap-service-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: right;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--esheba-text);
  font-family: var(--esheba-font);
  cursor: pointer;
}

.ap-service-nav__item:hover {
  background: var(--esheba-bg-alt, rgba(0, 0, 0, 0.03));
}

.ap-service-nav__item.is-active {
  border-color: var(--esheba-border);
  background: var(--esheba-bg-alt, rgba(13, 148, 136, 0.08));
}

.ap-service-nav__title {
  font-family: var(--esheba-font);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--esheba-navy);
  line-height: 1.35;
}

.ap-service-nav__item.is-disabled .ap-service-nav__title {
  color: var(--esheba-muted);
  font-weight: 600;
}

.ap-service-nav__badge {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--esheba-muted);
  border: 1px solid var(--esheba-border);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  font-family: var(--esheba-font);
}

.ap-service-detail-top {
  margin-bottom: 0.85rem;
}

.ap-service-detail-top .dash-panel__title {
  margin: 0;
}

.ap-service-order {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
  line-height: 1.45;
}

.ap-service-shared-fields {
  display: grid;
  grid-template-columns: minmax(140px, 180px) auto auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--esheba-border);
}

.ap-service-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
}

.ap-service-field--wide {
  grid-column: 1 / -1;
}

.ap-service-field--toggle {
  align-content: end;
}

.ap-service-providers-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--esheba-font);
  color: var(--esheba-navy);
}

.ap-provider-name {
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--esheba-font);
  color: var(--esheba-navy);
}

.ap-priority-cell {
  width: 7rem;
}

.ap-priority-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ap-drag-handle {
  cursor: grab;
  color: var(--esheba-muted);
  letter-spacing: -0.12em;
  user-select: none;
  font-size: 0.85rem;
}

.ap-priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: var(--esheba-bg-alt, #f1f5f9);
  border: 1px solid var(--esheba-border);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--esheba-font);
}

.ap-prio-btn {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--esheba-border);
  border-radius: 6px;
  background: var(--esheba-surface, #fff);
  color: var(--esheba-text);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--esheba-font);
}

.ap-prio-btn:hover {
  background: var(--esheba-bg-alt, #f8fafc);
}

.ap-provider-row--routed.is-dragging {
  opacity: 0.5;
}

.ap-provider-row--routed.is-drag-over {
  outline: 2px dashed var(--esheba-teal, #0d9488);
  outline-offset: -2px;
}

.ap-empty-inline {
  margin: 0;
  color: var(--esheba-muted);
  font-size: 0.875rem;
  font-family: var(--esheba-font);
}

@media (max-width: 900px) {
  .ap-service-catalog {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ap-service-catalog__nav-body {
    max-height: 200px;
  }

  .ap-service-shared-fields {
    grid-template-columns: 1fr 1fr;
  }
}


.ap-th-provider--jibit {
  color: #1565c0;
}

.ap-th-provider--negin {
  color: #6a1b9a;
}

.ap-th-provider--mock {
  color: var(--esheba-muted);
}

/* Tabbed settings layout (admin) */
.ap-tabbed-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
}

.ap-tabbed-settings__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ap-tabbed-settings__tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--esheba-border);
  border-radius: 0.9rem;
  background: var(--esheba-surface, #fff);
  color: var(--esheba-navy);
  font-family: var(--esheba-font);
  text-align: right;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ap-tabbed-settings__tab:hover {
  border-color: rgba(26, 122, 140, 0.35);
}

.ap-tabbed-settings__tab.active {
  border-color: rgba(26, 122, 140, 0.45);
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.08), rgba(61, 184, 200, 0.05));
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ap-tabbed-settings__tab-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--esheba-bg-alt);
  font-size: 1rem;
}

.ap-tabbed-settings__tab-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-tabbed-settings__tab-title {
  font-size: 0.86rem;
  font-weight: 800;
}

.ap-tabbed-settings__tab-desc {
  font-size: 0.72rem;
  color: var(--esheba-muted);
  line-height: 1.45;
}

.ap-tabbed-settings__tab-chevron {
  flex-shrink: 0;
  color: var(--esheba-muted);
  font-size: 1.1rem;
  line-height: 1;
}

.ap-tabbed-settings__main {
  min-width: 0;
}

.ap-tabbed-settings__panel {
  border: 1px solid var(--esheba-border);
  border-radius: 1rem;
  background: var(--esheba-surface, #fff);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ap-tabbed-settings__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--esheba-border);
}

.ap-tabbed-settings__panel-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.ap-tabbed-settings__panel-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--esheba-muted);
}

.ap-tabbed-settings__panel-badge {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b3d4c, #3db8c8);
  color: #fff;
  font-weight: 800;
}

.ap-tabbed-settings__fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ap-tabbed-settings__field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.ap-tabbed-settings__field--stack {
  align-items: start;
}

.ap-tabbed-settings__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--esheba-muted);
}

.ap-tabbed-settings__input {
  width: 100%;
  border: 1px solid var(--esheba-border);
  border-radius: 0.75rem;
  padding: 0.68rem 0.9rem;
  font-size: 0.86rem;
  background: var(--esheba-input-bg, #fff);
  color: var(--esheba-text);
}

.ap-tabbed-settings__input:focus {
  outline: none;
  border-color: rgba(26, 122, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.12);
}

.ap-tabbed-settings__input--ltr {
  direction: ltr;
  text-align: left;
}

.ap-tabbed-settings__textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.6;
}

.ap-tabbed-settings__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.25rem;
}

@media (min-width: 900px) {
  .ap-tabbed-settings {
    grid-template-columns: minmax(13.5rem, 16rem) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
  }

  .ap-tabbed-settings__field {
    grid-template-columns: minmax(7rem, 8.5rem) 1fr;
    align-items: center;
    gap: 0.85rem 1rem;
  }

  .ap-tabbed-settings__field--stack {
    align-items: start;
  }
}

@media (max-width: 899px) {
  .ap-tabbed-settings__nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .ap-tabbed-settings__tab {
    min-width: 11.5rem;
    flex-shrink: 0;
  }

  .ap-tabbed-settings__tab-desc {
    display: none;
  }

  .ap-tabbed-settings__tab-chevron {
    display: none;
  }
}

/* Centered admin/user page shell (legacy single-column pages) */
.ap-page-shell {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: 0.25rem;
}

.ap-page-shell__head {
  margin-bottom: 1.25rem;
}

.ap-settings-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-settings-modern__card {
  background: var(--esheba-surface, #fff);
  border: 1px solid var(--esheba-border);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ap-settings-modern__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--esheba-border);
}

.ap-settings-modern__card-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.ap-settings-modern__card-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--esheba-muted);
}

.ap-settings-modern__preview {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b3d4c, #3db8c8);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.ap-settings-modern__rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ap-settings-modern__row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
}

.ap-settings-modern__row--stack {
  align-items: start;
}

.ap-settings-modern__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--esheba-muted);
}

.ap-settings-modern__input {
  width: 100%;
  border: 1px solid var(--esheba-border);
  border-radius: 0.75rem;
  padding: 0.62rem 0.85rem;
  font-size: 0.86rem;
  background: var(--esheba-input-bg, #fff);
  color: var(--esheba-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ap-settings-modern__input:focus {
  outline: none;
  border-color: rgba(26, 122, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.12);
}

.ap-settings-modern__input--ltr {
  direction: ltr;
  text-align: left;
}

.ap-settings-modern__textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.6;
}

.ap-settings-modern__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.25rem;
}

@media (max-width: 640px) {
  .ap-page-shell {
    max-width: 100%;
    padding-inline: 0;
  }

  .ap-settings-modern__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.ap-sms-template + .ap-sms-template {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dash-border, rgba(0, 0, 0, 0.08));
}

.ap-sms-status {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--esheba-border, #e5e7eb);
  border-radius: 8px;
  background: var(--esheba-surface, #fff);
}

.ap-sms-status__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.ap-sms-status__value {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--esheba-text, #111827);
}

.ap-sms-status__meta {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted, #6b7280);
}

.ap-sms-groups {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-sms-group + .ap-sms-group {
  margin-top: 0.5rem;
}

.ap-sms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ap-sms-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--esheba-border, #e5e7eb);
  border-radius: 8px;
  background: var(--esheba-surface, #fff);
}

.ap-sms-card__head .quick-inquiry-form__label {
  font-weight: 700;
  font-size: 0.92rem;
}

.ap-sms-card__preview-label {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--esheba-muted, #6b7280);
}

.ap-sms-card__tokens {
  margin: 0;
  font-size: 0.72rem;
  color: var(--esheba-muted, #6b7280);
  text-align: left;
}

.ap-sms-preview {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  background: var(--dash-surface-2, rgba(0, 0, 0, 0.04));
  color: var(--esheba-muted, #5b6b7a);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-wrap;
  direction: rtl;
  unicode-bidi: plaintext;
}

.ap-sms-preview__token {
  display: inline;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8em;
  color: var(--esheba-text, #111827);
}

@media (max-width: 900px) {
  .ap-sms-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Solid skin preview ? only on Dashboard Index (dash-skin-solid)
   Microsoft Account-like: flat cards, firm nav active state
   ========================================================= */

body.dash-skin-solid {
  --ms-accent: #1A7A8C;
  --ms-accent-soft: rgba(26, 122, 140, 0.1);
  --ms-page-bg: #f3f4f6;
  --ms-card-bg: #ffffff;
  --ms-card-border: #e5e7eb;
  --ms-text: #111827;
  --ms-muted: #6b7280;
  --ms-radius: 4px;
}

[data-theme="dark"] body.dash-skin-solid {
  --ms-accent: #62C4D4;
  --ms-accent-soft: rgba(98, 196, 212, 0.14);
  --ms-page-bg: #0f1a1f;
  --ms-card-bg: #15252c;
  --ms-card-border: #243940;
  --ms-text: #e8eef0;
  --ms-muted: #9bb0b8;
}

body.dash-skin-solid .dash-sidebar {
  background: var(--ms-card-bg);
  border-left-color: var(--ms-card-border);
  box-shadow: none;
}

body.dash-skin-solid .dash-sidebar__head {
  padding: 1.15rem 1rem 1rem;
  border-bottom-color: var(--ms-card-border);
}

body.dash-skin-solid .dash-nav {
  padding: 0.5rem 0.45rem;
}

body.dash-skin-solid .dash-nav__item {
  position: relative;
  border-radius: 2px;
  margin-bottom: 0.1rem;
  padding: 0.7rem 0.85rem;
  color: var(--ms-muted);
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

body.dash-skin-solid .dash-nav__item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  opacity: 0.85;
}

body.dash-skin-solid .dash-nav__item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ms-text);
}

[data-theme="dark"] body.dash-skin-solid .dash-nav__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dash-skin-solid .dash-nav__item.active {
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
  font-weight: 700;
  box-shadow: none;
}

body.dash-skin-solid .dash-nav__item.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--ms-accent);
}

body.dash-skin-solid .dash-nav__item.active svg {
  opacity: 1;
  color: var(--ms-accent);
}

body.dash-skin-solid .dash-main {
  background: var(--ms-page-bg);
}

body.dash-skin-solid .dash-topbar {
  background: var(--ms-card-bg);
  border-bottom: 1px solid var(--ms-card-border);
  box-shadow: none;
}

body.dash-skin-solid .dash-topbar__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ms-text);
}

body.dash-skin-solid .dash-content {
  background: var(--ms-page-bg);
  padding-top: 1.5rem;
}

body.dash-skin-solid .dash-content-footer {
  border-top-color: var(--ms-card-border);
}

/* Page hero */
body.dash-skin-solid .ms-page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
}

body.dash-skin-solid .ms-page-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ms-text);
  line-height: 1.2;
}

body.dash-skin-solid .ms-page-hero__desc {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  color: var(--ms-muted);
  line-height: 1.55;
}

body.dash-skin-solid .ms-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

body.dash-skin-solid .ms-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ms-accent);
  text-decoration: none;
}

body.dash-skin-solid .ms-quick-link svg {
  width: 16px;
  height: 16px;
}

body.dash-skin-solid .ms-quick-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Panel promo banners / slider (user dashboard) */
.panel-promos {
  position: relative;
  margin: 0 0 1.15rem;
  width: 100%;
}

.panel-promos__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  min-height: 132px;
}

.panel-promos__track {
  position: relative;
  width: 100%;
  min-height: 132px;
}

.panel-promos__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 0;
}

.panel-promos__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.panel-promo {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  min-height: 132px;
  box-shadow: 0 1px 2px rgba(11, 61, 76, 0.06);
}

.panel-promo--image {
  background: var(--promo-bg, #0d4f5c);
}

.panel-promo__img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.panel-promo--text {
  background: var(--promo-bg, #0d4f5c);
  color: var(--promo-fg, #fff);
  padding: 1.1rem 1.25rem;
  min-height: 132px;
  box-sizing: border-box;
}

.panel-promo--text .panel-promo__content {
  color: inherit;
}

.panel-promo--overlay .panel-promo__content {
  position: absolute;
  inset: 0;
  padding: 1.1rem 1.25rem;
  justify-content: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
  color: var(--promo-fg, #fff);
}

.panel-promo__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  justify-content: center;
}

.panel-promo__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
}

.panel-promo__subtitle {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.92;
  color: inherit;
}

.panel-promo__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  opacity: 0.86;
  color: inherit;
}

.panel-promo__cta {
  margin-top: 0.45rem;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 700;
}

.ap-color-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ms-card-border, #d7e0e4);
  border-radius: 10px;
  background: var(--ms-card-bg, #fff);
}

.ap-color-field__picker {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(11, 61, 76, 0.18);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.ap-color-field__picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.ap-color-field__picker::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

.ap-color-field__value {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ms-muted, #5b6b73);
  direction: ltr;
}

.panel-promos__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0b3d4c;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(11, 61, 76, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel-promos__nav:hover {
  background: #f3f7f8;
}

.panel-promos__nav--prev {
  right: 0.65rem;
}

.panel-promos__nav--next {
  left: 0.65rem;
}

.panel-promos__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.panel-promos__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.panel-promos__dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(11, 61, 76, 0.25);
  cursor: pointer;
}

.panel-promos__dot.is-active {
  width: 1.25rem;
  background: #0b3d4c;
}

.panel-promos__counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6b73;
  direction: ltr;
  unicode-bidi: plaintext;
}

@media (max-width: 640px) {
  .panel-promo__img,
  .panel-promo--text,
  .panel-promo {
    min-height: 112px;
  }

  .panel-promo__img {
    height: 112px;
  }

  .panel-promos__viewport,
  .panel-promos__track {
    min-height: 112px;
  }

  .panel-promos__nav {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.15rem;
  }
}

/* Stat cards */
body.dash-skin-solid .ms-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

body.dash-skin-solid .ms-stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--ms-card-bg);
  border: 1px solid var(--ms-card-border);
  border-radius: var(--ms-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}

body.dash-skin-solid .ms-stat-card:hover {
  border-color: color-mix(in srgb, var(--ms-accent) 35%, var(--ms-card-border));
  text-decoration: none;
}

body.dash-skin-solid .ms-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
  flex-shrink: 0;
}

body.dash-skin-solid .ms-stat-card__icon svg {
  width: 20px;
  height: 20px;
}

body.dash-skin-solid .ms-stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

body.dash-skin-solid .ms-stat-card__label {
  font-size: 0.78rem;
  color: var(--ms-muted);
  font-weight: 500;
}

body.dash-skin-solid .ms-stat-card__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ms-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body.dash-skin-solid #apHomeStats .ms-stat-card__value {
  font-size: 1.1rem;
}

body.dash-skin-solid .ms-stat-card__chevron {
  color: var(--ms-muted);
  opacity: 0.55;
  flex-shrink: 0;
}

body.dash-skin-solid .ms-stat-card__chevron svg {
  width: 16px;
  height: 16px;
}

/* Content panel */
body.dash-skin-solid .ms-panel.dash-panel,
body.dash-skin-solid .dash-panel {
  background: var(--ms-card-bg);
  border: 1px solid var(--ms-card-border);
  border-radius: var(--ms-radius);
  box-shadow: none;
}

body.dash-skin-solid .ms-panel__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ms-card-border);
}

body.dash-skin-solid .ms-panel__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.dash-skin-solid .ms-panel__icon {
  display: inline-flex;
  color: var(--ms-accent);
}

body.dash-skin-solid .ms-panel__icon svg {
  width: 20px;
  height: 20px;
}

body.dash-skin-solid .ms-panel .dash-panel__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ms-text);
}

body.dash-skin-solid .dash-panel--soft {
  background: var(--ms-card-bg);
  box-shadow: none;
  border-style: solid;
  border-color: var(--ms-card-border);
  border-radius: var(--ms-radius);
}

body.dash-skin-solid .dash-panel__head {
  padding: 0.75rem 1rem;
  border-bottom-color: var(--ms-card-border);
}

body.dash-skin-solid .dash-panel__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ms-text);
}

body.dash-skin-solid .dash-panel__body {
  padding: 1rem;
}

body.dash-skin-solid .quick-inquiry-form {
  gap: 0.85rem;
}

body.dash-skin-solid .quick-inquiry-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ms-muted);
}

body.dash-skin-solid .quick-inquiry-form__control,
body.dash-skin-solid .bank-search-select__input {
  border-radius: 4px;
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  color: var(--ms-text);
  box-shadow: none;
  padding: 0.55rem 0.7rem;
}

body.dash-skin-solid .quick-inquiry-form__control:focus,
body.dash-skin-solid .bank-search-select__input:focus {
  border-color: var(--ms-accent);
  box-shadow: none;
  outline: 2px solid color-mix(in srgb, var(--ms-accent) 28%, transparent);
  outline-offset: 0;
}

body.dash-skin-solid .quick-inquiry-form__hint {
  font-size: 0.75rem;
  color: var(--ms-muted);
}

body.dash-skin-solid .quick-inquiry-form__actions {
  gap: 0.45rem;
}

body.dash-skin-solid .esheba-btn {
  border-radius: 4px;
  box-shadow: none;
  transform: none;
}

body.dash-skin-solid .esheba-btn--primary {
  border-radius: 4px;
  box-shadow: none;
  background: var(--esheba-navy, #0B3D4C);
  background-image: none;
}

body.dash-skin-solid .esheba-btn--primary:hover,
body.dash-skin-solid .esheba-btn--primary:focus {
  transform: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--esheba-navy, #0B3D4C) 88%, #000);
}

body.dash-skin-solid .esheba-btn--ghost {
  border: 1px solid var(--ms-card-border);
  border-radius: 4px;
  background: var(--ms-card-bg);
}

body.dash-skin-solid .esheba-btn--ghost:hover {
  background: var(--esheba-bg-alt);
  border-color: color-mix(in srgb, var(--ms-accent) 35%, var(--ms-card-border));
}

body.dash-skin-solid .digit-slot-field__prefix,
body.dash-skin-solid .digit-slot-field__group {
  border-radius: 4px;
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .digit-slot-field.is-focused .digit-slot-field__group {
  border-color: var(--ms-accent);
  box-shadow: none;
}

body.dash-skin-solid .digit-slot-field__cell {
  border-bottom-width: 1.5px;
}

body.dash-skin-solid .digit-slot-field__counter {
  font-size: 0.74rem;
}

body.dash-skin-solid .bank-search-select__list {
  border-radius: 4px;
  border-color: var(--ms-card-border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

body.dash-skin-solid .bank-search-select__item {
  border-radius: 3px;
}

body.dash-skin-solid .quick-mode-tabs {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
  box-shadow: none;
}

body.dash-skin-solid .quick-mode-tab {
  border-radius: 3px !important;
  box-shadow: none;
}

body.dash-skin-solid .quick-mode-tab.active {
  box-shadow: none;
  border-color: transparent;
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
  font-weight: 700;
}

@media (max-width: 900px) {
  body.dash-skin-solid .ms-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.dash-skin-solid .dash-topbar__title {
    font-size: 0.9rem;
  }
}

body.dash-skin-solid .dash-nav__item {
  border-radius: 2px !important;
}

body.dash-skin-solid .dash-stat-card,
body.dash-skin-solid .ms-stat-card,
body.dash-skin-solid .ms-stat-card__icon {
  border-radius: 4px;
}

body.dash-skin-solid .dash-icon-btn,
body.dash-skin-solid .dash-wallet-pill,
body.dash-skin-solid .dash-menu-btn,
body.dash-skin-solid .dash-collapse-btn {
  border-radius: 4px;
}

body.dash-skin-solid .financial-service-desc {
  border-color: var(--ms-card-border);
  border-radius: var(--ms-radius);
  background: color-mix(in srgb, var(--ms-accent) 6%, var(--ms-card-bg));
  box-shadow: none;
}

body.dash-skin-solid .financial-service-desc__title {
  color: var(--ms-text);
}

body.dash-skin-solid .financial-service-desc__price {
  color: var(--esheba-teal, #1a7a8c);
}

body.dash-skin-solid .financial-service-desc__body {
  color: var(--ms-muted);
}

body.dash-skin-solid .inquiry-result-badge {
  border-radius: 4px;
}

body.dash-skin-solid .inquiry-result-panel__icon {
  color: var(--ms-muted);
  opacity: 0.7;
}

body.dash-skin-solid .financial-mode-tabs {
  width: 100%;
}

body.dash-skin-solid .service-mode-tabs {
  width: 100%;
}

body.dash-skin-solid .service-inquiry-grid {
  margin-top: 1rem;
}

body.dash-skin-solid .service-banner-slot {
  margin-top: 0.85rem;
}

body.dash-skin-solid .iran-plate {
  border-radius: 4px;
  border-width: 1.5px;
  box-shadow: none;
  background: #fff;
}

body.dash-skin-solid .iran-plate__input {
  border-radius: 3px;
  box-shadow: none;
  background: #fff;
  color: #0f172a;
}

body.dash-skin-solid .iran-plate__iran {
  border-radius: 3px;
  background: #0b3d91;
  color: #fff;
}

body.dash-skin-solid .iran-plate__input--city,
body.dash-skin-solid .iran-plate__input.iran-plate__input--city {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
  caret-color: #fff;
}

body.dash-skin-solid .iran-plate__input--city::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dash-skin-solid .plate-sample-hint {
  color: var(--ms-muted);
}

body.dash-skin-solid .wallet-balance-card {
  border-radius: var(--ms-radius);
  background: var(--esheba-navy, #0B3D4C);
  background-image: none;
  box-shadow: none;
  border-color: transparent;
}

[data-theme="dark"] body.dash-skin-solid .wallet-balance-card {
  background: var(--ms-accent-soft);
  color: var(--ms-text);
  border: 1px solid var(--ms-card-border);
}

body.dash-skin-solid .wallet-filters {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
}

body.dash-skin-solid .wallet-filter.active {
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .wallet-charge-preset {
  border-radius: 3px;
  background: var(--ms-card-bg);
  border-color: var(--ms-card-border);
  color: var(--ms-text);
}

body.dash-skin-solid .wallet-charge-preset:hover,
body.dash-skin-solid .wallet-charge-preset.active {
  border-color: transparent;
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .wallet-gateway-choices {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
}

body.dash-skin-solid .dash-summary-list {
  gap: 0.35rem;
}

body.dash-skin-solid .dash-summary-item {
  border-radius: 3px;
  box-shadow: none;
  padding: 0.5rem 0.65rem;
}

body.dash-skin-solid .dash-summary-item__label {
  color: var(--ms-muted);
  font-size: 0.78rem;
}

body.dash-skin-solid .dash-summary-item__value {
  font-size: 1rem;
}

body.dash-skin-solid .dash-summary-item--deposit {
  border-color: color-mix(in srgb, #16a34a 30%, var(--ms-card-border));
  background: color-mix(in srgb, #22c55e 9%, var(--ms-card-bg));
}

body.dash-skin-solid .dash-summary-item--inquiry {
  border-color: color-mix(in srgb, #dc2626 30%, var(--ms-card-border));
  background: color-mix(in srgb, #ef4444 9%, var(--ms-card-bg));
}

body.dash-skin-solid .dash-summary-item--gift {
  border-color: color-mix(in srgb, #ca8a04 35%, var(--ms-card-border));
  background: color-mix(in srgb, #d4af37 11%, var(--ms-card-bg));
}

body.dash-skin-solid .dash-summary-item--affiliate {
  border-color: color-mix(in srgb, var(--ms-accent) 35%, var(--ms-card-border));
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .wallet-amount--plus {
  color: #15803d;
}

body.dash-skin-solid .wallet-amount--minus {
  color: #dc2626;
}

body.dash-skin-solid .wallet-amount--gift {
  color: #a16207;
}

body.dash-skin-solid .wallet-amount--affiliate {
  color: var(--ms-accent);
}

[data-theme="dark"] body.dash-skin-solid .wallet-amount--plus {
  color: #4ade80;
}

[data-theme="dark"] body.dash-skin-solid .wallet-amount--minus {
  color: #f87171;
}

[data-theme="dark"] body.dash-skin-solid .wallet-amount--gift {
  color: #fbbf24;
}

[data-theme="dark"] body.dash-skin-solid .wallet-amount--affiliate {
  color: var(--ms-accent);
}

body.dash-skin-solid .wallet-type {
  border-radius: 3px;
}

body.dash-skin-solid .order-filters {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
}

body.dash-skin-solid .order-filter.active {
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .orders-stat-tile {
  border-radius: var(--ms-radius);
  box-shadow: none;
}

body.dash-skin-solid .orders-stat-tile--count {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ms-accent) 14%, var(--ms-card-bg)), var(--ms-card-bg));
  border-color: color-mix(in srgb, var(--ms-accent) 28%, var(--ms-card-border));
  color: var(--ms-accent);
}

body.dash-skin-solid .orders-stat-tile--count .orders-stat-tile__icon {
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}

body.dash-skin-solid .orders-stat-tile--amount {
  background: linear-gradient(135deg, color-mix(in srgb, #d4af37 14%, var(--ms-card-bg)), var(--ms-card-bg));
  border-color: color-mix(in srgb, #d4af37 26%, var(--ms-card-border));
  color: #a16207;
}

body.dash-skin-solid .orders-stat-tile--amount .orders-stat-tile__icon {
  background: color-mix(in srgb, #d4af37 18%, transparent);
  color: #a16207;
}

[data-theme="dark"] body.dash-skin-solid .orders-stat-tile--amount {
  color: #fbbf24;
}

body.dash-skin-solid .dash-home-action {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .dash-home-action:hover {
  border-color: color-mix(in srgb, var(--ms-accent) 35%, var(--ms-card-border));
}

body.dash-skin-solid .dash-home-stat {
  border-radius: var(--ms-radius);
  box-shadow: none;
}

body.dash-skin-solid .dash-home-stat--package {
  background: linear-gradient(135deg, color-mix(in srgb, #3b82f6 12%, var(--ms-card-bg)), var(--ms-card-bg));
  border-color: color-mix(in srgb, #3b82f6 24%, var(--ms-card-border));
}

body.dash-skin-solid .dash-home-stat--usage {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ms-accent) 14%, var(--ms-card-bg)), var(--ms-card-bg));
  border-color: color-mix(in srgb, var(--ms-accent) 28%, var(--ms-card-border));
  color: var(--ms-accent);
}

body.dash-skin-solid .dash-home-stat--usage .dash-home-stat__icon {
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}

body.dash-skin-solid .orders-stats .dash-stat-card,
body.dash-skin-solid .dash-stat-card--compact {
  border-radius: var(--ms-radius);
  border: 1px solid var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .dash-stat-card--compact .dash-stat-card__value {
  color: var(--ms-text);
}

body.dash-skin-solid .dash-stat-card--compact .dash-stat-card__label {
  color: var(--ms-muted);
}

body.dash-skin-solid .order-type {
  border-radius: 3px;
}

body.dash-skin-solid .order-table-wrap {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
}

body.dash-skin-solid .package-active-banner {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .package-active-banner__title {
  color: var(--ms-text);
}

body.dash-skin-solid .package-active-banner__label,
body.dash-skin-solid .package-active-banner__meta {
  color: var(--ms-muted);
}

body.dash-skin-solid .package-card {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .package-card--featured {
  border-color: color-mix(in srgb, var(--esheba-gold, #d4af37) 50%, var(--ms-card-border));
}

body.dash-skin-solid .package-card__name,
body.dash-skin-solid .package-card__price {
  color: var(--ms-text);
}

body.dash-skin-solid .package-card__badge {
  border-radius: 3px;
}

body.dash-skin-solid .package-card__ribbon {
  border-radius: 3px;
  background-image: none;
}

body.dash-skin-solid .support-filters {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
}

body.dash-skin-solid .support-filter.active {
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .support-ticket-item {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
}

body.dash-skin-solid .support-ticket-item.active {
  border-color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .support-ticket-item.active::before {
  background: var(--ms-accent);
}

body.dash-skin-solid .support-ticket-item.active .support-ticket-item__subject {
  color: var(--ms-accent);
}

body.dash-skin-solid .support-detail__head,
body.dash-skin-solid .support-message,
body.dash-skin-solid .support-closed-note {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  box-shadow: none;
}

body.dash-skin-solid .support-create-panel__close {
  border-radius: 4px;
}

body.dash-skin-solid .sp-search__input {
  border-radius: 4px;
}

body.dash-skin-solid .notif-filters {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
}

body.dash-skin-solid .notif-filter.active {
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .notif-page-item {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .notif-page-item__title {
  color: var(--ms-text);
}

body.dash-skin-solid .notif-page-item__text,
body.dash-skin-solid .notif-page-item__time {
  color: var(--ms-muted);
}

body.dash-skin-solid .notif-tag {
  border-radius: 3px;
}

body.dash-skin-solid .notif-page-item--unread {
  border-inline-start: 3px solid var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .dash-badge {
  border-radius: 4px;
}

body.dash-skin-solid .ap-pager {
  margin-top: 0.75rem;
}

body.dash-skin-solid .bulk-upload-zone {
  border-radius: var(--ms-radius);
  border-style: dashed;
  border-color: var(--ms-card-border);
  background: color-mix(in srgb, var(--ms-accent) 5%, var(--ms-card-bg));
  box-shadow: none;
}

body.dash-skin-solid .bulk-upload-zone:hover,
body.dash-skin-solid .bulk-upload-zone.dragover,
body.dash-skin-solid .bulk-upload-zone.has-file {
  border-color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .bulk-upload-zone__icon {
  color: var(--ms-accent);
}

body.dash-skin-solid .bulk-upload-zone__title {
  color: var(--ms-text);
}

body.dash-skin-solid .bulk-upload-zone__meta {
  color: var(--ms-muted);
}

body.dash-skin-solid .bulk-summary {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .bulk-summary__label {
  color: var(--ms-muted);
}

body.dash-skin-solid .bulk-summary__value {
  color: var(--ms-text);
}

body.dash-skin-solid .dash-empty__icon {
  color: var(--ms-muted);
  opacity: 0.7;
}

/* Compact, balanced topbar on solid skin */
body.dash-skin-solid .dash-topbar {
  padding: 0.55rem 1rem;
  gap: 0.65rem;
}

body.dash-skin-solid .dash-topbar__right,
body.dash-skin-solid .dash-topbar__left {
  gap: 0.4rem;
}

body.dash-skin-solid .dash-topbar__title {
  font-size: 0.95rem;
  font-weight: 700;
}

body.dash-skin-solid .dash-wallet-pill {
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 4px;
}

body.dash-skin-solid .dash-wallet-pill svg {
  width: 13px;
  height: 13px;
}

body.dash-skin-solid .dash-icon-btn,
body.dash-skin-solid .dash-menu-btn,
body.dash-skin-solid .dash-collapse-btn,
body.dash-skin-solid .esheba-theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

body.dash-skin-solid .dash-icon-btn svg,
body.dash-skin-solid .esheba-theme-toggle svg {
  width: 15px;
  height: 15px;
}

body.dash-skin-solid .dash-icon-btn__dot {
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
}

body.dash-skin-solid .dash-topbar__actions {
  gap: 0.25rem;
}

body.dash-skin-solid .panel-nav--compact .panel-nav__choices {
  border-radius: 4px;
  background: var(--ms-card-bg);
  border-color: var(--ms-card-border);
}

body.dash-skin-solid .panel-nav--compact .panel-nav__choice {
  padding: 0.22rem 0.42rem;
  border-radius: 3px;
}

body.dash-skin-solid .panel-nav__choice-title {
  font-size: 0.68rem;
}

body.dash-skin-solid .panel-nav__choice-icon svg {
  width: 13px;
  height: 13px;
}

/* Profile ? solid */
body.dash-skin-solid .profile-page__lead {
  margin-bottom: 0.65rem;
}

body.dash-skin-solid .profile-tabs {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
}

body.dash-skin-solid .profile-tab.active {
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

@media (min-width: 768px) {
  body.dash-skin-solid .profile-tabs--side .profile-tab.active {
    box-shadow: inset -3px 0 0 var(--ms-accent);
  }
}

body.dash-skin-solid .profile-complete {
  border-radius: 3px;
  border-color: var(--ms-card-border);
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}

body.dash-skin-solid .profile-avatar {
  border-radius: 4px;
  background: var(--esheba-navy, #0B3D4C);
  background-image: none;
}

body.dash-skin-solid .profile-name {
  color: var(--ms-text);
  font-weight: 700;
}

body.dash-skin-solid .profile-meta,
body.dash-skin-solid .profile-field__label,
body.dash-skin-solid .security-item__desc,
body.dash-skin-solid .device-item__meta,
body.dash-skin-solid .activity-item__meta {
  color: var(--ms-muted);
}

body.dash-skin-solid .profile-field,
body.dash-skin-solid .security-item,
body.dash-skin-solid .device-item,
body.dash-skin-solid .activity-item {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.dash-skin-solid .profile-field__value,
body.dash-skin-solid .security-item__title,
body.dash-skin-solid .device-item__title,
body.dash-skin-solid .activity-item__title {
  color: var(--ms-text);
}

body.dash-skin-solid .profile-field__input {
  border-radius: 4px;
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  color: var(--ms-text);
  box-shadow: none;
}

body.dash-skin-solid .profile-field__input:not(:disabled):focus {
  border-color: var(--ms-accent);
  outline: 2px solid color-mix(in srgb, var(--ms-accent) 28%, transparent);
  outline-offset: 0;
  box-shadow: none;
}

body.dash-skin-solid .device-item--current {
  border-color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .activity-item__dot {
  background: var(--ms-accent);
  box-shadow: none;
}

body.dash-skin-solid .profile-password-otp {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
}

body.dash-skin-solid .profile-forgot-password__btn {
  color: var(--ms-accent);
}

body.dash-skin-solid .role-badge {
  border-radius: 3px;
}

/* Settings ? solid */
body.dash-skin-solid .settings-page__lead {
  margin-bottom: 0.65rem;
}

body.dash-skin-solid .settings-section-desc {
  color: var(--ms-muted);
  margin-bottom: 0.65rem;
}

body.dash-skin-solid .settings-theme-option {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  color: var(--ms-text);
  box-shadow: none;
}

body.dash-skin-solid .settings-theme-option:hover,
body.dash-skin-solid .settings-theme-option.active {
  border-color: transparent;
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.dash-skin-solid .settings-theme-option__swatch {
  border-color: var(--ms-card-border);
}

body.dash-skin-solid .settings-defaults {
  gap: 0.4rem;
}

body.dash-skin-solid .settings-defaults__row {
  margin-top: 0.75rem;
}

body.dash-skin-solid .pref-item {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
}




/* ===== Admin Services (list + detail) ===== */
.ap-svc-crumb {
  margin-bottom: 0.55rem;
}

.ap-svc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.ap-svc-toolbar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--esheba-font);
  color: var(--esheba-navy, #0B3D4C);
  line-height: 1.3;
}

.ap-svc-toolbar__sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
}

.ap-svc-toolbar__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ap-svc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ap-svc-stat {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--esheba-border, #e5e7eb);
  border-radius: 8px;
  background: var(--ms-card-bg, #fff);
}

.ap-svc-stat__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
  margin-bottom: 0.15rem;
}

.ap-svc-stat__value {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--esheba-navy, #0B3D4C);
  font-family: var(--esheba-font);
  line-height: 1.25;
}

.ap-svc-list-panel {
  margin-top: 0;
}

.ap-svc-list-body {
  padding: 0 !important;
}

.ap-svc-list-table th,
.ap-svc-list-table td {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.ap-svc-link {
  font-weight: 700;
  color: var(--esheba-navy, #0B3D4C);
  text-decoration: none;
}

.ap-svc-link:hover {
  text-decoration: underline;
}

.ap-svc-route-cell {
  font-size: 0.78rem;
  color: var(--esheba-muted);
  max-width: 16rem;
}

.ap-svc-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--esheba-border);
  font-family: var(--esheba-font);
}

.ap-svc-pill--on {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.ap-svc-pill--off {
  color: var(--esheba-muted);
  background: rgba(0, 0, 0, 0.04);
}

.ap-svc-pill--primary {
  margin-right: 0.3rem;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  font-size: 0.62rem;
  vertical-align: middle;
}

.ap-svc-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0.65rem;
  align-items: start;
}

.ap-svc-main-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.ap-svc-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
}

.ap-svc-flag-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ap-svc-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--esheba-border, #e5e7eb);
  border-radius: 6px;
  background: var(--esheba-surface, #fff);
  cursor: pointer;
}

.ap-svc-flag__text {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--esheba-text, #111827);
}

.ap-svc-settings-grid {
  gap: 0.55rem 0.75rem;
}

.ap-svc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ap-svc-toggle-row .ap-toggle {
  flex-shrink: 0;
}

.ap-table .svc-cost.quick-inquiry-form__control {
  max-width: 6.5rem;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.82rem;
}

.ap-svc-save-foot {
  margin-top: 0.75rem;
}

.ap-svc-side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ap-svc-panel-head {
  padding: 0.65rem 0.85rem !important;
}

.ap-svc-panel-hint {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--esheba-muted);
  line-height: 1.4;
  font-family: var(--esheba-font);
}

.ap-svc-settings {
  display: grid;
  grid-template-columns: minmax(120px, 170px) auto auto;
  gap: 0.45rem 0.65rem;
  align-items: end;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--esheba-border, #e5e7eb);
}

.ap-svc-drag-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
}

.ap-svc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ap-svc-meta__row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-svc-meta__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
}

.ap-svc-meta__value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--esheba-navy, #0B3D4C);
  font-family: var(--esheba-font);
  word-break: break-word;
}

.ap-svc-actions__btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.ap-svc-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.ap-svc-dot--on { background: #10b981; }
.ap-svc-dot--off { background: #cbd5e1; }

.ap-svc-chart--compact .ap-svc-bars {
  min-height: 88px;
}

.ap-svc-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  min-height: 88px;
}

.ap-svc-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.ap-svc-bar__fill {
  width: 100%;
  max-width: 1.4rem;
  min-height: 3px;
  border-radius: 4px 4px 1px 1px;
  background: color-mix(in srgb, var(--ms-accent, #0f766e) 75%, #94a3b8);
}

.ap-svc-bar__label,
.ap-svc-bar__rate {
  font-size: 0.58rem;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
  white-space: nowrap;
}

.ap-svc-errors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
}

.ap-svc-errors__item {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--esheba-border, #e5e7eb);
  border-radius: 6px;
  border-right: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.ap-svc-errors__msg {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--esheba-navy, #0B3D4C);
  font-family: var(--esheba-font);
}

.ap-svc-errors__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
}

.ap-svc-errors__empty {
  font-size: 0.78rem;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
}

@media (max-width: 1100px) {
  .ap-svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-svc-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ap-svc-stats { grid-template-columns: 1fr 1fr; }
  .ap-svc-settings { grid-template-columns: 1fr; }
}

.ap-pricing-cache {
  margin-bottom: 0.65rem;
}

.ap-pricing-cache__body {
  padding: 0.65rem 0.85rem !important;
}

.ap-pricing-cache__fields {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(100px, 140px);
  gap: 0.55rem 0.85rem;
  align-items: end;
}

.ap-pricing-cache__hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--esheba-muted);
  font-family: var(--esheba-font);
  line-height: 1.4;
}

.ap-pricing-table .pricing-sell {
  max-width: 7.5rem;
  margin-inline: auto;
  text-align: center;
  padding: 0.35rem 0.45rem;
  font-size: 0.85rem;
}

.ap-pricing-table th,
.ap-pricing-table td {
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  vertical-align: middle;
}

.ap-pricing-table .ap-cell-sub {
  margin-top: 0.1rem;
  font-size: 0.7rem;
}

@media (max-width: 700px) {
  .ap-pricing-cache__fields {
    grid-template-columns: 1fr;
  }
}

/* Support panel under Microsoft solid skin */
body.dash-skin-solid.sp-body .sp-sidebar {
  border-left: none;
}

body.dash-skin-solid.sp-body .sp-role-banner {
  margin: 0.65rem 0.75rem 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--ms-radius, 8px);
  background: var(--ms-accent-soft, rgba(15, 118, 110, 0.1));
  border: 1px solid color-mix(in srgb, var(--ms-accent, #0f766e) 28%, transparent);
}

body.dash-skin-solid.sp-body .sp-role-banner__value {
  color: var(--ms-accent, #0f766e);
  font-weight: 700;
}

body.dash-skin-solid.sp-body .sp-panel-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ms-accent, #0f766e);
  text-decoration: none;
}

body.dash-skin-solid.sp-body .sp-panel-link:hover {
  text-decoration: underline;
}

body.dash-skin-solid.sp-body .sp-toolbar {
  margin-bottom: 0.75rem;
}

body.dash-skin-solid.sp-body .sp-tickets-layout {
  gap: 0.75rem;
}

body.dash-skin-solid.sp-body .dash-nav__item--badged {
  position: relative;
}

body.dash-skin-solid #spHomeStats.ms-stat-grid,
body.dash-skin-solid #apHomeStats.ms-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  body.dash-skin-solid #spHomeStats.ms-stat-grid,
  body.dash-skin-solid #apHomeStats.ms-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Admin panel solid (professional dense UI) —— */
body.ap-body.dash-skin-solid .ap-sidebar {
  border-left: 1px solid var(--ms-card-border);
  background: var(--ms-card-bg);
}

body.ap-body.dash-skin-solid .dash-nav__label {
  color: var(--ms-muted);
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0;
}

body.ap-body.dash-skin-solid .dash-nav__item.active {
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
  box-shadow: inset -3px 0 0 var(--ms-accent);
}

[data-theme="dark"] body.ap-body.dash-skin-solid .dash-nav__item.active {
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
  box-shadow: inset -3px 0 0 var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-role-banner {
  margin: 0.5rem 0.75rem 0.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--ms-radius);
  border: 1px solid var(--ms-card-border);
  background: var(--ms-accent-soft);
}

body.ap-body.dash-skin-solid .ap-role-banner__label {
  font-size: 0.65rem;
  margin-bottom: 0.1rem;
  color: var(--ms-muted);
}

body.ap-body.dash-skin-solid .ap-role-banner__value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .dash-content {
  padding: 1rem 1.15rem 1.5rem;
}

body.ap-body.dash-skin-solid .dash-welcome:not(.ap-page-head) {
  display: none;
}

body.ap-body.dash-skin-solid .dash-welcome.ap-page-head {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  align-items: center;
  justify-content: flex-start;
}

body.ap-body.dash-skin-solid .dash-welcome.ap-page-head .dash-welcome__title,
body.ap-body.dash-skin-solid .dash-welcome.ap-page-head .dash-welcome__desc {
  display: none;
}

body.ap-body.dash-skin-solid .dash-welcome.ap-page-head > div:has(> .dash-welcome__title) {
  display: none;
}

body.ap-body.dash-skin-solid .settings-section-desc,
body.ap-body.dash-skin-solid .ap-settings-card__desc {
  display: none;
}

body.ap-body.dash-skin-solid .ap-settings-hub {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 0.5rem 1rem 2rem;
  box-sizing: border-box;
}

body.ap-body.dash-skin-solid .ap-settings-hub__inner {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  gap: 1.5rem;
}

body.ap-body.dash-skin-solid .ap-settings-group__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ms-muted);
  padding-inline: 0.1rem;
}

body.ap-body.dash-skin-solid .ap-settings-list {
  border: 1px solid var(--ms-card-border);
  border-radius: var(--ms-radius);
  background: var(--ms-card-bg);
  box-shadow: none;
}

body.ap-body.dash-skin-solid .ap-settings-row {
  padding: 0.9rem 1.05rem;
  border-bottom-color: var(--ms-card-border);
  background: transparent;
}

body.ap-body.dash-skin-solid .ap-settings-row:hover {
  background: var(--ms-page-bg);
}

body.ap-body.dash-skin-solid .ap-settings-row__icon {
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-settings-row__title {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-settings-row__desc {
  display: block;
  font-size: 0.76rem;
  color: var(--ms-muted);
}

body.ap-body.dash-skin-solid .ap-settings-row__chevron {
  color: var(--ms-muted);
}

body.ap-body.dash-skin-solid .ap-settings-row:hover .ap-settings-row__title {
  color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-settings-row:hover .ap-settings-row__chevron {
  color: var(--ms-accent);
}

/* Admin denser nav chrome only — shell width stays shared (--dash-sidebar-*) */

body.ap-body.dash-skin-solid .dash-nav {
  padding: 0.35rem 0.35rem 0.5rem;
}

body.ap-body.dash-skin-solid .dash-nav__label {
  padding: 0.45rem 0.55rem 0.15rem;
  font-size: 0.65rem;
  margin-top: 0.15rem;
}

body.ap-body.dash-skin-solid .dash-nav__item {
  margin-bottom: 0;
  padding: 0.42rem 0.55rem;
  gap: 0.45rem;
  font-size: 0.8rem;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .dash-nav__item svg {
  width: 16px;
  height: 16px;
}

body.ap-body.dash-skin-solid .dash-sidebar__head {
  padding: 0.75rem 0.7rem;
}

body.ap-body.dash-skin-solid .ap-role-banner {
  margin: 0.4rem 0.55rem 0.15rem;
  padding: 0.35rem 0.5rem;
}

body.ap-body.dash-skin-solid .ap-settings-card {
  min-height: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: none;
  justify-content: center;
}

body.ap-body.dash-skin-solid .ap-settings-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--ms-accent) 35%, var(--ms-card-border));
  background: var(--ms-card-bg);
}

body.ap-body.dash-skin-solid .ap-settings-card--accent {
  border-color: color-mix(in srgb, var(--ms-accent) 40%, var(--ms-card-border));
  background: var(--ms-accent-soft);
}

body.ap-body.dash-skin-solid .ap-settings-card--accent .ap-settings-card__title {
  color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-settings-card__title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-home-grid {
  margin-top: 0.85rem;
  gap: 0.85rem;
}

body.ap-body.dash-skin-solid .ap-quick-grid {
  gap: 0.45rem;
}

body.ap-body.dash-skin-solid .ap-quick-card {
  min-height: 40px;
  padding: 0.45rem 0.55rem;
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  color: var(--ms-text);
  font-size: 0.8rem;
  box-shadow: none;
}

body.ap-body.dash-skin-solid .ap-quick-card:hover {
  border-color: color-mix(in srgb, var(--ms-accent) 40%, var(--ms-card-border));
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.ap-body.dash-skin-solid .ap-panel-link {
  color: var(--ms-accent);
  font-weight: 600;
}

body.ap-body.dash-skin-solid .dash-panel__head {
  padding: 0.7rem 0.9rem;
}

body.ap-body.dash-skin-solid .dash-panel__body {
  padding: 0.75rem 0.9rem;
}

body.ap-body.dash-skin-solid .ap-table th,
body.ap-body.dash-skin-solid .ap-table td {
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
}

body.ap-body.dash-skin-solid .ap-toolbar {
  margin-bottom: 0.65rem;
  gap: 0.5rem;
}

body.ap-body.dash-skin-solid .dash-panel .ap-table-wrap {
  border: none;
  border-radius: 0;
  background: transparent;
}

body.ap-body.dash-skin-solid .ap-users-page .ap-stats {
  margin: 0 0 0.65rem;
}

body.ap-body.dash-skin-solid .ap-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

body.ap-body.dash-skin-solid .ap-users-toolbar .ap-search {
  flex: 1 1 14rem;
  min-width: 12rem;
}

body.ap-body.dash-skin-solid .ap-users-toolbar .ap-users-role-filter {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-users-toolbar .quick-inquiry-form__control {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  min-height: 2.1rem;
}

body.ap-body.dash-skin-solid .ap-stat-chip {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  color: var(--ms-text);
  padding: 0.3rem 0.55rem;
  font-size: 0.76rem;
}

body.ap-body.dash-skin-solid .ap-stat-chip b {
  font-size: 0.86rem;
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-users-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-users-panel__body {
  padding: 0;
}

body.ap-body.dash-skin-solid .ap-users-panel .ap-pager {
  margin: 0;
  padding: 0.65rem 0.75rem 0.75rem;
}

body.ap-body.dash-skin-solid .ap-users-panel .ap-save-hint {
  margin: 0;
  padding: 0 0.75rem;
}

body.ap-body.dash-skin-solid .ap-user-hint-tight {
  margin: -0.35rem 0 0.75rem;
}

body.ap-body.dash-skin-solid .ap-user-stat {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
}

body.ap-body.dash-skin-solid .ap-finance-page {
  display: grid;
  gap: 0.75rem;
}

body.ap-body.dash-skin-solid .ap-finance-stats.ms-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-finance-stats .ms-stat-card {
  padding: 0.65rem 0.8rem;
}

body.ap-body.dash-skin-solid .ap-finance-stats .ms-stat-card__value {
  font-size: 1rem;
}

body.ap-body.dash-skin-solid .ap-finance-tabs {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-finance-tab {
  font-size: 0.74rem;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
}

body.ap-body.dash-skin-solid .ap-finance-tab.active {
  color: var(--ms-accent);
  background: var(--ms-accent-soft);
}

body.ap-body.dash-skin-solid .ap-toolbar--finance {
  margin-bottom: 0.55rem;
  gap: 0.4rem;
}

body.ap-body.dash-skin-solid .ap-toolbar--finance .quick-inquiry-form__control {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
}

body.ap-body.dash-skin-solid .ap-finance-filter {
  width: auto;
  min-width: 8.5rem;
  flex: 0 0 auto;
}

body.ap-body.dash-skin-solid .ap-finance-page .ap-pager__btn {
  min-height: 1.85rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-finance-page .dash-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-disc-page {
  display: grid;
  gap: 0.75rem;
}

body.ap-body.dash-skin-solid .ap-disc-stats.ms-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-disc-stats .ms-stat-card {
  padding: 0.65rem 0.8rem;
}

body.ap-body.dash-skin-solid .ap-disc-stats .ms-stat-card__value {
  font-size: 1rem;
}

body.ap-body.dash-skin-solid .ap-disc-page .dash-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-packages-page {
  display: grid;
  gap: 0.65rem;
}

body.ap-body.dash-skin-solid .ap-packages-toolbar {
  margin: 0;
  justify-content: flex-start;
}

body.ap-body.dash-skin-solid .ap-packages-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-packages-panel__body {
  padding: 0;
}

body.ap-body.dash-skin-solid .ap-packages-panel .ap-save-hint {
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
}

body.ap-body.dash-skin-solid .ap-packages-page .ap-col-actions .esheba-btn {
  min-height: 1.75rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-modal__dialog--package {
  width: min(100%, 520px);
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-form-grid--package {
  gap: 0.55rem 0.65rem;
}

body.ap-body.dash-skin-solid .ap-form-grid__full {
  grid-column: 1 / -1;
}

body.ap-body.dash-skin-solid .ap-package-flags {
  margin-top: 0.75rem;
}

body.ap-body.dash-skin-solid .ap-packages-page .ap-amount {
  font-variant-numeric: tabular-nums;
}

body.ap-body.dash-skin-solid .ap-sr-page {
  display: grid;
  gap: 0.65rem;
}

body.ap-body.dash-skin-solid .ap-sr-toolbar {
  margin: 0;
  gap: 0.45rem;
}

body.ap-body.dash-skin-solid .ap-sr-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-sr-panel__body {
  padding: 0;
}

body.ap-body.dash-skin-solid .ap-sr-panel .ap-pager,
body.ap-body.dash-skin-solid .ap-sr-panel .ap-save-hint {
  margin: 0;
  padding: 0.55rem 0.75rem 0.65rem;
}

body.ap-body.dash-skin-solid .ap-sr-page .ap-col-actions .esheba-btn,
body.ap-body.dash-skin-solid .ap-sr-page .ap-pager__btn {
  min-height: 1.75rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-modal__dialog--sr {
  width: min(100%, 520px);
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-sr-toolbar .quick-inquiry-form__control {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
}

body.ap-body.dash-skin-solid .ap-banks-page {
  display: grid;
  gap: 0.65rem;
}

body.ap-body.dash-skin-solid .ap-banks-toolbar {
  margin: 0;
  justify-content: space-between;
  align-items: center;
}

body.ap-body.dash-skin-solid .ap-banks-toolbar .ap-stats {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-banks-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-banks-panel__body {
  padding: 0;
}

body.ap-body.dash-skin-solid .ap-banks-panel .ap-save-hint {
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
}

body.ap-body.dash-skin-solid .ap-banks-page .ap-col-actions .esheba-btn {
  min-height: 1.75rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-modal__dialog--bank {
  width: min(100%, 540px);
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-switch--sm .ap-switch__input:checked + .ap-switch__track {
  background: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-notif-page {
  display: grid;
  gap: 0.65rem;
}

body.ap-body.dash-skin-solid .ap-notif-toolbar {
  margin: 0;
  justify-content: flex-start;
}

body.ap-body.dash-skin-solid .ap-notif-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-notif-panel__body {
  padding: 0;
}

body.ap-body.dash-skin-solid .ap-notif-panel .ap-save-hint {
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
}

body.ap-body.dash-skin-solid .ap-notif-page .ap-col-actions .esheba-btn {
  min-height: 1.75rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-modal__dialog--notif {
  width: min(100%, 560px);
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-notif-page .jalali-date-selects .quick-inquiry-form__control {
  min-height: 2rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.78rem;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .ap-disc-page .ap-pager__btn {
  min-height: 1.85rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  border-radius: var(--ms-radius);
}

/* —— Shared admin primitives (buttons / inputs / settings) —— */
body.ap-body.dash-skin-solid .esheba-btn {
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .esheba-btn--sm {
  min-height: 1.75rem;
  padding: 0.18rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.2;
  border-radius: var(--ms-radius);
}

body.ap-body.dash-skin-solid .quick-inquiry-form__control,
body.ap-body.dash-skin-solid .ap-settings-field__input,
body.ap-body.dash-skin-solid select.quick-inquiry-form__control,
body.ap-body.dash-skin-solid textarea.quick-inquiry-form__control {
  min-height: 2rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  color: var(--ms-text);
  box-shadow: none;
}

body.ap-body.dash-skin-solid .quick-inquiry-form__control:focus,
body.ap-body.dash-skin-solid .ap-settings-field__input:focus {
  border-color: color-mix(in srgb, var(--ms-accent) 45%, var(--ms-card-border));
  box-shadow: 0 0 0 2px var(--ms-accent-soft);
}

body.ap-body.dash-skin-solid .quick-inquiry-form__label,
body.ap-body.dash-skin-solid .ap-settings-field__label {
  font-size: 0.78rem;
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-settings-options {
  margin-top: 0.55rem;
  border: 1px solid var(--ms-card-border);
  border-radius: var(--ms-radius);
  background: var(--ms-page-bg);
  overflow: hidden;
  gap: 0;
}

body.ap-body.dash-skin-solid .ap-settings-option {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  border: 0;
  border-bottom: 1px solid var(--ms-card-border);
  border-radius: 0;
  background: transparent;
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-settings-option:last-child {
  border-bottom: 0;
}

body.ap-body.dash-skin-solid .ap-settings-option input,
body.ap-body.dash-skin-solid .ap-settings-toggle input {
  accent-color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  border: 1px solid var(--ms-card-border);
  border-radius: var(--ms-radius);
  background: var(--ms-page-bg);
  color: var(--ms-text);
}

body.dash-body.dash-skin-solid .esheba-btn--sm {
  min-height: 1.75rem;
  padding: 0.18rem 0.65rem;
  font-size: 0.72rem;
  border-radius: var(--ms-radius);
}

body.dash-body.dash-skin-solid .quick-inquiry-form__control {
  min-height: 2rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  color: var(--ms-text);
  box-shadow: none;
}

body.ap-body.dash-skin-solid .ap-settings-section {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ms-card-border);
}

body.ap-body.dash-skin-solid .ap-settings-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

body.ap-body.dash-skin-solid .ap-settings-section__title {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-settings-field__hint,
body.ap-body.dash-skin-solid .quick-inquiry-form__hint,
body.ap-body.dash-skin-solid .ap-save-hint {
  font-size: 0.74rem;
  color: var(--ms-muted);
}

body.ap-body.dash-skin-solid .ap-settings-actions {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ms-card-border);
}

body.ap-body.dash-skin-solid .ap-settings-fields {
  margin-top: 0.65rem;
  gap: 0.75rem 1.25rem;
}

body.ap-body.dash-skin-solid .ap-settings-page,
body.ap-body.dash-skin-solid .ap-pay-page,
body.ap-body.dash-skin-solid .ap-maint-page {
  display: grid;
  gap: 0.65rem;
}

body.ap-body.dash-skin-solid .ap-settings-page .ap-page-head,
body.ap-body.dash-skin-solid .ap-pay-page .ap-page-head,
body.ap-body.dash-skin-solid .ap-maint-page .ap-page-head {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-settings-page .dash-panel,
body.ap-body.dash-skin-solid .ap-pay-page .dash-panel,
body.ap-body.dash-skin-solid .ap-maint-page .dash-panel {
  margin: 0;
}

body.ap-body.dash-skin-solid .ap-settings-page .dash-panel__body,
body.ap-body.dash-skin-solid .ap-pay-panel__body,
body.ap-body.dash-skin-solid .ap-maint-panel__body {
  padding: 0.85rem 1rem 1rem;
}

body.ap-body.dash-skin-solid .ap-settings-crumb {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

body.ap-body.dash-skin-solid .ap-settings-crumb__link {
  color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-settings-crumb__current {
  color: var(--ms-muted);
}

/* Affiliate (user panel solid) */
body.dash-skin-solid .affiliate-code-box {
  border-radius: var(--ms-radius);
  border: 1px solid var(--ms-card-border);
  background: var(--ms-page-bg);
  box-shadow: none;
}

body.dash-skin-solid .affiliate-code-box__code {
  color: var(--ms-text);
  font-size: 1rem;
}

body.dash-skin-solid .affiliate-link-row .esheba-btn--sm {
  min-height: 1.75rem;
  padding: 0.18rem 0.65rem;
  font-size: 0.72rem;
  border-radius: var(--ms-radius);
}

@media (max-width: 720px) {
  body.ap-body.dash-skin-solid .ap-finance-stats.ms-stat-grid,
  body.ap-body.dash-skin-solid .ap-disc-stats.ms-stat-grid {
    grid-template-columns: 1fr;
  }

  body.ap-body.dash-skin-solid .ap-settings-fields--2col {
    grid-template-columns: 1fr;
  }
}

body.ap-body.dash-skin-solid .ap-modal__dialog {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

body.ap-body.dash-skin-solid .ap-modal__head,
body.ap-body.dash-skin-solid .ap-modal__foot {
  border-color: var(--ms-card-border);
  padding: 0.75rem 0.95rem;
}

body.ap-body.dash-skin-solid .ap-modal__title {
  color: var(--ms-text);
  font-size: 0.95rem;
}

body.ap-body.dash-skin-solid .ap-modal__close {
  border-radius: var(--ms-radius);
  background: var(--ms-page-bg);
  color: var(--ms-muted);
}

body.ap-body.dash-skin-solid .ap-um-hero,
body.ap-body.dash-skin-solid .ap-um-card {
  border-color: var(--ms-card-border);
  border-radius: var(--ms-radius);
  background: var(--ms-card-bg);
}

body.ap-body.dash-skin-solid .ap-um-hero {
  background: var(--ms-page-bg);
}

body.ap-body.dash-skin-solid .ap-um-hero__name,
body.ap-body.dash-skin-solid .ap-um-card__title {
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-um-hero__phone,
body.ap-body.dash-skin-solid .ap-um-note {
  color: var(--ms-muted);
}

body.ap-body.dash-skin-solid .ap-um-role {
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  border-radius: var(--ms-radius);
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-um-role:has(input:checked) {
  border-color: color-mix(in srgb, var(--ms-accent) 40%, var(--ms-card-border));
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-um-role input {
  accent-color: var(--ms-accent);
}

body.ap-body.dash-skin-solid .ap-um-status,
body.ap-body.dash-skin-solid .ap-um-credit-grid .quick-inquiry-form__control {
  border-radius: var(--ms-radius);
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .ap-um-stats .ap-user-stat__value {
  color: var(--ms-text);
}

body.ap-body.dash-skin-solid .dash-panel[style*="margin-top"] {
  margin-top: 0.75rem !important;
}

@media (max-width: 640px) {
  body.dash-skin-solid #apHomeStats.ms-stat-grid {
    grid-template-columns: 1fr;
  }

  body.ap-body.dash-skin-solid .dash-content {
    padding: 0.75rem 0.75rem 1.25rem;
  }

  body.ap-body.dash-skin-solid .ap-quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-field__control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.profile-account .profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--esheba-border);
}

body.dash-skin-solid .profile-field.profile-field--inline {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.dash-skin-solid .profile-account__layout .profile-avatar {
  margin-top: 0.15rem;
}

body.dash-skin-solid .profile-head--compact {
  border-bottom-color: var(--ms-card-border);
}

body.dash-skin-solid .profile-chip {
  border-color: var(--ms-card-border);
  background: var(--ms-page-bg);
  color: var(--ms-muted);
}

body.dash-skin-solid .profile-chip span {
  color: var(--ms-text);
}

body.dash-skin-solid .profile-actions {
  border-top-color: var(--ms-card-border);
}

body.dash-skin-solid .profile-page__lead:empty {
  display: none;
}

/* Profile security accordion */
.profile-security {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-accordion {
  border: 1px solid var(--esheba-border);
  border-radius: 8px;
  background: var(--esheba-surface);
  overflow: hidden;
}

.profile-accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: none;
  background: transparent;
  color: inherit;
  font-family: var(--esheba-font);
  cursor: pointer;
  text-align: right;
}

.profile-accordion__toggle:hover {
  background: rgba(0, 0, 0, 0.03);
}

.profile-accordion__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--esheba-navy, #0B3D4C);
}

.profile-accordion__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--esheba-muted);
  transition: transform 0.15s ease;
}

.profile-accordion.is-open .profile-accordion__chevron {
  transform: rotate(180deg);
}

.profile-accordion__body {
  padding: 0.85rem 0.85rem 0.85rem;
  border-top: 1px solid var(--esheba-border);
}

.profile-accordion__body[hidden] {
  display: none !important;
}

.profile-accordion .security-list {
  margin: 0;
  padding-top: 0.15rem;
}

.profile-password-section.profile-accordion {
  margin-top: 0;
}

.profile-password-section .profile-password-form {
  padding-top: 0.5rem;
}

.profile-password-section .profile-password-form > .quick-inquiry-form__row:first-child,
.profile-password-section .profile-current-password-row {
  margin-top: 0.25rem;
}

.profile-password-section .profile-current-password-head {
  margin-top: 0.15rem;
  margin-bottom: 0.55rem;
}

.profile-password-section .profile-current-password-head .quick-inquiry-form__label {
  margin-bottom: 0;
  padding-top: 0.15rem;
}

.profile-accordion .security-list > .security-item:first-child {
  margin-top: 0.2rem;
}

body.dash-skin-solid .profile-accordion {
  border-color: var(--ms-card-border);
  background: var(--ms-card-bg);
  border-radius: var(--ms-radius);
  box-shadow: none;
}

body.dash-skin-solid .profile-accordion__title {
  color: var(--ms-text);
}

body.dash-skin-solid .profile-accordion__body {
  border-top-color: var(--ms-card-border);
}

body.dash-skin-solid .profile-accordion__toggle:hover {
  background: var(--ms-accent-soft);
}

/* Content CMS edit pages */
.ap-content-edit__section {
  margin: 1.35rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--esheba-text, #1a1a1a);
}

.ap-content-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ap-content-edit__editor .tox-tinymce {
  border-radius: 8px;
  border-color: var(--esheba-border, #d0d7de);
}

.ap-settings-actions .ap-content-edit__actions {
  margin-top: 0.75rem;
}

/* Field help tooltips (content CMS) */
.ap-field-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.35rem;
  vertical-align: middle;
  cursor: help;
}

.ap-field-tip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--esheba-border, #c5ced6);
  background: var(--esheba-surface, #fff);
  color: var(--esheba-muted, #5b6b7a);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.ap-field-tip__bubble {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(20rem, 78vw);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--esheba-border, #d0d7de);
  background: var(--esheba-surface, #fff);
  color: var(--esheba-text, #1a1a1a);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: right;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.ap-field-tip:hover .ap-field-tip__bubble,
.ap-field-tip:focus .ap-field-tip__bubble,
.ap-field-tip:focus-within .ap-field-tip__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.quick-inquiry-form__label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.ap-settings-option .ap-field-tip {
  margin-inline-start: 0.4rem;
}

.ap-content-edit__section-note {
    margin: 0.75rem 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--esheba-muted, #5b6b7a);
}

.ap-scope-note {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--esheba-border, #e5e7eb);
  border-radius: 8px;
  background: var(--dash-surface-2, rgba(0, 0, 0, 0.03));
}

.ap-scope-note__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--esheba-text, #111827);
}

.ap-scope-note__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--esheba-muted, #5b6b7a);
}

.ap-scope-note__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
}

.ap-scope-note__links a {
  color: var(--ms-accent, #1A7A8C);
  text-decoration: none;
}

.ap-scope-note__links a:hover {
  text-decoration: underline;
}

.ap-settings-options--tight {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.ap-settings-options--tight .ap-settings-option {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* —— User dashboard: mobile app shell (bottom nav + drawer) —— */
.dash-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .dash-body--app .dash-bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    padding: 0.35rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--esheba-surface) 92%, transparent);
    border-top: 1px solid var(--esheba-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  }

  [data-theme="dark"] .dash-body--app .dash-bottom-nav {
    background: color-mix(in srgb, var(--esheba-surface) 88%, transparent);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
  }

  .dash-body--app .dash-bottom-nav__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.3rem 0.15rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--esheba-muted);
    text-decoration: none;
    font-family: var(--esheba-font);
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .dash-body--app .dash-bottom-nav__item:active {
    transform: scale(0.94);
  }

  .dash-body--app .dash-bottom-nav__item.active {
    color: var(--esheba-teal);
    background: color-mix(in srgb, var(--esheba-teal) 12%, transparent);
  }

  .dash-body--app .dash-bottom-nav__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
  }

  .dash-body--app .dash-bottom-nav__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
  }

  .dash-body--app .dash-bottom-nav__item.active .dash-bottom-nav__icon svg {
    transform: translateY(-1px) scale(1.06);
  }

  .dash-body--app .dash-bottom-nav__item.active .dash-bottom-nav__icon::after {
    content: "";
    position: absolute;
    bottom: -0.2rem;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: var(--esheba-teal);
    animation: dash-bottom-nav-pulse 0.35s ease;
  }

  @keyframes dash-bottom-nav-pulse {
    from { opacity: 0; transform: scaleX(0.4); }
    to { opacity: 1; transform: scaleX(1); }
  }

  .dash-body--app .dash-bottom-nav__label {
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .dash-body--app .dash-content {
    padding: 0.75rem 0.85rem calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .dash-body--app .dash-content-footer {
    display: none;
  }

  .dash-body--app .dash-topbar {
    padding: 0.55rem 0.75rem;
    gap: 0.35rem;
  }

  .dash-body--app .dash-topbar__right .dash-menu-btn,
  .dash-body--app .dash-topbar__right [data-panel-nav],
  .dash-body--app .dash-topbar__right .panel-nav {
    display: none !important;
  }

  .dash-body--app .dash-topbar__title {
    font-size: 0.92rem;
    max-width: 52vw;
  }

  .dash-body--app .dash-topbar__left .dash-icon-btn--logout {
    display: none;
  }

  .dash-body--app .dash-wallet-pill {
    max-width: min(48vw, 10rem);
    padding: 0.28rem 0.5rem;
    font-size: 0.7rem;
  }

  .dash-body--app .dash-sidebar {
    width: min(300px, 86vw);
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    /* باید بالای bottom-nav (1100) بیاید تا فوتر منو زیر نوار پایین نرود */
    z-index: 1200;
  }

  .dash-body--app .dash-sidebar.open {
    animation: dash-drawer-in 0.28s ease;
  }

  @keyframes dash-drawer-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .dash-body--app .dash-overlay {
    z-index: 1150;
  }

  .dash-body--app .dash-overlay.open {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: dash-overlay-in 0.25s ease;
  }

  @keyframes dash-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .dash-body--app .dash-panel {
    border-radius: 12px;
  }

  .dash-body--app .dash-panel__head {
    padding: 0.65rem 0.75rem;
  }

  .dash-body--app .dash-panel__body {
    padding: 0.65rem 0.75rem;
  }

  .dash-body--app.dash-skin-solid .dash-content {
    padding-top: 0.85rem;
  }

  .dash-body--app .dash-home {
    gap: 0.55rem;
  }

  .dash-body--app .panel-promos {
    margin-bottom: 0;
  }

  .dash-body--app .dash-home-hero {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .dash-body--app .dash-home-actions {
    gap: 0.4rem;
  }

  .dash-body--app .dash-home-stats {
    gap: 0.45rem;
  }

  .dash-body--app .dash-home-inquiry .dash-panel__head {
    padding-top: 0.55rem;
  }
}

.inquiry-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.65rem 0 0.85rem;
}

.saved-plate-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.saved-plate-row .quick-inquiry-form__control {
  flex: 1;
}

.financial-otp-help {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.7;
}

.financial-otp-help p {
  margin: 0 0 0.35rem;
}

.financial-otp-help p:last-child {
  margin-bottom: 0;
}

@media print {
  .dash-sidebar,
  .dash-topbar,
  .dash-sidebar__close,
  .inquiry-report-actions,
  #financialInquiryForm,
  #serviceInquiryForm,
  .financial-mode-tabs,
  .service-mode-tabs,
  .quick-mode-tabs,
  .financial-service-desc,
  .service-banner-slot,
  .inquiry-notices,
  .dash-grid-2 > .dash-panel:first-child {
    display: none !important;
  }

  .dash-main,
  .dash-content,
  .dash-panel,
  .dash-grid-2,
  .dash-grid-2 > .dash-panel {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    background: #fff !important;
  }
}

