/* ==========================================================================
   Zarinkala app shells — the logged-in panels (layouts/panel.php: admin,
   seller, member account) and the login screens (layouts/auth.php).

   Loaded after tokens.css + app.css, and only on those pages: the public
   storefront never pays for it. The brand stays the same (antique gold on
   deep navy), the ground changes — a calmer neutral canvas with white
   cards for long working sessions, plus a full dark theme.

   Layout: the sidebar sits on the RIGHT of the screen — the reading start
   of this RTL document (inset-inline-start). Every rule that depends on
   that side is marked "SIDE" below.
   ========================================================================== */

/* ---- Panel tokens --------------------------------------------------------- */
.panel-html {
  --sidebar-w: 272px;
  --sidebar-w-collapsed: 80px;
  --topbar-h: 64px;

  --paper:      #F4F2ED;
  --surface:    #FFFFFF;
  --surface-2:  #F3EFE6;
  --border:     #E7E1D3;

  --sb-bg:      #111C25;
  --sb-bg-2:    #182733;
  --sb-line:    rgba(255, 255, 255, .07);
  --sb-text:    #B4C2CC;
  --sb-muted:   #6E8494;
  --sb-hover:   rgba(255, 255, 255, .05);
  --sb-gold:    #E0AE52;

  --topbar-bg:  rgba(255, 255, 255, .78);
  --ring:       0 0 0 .2rem rgba(184, 132, 42, .22);
  --radius:     14px;
  --radius-sm:  10px;
  --card-shadow: 0 1px 2px rgba(17, 28, 37, .04), 0 4px 16px -8px rgba(17, 28, 37, .08);

  --bs-body-bg: var(--paper);
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
}

/* The same brand, re-mixed for a dark canvas. Every component in app.css
   reads these tokens, so redefining them here re-themes stat cards, product
   rows, pickers etc. without touching any of their rules. */
.panel-html[data-bs-theme="dark"] {
  --ink:        #ECE6DA;
  --ink-soft:   #BDB4A4;
  --ink-faint:  #8E8778;
  --paper:      #0D1217;
  --surface:    #151C23;
  --surface-2:  #1C252E;
  --border:     #27313B;
  --gold:       #C9963A;
  --gold-ink:   #E2B45F;
  --gold-soft:  rgba(201, 150, 58, .14);
  --navy-soft:  rgba(120, 170, 205, .14);
  --navy:       #9CC3DD;
  --teal:       #6CC2AE;
  --teal-soft:  rgba(108, 194, 174, .13);
  --terracotta: #E58B69;
  --terracotta-soft: rgba(229, 139, 105, .13);

  --sb-bg:      #0A1015;
  --sb-bg-2:    #111920;
  --topbar-bg:  rgba(13, 18, 23, .78);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3);

  --bs-body-color: var(--ink);
  --bs-secondary-color: var(--ink-faint);
  --bs-emphasis-color: #fff;
  --bs-link-color: var(--gold-ink);
  --bs-link-hover-color: #fff;
  --bs-border-color: var(--border);
  color-scheme: dark;
}
.panel-html[data-bs-theme="dark"] .bg-white,
.panel-html[data-bs-theme="dark"] .bg-light { background-color: var(--surface) !important; }
.panel-html[data-bs-theme="dark"] .text-dark { color: var(--ink) !important; }
.panel-html[data-bs-theme="dark"] .btn-light {
  --bs-btn-bg: var(--surface-2); --bs-btn-border-color: var(--border); --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: var(--border); --bs-btn-hover-border-color: var(--border); --bs-btn-hover-color: #fff;
}
.panel-html[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: #fff; }
.panel-html[data-bs-theme="dark"] .alert-light { --bs-alert-bg: var(--surface); --bs-alert-color: var(--ink); --bs-alert-border-color: var(--border); }
.panel-html[data-bs-theme="dark"] .chart-host svg line { stroke: var(--border); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---- Shell ----------------------------------------------------------------- */
.panel-body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}
.panel-skip {
  position: fixed; top: .5rem; inset-inline-start: .5rem; z-index: 2000;
  padding: .5rem 1rem; border-radius: var(--radius-sm); background: var(--gold); color: #fff;
}

.panel-sidebar {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-start: 0;               /* SIDE: right of the screen in RTL */
  z-index: 1045;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(224, 174, 82, .10), transparent 60%),
    linear-gradient(180deg, var(--sb-bg-2), var(--sb-bg) 40%);
  color: var(--sb-text);
  border-inline-end: 1px solid var(--sb-line); /* SIDE: edge facing the content */
  transition: width .22s ease, transform .25s ease;
}
.panel-main {
  margin-inline-start: var(--sidebar-w); /* SIDE: matches the sidebar */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin .22s ease;
}

