/* ==========================================================================
   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-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; }