/* Brand */
.panel-brand {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
  height: var(--topbar-h);
  padding: 0 1.1rem;
  flex: none;
}
.panel-brand-link { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.panel-brand-icon {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(224, 174, 82, .35), 0 6px 16px -6px rgba(224, 174, 82, .55);
}
.panel-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.panel-brand-name { color: #fff; font-weight: 800; font-size: 1.02rem; }
.panel-brand-sub { color: var(--sb-gold); font-size: .74rem; font-weight: 600; }

/* Panel switcher (member / seller / admin) */
.panel-switch {
  display: flex; gap: 2px;
  margin: .25rem 1rem .75rem;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--sb-line);
}
.panel-switch-link {
  flex: 1; text-align: center;
  padding: .36rem .25rem;
  border-radius: 8px;
  font-size: .76rem; font-weight: 700;
  color: var(--sb-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.panel-switch-link:hover { color: #fff; }
.panel-switch-link.is-active { background: var(--sb-gold); color: #1a1206; }

/* Seller store card */
.panel-store-card {
  display: block;
  margin: 0 1rem .75rem;
  padding: .8rem .9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(224, 174, 82, .18), rgba(224, 174, 82, .04));
  border: 1px solid rgba(224, 174, 82, .22);
  text-decoration: none;
  color: var(--sb-text);
  transition: border-color .15s;
}
.panel-store-card:hover { border-color: rgba(224, 174, 82, .5); color: var(--sb-text); }
.panel-store-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.panel-store-name { color: #fff; font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--sb-muted); }
.panel-status-dot.is-approved { background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.panel-status-dot.is-pending { background: #FACC15; box-shadow: 0 0 0 3px rgba(250, 204, 21, .18); }
.panel-status-dot.is-rejected { background: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .18); }
.panel-store-balance { display: flex; align-items: baseline; justify-content: space-between; margin-top: .45rem; }
.panel-store-balance-label { font-size: .74rem; color: var(--sb-muted); }
.panel-store-balance-value { font-size: .95rem; font-weight: 800; color: var(--sb-gold); }

/* Navigation */
.panel-nav {
  flex: 1;
  overflow-y: auto;
  padding: .25rem .75rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
}
.panel-nav-section + .panel-nav-section { margin-top: .9rem; }
.panel-nav-title {
  padding: 0 .75rem .35rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .02em;
  color: var(--sb-muted);
  white-space: nowrap;
}
.panel-nav-link {
  position: relative;
  display: flex; align-items: center; gap: .75rem;
  padding: .58rem .75rem;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--sb-text);
  font-size: .9rem; font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.panel-nav-link:hover { background: var(--sb-hover); color: #fff; }
.panel-nav-link:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: -2px; }
.panel-nav-icon { width: 19px; height: 19px; opacity: .85; }
.panel-nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.panel-nav-link.is-active {
  background: linear-gradient(90deg, rgba(224, 174, 82, .06), rgba(224, 174, 82, .22));
  color: #fff;
  font-weight: 700;
}
.panel-nav-link.is-active .panel-nav-icon { color: var(--sb-gold); opacity: 1; }
/* Active indicator on the edge facing the content. */
.panel-nav-link.is-active::before {
  content: '';
  position: absolute;
  inset-inline-end: -.75rem;           /* SIDE: edge facing the content */
  top: 22%; bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--sb-gold);
}
.panel-nav-badge {
  min-width: 1.35rem; height: 1.35rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: #E0634A;
  color: #fff;
  font-size: .72rem; font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

/* User card at the bottom */
.panel-user {
  display: flex; align-items: center; gap: .65rem;
  margin: 0 .75rem .75rem;
  padding: .65rem .7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--sb-line);
  flex: none;
}
.panel-user-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.panel-user-name { color: #fff; font-weight: 700; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-user-role { color: var(--sb-muted); font-size: .74rem; }
.panel-user-logout { margin: 0; }
.panel-user .panel-icon-btn { color: var(--sb-muted); width: 34px; height: 34px; }
.panel-user .panel-icon-btn:hover { color: #F87171; background: rgba(248, 113, 113, .1); }

.panel-avatar {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #E0AE52, #A7741F);
  color: #1a1206;
  font-weight: 800; font-size: 1rem;
}
.panel-avatar .icon { width: 18px; height: 18px; }
.panel-avatar.is-sm { width: 34px; height: 34px; border-radius: 10px; font-size: .9rem; }

/* ---- Collapsed sidebar (wide screens) ---------------------------------- */
@media (min-width: 992px) {
  .sidebar-collapsed .panel-sidebar { width: var(--sidebar-w-collapsed); }
  .sidebar-collapsed .panel-main { margin-inline-start: var(--sidebar-w-collapsed); } /* SIDE */
  .sidebar-collapsed .panel-brand { justify-content: center; padding: 0; }
  .sidebar-collapsed .panel-brand-text,
  .sidebar-collapsed .panel-switch,
  .sidebar-collapsed .panel-store-card,
  .sidebar-collapsed .panel-nav-title,
  .sidebar-collapsed .panel-nav-label,
  .sidebar-collapsed .panel-user-text,
  .sidebar-collapsed .panel-user-logout { display: none; }
  .sidebar-collapsed .panel-nav { overflow: visible; }
  .sidebar-collapsed .panel-nav-section + .panel-nav-section { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--sb-line); }
  .sidebar-collapsed .panel-nav-link { justify-content: center; padding: .7rem 0; }
  .sidebar-collapsed .panel-nav-badge {
    position: absolute; top: 4px; inset-inline-start: 10px;
    min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0;
  }
  .sidebar-collapsed .panel-user { justify-content: center; padding: .5rem; background: none; border: 0; }
  /* Labels come back as tooltips, opening toward the content. */
  .sidebar-collapsed .panel-nav-link::after {
    content: attr(data-tip);
    position: absolute;
    inset-inline-start: calc(100% + 14px); /* SIDE: opens toward the content */
    top: 50%;
    transform: translateY(-50%) scale(.96);
    padding: .35rem .7rem;
    border-radius: 8px;
    background: #0B1218;
    color: #fff;
    font-size: .8rem; font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
    opacity: 0; pointer-events: none;
    transition: opacity .12s, transform .12s;
  }
  .sidebar-collapsed .panel-nav-link:hover::after,
  .sidebar-collapsed .panel-nav-link:focus-visible::after { opacity: 1; transform: translateY(-50%) scale(1); }
  .sidebar-collapsed .panel-nav-link.is-active::before { inset-inline-end: -.75rem; } /* SIDE */
}

/* ---- Drawer (small screens) ------------------------------------------- */
@media (max-width: 991.98px) {
  .panel-sidebar {
    transform: translateX(100%);        /* SIDE: slides in from the right */
    box-shadow: none;
  }
  .sidebar-open .panel-sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .45); }
  .panel-main { margin-inline-start: 0; }
  .sidebar-open body { overflow: hidden; }
}
.panel-backdrop {
  position: fixed; inset: 0; z-index: 1040;
  background: rgba(8, 13, 18, .5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.panel-backdrop[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .panel-sidebar, .panel-main { transition: none; }
}

/* ---- Top bar ------------------------------------------------------------- */
.panel-topbar {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: .75rem;
  height: var(--topbar-h);
  padding: 0 1.5rem;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.panel-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.panel-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.panel-icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.panel-sidebar .panel-icon-btn { color: var(--sb-text); }
.panel-sidebar .panel-icon-btn:hover { background: var(--sb-hover); color: #fff; }

.panel-crumbs {
  display: flex; align-items: center; gap: .35rem;
  min-width: 0;
  font-size: .88rem;
  color: var(--ink-faint);
}
.panel-crumbs a { color: var(--ink-faint); text-decoration: none; white-space: nowrap; }
.panel-crumbs a:hover { color: var(--gold-ink); }
.panel-crumbs [aria-current] { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-crumbs-sep { width: 15px; height: 15px; opacity: .6; }

.panel-topbar-end { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }

.panel-search {
  position: relative;
  align-items: center;
  margin-inline-end: .4rem;
}
.panel-search input {
  width: 15rem;
  height: 40px;
  padding-inline-start: 2.4rem;
  padding-inline-end: .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: .86rem;
  transition: width .2s ease, border-color .15s, box-shadow .15s;
}
.panel-search input:focus { outline: none; width: 19rem; border-color: var(--gold); box-shadow: var(--ring); }
.panel-search-icon { position: absolute; inset-inline-start: .75rem; width: 17px; height: 17px; color: var(--ink-faint); pointer-events: none; }

.panel-bell-dot {
  position: absolute; top: 3px; inset-inline-end: 2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #E0634A;
  color: #fff;
  font-size: .66rem; font-weight: 700; line-height: 18px;
  border: 2px solid var(--surface);
  box-sizing: content-box;
}

[data-bs-theme="light"] .theme-icon-light,
[data-bs-theme="dark"] .theme-icon-dark { display: none; }

.panel-account {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 44px;
  padding: 0 .3rem 0 .3rem;
  padding-inline-end: .75rem;
  margin-inline-start: .3rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: .86rem; font-weight: 600;
  transition: border-color .15s;
}
.panel-account:hover, .panel-account[aria-expanded="true"] { border-color: var(--gold); }
.panel-account-name { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel-dropdown {
  --bs-dropdown-min-width: 15rem;
  --bs-dropdown-bg: var(--surface);
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-bg: var(--surface-2);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-link-active-bg: var(--gold);
  padding: .4rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 48px -16px rgba(17, 28, 37, .28);
  margin-top: .4rem !important;
}
.panel-dropdown .dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .65rem;
  border-radius: 8px;
  font-size: .88rem;
}
.panel-dropdown .dropdown-item .icon { width: 17px; height: 17px; color: var(--ink-faint); }
.panel-dropdown .dropdown-item.text-danger .icon { color: inherit; }
.panel-dropdown-head { padding: .45rem .65rem .55rem; font-size: .86rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; list-style: none; }
.panel-notify { --bs-dropdown-min-width: 19rem; }
.panel-notify-item { justify-content: space-between; }
.panel-notify-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-ink); }
.panel-notify-icon .icon { color: var(--gold-ink) !important; }
.panel-notify-empty { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .9rem .65rem; color: var(--ink-soft); font-size: .86rem; }
.panel-notify-empty .icon { color: var(--teal); }

/* ---- Content area ------------------------------------------------------ */
.panel-content {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.75rem 2rem 2.5rem;
}
@media (max-width: 767.98px) {
  .panel-topbar { padding: 0 .75rem; gap: .4rem; }
  .panel-content { padding: 1.1rem 1rem 2rem; }
}
.panel-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: 1.1rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: .8rem;
}
.panel-footer-links { display: flex; gap: 1.1rem; }
.panel-footer a { color: var(--ink-faint); text-decoration: none; }
.panel-footer a:hover { color: var(--gold-ink); }

/* Page heading inside the content: every view's first <h1> reads as the
   page title, without each view needing new markup. */
.panel-content h1, .panel-content .h4:first-child { letter-spacing: -.01em; }
.panel-content > div > h1.h4,
.panel-content > div > .d-flex > div > h1.h4,
.panel-content > div > .d-flex > h1.h4 { font-size: 1.4rem; font-weight: 800; }
.panel-content h2.h6.text-muted { font-size: .82rem; font-weight: 700; color: var(--ink-faint) !important; }

.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-head h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.page-head-lede { margin: .3rem 0 0; color: var(--ink-faint); font-size: .92rem; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Bootstrap components on the panel canvas */
.panel-content .card {
  --bs-card-bg: var(--surface);
  --bs-card-border-color: var(--border);
  --bs-card-cap-bg: transparent;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.panel-content .card-header { border-bottom-color: var(--border); padding: .9rem 1.15rem; font-weight: 700; }
.panel-content .card-body { padding: 1.15rem; }
.panel-content .form-control,
.panel-content .form-select {
  background-color: var(--surface);
  border-color: var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 42px;
}
.panel-content .form-control-sm, .panel-content .form-select-sm { min-height: 32px; border-radius: 8px; }
.panel-content .form-control:disabled { background-color: var(--surface-2); }
.panel-content .form-label { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.panel-content .btn { border-radius: var(--radius-sm); font-weight: 600; }
.panel-content .btn:not(.btn-sm):not(.btn-lg) { padding: .5rem 1rem; }
.panel-content .btn-sm { border-radius: 8px; }
.panel-content .alert { border-radius: var(--radius); }
.panel-content .list-group {
  --bs-list-group-bg: var(--surface);
  --bs-list-group-border-color: var(--border);
  --bs-list-group-action-hover-bg: var(--surface-2);
  --bs-list-group-color: var(--ink);
  --bs-list-group-action-color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.panel-content .list-group-item { padding: .85rem 1.1rem; }
.panel-content .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: var(--surface-2);
  --bs-table-hover-bg: var(--surface-2);
  margin-bottom: 0;
}
.panel-content .table > thead th {
  font-size: .78rem; font-weight: 700;
  color: var(--ink-faint);
  background: var(--surface-2);
  border-bottom-width: 1px;
  white-space: nowrap;
}
.panel-content .table > :not(caption) > * > * { padding: .7rem .85rem; }
.panel-content .table-responsive {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.panel-content .table-responsive .table > tbody > tr:last-child > * { border-bottom: 0; }
.panel-content .nav-tabs { --bs-nav-tabs-border-color: var(--border); --bs-nav-tabs-link-active-bg: var(--surface); --bs-nav-tabs-link-active-border-color: var(--border) var(--border) var(--surface); }
.panel-content .badge { font-weight: 600; padding: .38em .65em; border-radius: 6px; }
.panel-content .empty-state { border-radius: var(--radius); }

/* Existing panel pieces from app.css, refined for the new canvas */
.panel-content .admin-product-row,
.panel-content .catalog-summary,
.panel-content .pick-item { border-radius: var(--radius); box-shadow: var(--card-shadow); }
.panel-content .stat-card {
  position: relative;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.panel-content a.stat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(17, 28, 37, .35); }
.panel-content .stat-card { transition: transform .15s ease, border-color .15s, box-shadow .15s; }

/* ---- KPI cards (dashboards) --------------------------------------------- */
.kpi {
  position: relative;
  display: flex; flex-direction: column; gap: .9rem;
  height: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
}
a.kpi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--kpi-c, var(--gold)) 45%, var(--border)); box-shadow: 0 16px 32px -20px rgba(17, 28, 37, .4); color: var(--ink); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.kpi-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--kpi-soft, var(--gold-soft));
  color: var(--kpi-c, var(--gold-ink));
}
.kpi-icon .icon { width: 22px; height: 22px; }
.kpi-label { font-size: .84rem; color: var(--ink-faint); font-weight: 600; }
.kpi-value { font-size: 1.65rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.kpi-foot { font-size: .78rem; color: var(--ink-faint); }
.kpi-arrow { width: 18px; height: 18px; color: var(--ink-faint); opacity: 0; transform: translateX(4px); transition: opacity .15s, transform .15s; }
a.kpi:hover .kpi-arrow { opacity: 1; transform: none; }
.kpi.is-gold  { --kpi-c: var(--gold-ink);   --kpi-soft: var(--gold-soft); }
.kpi.is-navy  { --kpi-c: var(--navy);       --kpi-soft: var(--navy-soft); }
.kpi.is-teal  { --kpi-c: var(--teal);       --kpi-soft: var(--teal-soft); }
.kpi.is-terracotta { --kpi-c: var(--terracotta); --kpi-soft: var(--terracotta-soft); }
.kpi.is-red   { --kpi-c: var(--terracotta); --kpi-soft: var(--terracotta-soft); }
.kpi.is-alert { border-color: color-mix(in srgb, var(--terracotta) 45%, var(--border)); }
.kpi.is-alert::after {
  content: '';
  position: absolute; top: 1.15rem; inset-inline-end: 1.2rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-soft);
}

/* Hero / welcome band */
.panel-hero {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(224, 174, 82, .38), transparent 55%),
    radial-gradient(60% 120% at 100% 100%, rgba(47, 110, 98, .35), transparent 60%),
    linear-gradient(135deg, #15232E, #1F3A4D);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.panel-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.panel-hero-eyebrow { font-size: .82rem; color: #F1CB86; font-weight: 700; margin-bottom: .2rem; }
.panel-hero h1 { margin: 0; font-size: 1.55rem; font-weight: 800; color: #fff; }
.panel-hero p { margin: .4rem 0 0; color: rgba(255, 255, 255, .72); font-size: .92rem; max-width: 52ch; }
.panel-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.panel-hero .btn-light { --bs-btn-bg: #fff; --bs-btn-color: #15232E; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #F6EAD2; --bs-btn-hover-border-color: #F6EAD2; --bs-btn-hover-color: #15232E; }
.panel-hero .btn-glass {
  --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .1); --bs-btn-border-color: rgba(255, 255, 255, .22);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .18); --bs-btn-hover-border-color: rgba(255, 255, 255, .35);
  --bs-btn-active-bg: rgba(255, 255, 255, .22); --bs-btn-active-color: #fff;
  backdrop-filter: blur(6px);
}
.panel-hero .btn { display: inline-flex; align-items: center; gap: .45rem; }
.panel-hero .btn .icon { width: 18px; height: 18px; }
.panel-hero-stat { text-align: end; }
.panel-hero-stat-label { font-size: .8rem; color: rgba(255, 255, 255, .65); }
.panel-hero-stat-value { font-size: 1.9rem; font-weight: 800; color: #F1CB86; line-height: 1.2; }

/* Section titles + panels (cards with a header row) */
.section-title {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin: 0 0 .8rem;
  font-size: .95rem; font-weight: 800;
}
.section-title a { font-size: .8rem; font-weight: 600; text-decoration: none; }
.panel-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.panel-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.panel-card-head h2 { margin: 0; font-size: .95rem; font-weight: 800; }
.panel-card-head a { font-size: .8rem; font-weight: 600; text-decoration: none; }
.panel-card-body { padding: 1.15rem; }

/* Quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
@media (max-width: 399.98px) { .quick-grid { grid-template-columns: 1fr; } }
.quick-action {
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700; font-size: .88rem;
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.quick-action:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: var(--card-shadow); }
.quick-action small { display: block; font-weight: 500; color: var(--ink-faint); font-size: .76rem; margin-top: -.35rem; }
.quick-action .kpi-icon { width: 38px; height: 38px; border-radius: 10px; }
.quick-action .kpi-icon .icon { width: 19px; height: 19px; }

/* Lists inside panel cards */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li + li { border-top: 1px solid var(--border); }
.row-list a, .row-list .row-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem 1.15rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
}
.row-list a:hover { background: var(--surface-2); }
.row-list-meta { font-size: .78rem; color: var(--ink-faint); }

.progress-thin { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-thin > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #E0AE52); }

.status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-soft);
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.is-open, .status-pill.is-pending { background: rgba(234, 179, 8, .14); color: #A16207; }
.status-pill.is-approved, .status-pill.is-answered { background: var(--teal-soft); color: var(--teal); }
.status-pill.is-rejected { background: var(--terracotta-soft); color: var(--terracotta); }
[data-bs-theme="dark"] .status-pill.is-open, [data-bs-theme="dark"] .status-pill.is-pending { color: #FACC15; }

/* Ticket thread */
.thread { display: flex; flex-direction: column; gap: .8rem; }
.thread-msg { max-width: 86%; padding: .85rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.thread-msg.is-staff { align-self: flex-end; background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.thread-meta { font-size: .76rem; color: var(--ink-faint); margin-bottom: .3rem; }

/* ==========================================================================
   Auth layout (layouts/auth.php) — split screen: the form on the right,
   a brand panel on the left; the brand panel folds away on small screens.
   ========================================================================== */
.auth-body { min-height: 100vh; background: var(--paper); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; } .auth-aside { display: none !important; } }

.auth-main { display: flex; flex-direction: column; padding: 1.5rem clamp(1rem, 4vw, 3.5rem); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-logo img { height: 40px; width: auto; }
.auth-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; color: var(--ink-faint); text-decoration: none; }
.auth-back:hover { color: var(--gold-ink); }
.auth-back .icon { width: 17px; height: 17px; transform: scaleX(-1); }
.auth-center { flex: 1; display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card.is-wide { max-width: 640px; }
.auth-card-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-soft), #fff);
  border: 1px solid var(--border);
  color: var(--gold-ink);
  box-shadow: 0 10px 24px -14px rgba(184, 132, 42, .7);
}
.auth-card-icon .icon { width: 26px; height: 26px; }
.auth-card h1 { font-size: 1.65rem; font-weight: 800; margin-bottom: .4rem; letter-spacing: -.01em; }
.auth-lede { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.6rem; }
.auth-lede bdi, .auth-lede [dir="ltr"] { font-weight: 700; color: var(--ink); }
.auth-card .form-label { font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.auth-card .form-control {
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 132, 42, .14); }
.auth-card .btn-primary {
  height: 52px;
  border-radius: 12px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 12px 24px -14px rgba(184, 132, 42, .9);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.auth-card .btn-primary .icon { width: 18px; height: 18px; }
.auth-card .alert { border-radius: 12px; font-size: .9rem; }

/* Physical left/right on purpose: phone and code fields are dir="ltr"
   inside this RTL page, where logical padding would flip to the wrong edge. */
.input-icon { position: relative; }
.input-icon > .icon {
  position: absolute; top: 50%; right: 1rem;
  width: 19px; height: 19px;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}
.input-icon > .form-control { padding-right: 2.85rem; }
.input-icon > .form-control[dir="ltr"] { text-align: right; }
.input-icon > .input-action {
  position: absolute; top: 50%; left: .5rem; transform: translateY(-50%);
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-faint);
}
.input-icon > .input-action:hover { background: var(--surface-2); color: var(--ink); }
.input-icon > .input-action .icon { width: 19px; height: 19px; }
.input-icon > .input-action[aria-pressed="true"] { color: var(--gold-ink); }
.input-icon.has-action > .form-control { padding-left: 3.2rem; }

.otp-input {
  letter-spacing: .9em !important;
  font-size: 1.5rem !important;
  font-weight: 800;
  text-align: center;
  padding-inline-start: .9em !important;
}

.auth-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.75rem; }
.auth-step { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; color: var(--ink-faint); white-space: nowrap; }
.auth-step-dot {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .75rem;
}
.auth-step-dot .icon { width: 14px; height: 14px; }
.auth-step.is-done .auth-step-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.auth-step.is-current { color: var(--ink); }
.auth-step.is-current .auth-step-dot { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 4px var(--gold-soft); }
.auth-step-line { flex: 1; height: 1.5px; min-width: 1rem; background: var(--border); }

.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1.25rem; font-size: .86rem; }
.auth-links a, .auth-links .btn-link { color: var(--ink-soft); text-decoration: none; font-size: .86rem; padding: 0; border: 0; }
.auth-links a:hover, .auth-links .btn-link:hover { color: var(--gold-ink); }
.auth-links form { margin: 0; }
.auth-note { display: flex; align-items: center; gap: .4rem; margin-top: 1.5rem; font-size: .78rem; color: var(--ink-faint); }
.auth-note .icon { width: 15px; height: 15px; color: var(--teal); }
.auth-foot { font-size: .78rem; color: var(--ink-faint); text-align: center; }
.auth-foot a { color: var(--ink-soft); }

.auth-aside {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  margin: .75rem;
  margin-inline-start: 0;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 26px;
  background:
    radial-gradient(70% 55% at 85% 10%, rgba(224, 174, 82, .45), transparent 60%),
    radial-gradient(60% 50% at 10% 95%, rgba(47, 110, 98, .45), transparent 60%),
    linear-gradient(160deg, #16252F, #1F3A4D 55%, #13202A);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.auth-aside::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.auth-aside-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem; font-weight: 600; color: #F1CB86;
  backdrop-filter: blur(6px);
}
.auth-aside-badge .icon { width: 16px; height: 16px; }
.auth-aside h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 800; line-height: 1.45; margin: 1.25rem 0 .75rem; color: #fff; max-width: 16ch; }
.auth-aside p { color: rgba(255, 255, 255, .7); max-width: 40ch; margin: 0; }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.auth-points li { display: flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .88); font-size: .95rem; }
.auth-points .kpi-icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #F1CB86; border: 1px solid rgba(255, 255, 255, .1); }
.auth-points .kpi-icon .icon { width: 19px; height: 19px; }

/* A floating mock "price compare" card — pure decoration. */
.auth-mock {
  align-self: flex-start;
  width: min(100%, 360px);
  margin-top: 2.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.auth-mock-row { display: flex; align-items: center; gap: .7rem; padding: .55rem .4rem; }
.auth-mock-row + .auth-mock-row { border-top: 1px solid rgba(255, 255, 255, .08); }
.auth-mock-logo { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); flex: none; }
.auth-mock-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.auth-mock-price { margin-inline-start: auto; font-weight: 800; font-size: .88rem; color: #fff; white-space: nowrap; }
.auth-mock-row.is-best .auth-mock-price { color: #8EE3C8; }
.auth-mock-row.is-best .auth-mock-logo { background: linear-gradient(135deg, #E0AE52, #A7741F); }
.auth-mock-tag { font-size: .68rem; font-weight: 700; color: #0E2A23; background: #8EE3C8; padding: .1rem .45rem; border-radius: 6px; }

/* Join chooser cards */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 575.98px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  position: relative;
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.choice-card:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(184, 132, 42, .8); }
.choice-card .kpi-icon { margin-bottom: .5rem; }
.choice-card-title { font-weight: 800; font-size: 1.05rem; }
.choice-card-body { color: var(--ink-faint); font-size: .86rem; }
.choice-card-go { position: absolute; top: 1.3rem; inset-inline-end: 1.2rem; width: 20px; height: 20px; color: var(--ink-faint); transition: transform .15s, color .15s; }
.choice-card:hover .choice-card-go { color: var(--gold-ink); transform: translateX(-4px); }

/* Charts (Chart::bars inline SVG) — themed through CSS, which overrides
   the SVG's own presentation attributes. */
.chart-host svg text { fill: var(--ink-faint); }
.chart-host svg text[font-weight="700"] { fill: var(--ink); }
.chart-host svg line { stroke: var(--border); }

/* Activity timeline */
.timeline .row-list-item { align-items: flex-start; }
.timeline-dot { width: 10px; height: 10px; margin-top: .4rem; border-radius: 50%; flex: none; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline code { font-size: .78rem; color: var(--ink-soft); background: var(--surface-2); padding: .05rem .35rem; border-radius: 5px; }

/* Click counter on a listing: all-time total, with the last 30 days beside it. */
.click-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: .8rem; font-weight: 700;
  white-space: nowrap;
}
.click-pill .icon { width: 15px; height: 15px; }
.click-pill small { font-weight: 500; opacity: .8; padding-inline-start: .35rem; border-inline-start: 1px solid currentColor; }

/* ==========================================================================
   /admin/growth («پیشرفت»)
   ========================================================================== */
.growth-ring { width: 128px; height: 128px; flex: none; transform: rotate(-90deg); }
.growth-ring text { transform: rotate(90deg); transform-origin: 60px 60px; }
.growth-ring-track { fill: none; stroke: var(--surface-2); stroke-width: 11; }
.growth-ring-value { fill: none; stroke-width: 11; stroke-linecap: round; stroke: var(--gold); transition: stroke-dashoffset .6s ease; }
.growth-score.is-good .growth-ring-value { stroke: var(--teal); }
.growth-score.is-bad .growth-ring-value { stroke: var(--terracotta); }
.growth-ring-number { font-size: 32px; font-weight: 800; fill: var(--ink); }
.growth-ring-label { font-size: 11px; fill: var(--ink-faint); }

.growth-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; font-size: .8rem; }
.growth-bar-label { width: 8.5rem; flex: none; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.growth-bar-value { width: 2.2rem; flex: none; text-align: end; font-weight: 700; }
.progress-thin > span.is-good { background: var(--teal); }
.progress-thin > span.is-mid  { background: linear-gradient(90deg, var(--gold), #E0AE52); }
.progress-thin > span.is-bad  { background: var(--terracotta); }

.growth-loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; counter-reset: none; }
@media (max-width: 767.98px) { .growth-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.growth-loop li {
  position: relative;
  display: flex; flex-direction: column; gap: .5rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: .82rem; font-weight: 700;
}
.growth-loop li span:last-child { display: flex; align-items: center; gap: .4rem; }
.growth-loop .icon { width: 17px; height: 17px; color: var(--gold-ink); }
.growth-loop-num {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: .75rem;
}

.growth-tabs {
  position: sticky; top: calc(var(--topbar-h) + .5rem); z-index: 5;
  display: flex; gap: .3rem; overflow-x: auto;
  margin: 1.25rem 0 1rem;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  scrollbar-width: none;
}
.growth-tabs a {
  padding: .45rem .85rem;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: .84rem; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.growth-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.growth-section { scroll-margin-top: calc(var(--topbar-h) + 4.5rem); margin-bottom: 2rem; }

.check-row { align-items: flex-start; }
.check-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; }
.check-icon .icon { width: 17px; height: 17px; }
.check-row.is-ok   .check-icon { background: var(--teal-soft); color: var(--teal); }
.check-row.is-warn .check-icon { background: rgba(234, 179, 8, .15); color: #A16207; }
.check-row.is-fail .check-icon { background: var(--terracotta-soft); color: var(--terracotta); }
.check-row.is-info .check-icon { background: var(--navy-soft); color: var(--navy); }
[data-bs-theme="dark"] .check-row.is-warn .check-icon { color: #FACC15; }
.check-fix { color: var(--ink-soft); }
.flex-none { flex: none; }

.growth-task-group { font-size: .82rem; font-weight: 800; color: var(--ink-faint); margin: 1rem 0 .5rem; }
.growth-task {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  scroll-margin-top: calc(var(--topbar-h) + 5rem);
}
.growth-task > summary {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;
}
.growth-task > summary::-webkit-details-marker { display: none; }
.growth-task-check {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  border: 2px solid var(--border);
  border-radius: 7px;
}
.growth-task.is-done .growth-task-check { background: var(--teal); border-color: var(--teal); color: #fff; }
.growth-task-check .icon { width: 14px; height: 14px; }
.growth-task-title { font-weight: 700; font-size: .92rem; }
.growth-task.is-done .growth-task-title { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--border); }
.growth-task-chevron { width: 18px; height: 18px; color: var(--ink-faint); transform: rotate(-90deg); transition: transform .15s; }
.growth-task[open] .growth-task-chevron { transform: rotate(90deg); }
.growth-task-body { padding: 0 1rem 1rem; padding-inline-start: 3.25rem; font-size: .88rem; }
.growth-task-why { color: var(--ink-soft); }
.growth-steps { margin: 0; padding-inline-start: 1.2rem; color: var(--ink-soft); }
.growth-steps li + li { margin-top: .25rem; }
.growth-priority { flex: none; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; background: var(--surface-2); color: var(--ink-soft); }
.growth-priority.is-high { background: var(--terracotta-soft); color: var(--terracotta); }
.growth-new { margin-inline-start: .4rem; font-size: .68rem; font-weight: 800; padding: .1rem .4rem; border-radius: 5px; background: var(--gold); color: #fff; vertical-align: middle; }

.growth-roadmap { list-style: none; margin: 0; padding: 0; counter-reset: road; display: grid; gap: .6rem; }
.growth-roadmap li {
  counter-increment: road;
  position: relative;
  padding: .9rem 1rem;
  padding-inline-start: 3.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.growth-roadmap li::before {
  content: counter(road, persian);
  position: absolute; top: .9rem; inset-inline-start: 1rem;
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy-soft); color: var(--navy);
  font-weight: 800; font-size: .85rem;
}

/* Seller panel: switch between several stores (the site's affiliate stores). */
.panel-store-switch { margin: 0 1rem .5rem; }
.panel-store-switch-btn {
  display: flex; align-items: center; gap: .5rem;
  width: 100%;
  padding: .45rem .7rem;
  border: 1px solid var(--sb-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--sb-text);
  font-size: .8rem; font-weight: 600;
}
.panel-store-switch-btn:hover { color: #fff; border-color: rgba(224, 174, 82, .4); }
.panel-store-switch-btn .icon { width: 16px; height: 16px; }
.panel-store-switch-chev { transform: rotate(-90deg); }
@media (min-width: 992px) { .sidebar-collapsed .panel-store-switch { display: none; } }

/* «ورود از لینک»: images read from the store, ticked = imported. */
.import-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.import-image { position: relative; display: block; aspect-ratio: 1; border: 2px solid var(--border); border-radius: .6rem; overflow: hidden; cursor: pointer; background: #fff; }
.import-image img { width: 100%; height: 100%; object-fit: contain; }
.import-image input { position: absolute; top: .35rem; inset-inline-start: .35rem; z-index: 1; width: 1.1rem; height: 1.1rem; }
.import-image:has(input:checked) { border-color: var(--gold); }
.import-image:not(:has(input:checked)) img { opacity: .4; }
.import-image-cover { position: absolute; bottom: 0; inset-inline: 0; font-size: .7rem; text-align: center; background: rgba(0,0,0,.55); color: #fff; padding: .1rem 0; }

/* Wallet top-up (seller/wallet-charge.php) */
.wc-head { margin-bottom: 1.25rem; }
.wc-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 520px); gap: 1.25rem; align-items: start; }
@media (max-width: 767.98px) { .wc-grid { grid-template-columns: minmax(0, 1fr); } }
.wc-balance {
  padding: 1.4rem; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, var(--navy), #2c5470);
  box-shadow: var(--shadow-md);
}
.wc-balance-label { display: flex; align-items: center; gap: .4rem; font-size: .85rem; opacity: .85; }
.wc-balance-label .icon { width: 18px; height: 18px; }
.wc-balance-value { font-size: 1.75rem; font-weight: 800; margin: .35rem 0 1rem; letter-spacing: -.01em; }
.wc-facts { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.wc-facts li { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.wc-facts li span { opacity: .8; }
.wc-history { display: inline-flex; align-items: center; gap: .35rem; color: #fff; font-size: .84rem; opacity: .9; text-decoration: none; }
.wc-history:hover { opacity: 1; text-decoration: underline; color: #fff; }
.wc-history .icon { width: 16px; height: 16px; }
.wc-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.wc-step { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .6rem; color: var(--ink); }
.wc-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.wc-preset {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .5rem;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--paper);
  font-weight: 800; font-size: 1rem; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.wc-preset small { font-weight: 500; font-size: .72rem; color: var(--ink-faint); }
.wc-preset:hover { border-color: var(--gold); transform: translateY(-1px); }
.wc-preset.is-active { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(184,132,42,.15); }
.wc-amount { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 1rem; transition: border-color .15s, box-shadow .15s; }
.wc-amount:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,132,42,.15); }
.wc-amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .8rem 0; font-size: 1.35rem; font-weight: 800; color: var(--ink); text-align: left; }
.wc-amount span { color: var(--ink-faint); font-size: .85rem; margin-inline-start: .5rem; }
.wc-hint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1.25rem; font-size: .78rem; color: var(--ink-soft); }
.wc-estimate { color: var(--teal); font-weight: 700; }
.wc-pay { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 12px; font-weight: 800; padding: .85rem 1rem; }
.wc-pay .icon { width: 20px; height: 20px; }
.wc-secure { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .7rem .85rem; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-size: .8rem; }
.wc-secure .icon { flex: none; width: 18px; height: 18px; }

/* ---- /admin/live ---------------------------------------------------------- */
.lv-count { display: inline-block; min-width: 1.8em; padding: 0 .45em; border-radius: 1em; background: #ECFDF3; color: #027A48; font-size: .8em; text-align: center; }
.lv-table td { vertical-align: middle; white-space: nowrap; }
.lv-page { max-width: 420px; }
.lv-page a, .lv-path { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-path { direction: ltr; text-align: end; }

/* Seller dashboard: getting started, price position, fair-click box (1.38.0) */
.onboard { border-color: var(--teal); }
.onboard-count { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.onboard-step { display: flex; gap: .75rem; align-items: flex-start; }
.onboard-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; margin-top: .1rem; }
.onboard-mark .icon { width: 15px; height: 15px; }
.onboard-step.is-done .onboard-mark { background: var(--teal); border-color: var(--teal); color: #fff; }
.onboard-step.is-done .fw-semibold { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.onboard-step.is-next .onboard-mark { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.pos-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pos-stat { border: 1px solid var(--border); border-radius: 12px; padding: .75rem; background: var(--paper); text-align: center; }
.pos-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.pos-stat span { font-size: .76rem; color: var(--ink-soft); }
.pos-stat.is-good strong { color: var(--teal); }
.pos-stat.is-warn strong { color: var(--terracotta); }
.fair-box { border: 1px dashed var(--border); border-radius: 12px; padding: .8rem 1rem; background: var(--paper); }
.fair-box .icon { width: 16px; height: 16px; color: var(--teal); vertical-align: -3px; }
.fair-box ul { padding-inline-start: 1.1rem; color: var(--ink-soft); }
.fair-box li { margin-bottom: .2rem; }
.wc-preset .wc-preset-clicks { color: var(--teal); font-weight: 700; }
.wc-how { margin: 0 0 1rem; padding: .8rem .9rem; border-radius: 12px; background: rgba(255,255,255,.08); font-size: .8rem; }
.wc-how-title { font-weight: 700; margin-bottom: .4rem; }
.wc-how-title .icon { width: 15px; height: 15px; vertical-align: -3px; }
.wc-how ul { margin: 0; padding-inline-start: 1.1rem; opacity: .9; }
.wc-how li { margin-bottom: .25rem; }
@media (max-width: 575.98px) {
  .pos-row { flex-wrap: wrap; }
  .pos-row > .btn { width: 100%; }
  .pos-stat { padding: .6rem .3rem; }
  .pos-stat strong { font-size: 1.2rem; }
}

/* Store type on the seller application; shop photos on seller settings (1.45.0) */
.store-type-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.store-type-opt { display: flex; gap: .6rem; align-items: flex-start; border: 1.5px solid var(--border); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; background: var(--surface); }
.store-type-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.store-type-opt input { margin-top: .3rem; }
.store-type-opt span { display: flex; flex-direction: column; gap: .15rem; }
.store-type-opt small { color: var(--ink-soft); font-size: .78rem; }
[data-store-type-form] [data-for-type][hidden] { display: none !important; }
.store-photos-edit { display: flex; flex-wrap: wrap; gap: .6rem; }
.store-photos-edit form { display: flex; flex-direction: column; gap: .35rem; align-items: stretch; width: 130px; }
.store-photos-edit img { width: 130px; height: 98px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* ==========================================================================
   Tickets v2 (1.57.0) — lists, the conversation, the reply box, the admin desk
   ========================================================================== */
.tk-list { display: grid; gap: .5rem; }
.tk-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); text-decoration: none; box-shadow: var(--card-shadow); transition: border-color .15s, transform .15s; }
.tk-item:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); color: var(--ink); transform: translateY(-1px); }
.tk-item.is-new { border-inline-start: 4px solid var(--gold); }
.tk-item-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--ink-faint); }
.tk-item-icon .icon { width: 19px; height: 19px; }
.tk-item-icon.is-waiting { background: rgba(234, 179, 8, .14); color: #A16207; }
.tk-item-icon.is-answered { background: var(--teal-soft); color: var(--teal); }
.tk-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.tk-item-title { font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.tk-item-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .76rem; color: var(--ink-faint); }
.tk-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex: none; }
.tk-item-side small { font-size: .72rem; color: var(--ink-faint); }
.tk-new { font-size: .68rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; background: var(--gold); color: #fff; }
.tk-urgent { font-size: .68rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; background: rgba(220, 38, 38, .12); color: #B91C1C; }
.tk-state { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-faint); }
.tk-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tk-state.is-waiting { background: rgba(234, 179, 8, .14); color: #A16207; }
.tk-state.is-answered { background: var(--teal-soft); color: var(--teal); }
.tk-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; color: var(--ink-faint); }
@media (max-width: 575.98px) { .tk-item { flex-wrap: wrap; } .tk-item-side { flex-direction: row; align-items: center; width: 100%; padding-inline-start: calc(40px + .9rem); } }

/* New ticket: department cards */
.tk-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .5rem; }
.tk-dept { position: relative; cursor: pointer; }
.tk-dept input { position: absolute; opacity: 0; pointer-events: none; }
.tk-dept > span { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .75rem .85rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, background-color .15s; }
.tk-dept > span .icon { width: 20px; height: 20px; color: var(--gold-ink); margin-bottom: .2rem; }
.tk-dept strong { font-size: .88rem; }
.tk-dept small { font-size: .72rem; color: var(--ink-faint); line-height: 1.6; }
.tk-dept input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.tk-dept input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* The conversation */
.tk-wrap { max-width: 880px; }
.tk-thread { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1rem; }
.tk-msg { max-width: 88%; border-radius: 16px; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); scroll-margin-top: 90px; }
.tk-msg.is-me, .tk-msg.is-customer { align-self: flex-start; border-start-start-radius: 4px; }
.tk-msg.is-staff { align-self: flex-end; border-start-end-radius: 4px; background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.tk-msg.is-note { align-self: stretch; max-width: none; background: repeating-linear-gradient(-45deg, rgba(234, 179, 8, .06), rgba(234, 179, 8, .06) 10px, transparent 10px, transparent 20px), var(--surface); border: 1px dashed rgba(202, 138, 4, .6); }
.tk-msg-head { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: .45rem; font-size: .8rem; }
.tk-msg-head time { margin-inline-start: auto; font-size: .72rem; color: var(--ink-faint); }
.tk-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); color: var(--ink-soft); flex: none; }
.tk-avatar .icon { width: 15px; height: 15px; }
.tk-avatar.is-staff { background: var(--gold); color: #fff; }
.tk-avatar.is-note { background: rgba(234, 179, 8, .2); color: #A16207; }
.tk-msg-body { font-size: .92rem; line-height: 2; white-space: normal; overflow-wrap: anywhere; }
.tk-files { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.tk-file { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: .8rem; color: var(--ink); text-decoration: none; }
.tk-file .icon { width: 15px; height: 15px; }
.tk-file.is-image { padding: 0; overflow: hidden; width: 96px; height: 96px; }
.tk-file.is-image img { width: 100%; height: 100%; object-fit: cover; }
.tk-hint { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-faint); margin: 0 0 1rem; }
.tk-hint .icon { width: 16px; height: 16px; }
.tk-reply-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.tk-attach { position: relative; display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; color: var(--ink-soft); cursor: pointer; padding: .35rem .7rem; border-radius: 10px; border: 1px dashed var(--border); }
.tk-attach:hover { border-color: var(--gold); color: var(--gold-ink); }
.tk-attach .icon { width: 16px; height: 16px; }
.tk-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 575.98px) { .tk-msg { max-width: 100%; } }

/* Admin desk */
.tk-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tk-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); font-size: .85rem; font-weight: 700; text-decoration: none; }
.tk-tab span { min-width: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--surface-2); font-size: .74rem; text-align: center; }
.tk-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tk-tab.is-active span { background: rgba(255, 255, 255, .2); color: inherit; }
.tk-tab.is-alert:not(.is-active) span { background: var(--gold); color: #fff; }
.tk-admin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; }
.tk-admin-side { position: sticky; top: calc(var(--topbar-h, 64px) + 1rem); }
.tk-others li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--border); }
.tk-others li:first-child { border-top: 0; }
@media (max-width: 991.98px) { .tk-admin { grid-template-columns: minmax(0, 1fr); } .tk-admin-side { position: static; } }

/* Reject / suspend a store with a reason (admin/partials/reject-seller.php) */
.rj { display: inline-block; position: relative; text-align: start; }
.rj > summary { list-style: none; cursor: pointer; }
.rj > summary::-webkit-details-marker { display: none; }
.rj[open] > summary { background: var(--bs-danger, #dc3545); color: #fff; }
.rj-form { position: fixed; z-index: 1061; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(400px, 92vw); max-height: 90vh; overflow: auto; display: grid; gap: .6rem; padding: 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 70px -20px rgba(17, 28, 37, .5); white-space: normal; text-align: start; }
.rj[open]::before { content: ''; position: fixed; inset: 0; z-index: 1060; background: rgba(17, 28, 37, .45); }
.rj-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.rj-title { font-weight: 800; font-size: .88rem; }
.rj-reasons { display: grid; gap: .25rem; font-size: .82rem; }
.rj-reasons label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.rj-help { font-size: .74rem; color: var(--ink-faint); line-height: 1.7; }

/* Admin dashboard: new stores by source (SellerSource::recent) */
.ss-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--ink-soft); margin-bottom: .8rem; }
.ss-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.ss-legend i, .ss-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ss-dot { margin-inline-end: .35rem; vertical-align: -1px; }
.ss-chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 3px; height: 150px; padding-bottom: 1.2rem; direction: ltr; }
.ss-day { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ss-day::before { content: ''; position: absolute; inset: 0 0 0 0; border-radius: 4px; background: var(--surface-2); opacity: .55; }
.ss-bar { position: relative; width: 100%; min-height: 0; display: flex; flex-direction: column-reverse; border-radius: 4px; overflow: hidden; }
.ss-bar span { display: block; min-height: 3px; }
.ss-day em { position: absolute; top: -1.1rem; font-style: normal; font-size: .66rem; color: var(--ink-faint); }
.ss-day small { position: absolute; bottom: -1.15rem; font-size: .62rem; color: var(--ink-faint); white-space: nowrap; }
.ss-table td, .ss-table th { white-space: normal; }

/* Sent SMS (admin/sms.php) */
.sms-table .sms-text { min-width: 16rem; max-width: 30rem; line-height: 1.9; }
.sms-kind { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-soft); }
.sms-kind.is-otp { background: rgba(124, 92, 255, .12); color: #6D4CEB; }
.sms-kind.is-seller, .sms-kind.is-products { background: var(--teal-soft); color: var(--teal); }
.sms-kind.is-wallet { background: var(--gold-soft); color: var(--gold-ink); }
.sms-kind.is-ticket { background: rgba(78, 140, 179, .14); color: #2F6B91; }
.sms-kind.is-admin { background: rgba(219, 39, 119, .1); color: #BE185D; }

/* Products held by the automatic review (AutoReview) — why */
.ar-flags { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .45rem .6rem; border-radius: 10px; background: rgba(234, 179, 8, .1); border: 1px dashed rgba(202, 138, 4, .55); }
.ar-flags-title { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; color: #A16207; }
.ar-flags-title .icon { width: 14px; height: 14px; }
.ar-flag { font-size: .74rem; padding: .1rem .5rem; border-radius: 999px; background: #fff; border: 1px solid rgba(202, 138, 4, .35); color: #854D0E; }

/* Whose text a product has (1.68.2): Gemini / ChatGPT / not rewritten yet. */
.ai-by { font-weight: 600; border: 1px solid transparent; }
.ai-by-gemini { background: #e8f0fe; color: #1a56c4; border-color: #c6d8fb; }
.ai-by-openai { background: #e6f6ee; color: #137a48; border-color: #bfe6d1; }
.ai-by-none { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.ai-card-num { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }

/* Settings tabs (1.71.0). */
.set-tabs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.set-tabs a { display: inline-block; padding: .45rem .9rem; border-radius: 10px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); color: inherit; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.set-tabs a:hover { border-color: #c9a24a; }
.set-tabs a.is-on { background: #b8862b; border-color: #b8862b; color: #fff; font-weight: 600; }
.speed-row .form-range { direction: ltr; transform: scaleX(-1); }

/* «یک قدم تا نمایش» steps on the seller dashboard (1.73.0). */
.golive-steps { padding-right: 1.2rem; }
.golive-steps li { margin-bottom: .35rem; }
.golive-steps li.is-done { color: #15803d; }
.golive-steps li.is-now { color: #92400e; }
.golive { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; border-radius: 18px; padding: 1.5rem; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #2a4a7f 0%, #14213d 55%, #0f172a 100%); box-shadow: 0 10px 30px rgba(20,33,61,.25); }
.golive h2 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: .25rem 0 .5rem; }
.golive p { color: rgba(255,255,255,.85); margin-bottom: 1rem; line-height: 1.9; }
.golive-eyebrow { color: #f5c96b; font-weight: 700; font-size: .9rem; }
.golive-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.1rem; }
.golive-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .6rem .9rem; min-width: 8rem; }
.golive-stats b { display: block; font-size: 1.3rem; color: #f5c96b; }
.golive-stats span { font-size: .78rem; color: rgba(255,255,255,.75); }
.golive-cta { font-weight: 700; }
.golive-why { list-style: none; margin: 0; padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.06); align-self: center; }
.golive-why li { display: flex; gap: .5rem; align-items: flex-start; margin: .45rem 0; color: rgba(255,255,255,.9); font-size: .9rem; line-height: 1.8; }
.golive-why .icon { color: #4ade80; flex: none; margin-top: .3rem; width: 16px; height: 16px; }
@media (max-width: 900px) { .golive { grid-template-columns: 1fr; } }

/* Seller dashboard: «نماد زرین‌کالا» promo (1.82.1) */
.badge-promo { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid #EED9B0; background: linear-gradient(135deg, #FFF9EE 0%, #FBF2E1 100%); box-shadow: var(--card-shadow);
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.badge-promo:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(154, 106, 23, .45); color: inherit; }
.badge-promo-art { flex-shrink: 0; display: grid; place-items: center; width: 84px; height: 88px; border-radius: 14px; background: #fff; border: 1px solid #F0E2C6; }
.badge-promo-art img { display: block; height: 75px; width: auto; }
.badge-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.badge-promo-text strong { font-size: 1rem; font-weight: 800; color: var(--ink, #101828); }
.badge-promo-text small { font-size: .84rem; color: var(--ink-soft, #475467); line-height: 1.8; }
.badge-promo-btn { flex-shrink: 0; border-radius: 10px; font-weight: 700; padding: .5rem 1rem; }
@media (max-width: 575.98px) {
  .badge-promo { flex-wrap: wrap; gap: .85rem; padding: 1rem; }
  .badge-promo-art { width: 64px; height: 70px; }
  .badge-promo-art img { height: 58px; }
  .badge-promo-text { flex-basis: calc(100% - 80px); }
  .badge-promo-btn { width: 100%; }
}

/* Connection page: how is your site built? (1.89.0) */
.site-choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.site-choose-card { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; }
.site-choose-card:hover { border-color: #C28B2C; color: inherit; }
.site-choose-card strong { font-size: .95rem; }
.site-choose-card small { color: var(--ink-faint, #667085); font-size: .78rem; line-height: 1.7; }
.site-choose-card.is-new { border-color: #E3C27A; background: #FFF9EE; }
@media (max-width: 575.98px) { .site-choose { grid-template-columns: 1fr; } }
