/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. ROOT VARIABLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@font-face {
  font-family: 'PingAR';
  src: url('./font/PingAR+LT-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PingAR';
  src: url('./font/PingAR+LT-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PingAR';
  src: url('./font/PingAR+LT-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PingAR';
  src: url('./font/PingAR+LT-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PingAR';
  src: url('./font/PingAR+LT-Black.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --font: 'PingAR', 'IBM Plex Sans Arabic', 'Tajawal', 'Noto Sans Arabic', system-ui, sans-serif;
  /* Core Colors */
  --blue:        #007AFF;
  --blue-light:  #0A84FF;
  --blue-pale:   #EAF3FF;
  --pink:        #FF2D55;
  --pink-pale:   #FFF0F3;
  --green:       #34C759;
  --green-pale:  #EDFBF1;
  --orange:      #FF9500;
  --orange-pale: #FFF4E5;
  --red:         #FF3B30;
  --red-pale:    #FFF1F0;
  --purple:      #AF52DE;
  --yellow:      #FFD60A;

  /* Semantic Aliases (used across app) */
  --sage-500:    #34C759;
  --sage-50:     #EDFBF1;
  --sage-600:    #28A44A;
  --sky-500:     #32ADE6;
  --sky-100:     #E8F5FD;
  --amber-500:   #FF9500;
  --amber-600:   #E08600;
  --amber-50:    #FFF4E5;
  --rose-500:    #FF2D55;
  --rose-50:     #FFF0F3;
  --ink-700:     #1D1D1F;
  --ink-100:     #F2F2F7;
  --success-600: #28A44A;
  --success-50:  #EDFBF1;

  /* Neutral Palette */
  --bg:          #F5F7FB;
  --bg-alt:      #EEF2F7;
  --surface:     #FFFFFF;
  --glass:       rgba(255, 255, 255, 0.82);
  --glass-blur:  blur(10px);
  --border:      rgba(0, 0, 0, 0.07);
  --border-md:   rgba(0, 0, 0, 0.10);

  /* Text */
  --text-primary:   #1D1D1F;
  --text-secondary: #6E6E73;
  --text-muted:     #8E8E93;
  --text-dark:      #1D1D1F;
  --text-sub:       #6E6E73;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 2px 6px rgba(0,0,0,0.05);
  --shadow-md:  0 6px 18px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 28px rgba(0,0,0,0.08);
  --shadow-xl:  0 18px 44px rgba(0,0,0,0.10);
  --shadow-blue: none;
  --shadow-green: none;

  /* Radius */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Transitions */
  --ease:   cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast:  0.14s;
  --t-base:  0.22s;
  --t-slow:  0.35s;

  /* Spacing */
  --gap-xs:  6px;
  --gap-sm:  10px;
  --gap-md:  16px;
  --gap-lg:  24px;
  --gap-xl:  32px;

  /* Layout */
  --sidebar-w:     0px;
  --topnav-h:      58px;
  --dash-topbar-h: 64px;
  --content-max:   1440px;
--cursor-default: auto;
--cursor-pointer: pointer;

  /* Accent (storefront theme variable passthrough) */
  --accent: var(--blue);
}




/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. BASE STYLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 14px;
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: var(--cursor-default);
}

a { color: var(--blue); text-decoration: none; cursor: var(--cursor-pointer); }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

button { cursor: var(--cursor-pointer); font-family: inherit; border: none; background: none; }

[onclick],
[role="button"],
summary,
label,
select,
input[type="checkbox"],
input[type="radio"],
input[type="file"] {
  cursor: var(--cursor-pointer);
}


input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  direction: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
[contenteditable="true"] {
  cursor: text;
}

/* تحسين أداء متصفح كروم عبر تسريع كارت الشاشة GPU وحل تعارض التضبيب */
/* Performance fix: Chrome low-paint mode for glass layers */
@supports (-webkit-appearance: none) {
  .topnav,
  .dash-topbar,
  .notifications-popover,
  .arm-notification-toast,
  .arm-spotlight-panel,
  .save-bar,
  .modal,
  .modal-wrap,
  .s-card,
  .hg-quick.card,
  .stat-card,
  .products-card-grid,
  .user-dropdown,
  .plans-modal-hd {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .stat-card.sales-stat-card::after {
    display: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. LAYOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#mainApp {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-wrap {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: calc(var(--dash-topbar-h) + 24px);
  padding-inline: 0;
  padding-bottom: calc(var(--gap-xl) + 90px);
  min-height: 100vh;
  transition: width var(--t-base) var(--ease);
}

.kurdish-dev-notice {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  box-shadow: 0 8px 22px rgba(0, 122, 255, 0.07);
}

.kurdish-dev-notice.show {
  display: flex;
}

.kurdish-dev-notice i[data-lucide],
.kurdish-dev-notice svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  flex-shrink: 0;
}

.kurdish-dev-notice a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.kurdish-dev-notice a:hover {
  text-decoration: underline;
}

.page {
  display: none;
  animation: pageFadeIn 0.28s var(--ease-out);
  width: 100%;
}

.page.active { display: block; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page header */
.pg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-lg);
  padding-top: var(--gap-sm);
}

.pg-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.pg-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 400;
}

/* Generic card */
.hg-quick.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 34px;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hg-quick.card-pad {
  padding: 26px 28px 28px;
}

.hg-quick .card-head {
  margin-bottom: 18px;
}

.hg-quick .card-head-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.35px;
  line-height: 1.2;
}

/* Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Action Button */
.qa-btn {
  min-height: 82px;
  padding: 14px 10px 12px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  border: 1px solid rgba(0, 0, 0, 0.045);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.025);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}

.qa-btn i[data-lucide],
.qa-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.15;
  color: #6e6e73;
  transition:
    color var(--t-fast),
    transform var(--t-fast);
}

.qa-btn span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.15px;
  line-height: 1.3;
  text-align: center;
  transition: color var(--t-fast);
}

.qa-btn:hover {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-color: rgba(0, 122, 255, 0.14);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(0, 122, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.qa-btn:hover i[data-lucide],
.qa-btn:hover svg {
  color: var(--blue);
  transform: translateY(-1px);
}

.qa-btn:hover span {
  color: var(--text-primary);
}

.qa-btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* G2 grid */
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. TOP NAV / SIDEBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.topnav {
  display: none;
}

/* Brand */
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 14px;
  text-decoration: none;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.topnav-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.topnav-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.topnav-brand-dot {
  color: var(--blue);
}

.topnav-brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 2px 7px;
  border-radius: var(--r-full);
  letter-spacing: 0.2px;
  margin-right: auto;
}

.topbar-page-pill {
  display: none;
}

/* Nav tabs (vertical) */
.topnav-tabs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.topnav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition:
    transform var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  position: relative;
  text-align: right;
  width: 100%;
}

.topnav-tab:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  transform: translateX(-2px);
}

.topnav-tab.active {
  background: linear-gradient(180deg, rgba(234, 243, 255, 0.96), rgba(255, 255, 255, 0.72));
  color: var(--blue);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 7px 18px rgba(0, 122, 255, 0.08);
}

.topnav-tab svg,
.topnav-tab i[data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.topnav-tab.active i[data-lucide],
.topnav-tab.active svg { opacity: 1; }

/* Nav badge */
.nav-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  border-radius: var(--r-full);
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  margin-right: auto;
  line-height: 1.4;
}

/* Right section in topnav */
.topnav-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* Store link button */
.topnav-store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.topnav-store-btn:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.topnav-store-btn i[data-lucide] { width: 15px; height: 15px; }

/* Lang switcher */
.topnav-lang.dash-lang {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}

.topnav-lang.dash-lang button {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.topnav-lang.dash-lang button.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

/* Language hint */
.language-hint {
  font-size: 11px;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s var(--ease), max-height 0.3s var(--ease);
  pointer-events: none;
}

.language-hint.show {
  opacity: 1;
  max-height: 60px;
  pointer-events: auto;
}

/* User info */
.topnav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
  position: relative;
}

.topnav-user:hover { background: var(--bg); }
.topnav-user.open { background: var(--bg); }

.topnav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* Avatar with background image */
.user-avatar-visual[data-avatar-url] {
  background-image: var(--avatar-url);
  background-size: cover;
  background-position: center;
}

.topnav-uname {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.topnav-uplan {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.topnav-chevron {
  width: 14px;
  height: 14px;
  margin-right: auto;
  color: var(--text-muted);
  transition: transform var(--t-base);
}

.topnav-user.open .topnav-chevron { transform: rotate(180deg); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. TOP BAR (dash-topbar)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dash-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1360px, calc(100% - 48px));
  height: var(--dash-topbar-h);
  background: rgba(245, 247, 251, 0.78);
  /* Performance fix: lighter fixed-header blur */
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: 0;
  z-index: 900;
}

/* Bell */
.notifications-wrap {
  position: relative;
  flex-shrink: 0;
}

.dash-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  color: var(--text-secondary);
}

.dash-bell:hover {
  background: var(--blue-pale);
  color: var(--blue);
  border-color: transparent;
}

.dash-bell i[data-lucide] { width: 16px; height: 16px; }

.dash-bell span {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: none;
}

.dash-bell.has-unread span { display: block; }

.mobile-top-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  flex-shrink: 0;
}

.mobile-top-profile .topnav-avatar {
  width: 30px;
  height: 30px;
}

.mobile-top-profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.1;
}

.mobile-top-profile-text span,
.mobile-top-profile-text small {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-top-profile-text span {
  font-size: 12px;
  font-weight: 600;
}

.mobile-top-profile-text small {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Notifications popover */
.notifications-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 320px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  pointer-events: none;
}

.notifications-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.np-head strong {
  font-size: 13px;
  color: var(--text-primary);
}

.np-head button {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
}

.np-list { max-height: 320px; overflow-y: auto; }

.np-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}

.np-item:hover { background: var(--bg); }
.np-item:last-child { border-bottom: none; }

.np-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.np-icon i[data-lucide] { width: 15px; height: 15px; }

.np-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.np-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.5;
}

.dash-bell span {
  top: -5px;
  left: -5px;
  min-width: 18px;
  width: auto;
  height: 18px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #ff3b30;
  border: 2px solid rgba(255,255,255,0.96);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255,59,48,0.26);
}

.dash-bell.has-unread span { display: flex; }

.notifications-popover.arm-notification-panel,
.notifications-popover {
  width: min(390px, calc(100vw - 24px));
  position: absolute;
  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(246, 248, 252, 0.88) 48%,
      rgba(238, 242, 248, 0.92) 100%
    );

  /* Performance fix: reduce expensive popover backdrop blur */
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);

  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;

  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.24),
    0 12px 32px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(120, 130, 155, 0.14);
}

.notifications-popover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.34) 42%,
      rgba(255, 255, 255, 0.58) 100%
    ),
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 255, 255, 0.76) 0%,
      rgba(255, 255, 255, 0.28) 34%,
      transparent 62%
    );
}

.notifications-popover > * {
  position: relative;
  z-index: 1;
}
.notifications-popover.arm-notification-panel,
.notifications-popover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(247, 249, 253, 0.94) 48%,
      rgba(240, 244, 250, 0.96) 100%
    );
}


.np-head {
  padding: 15px 16px 11px;
  border-bottom-color: rgba(255,255,255,0.56);
}

.np-head button {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
}

.arm-notification-item,
.np-item.arm-notification-item {
  width: 100%;
  text-align: start;
  direction: rtl;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.42);
  background: transparent;
  cursor: pointer;
}

.np-item.arm-notification-item.unread {
  background: rgba(255,255,255,0.42);
}

.np-item.arm-notification-item.unread::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 13px -4px 0 0;
  border-radius: 50%;
  background: #007aff;
  box-shadow: 0 0 0 4px rgba(0,122,255,0.1);
  flex: 0 0 auto;
}

.np-copy { min-width: 0; flex: 1; }
.np-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.np-time { color: rgba(60,60,67,0.62); font-size: 10px; white-space: nowrap; direction: rtl; }
.np-path { margin-top: 5px; color: rgba(0,122,255,0.82); font-size: 10px; font-weight: 700; }
.np-empty { padding: 34px 18px; text-align: center; }
.np-empty-title { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.np-empty-sub { margin-top: 5px; font-size: 12px; color: var(--text-muted); }

.arm-notification-toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 420px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.arm-notification-toast {
  width: 100%;
  direction: rtl;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255,255,255,0.66);
  border-radius: 30px;
  background: rgba(188,188,191,0.72);
  /* Performance fix: reduce toast blur while keeping glass look */
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  box-shadow: 0 24px 70px rgba(15,23,42,0.22), inset 0 1px 0 rgba(255,255,255,0.45);
  color: rgba(18,18,20,0.95);
  text-align: right;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(40px) translateY(-8px) scale(0.96);
  transition: opacity 450ms cubic-bezier(0.22,1,0.36,1), transform 450ms cubic-bezier(0.22,1,0.36,1);
}

.arm-notification-toast.show {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.arm-notification-toast.leaving {
  opacity: 0;
  transform: translateX(36px) scale(0.98);
  transition-duration: 320ms;
}

.arm-notification-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: rgba(28,28,30,0.86);
  background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(255,255,255,0.34));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 10px 22px rgba(15,23,42,0.12);
}

.np-icon.arm-notification-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.arm-notification-icon i[data-lucide] { width: 24px; height: 24px; stroke-width: 2.15; }
.np-icon.arm-notification-icon i[data-lucide] { width: 16px; height: 16px; }

.arm-notification-content { min-width: 0; flex: 1; }
.arm-notification-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.arm-notification-title { font-size: 17px; font-weight: 800; line-height: 1.25; color: rgba(20,20,22,0.96); }
.arm-notification-time { flex: 0 0 auto; color: rgba(60,60,67,0.68); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.arm-notification-body { margin-top: 4px; color: rgba(20,20,22,0.9); font-size: 16px; line-height: 1.45; }

@media (max-width: 768px) {
  .arm-notification-toast-stack {
    top: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .arm-notification-toast {
    border-radius: 26px;
    padding: 16px;
  }

  .arm-notification-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .arm-notification-title { font-size: 15px; }
  .arm-notification-body { font-size: 14px; }
  .arm-notification-time { font-size: 12px; }
}

/* Search bar */
.dash-search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.dash-search input {
  width: 100%;
  height: 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.dash-search input:focus {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,122,255,0.12);
}

.dash-search input::placeholder { color: var(--text-muted); }

/* Armotah Spotlight Search */
.arm-spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 120px;
  background: rgba(247, 249, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), visibility 0.18s var(--ease);
}

.arm-spotlight-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.arm-spotlight-panel {
  width: min(700px, calc(100vw - 32px));
  direction: rtl;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 244, 255, 0.48)),
    rgba(255, 255, 255, 0.34);
  box-shadow: 0 30px 90px rgba(20, 35, 68, 0.22), inset 0 1px 0 rgba(255,255,255,0.78);
  /* Performance fix: lighter modal blur */
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.arm-spotlight-overlay.open .arm-spotlight-panel {
  transform: translateY(0) scale(1);
}

.arm-spotlight-searchbar {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255,255,255,0.2);
}

.arm-spotlight-searchbar i[data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.arm-spotlight-searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.arm-spotlight-searchbar input::placeholder {
  color: rgba(92, 106, 128, 0.72);
  font-weight: 500;
}

.arm-spotlight-searchbar kbd {
  min-width: 48px;
  padding: 5px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.42);
  color: var(--text-muted);
  font: 600 11px/1 var(--font, inherit);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
}

.arm-spotlight-results {
  max-height: min(56vh, 520px);
  overflow: auto;
  padding: 10px;
}

.arm-spotlight-result {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  text-align: right;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
  animation: spotlightResultIn 0.22s var(--ease) both;
}

.arm-spotlight-result:hover,
.arm-spotlight-result.active {
  background: rgba(255,255,255,0.52);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62), 0 12px 28px rgba(35, 56, 90, 0.1);
  transform: translateY(-1px);
}

.arm-spotlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 10px 20px rgba(30,45,70,0.14);
}

.arm-spotlight-icon i[data-lucide] {
  width: 20px;
  height: 20px;
}

.arm-spotlight-icon.tone-home {
  background: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
}

.arm-spotlight-icon.tone-orders {
  background: linear-gradient(135deg, #30D158 0%, #63E6BE 100%);
}

.arm-spotlight-icon.tone-products {
  background: linear-gradient(135deg, #FF9F0A 0%, #FFD60A 100%);
}

.arm-spotlight-icon.tone-plans {
  background: linear-gradient(135deg, #FF375F 0%, #BF5AF2 100%);
}

.arm-spotlight-icon.tone-settings {
  background: linear-gradient(135deg, #64D2FF 0%, #0A84FF 100%);
}

.arm-spotlight-icon.tone-payment {
  background: linear-gradient(135deg, #5AC8FA 0%, #007AFF 100%);
}

.arm-spotlight-icon.tone-delivery {
  background: linear-gradient(135deg, #40C8E0 0%, #30D158 100%);
}

.arm-spotlight-icon.tone-social {
  background: linear-gradient(135deg, #32D74B 0%, #34C759 100%);
}

.arm-spotlight-icon.tone-policies {
  background: linear-gradient(135deg, #8E8E93 0%, #C7C7CC 100%);
}

.arm-spotlight-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 22px rgba(0, 0, 0, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.arm-spotlight-icon svg,
.arm-spotlight-icon i {
  color: #fff !important;
  stroke: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}


.arm-spotlight-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.arm-spotlight-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arm-spotlight-path {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arm-spotlight-category {
  padding: 5px 9px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.42);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.arm-spotlight-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
}

.arm-spotlight-empty i[data-lucide] {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.arm-spotlight-empty strong {
  color: var(--text-primary);
  font-size: 15px;
}

.arm-spotlight-empty span {
  max-width: 300px;
  font-size: 12px;
  line-height: 1.7;
}

@keyframes spotlightResultIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .arm-spotlight-overlay {
    padding: 54px 12px 104px;
  }

  .arm-spotlight-panel {
    width: calc(100vw - 24px);
    border-radius: 24px;
  }

  .arm-spotlight-searchbar {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 15px 16px;
  }

  .arm-spotlight-searchbar input {
    font-size: 15px;
  }

  .arm-spotlight-searchbar kbd {
    display: none;
  }

  .arm-spotlight-results {
    max-height: 62vh;
    padding: 8px;
  }

  .arm-spotlight-result {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 58px;
    gap: 10px;
  }

  .arm-spotlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .arm-spotlight-category {
    display: none;
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. MERCHANT DROPDOWN MENU
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.user-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  z-index: 6000;
  overflow: hidden;
  display: none;
}

.topnav-user.open .user-dropdown,
.user-dropdown.open {
  display: block;
}

.udrop-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.udrop-store {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.udrop-email {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.udrop-plan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.udrop-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.udrop-stat {
  background: var(--surface);
  padding: 10px 14px;
}

.udrop-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.udrop-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-top: 1px;
}

.udrop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
  text-align: right;
  transition: background var(--t-fast);
}

.udrop-item:hover { background: var(--bg); }
.udrop-item i[data-lucide] { width: 15px; height: 15px; color: var(--text-muted); }
.udrop-item.danger { color: var(--red); }
.udrop-item.danger i[data-lucide] { color: var(--red); }

.udrop-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.udrop-upgrade-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: var(--r-full);
  padding: 3px 9px;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.udrop-upgrade-btn:hover {
  background: var(--blue);
  color: #fff;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. AUTH LOADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#authLoader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9999;
}

.al-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.al-brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
}

.al-brand span {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.al-dots {
  display: flex;
  gap: 8px;
}

.al-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.al-dot:nth-child(2) { animation-delay: 0.2s; background: var(--green); }
.al-dot:nth-child(3) { animation-delay: 0.4s; background: var(--orange); }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1.1); opacity: 1; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. HOME PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Welcome Strip */
.welcome-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 32px;
  padding: 28px 32px;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.welcome-strip::before,
.welcome-strip::after {
  content: none;
}

.ws-left {
  flex: 1;
  min-width: 0;
}

.ws-greet {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
  margin-bottom: 6px;
}

.ws-name {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: var(--text-primary);
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.ws-sub {
  max-width: 560px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.ws-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--r-full);
  padding: 6px 10px;
}

.ws-date i[data-lucide] {
  width: 12px;
  height: 12px;
  color: var(--blue);
}

#heroStoreState {
  color: #245a22;
  background: linear-gradient(180deg, #f5fff1 0%, #e7fddc 100%);
  border-color: rgba(86, 190, 54, 0.34);
  box-shadow:
    0 8px 20px rgba(98, 210, 72, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#heroStoreState i[data-lucide] {
  color: #52b72e;
}

#heroStoreState.is-off {
  color: #8a3a2b;
  background: linear-gradient(180deg, #fff6f2 0%, #ffe8dd 100%);
  border-color: rgba(255, 112, 67, 0.28);
  box-shadow:
    0 8px 20px rgba(255, 112, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#heroStoreState.is-off i[data-lucide] {
  color: #e85b35;
}

.ws-right {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ws-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast),
    border-color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.ws-action-btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow:
    0 8px 18px rgba(0, 122, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ws-action-btn.primary:hover {
  background: #006ee6;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
  box-shadow:
    0 11px 24px rgba(0, 122, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ws-action-btn.secondary {
  background: var(--bg);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ws-action-btn.secondary:hover {
  background: #fff;
  border-color: rgba(0, 122, 255, 0.18);
  color: var(--blue);
  transform: translateY(-1px);
  text-decoration: none;
}

.ws-action-btn i[data-lucide] {
  width: 15px;
  height: 15px;
}

.hero-upgrade-note {
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 800;
  color: #111112;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-full);
  padding: 10px 17px;
  margin-top: 0;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  display: none;
  white-space: nowrap;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-upgrade-note.show { display: inline-flex; }
.hero-upgrade-note:hover {
  color: #000;
  background: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.hero-upgrade-note i[data-lucide] {
  width: 15px;
  height: 15px;
  color: #111112;
}

/* Verify strip */
.verify-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background:
    linear-gradient(180deg, #0b0b0d 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 26px;
  padding: 42px 18px 16px;
  margin-bottom: var(--gap-md);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    border-color var(--t-fast);
}

/* macOS traffic lights */
.verify-strip::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
    22px 0 0 #ffbd2e,
    44px 0 0 #28c840;
}

/* subtle glass highlight */
.verify-strip::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 25px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.10),
      rgba(255, 255, 255, 0.02) 38%,
      transparent 70%
    );
}

.verify-strip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 149, 0, 0.28);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 149, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.verify-strip-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffcc00;
  background:
    linear-gradient(180deg, rgba(255, 204, 0, 0.22), rgba(255, 149, 0, 0.10));
  border: 1px solid rgba(255, 204, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.verify-strip-title {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: #ffcc00;
  letter-spacing: -0.2px;
}

.verify-strip-sub {
  position: relative;
  z-index: 1;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 3px;
  max-width: 520px;
}

.verify-pill {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.verify-pill.unverified {
  background: rgba(255, 204, 0, 0.14);
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.24);
}

.verify-pill.pending {
  background: rgba(10, 132, 255, 0.14);
  color: #64b5ff;
  border: 1px solid rgba(10, 132, 255, 0.24);
}

.verify-pill.verified {
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.24);
  display: flex;
  align-items: center;
  gap: 4px;
}

.verify-pill.verified img {
  width: 14px;
  height: 14px;
}

.verify-cta {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: #111111;
  background:
    linear-gradient(180deg, #ffb340 0%, #ff9500 100%);
  border-radius: 16px;
  padding: 9px 16px;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px rgba(255, 149, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    filter var(--t-fast);
}

.verify-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 11px 24px rgba(255, 149, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* Home grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: var(--gap-md);
}

.hg-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(320px, 0.95fr);
  grid-auto-flow: row dense;
  gap: 18px;
  align-items: stretch;
}

.stat-card.sales-stat-card {
  grid-column: 4;
  grid-row: 1 / span 2;
  order: 10;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, #000000 0%, #161618 48%, #050506 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  cursor: default;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-costs { order: 1; }
.stat-profit { order: 2; }
.stat-visitors { order: 3; }
.stat-views { order: 4; }
.stat-orders { order: 5; }
.stat-products { order: 6; }

.stat-card.sales-stat-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0.035) 38%,
      transparent 78%
    );
}

.stat-card.sales-stat-card::after {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.16);
  /* Performance fix: reduce large decorative blur */
  filter: blur(10px);
  pointer-events: none;
}

.sales-stat-card > * {
  position: relative;
  z-index: 1;
}

.sales-stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  color: #0a84ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sales-stat-card .stat-icon i[data-lucide] {
  width: 20px;
  height: 20px;
}

.sales-stat-card .stat-val,
.sales-stat-card .iqd-number {
  margin-top: 16px;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.3px;
  color: #ffffff;
}

.sales-stat-card .stat-lbl {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.sales-stat-card .stat-hint {
  max-width: 440px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
}

.sales-stat-card .iqd-unit {
  margin-inline-start: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.sales-stat-card .month-delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.18);
  font-size: 11px;
  font-weight: 600;
}

.sales-stat-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hg-orders  { grid-column: 1; }
.hg-orders.card,
.hg-products.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.88));
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 34px;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hg-orders .card-pad,
.hg-products .card-pad {
  padding: 26px 28px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.card-head > :first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.card-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.card-head-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.35px;
  line-height: 1.2;
}

.card-head-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.card-head-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 6px 14px rgba(0,0,0,0.045);
  overflow: hidden;
}

.card-head-action {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(0, 122, 255, 0.08);
}

.card-head-action:hover {
  background: var(--blue);
  color: #fff;
}

.card-head-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--t-fast),
    transform var(--t-fast);
}

.card-head-arrow:hover {
  background: #fff;
  transform: translateX(-1px);
}

.hg-products img {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.hg-orders .badge,
.hg-orders [class*="badge"],
.hg-orders [class*="status"] {
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
}
.hg-products { grid-column: 2; }
.hg-quick   { grid-column: 1 / -1; }

/* STAT CARDS */
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 146px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 26px;
  padding: 18px;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}

.stat-card:not(.sales-stat-card)::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 25px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.18) 44%,
      transparent 100%
    );
}

.stat-card:not(.sales-stat-card)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stat-color, var(--blue));
  opacity: 0.55;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stat-color, var(--blue)) 12%, transparent);
  pointer-events: none;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card:not(.sales-stat-card):hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.12);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--stat-bg, var(--blue-pale)) 88%, #ffffff 12%),
      var(--stat-bg, var(--blue-pale))
    );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--stat-color, var(--blue));
  border: 1px solid color-mix(in srgb, var(--stat-color, var(--blue)) 12%, transparent);
  box-shadow:
    0 6px 14px color-mix(in srgb, var(--stat-color, var(--blue)) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.stat-icon i[data-lucide],
.stat-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.stat-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 7px;
}

.stat-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.1px;
  margin-bottom: 6px;
}

.stat-hint {
  max-width: 92%;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
}

#home-orders-preview,
#home-products-preview {
  display: flex;
  flex-direction: column;
}

#home-orders-preview > *,
#home-products-preview > * {
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

#home-orders-preview > *:last-child,
#home-products-preview > *:last-child {
  border-bottom: 0;
}

/* تحسين أي row داخل كروت الرئيسية بدون ما نكسر الأسماء */
.hg-orders [class*="order"],
.hg-products [class*="product"] {
  transition:
    background var(--t-fast),
    transform var(--t-fast);
}

.hg-orders [class*="order"]:hover,
.hg-products [class*="product"]:hover {
  background: rgba(0, 122, 255, 0.025);
}

/* Finance stats */
.finance-stat {
  border: 1px dashed var(--border-md);
}

.finance-stat .stat-val {
  font-size: 20px;
}

/* Live chart inside stat */
.live-chart {
  margin-top: 12px;
  height: 60px;
  overflow: hidden;
}

.live-chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--blue);
  r: 5;
  transition: r 0.15s;
}

.grid-line {
  stroke: var(--border);
  stroke-width: 1;
}

/* Month delta pill */
.month-delta-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  margin-top: 4px;
}

.month-delta-pill.up   { background: var(--green-pale); color: var(--green); }
.month-delta-pill.down { background: var(--red-pale);   color: var(--red); }
.month-delta-pill.flat { background: var(--bg);         color: var(--text-muted); }

/* IQD amount styling */
.iqd-amount {
  font-variant-numeric: tabular-nums;
  font-weight: inherit;
}

.iqd-tail { font-size: 0.82em; color: var(--text-muted); }

.iqd-unit {
  font-size: 0.65em;
  font-weight: 600;
  color: var(--text-muted);
  margin-inline-start: 3px;
}

.iqd-number {
  font-size: inherit;
  font-weight: inherit;
}

.metric-long  .iqd-number { font-weight: 700; }
.metric-xlong .iqd-number { font-size: 0.68em; }
.metric-xxlong .iqd-number { font-size: 0.58em; }

/* Recent orders in home */
.ord-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--t-fast);
}

.ord-row:hover { opacity: 0.8; }
.ord-row:last-child { border-bottom: none; }

.ord-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.ord-row-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ord-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ord-row-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Products in home */
.prod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--t-fast);
}

.prod-row:hover { opacity: 0.8; }
.prod-row:last-child { border-bottom: none; }

.prod-row-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.prod-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-row-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-row-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Quick actions grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px;
  background: var(--bg);
  border-radius: var(--r-lg);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  text-decoration: none;
}

.qa-btn:hover {
  background: var(--blue-pale);
  color: var(--blue);
  transform: translateY(-2px);
  text-decoration: none;
}

.qa-btn i[data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.qa-btn:hover i[data-lucide] { color: var(--blue); }

/* Attention items */
#attentionWrap .card { margin-bottom: var(--gap-md); }

.attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.attention-item:last-child { border-bottom: none; }

.attention-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.attention-item span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.attention-item button {
  font-size: 12px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-md);
  padding: 7px 14px;
  white-space: nowrap;
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.attention-item button:hover {
  background: #0066D6;
  transform: translateY(-1px);
}

.positive-state {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Readiness list */
.readiness-list { display: flex; flex-direction: column; gap: 8px; }

.readiness-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
}

.readiness-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.readiness-item span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.mini-action {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: var(--r-full);
  padding: 4px 10px;
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.mini-action:hover { background: var(--blue); color: #fff; }

/* Empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 8px;
  color: var(--text-muted);
}

.empty-icon { font-size: 36px; }
.empty-t { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.empty-s { font-size: 12px; text-align: center; max-width: 260px; line-height: 1.6; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  outline: none;
  border: none;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.1px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn i[data-lucide] { width: 15px; height: 15px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,122,255,0.25);
}

.btn-primary:hover:not(:disabled) {
  background: #0066D6;
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn-sage {
  background: var(--green-pale);
  color: var(--green);
}

.btn-sage:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-alt);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--red-pale);
  color: var(--red);
}

.btn-danger:hover:not(:disabled) {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--r-sm);
}

/* Toggle button */
.toggle {
  width: 64px;
  height: 28px;
  border-radius: var(--r-full);
  background: #d1d5db;
  position: relative;
  transition: background .22s ease, box-shadow .22s ease;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.toggle::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 50%;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .18s ease;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.toggle.on {
  background: #34C759;
}

.toggle.on::before {
  opacity: 1;
}

.toggle.on::after {
  transform: translateX(20px);
}

/* Inline toggle row */
.inline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.inline-toggle:last-child { border-bottom: none; }

.inline-toggle > span,
.inline-toggle > div {
  flex: 1 1 auto;
  min-width: 0;
}

.inline-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 64px;
  height: 28px;
  border-radius: 999px;
  background: #d1d5db;
  border: 0;
  position: relative;
  flex: 0 0 64px;
  cursor: pointer;
  transition: background .22s ease, box-shadow .22s ease;
  outline: none;
  overflow: hidden;
}

.inline-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 50%;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .18s ease;
}

.inline-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.inline-toggle input[type="checkbox"]:checked {
  background: #34C759;
}

.inline-toggle input[type="checkbox"]:checked::before {
  opacity: 1;
}

.inline-toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.inline-toggle input[type="checkbox"]:focus-visible,
.toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(52,199,89,.18);
}

/* Replace checkbox with custom toggle appearance */
.inline-toggle > label,
.inline-toggle {
  cursor: pointer;
}

.tr-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.tr-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  width: 100%;
  flex-wrap: nowrap;
  padding: 10px 0;
  text-align: right;
}

.tr-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.tr-icon { font-size: 22px; }

/* Upgrade button */
.upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #111112;
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-full);
  cursor: pointer;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.13),
    0 2px 5px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.upgrade-btn:hover {
  opacity: 1;
  color: #000;
  background: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.17),
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.upgrade-btn i[data-lucide] {
  width: 14px;
  height: 14px;
  color: #111112;
}

/* Hero upgrade note */
#heroUpgradeNote { display: none; }
#heroUpgradeNote.show { display: inline-flex; }

/* Icon mini */
.icon-mini {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.icon-mini:hover { background: var(--blue-pale); color: var(--blue); border-color: transparent; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. FORMS & INPUTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-primary);
  transition: all var(--t-fast);
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

.input:focus {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,122,255,0.12);
}

.input::placeholder { color: var(--text-muted); }

textarea.input {
  resize: vertical;
  min-height: 80px;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 32px;
}

.lbl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.field { margin-bottom: var(--gap-md); }

.field-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

/* Section label */
.sec-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

/* Upload row */
.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.upload-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.upload-status {
  font-size: 12px;
  color: var(--text-muted);
  display: none;
  align-items: center;
  gap: 6px;
}

.upload-status.show { display: inline-flex; }

/* Image preview box */
.img-preview-box {
  margin-top: 8px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 2px dashed var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 80px;
  transition: border-color var(--t-fast);
}

.img-preview-box:hover { border-color: var(--blue); }

.img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.img-preview-box.has-img img { display: block; }

.img-ph {
  font-size: 11px;
  color: var(--text-muted);
  padding: 16px;
  text-align: center;
}

.img-preview-box.has-img .img-ph { display: none; }

.banner-preview-desktop { height: 120px; }
.banner-preview-mobile  { height: 160px; }

/* Product image gallery */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.img-slot {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 2px dashed var(--border-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--t-fast);
}

.img-slot:hover { border-color: var(--blue); background: var(--blue-pale); }

.img-slot.has-img { border-style: solid; border-color: var(--border); }

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-rm {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.sl-rm:hover { background: var(--red); }

.sl-ph { font-size: 20px; }
.sl-num { font-size: 9px; color: var(--text-muted); font-weight: 600; margin-top: 3px; }

.file-input { display: none; }

/* Image upload tile */
.image-upload-tile {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px dashed var(--border-md);
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.image-upload-tile:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.image-upload-tile.has-img { border-style: solid; background-size: cover; background-position: center; min-height: 60px; }
.image-upload-tile.mini { padding: 7px 10px; font-size: 11px; }

.image-url-hidden { display: none; }

/* Spinner */
.spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  animation: spinAnim 0.6s linear infinite;
}

.spin-dark { color: var(--text-primary); }

@keyframes spinAnim {
  to { transform: rotate(360deg); }
}

/* Type grid */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.type-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: right;
}

.type-opt:hover { border-color: var(--blue); background: var(--blue-pale); }

.type-opt.active {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.t-icon { font-size: 20px; flex-shrink: 0; }

/* Tags input */
.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  min-height: 42px;
  cursor: text;
  transition: border-color var(--t-fast);
}

.tag-wrap:focus-within { border-color: var(--blue); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: var(--r-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.tag-chip button {
  font-size: 11px;
  color: var(--blue);
  line-height: 1;
  opacity: 0.7;
}

.tag-chip button:hover { opacity: 1; }

.tag-in {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--text-primary);
  min-width: 80px;
  flex: 1;
  font-family: inherit;
}

/* Color/theme fields */
.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-field input[type="color"] {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px;
  cursor: pointer;
  background: var(--surface);
}

.color-field .input { flex: 1; }

.color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.palette-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.palette-row button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c1, var(--blue));
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.palette-row button:hover { transform: scale(1.15); box-shadow: var(--shadow-md); }

/* Segmented control */
.segmented {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}

.segmented button {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.segmented button.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

/* Category grid */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cat-opt {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
}

.cat-opt:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.cat-opt.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.cat-custom-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Custom fields */
.copt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-bottom: 6px;
}

.copt-text {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}

.copt-rm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-pale);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.copt-rm svg { width: 12px; height: 12px; }
.copt-rm:hover { background: var(--red); color: #fff; }

/* Question builder */
.question-builder {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Digital notice */
.digital-notice {
  background: var(--orange-pale);
  border: 1px solid rgba(255,149,0,0.3);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.digital-notice strong { color: var(--orange); display: block; margin-bottom: 4px; }

.digital-files-box {
  display: none;
}

.digital-files-box.show { display: block; }

/* Booking builder */
.booking-builder {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Coupon */
.coupon-wrap {
  display: flex;
  gap: var(--gap-md);
}

/* Brand box */
.brand-box {
  display: none;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-top: 8px;
}

.brand-box.show { display: block; }

/* Advanced box */
.advanced-box {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--gap-md);
}

.advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg);
  width: 100%;
  text-align: right;
  transition: background var(--t-fast);
}

.advanced-toggle:hover { background: var(--bg-alt); }
.advanced-toggle span:last-child { font-size: 11px; color: var(--text-muted); }

.advanced-body {
  display: none;
  padding: 16px;
  background: var(--surface);
}

.advanced-box.open .advanced-body { display: block; }

/* PRO lock */
.pro-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,149,0,0.08);
  border: 1px solid rgba(255,149,0,0.2);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}

.pro-lock span {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
}

.pro-lock button {
  font-size: 11px;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-full);
  padding: 4px 10px;
  transition: opacity var(--t-fast);
}

.pro-lock button:hover { opacity: 0.85; }

/* Variant price box */
.variant-price-box {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variant-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.variant-price-row span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
}

/* Product quality */
.quality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quality-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--red-pale);
  color: var(--red);
}

.quality-item.done {
  background: var(--green-pale);
  color: var(--green);
}

/* Profit estimate pill */
.profit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

/* Form section */
.form-section {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: var(--gap-md);
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fs-icon { font-size: 16px; }

/* Description editor */
.desc-editor-wrap {
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}

.desc-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.desc-tool {
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.desc-tool:hover { background: var(--bg-alt); color: var(--text-primary); }
.desc-tool input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.desc-select {
  padding: 4px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.desc-editor {
  padding: 12px 14px;
  min-height: 100px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  line-height: 1.7;
}

.desc-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

/* Localized panes */
.localized-pane { display: none; }
.localized-pane.active { display: block; }

.lang-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lang-switch-mini {
  display: flex;
  background: var(--bg-alt);
  border-radius: var(--r-full);
  padding: 2px;
  gap: 2px;
}

.lang-switch-mini button {
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.lang-switch-mini button.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.lang-extra { display: none; }
.lang-extra.active { display: block; }
.lang-extra:not(.hidden) { display: block; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. PRODUCTS PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap-lg);
  align-items: flex-start;
}

#p-products.studio-open .products-layout {
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
}

/* On small screens or studio-open */
@media (max-width: 900px) {
  .products-layout,
  #p-products.studio-open .products-layout {
    grid-template-columns: 1fr;
  }

  #p-products.studio-open .product-form-wrap {
    order: -1;
  }
}

.product-form-wrap {
  display: none;
  flex-direction: column;
  gap: 0;
}

#p-products.studio-open .product-form-wrap { display: flex; }

.products-add-top { margin-bottom: 0; }

/* Product card grid */
.products-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* Product Card — Apple-like */
.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.90));
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 30px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    border-color var(--t-fast);
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.11);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Product Image */
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 10px 10px 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #f7f9fc, #eef2f7);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.045);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.product-card:hover .product-card-media img {
  transform: scale(1.035);
  filter: saturate(1.03);
}

/* Status Badge */
.product-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: var(--r-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Info */
.prod-info {
  padding: 15px 16px 10px;
  flex: 1;
}

.prod-meta {
  width: fit-content;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid rgba(0, 122, 255, 0.08);
  border-radius: var(--r-full);
  padding: 4px 9px;
  margin-bottom: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.25px;
  line-height: 1.35;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-card-row strong {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Price */
.prod-price {
  margin: 0 16px;
  padding: 12px 0 13px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.55px;
  border-top: 1px solid rgba(0, 0, 0, 0.055);
  font-variant-numeric: tabular-nums;
}

/* Actions */
.prod-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.055);
  flex-wrap: wrap;
}

/* أي زر داخل أزرار المنتج */
.prod-actions button,
.prod-actions a {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.055);
  text-decoration: none;
  transition:
    transform var(--t-fast),
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}

.prod-actions button:hover,
.prod-actions a:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: var(--blue);
  border-color: rgba(0, 122, 255, 0.16);
  text-decoration: none;
}

/* Product add card */
.product-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  border: 2px dashed var(--border-md);
  border-radius: var(--r-lg);
  padding: 32px 16px;
  cursor: pointer;
  transition: all var(--t-fast);
  aspect-ratio: unset;
  min-height: 160px;
}

.product-add-card:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.product-add-card span {
  font-size: 32px;
  color: var(--text-muted);
  font-weight: 300;
}

.product-add-card:hover span { color: var(--blue); }

.product-add-card strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.product-add-card:hover strong { color: var(--blue); }

.product-add-card small {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Status badges */
.prod-badge, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending, .badge-p   { background: rgba(255,149,0,0.12); color: var(--orange); }
.status-processing, .badge-r { background: rgba(0,122,255,0.12); color: var(--blue); }
.status-completed, .badge-c  { background: rgba(52,199,89,0.12); color: var(--green); }
.status-deleted, .badge-d   { background: rgba(255,59,48,0.12); color: var(--red); }
.status-all                  { background: var(--bg); color: var(--text-muted); }

/* SEO section */
#seoFields { margin-top: 14px; }

/* Video input */
#pVideo::placeholder { font-size: 12px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. ORDERS PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.orders-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
}

#p-orders .pg-header,
#p-products .pg-header,
#p-settings .pg-header {
  padding-top: 0;
}

#p-orders .card,
#p-products .card,
#p-settings .s-card {
  box-shadow: var(--shadow-xs);
}

.order-stat-card {
  position: relative;
  min-height: 58px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: right;
  overflow: hidden;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}

#p-orders .orders-stats-bar {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.order-stat-card span

.order-stat-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.12) 46%,
      transparent
    );
}

.order-stat-card > * {
  position: relative;
  z-index: 1;
}

.order-stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.12);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.order-stat-card.active {
  background:
    linear-gradient(180deg, #ffffff, #eef6ff);
  border-color: rgba(0, 122, 255, 0.85);
  box-shadow:
    0 8px 22px rgba(0, 122, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.order-stat-card.needs-attention:not(.active) {
  border-color: rgba(255, 149, 0, 0.22);
  background:
    linear-gradient(180deg, #ffffff, rgba(255, 149, 0, 0.045));
}

.order-stat-card span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-stat-card span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.28;
  flex-shrink: 0;
}

.order-stat-card.active span {
  color: var(--blue);
}

.order-stat-card.active span::before {
  background: var(--blue);
  opacity: 0.8;
}

.order-stat-card.needs-attention:not(.active) span::before {
  background: var(--orange);
  opacity: 0.75;
}

.order-stat-card strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.order-stat-card.active strong {
  color: var(--text-primary);
}



/* Toolbar */
.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border);
}

.filter-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 3px;
  flex-shrink: 0;
}

.ftab {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.ftab:hover { color: var(--text-primary); }
.ftab.active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--shadow-xs);
}

.orders-focus {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.orders-focus input { accent-color: var(--blue); }

.orders-search {
  width: 240px;
  flex-shrink: 0;
}

/* Table */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.tbl thead tr {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.tbl th {
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.tbl td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.tbl tr:last-child td { border-bottom: none; }

.order-row {
  transition: background var(--t-fast);
}

.order-row:hover { background: var(--bg); }

.order-code-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: "SF Mono", monospace;
  direction: ltr;
}

.order-customer-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-muted-text { font-size: 12px; color: var(--text-muted); }

.order-items-text {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.order-total-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.order-status-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.order-wa-btn {
  background: rgba(37,211,102,0.1);
  color: #25D366;
  border-color: rgba(37,211,102,0.2);
}

.order-wa-btn:hover {
  background: #25D366;
  color: #fff;
  border-color: transparent;
}

/* Status select in table */
.ord-status-sel {
  padding: 5px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  font-family: inherit;
  max-width: 130px;
  transition: border-color var(--t-fast);
}

.ord-status-sel:focus { border-color: var(--blue); }

/* Order notes */
.order-notes {
  min-height: 80px;
  resize: vertical;
}

/* Order warn */
.order-warn {
  padding: 10px 14px;
  background: var(--orange-pale);
  border: 1px solid rgba(255,149,0,0.3);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Receipt thumbnail */
.receipt-thumb {
  max-width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* Quick reply chips */
.reply-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reply-chip {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.reply-chip:hover {
  background: var(--blue-pale);
  color: var(--blue);
  border-color: transparent;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. SETTINGS PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.settings-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: var(--gap-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 6px;
}

.stab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.stab:hover { background: var(--bg); color: var(--text-primary); }

.stab.active {
  background: var(--blue-pale);
  color: var(--blue);
}

.stab i[data-lucide] { width: 15px; height: 15px; }

.snav-divider-v {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* Settings panels */
.settings-panel { display: none; }
.settings-panel.active { display: block; }

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.panel-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--gap-lg);
}

/* Settings card */
.s-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 32px;
  padding: 26px;
  margin-bottom: 18px;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.s-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62) 0%,
      rgba(255, 255, 255, 0.14) 42%,
      transparent 100%
    );
}

.s-card > * {
  position: relative;
  z-index: 1;
}

.s-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.35px;
  line-height: 1.25;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.s-card .form-group,
.s-card .setting-row,
.s-card .payment-row {
  margin-bottom: 16px;
}

.s-card .form-group:last-child,
.s-card .setting-row:last-child,
.s-card .payment-row:last-child {
  margin-bottom: 0;
}

.s-card label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.s-card label.inline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--gap-md);
  width: 100%;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.s-card label.inline-toggle > span {
  flex: 1 1 auto;
  min-width: 0;
}

.s-card input,
.s-card select,
.s-card textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.075);
  background: #f7f9fc;
  color: var(--text-primary);
  padding: 10px 14px;
  outline: none;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.s-card input:focus,
.s-card select:focus,
.s-card textarea:focus {
  background: #ffffff;
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.10);
}

.s-card label.inline-toggle input[type="checkbox"] {
  width: 64px;
  max-width: 64px;
  height: 28px;
  flex: 0 0 64px;
  padding: 0;
  border: 0;
}

.s-card label.inline-toggle input[type="checkbox"]:focus {
  background: #d1d5db;
  border-color: transparent;
}

.s-card label.inline-toggle input[type="checkbox"]:checked:focus {
  background: #34C759;
}

.s-card textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.7;
}
/* Appearance studio */
.appearance-studio { display: flex; flex-direction: column; gap: var(--gap-md); }
.appearance-fields { display: flex; flex-direction: column; gap: var(--gap-md); }

/* Store preview inside settings */
.pv-ann {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  display: none;
}

.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.pv-logo {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--accent, var(--blue));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pv-logo img { width: 100%; height: 100%; object-fit: cover; }

.pv-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }

.pv-icons { display: flex; gap: 5px; }
.pv-icons span { width: 18px; height: 18px; background: var(--bg); border-radius: 50%; }

.pv-banner {
  height: 80px;
  background: var(--bg-alt) center/cover no-repeat;
}

.pv-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.pv-card {
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.pv-img { aspect-ratio: 1; background: var(--bg); }
.pv-line { height: 8px; background: var(--border); margin: 8px; border-radius: var(--r-full); }
.pv-price { height: 22px; margin: 6px 8px 8px; border-radius: var(--r-sm); }

/* Announcement */
.announcement-grid { display: flex; flex-direction: column; gap: 8px; }
.announcement-colors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); margin-top: 10px; }

/* Social */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: var(--gap-md);
}

.social-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.065);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  box-shadow:
    0 8px 20px rgba(15,23,42,.045),
    inset 0 1px 0 rgba(255,255,255,.95);
  text-align: right;
}

.social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0,113,227,.22);
  background: #fff;
  color: var(--blue);
  box-shadow:
    0 12px 28px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,1);
}

.social-btn.linked {
  border-color: rgba(52,199,89,.38);
  background:
    linear-gradient(180deg, #ffffff, #f3fff6);
}

.social-btn-main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.social-btn-main span {
  font-size: 13px;
  line-height: 1.2;
}

.social-btn-main small {
  display: block;
  margin-inline-start: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  direction: ltr;
  text-align: right;
}

.social-btn-action {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-secondary);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}

.social-btn.linked .social-btn-action {
  background: var(--green-pale);
  color: var(--green);
}

.social-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  flex: 0 0 42px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.social-btn-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.social-whatsapp { background: #25D366; }
.social-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B 48%, #8134AF); }
.social-tiktok { background: #080808; }
.social-twitter { background: #111827; }
.social-telegram { background: #229ED9; }
.social-snapchat { background: #FFFC00; color: #111827; }
.social-facebook { background: #1877F2; }
.social-youtube { background: #FF0000; }

.s-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.social-btn.linked .s-check { display: flex; }

.snap-icon { font-size: 20px; }

.social-input-area {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  border: 1px solid rgba(0,0,0,.065);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: var(--gap-md);
  box-shadow:
    0 10px 26px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.92);
}

.social-input-area::before {
  content: attr(data-prefix);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.customer-payments-grid {
  display: grid;
  gap: 10px;
}

.payment-toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.payment-toggle-info > span {
  min-width: 0;
}

.payment-toggle-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.075);
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
}

#sp-delivery #delContent {
  display: none;
}

#sp-delivery.delivery-on #delContent {
  display: block;
}

#sp-delivery.delivery-on #deliveryDisabledCard {
  display: none;
}

#sp-delivery.delivery-off #deliveryDisabledCard {
  display: flex;
}

.delivery-disabled-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  border: 1px dashed rgba(0,0,0,.14);
  border-radius: 24px;
  padding: 18px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.delivery-disabled-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg);
  color: var(--text-muted);
  flex: 0 0 42px;
}

.delivery-disabled-icon svg {
  width: 20px;
  height: 20px;
}

.delivery-disabled-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.delivery-disabled-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact center */
.contact-card {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.contact-card-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.contact-state { font-size: 11px; font-weight: 700; background: var(--bg-alt); color: var(--text-muted); padding: 3px 8px; border-radius: var(--r-full); }
.contact-state.on { background: var(--green-pale); color: var(--green); }

.contact-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Payment methods */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.pay-method-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--bg);
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
}

.pay-method-opt:hover { border-color: var(--blue); }
.pay-method-opt.active { border-color: var(--blue); background: var(--blue-pale); }

.pay-method-opt img { width: 36px; height: 36px; object-fit: contain; border-radius: var(--r-xs); }
.pay-method-opt span { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

/* Payouts card */
.payouts-card { background: linear-gradient(135deg, #040405, #000000); color: #fff; }
.payouts-card .s-card-title { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.12); }

.payouts-amount {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.payouts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.payouts-grid div {
  background: rgba(255,255,255,0.05);
  padding: 10px 12px;
}

.payouts-grid span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.payouts-grid strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.payouts-note { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* Payout method seg */
.payout-methods { margin-bottom: var(--gap-md); }

/* Delivery */
.del-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: var(--gap-md);
}

.intl-country-picker {
  position: relative;
  margin-top: 12px;
}

.intl-country-picker .input {
  padding-inline-start: 44px;
}

.intl-country-picker::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 38px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.del-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.del-tab:hover { color: var(--text-primary); }
.del-tab.active { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-xs); }

.del-panel { display: none; }
.del-panel.active { display: block; }

.del-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.del-row:last-child { border-bottom: none; }
.del-flag { font-size: 18px; flex-shrink: 0; }
.del-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.del-price { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Schedule grid */
.order-schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--gap-md);
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
}

.schedule-day {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.schedule-day input { accent-color: var(--blue); }

.schedule-times {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.schedule-times span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.schedule-times input[type="time"] {
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}

/* Category manager */
.category-manager { margin-top: 8px; }

.category-add-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.category-edit-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  border: 1px solid var(--border);
}

.category-edit-img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--t-fast);
}

.category-edit-img:hover { opacity: 0.8; }

.category-edit-row {
  display: flex;
  gap: 6px;
}

/* Danger zone */
.danger-zone {
  background: var(--red-pale);
  border: 1px solid rgba(255,59,48,0.2);
  border-radius: var(--r-xl);
  padding: var(--gap-lg);
  margin-top: var(--gap-md);
}

.danger-zone-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: var(--gap-md);
}

.danger-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,59,48,0.15);
}

.danger-action:last-child { border-bottom: none; }

.da-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.da-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Store status pill */
.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--gap-md);
}

.status-on  { background: var(--green-pale); color: var(--green); }
.status-off { background: var(--red-pale); color: var(--red); }

.store-status-pill span:first-child { font-size: 8px; }

/* Support card */
.support-card {
  background: linear-gradient(135deg, var(--green-pale), rgba(52,199,89,0.04));
  border: 1px solid rgba(52,199,89,0.25);
  border-radius: var(--r-xl);
  padding: var(--gap-lg);
  text-align: center;
  margin-bottom: var(--gap-md);
}

.s-emoji { font-size: 36px; margin-bottom: 10px; }
.support-card h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.support-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #25D366;
  color: #fff;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
  box-shadow: 0 3px 12px rgba(37,211,102,0.3);
}

.wa-link:hover {
  background: #22C05E;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* Avatar picker */
.merchant-avatar-picker { position: relative; }

.avatar-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.avatar-select-btn:hover { border-color: var(--blue); background: var(--blue-pale); }

.avatar-selected-emoji {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-image: var(--avatar-url, none);
  background-color: var(--blue);
  display: block;
}

.avatar-select-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.avatar-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  z-index: 4000;
  padding: 10px;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 160px;
}

.avatar-picker-menu.open { display: flex; }

.avatar-img-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  transition: transform var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}

.avatar-img-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-img-btn.active { border-color: var(--blue); }
.avatar-img-btn:hover { border-color: var(--blue); transform: scale(1.05); }

.avatar-note {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 8px 12px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Save bar */
.save-bar {
  position: fixed;
  bottom: 88px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1360px, calc(100% - 48px));
  z-index: 800;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
  padding: 12px var(--gap-lg);
  display: none;
}

#p-settings.active .save-bar { display: block; }

.save-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  max-width: var(--content-max);
}

.save-bar-text {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}

.save-state {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.save-state.saved  { background: var(--green-pale); color: var(--green); }
.save-state.dirty  { background: var(--orange-pale); color: var(--orange); }
.save-state.saving { background: var(--blue-pale); color: var(--blue); }
.save-state.failed { background: var(--red-pale); color: var(--red); }

/* Domain */
.domain-record {
  background: #1D1D1F;
  color: #A8FF60;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  line-height: 1.8;
  margin-top: 8px;
  overflow-x: auto;
}

/* Policies */
#sp-policies .s-card { }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. PLAN CHIPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.plan-free  { background: var(--bg-alt); color: var(--text-muted); }
.plan-pro   { background: var(--blue-pale); color: var(--blue); }
.plan-ultra { background: linear-gradient(135deg, #667eea33, #764ba233); color: var(--purple); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. MODALS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}

.modal-wrap.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s var(--ease);
}

.modal-wrap.open .modal {
  transform: scale(1) translateY(0);
}

.modal-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.modal-close-btn:hover { background: var(--red-pale); color: var(--red); border-color: transparent; }

.modal-body {
  overflow-y: auto;
  padding: 20px 24px 24px;
  flex: 1;
}

/* Modal sections */
.modal-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-section:last-child { border-bottom: none; margin-bottom: 0; }

.modal-section-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.modal-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 6px 0;
}

.modal-field-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.modal-field-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* Order items in modal */
.ord-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ord-item-row:last-child { border-bottom: none; }

.ord-item-img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.ord-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* Plans modal */
.plans-modal {
  max-width: 1080px;
  background:
    radial-gradient(circle at 8% 0%, rgba(52,199,89,.10), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(255,149,0,.10), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.plans-modal-hd {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.plans-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.plans-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.billing-toggle {
  display: flex;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--r-full);
  padding: 4px;
  gap: 3px;
  width: fit-content;
  margin: 0 auto 22px;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.billing-toggle button {
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.billing-toggle button.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 3px 12px rgba(15,23,42,.10);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.plan-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.78)),
    radial-gradient(circle at 18% 0%, var(--plan-glow), transparent 42%);
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,.065);
  padding: 18px;
  cursor: pointer;
  transition:
    transform .36s cubic-bezier(.2,.8,.2,1),
    box-shadow .36s cubic-bezier(.2,.8,.2,1),
    border-color .24s ease;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 16px 40px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.plan-card.plan-free {
  --plan-accent: #8E8E93 !important;
  --plan-glow: rgba(142,142,147,.12) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,247,249,.86)),
    radial-gradient(circle at 18% 0%, rgba(142,142,147,.10), transparent 42%);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 54px rgba(15,23,42,.11),
    0 0 0 5px var(--plan-glow),
    inset 0 1px 0 rgba(255,255,255,1);
  border-color: color-mix(in srgb, var(--plan-accent) 38%, transparent);
}

.plan-card.active {
  border-color: var(--plan-accent);
  box-shadow:
    0 20px 48px rgba(15,23,42,.10),
    0 0 0 5px var(--plan-glow);
}

.plan-card.best {
  transform: translateY(-3px);
}

.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.plan-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.plan-symbol {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--plan-accent);
  box-shadow: 0 6px 14px var(--plan-glow);
  flex-shrink: 0;
}

.plan-symbol.sharp-square { border-radius: 1px; }
.plan-symbol.soft-square { border-radius: 5px; }
.plan-symbol.circle { border-radius: 50%; }

.plan-badge,
.plan-current-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--plan-accent);
  background: var(--plan-glow);
  padding: 5px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.plan-current-badge {
  width: fit-content;
  margin-bottom: 10px;
  color: var(--green);
  background: var(--green-pale);
}

.plan-name {
  font-size: 25px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0;
}

.plan-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plan-feature span:first-child {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--plan-accent);
  background: transparent;
  border-radius: 50%;
  flex-shrink: 0;
}

.plan-feature i {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

.plan-choose {
  margin-top: auto;
  width: 100%;
  min-height: 42px;
  border-radius: 16px;
  background: var(--plan-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 24px var(--plan-glow);
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}

.plan-choose:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px var(--plan-glow);
}

.plan-choose.muted {
  background: var(--bg-alt);
  color: var(--text-muted);
  box-shadow: none;
}

/* Special plan card */
.special-plan-card {
  background:
    radial-gradient(circle at 8% 20%, rgba(255,214,10,.22), transparent 30%),
    linear-gradient(135deg, #101014 0%, #25324a 100%);
  border-radius: 28px;
  padding: 20px;
  color: #fff;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  box-shadow: 0 18px 42px rgba(15,23,42,.18);
}

.special-plan-main { display: flex; gap: 14px; flex: 1; align-items: flex-start; }

.special-plan-mark {
  font-size: 22px;
  width: 46px;
  height: 46px;
  background: rgba(255,214,10,0.18);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.special-plan-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.special-plan-text  { font-size: 12.5px; color: rgba(255,255,255,0.68); line-height: 1.7; }

.solo-features-section {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(0,0,0,.06);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.solo-features-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.solo-features-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.solo-features-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.solo-feature-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.solo-feature-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.065);
  box-shadow: 0 8px 20px rgba(15,23,42,.07);
  transition: transform var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.solo-feature-controls button:hover {
  color: #007AFF;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15,23,42,.10);
}

.solo-feature-controls i {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}

.solo-features-slider {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.solo-features-slider::-webkit-scrollbar { display: none; }

.solo-features-track {
  display: flex;
  width: max-content;
  gap: 12px;
}

.solo-feature {
  width: 250px;
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas:
    "icon copy"
    "price price";
  gap: 10px 12px;
  align-items: start;
  text-align: right;
  padding: 15px;
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.055);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  scroll-snap-align: start;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.solo-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(0,122,255,.18);
  box-shadow: 0 14px 30px rgba(15,23,42,.09);
}

.solo-feature-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #007AFF, #34C759);
}

.solo-feature-icon i {
  width: 19px;
  height: 19px;
}

.solo-feature-copy {
  grid-area: copy;
  min-width: 0;
}

.solo-feature-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.solo-feature-copy small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.solo-feature-price {
  grid-area: price;
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  color: #FF7A1A;
  background: rgba(255,122,26,.11);
  border-radius: var(--r-full);
  padding: 5px 10px;
}

/* Payment modal */
.payment-method-grid {
  display: flex;
  gap: 8px;
  margin-bottom: var(--gap-md);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 4px;
}

.payment-choice {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.payment-choice:hover { color: var(--text-primary); }
.payment-choice.active { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-xs); }

.payment-details-box {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 14px;
}

.pay-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: 8px;
  border: 1px solid var(--border);
}

.pay-line-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  direction: ltr;
}

.copy-pay-btn {
  font-size: 12px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 6px 14px;
  transition: all var(--t-fast);
}

.copy-pay-btn:hover { background: #0066D6; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--gap-xl) var(--gap-lg) calc(var(--gap-xl) + 90px);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  max-width: var(--content-max);
  margin: 0 auto var(--gap-lg);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 12px;
  cursor: pointer;
}

.footer-main-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.footer-sub-val {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--border);
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-copy { font-size: 12px; color: var(--text-muted); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. DOCK NAVIGATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Armortah Dock Navigation */
.mobile-dock {
  display: flex;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1100;
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 28px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.36) 0%,
      rgba(255, 255, 255, 0.2) 48%,
      rgba(246, 249, 253, 0.14) 100%
    );

  backdrop-filter: blur(26px) saturate(190%) brightness(1.12);
  -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.12);

  border: 1px solid rgba(255, 255, 255, 0.42);

  box-shadow:
    0 22px 62px rgba(15, 23, 42, 0.18),
    0 2px 8px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);

  overflow: visible;
}

.mobile-dock::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 86%, rgba(10, 132, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
}

.mobile-dock-inner {
  width: max-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  position: relative;
  z-index: 1;
}

.mdock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 0;
  padding: 0;
  border-radius: 17px;
  color: #fff;
  text-decoration: none;
  outline: none;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--t-base) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  overflow: visible;
}

.mdock-item:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.mdock-item:focus-visible {
  color: var(--blue);
  box-shadow:
    inset 0 0 0 2px rgba(0, 122, 255, 0.18),
    0 9px 22px rgba(0, 122, 255, 0.10);
}

.mdock-item i[data-lucide],
.mdock-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.25;
  transition: transform var(--t-base) var(--ease);
}

.mdock-item:hover i[data-lucide],
.mdock-item:hover svg,
.mdock-item:hover .mdock-logo {
  transform: scale(1.13);
}

.mdock-logo {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
  transition: transform var(--t-base) var(--ease);
}

.mdock-item span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 13px);
  transform: translate(-50%, 8px) scale(0.96);
  min-width: max-content;
  padding: 7px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  transition:
    opacity var(--t-fast) var(--ease),
    visibility var(--t-fast) var(--ease),
    transform var(--t-base) var(--ease);
}

.mdock-item:hover span,
.mdock-item:focus-visible span,
.mdock-item.show-label span {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.mdock-divider {
  width: 1px;
  height: 34px;
  margin-inline: 2px;
  border-radius: var(--r-full);
  background: rgba(15, 23, 42, 0.22);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.34);
  flex-shrink: 0;
}

.mdock-home {
  background: linear-gradient(0deg, #1982ff 0%, #3e97ff 100%);
}

.mdock-orders {
  background: linear-gradient(0deg, #25c141 0%, #53f06d 100%);
}


.mdock-products {
  background: linear-gradient(0deg, #ff002e 0%, #ff4c71 100%);
}

.mdock-settings {
  background: linear-gradient(0deg, #131313 0%, #313131 100%);
}

.mdock-plans {
  background: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
  color: #000;
}

.mdock-plans.active {
  color: #000;
}


.mdock-item.active {
  color: #fff;
}

.mdock-item.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. PRODUCT PREVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.preview-product-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-grabber {
  width: 40px;
  height: 4px;
  background: var(--border-md);
  border-radius: var(--r-full);
  margin: 8px auto 4px;
}

.preview-product-img {
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}

.preview-product-img img { width: 100%; height: 100%; object-fit: cover; }

.preview-media-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.preview-media-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
}

.preview-media-dots span.active { background: var(--blue); }

.preview-product-body { padding: 14px; }

.preview-product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.preview-product-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }

.preview-product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.preview-option-block {
  margin-bottom: 10px;
}

.preview-option-block b {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.preview-option-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.preview-size-dot {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.preview-product-desc {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.preview-product-desc b {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.preview-product-desc span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.preview-product-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-cart-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
}

.preview-cart-icon svg { width: 18px; height: 18px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. PRODUCT STUDIO (SPLIT VIEW)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Mac & phone preview frames (if you use them) */
#pvProdMac, #pvProdPhone,
#previewMac, #previewPhone {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. GENDER THEME TWEAK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body.theme-female {
  --blue: #FF2D55;
  --blue-light: #FF375F;
  --blue-pale: #FFF0F3;
  --shadow-blue: none;
}

.verify-strip-icon i[data-lucide],
.verify-strip-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   21. RESPONSIVE — TABLET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1100px) {
  .hg-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-card.sales-stat-card {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 7;
    min-height: 190px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .hg-orders, .hg-products { grid-column: 1; }

  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); }

  .color-grid { grid-template-columns: 1fr 1fr; }

  .plans-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 0px;
    --topnav-h: 0px;
    --dash-topbar-h: 56px;
  }

  .topnav {
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    width: 280px;
    transition: transform var(--t-base) var(--ease);
    z-index: 1100;
    padding-top: 16px;
  }

  .topnav-tabs { margin-top: 8px; }

  .main-wrap {
    width: 100%;
    padding-top: calc(var(--dash-topbar-h) + 12px);
    padding-bottom: 110px;
    padding-inline: 16px;
  }

  .dash-topbar {
    width: 100%;
    left: 0;
    transform: none;
    height: 56px;
    gap: 8px;
    padding-inline: 16px;
  }

  .dash-search {
    min-width: 0;
  }

  .notifications-popover {
    position: fixed;
    top: calc(var(--dash-topbar-h) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--dash-topbar-h) - 24px);
    transform: translateY(-6px) scale(0.98);
  }

  .notifications-popover.open {
    transform: translateY(0) scale(1);
  }

  .notifications-popover .np-list {
    max-height: calc(100vh - var(--dash-topbar-h) - 104px);
  }

  .mobile-dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 16px);
    border-radius: 24px;
  }

  .mobile-dock-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .mdock-item {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .mdock-item i[data-lucide],
  .mdock-item svg {
    width: 20px;
    height: 20px;
  }

  .mdock-logo {
    width: 24px;
    height: 24px;
  }

  .mdock-item:hover {
    transform: none;
  }

  .mdock-item:hover i[data-lucide],
  .mdock-item:hover svg,
  .mdock-item:hover .mdock-logo {
    transform: none;
  }

  .mdock-item:hover span,
  .mdock-item:focus-visible span {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) scale(0.96);
  }

  .mdock-item.show-label span {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
  }

  .mdock-divider {
    height: 30px;
    margin-inline: 1px;
  }

  .footer {
    width: 100%;
    padding-bottom: 110px;
  }

  .save-bar {
    left: 0;
    transform: none;
    width: 100%;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .welcome-strip {
    flex-direction: column;
    padding: 20px;
  }

  .ws-right {
    flex-direction: row;
    width: 100%;
  }

  .ws-action-btn,
  .hero-upgrade-note.show {
    flex: 1;
    justify-content: center;
  }

  .hg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stat-card.sales-stat-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .desktop-extra-stat { display: block; }

  .settings-tabs { overflow-x: auto; flex-wrap: nowrap; padding: 4px; }
  .stab { white-space: nowrap; }

  .plans-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .modal-wrap { padding: 12px; align-items: flex-end; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 85vh; }

  .topnav-right { padding-top: 10px; }

  .orders-toolbar { overflow-x: auto; flex-wrap: nowrap; gap: 6px; }
  .filter-tabs { flex-shrink: 0; overflow-x: auto; }

  #p-orders .orders-stats-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    margin-inline: -2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  #p-orders .orders-stats-bar::-webkit-scrollbar {
    height: 0;
  }

  #p-orders .order-stat-card {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  #p-products .pg-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #p-products .products-add-top {
    width: 100%;
    justify-content: center;
  }

  .verify-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px;
  }

  .verify-strip > div[style*="flex:1"] {
    min-width: 0;
    flex-basis: calc(100% - 46px);
  }

  .verify-cta {
    width: 100%;
    justify-content: center;
  }

  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); }

  .g2 { grid-template-columns: 1fr; }

  .products-card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .settings-panel,
  .s-card,
  .card,
  .tbl-wrap {
    min-width: 0;
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   22. RESPONSIVE — MOBILE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 500px) {

  .welcome-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    border-radius: 28px;
  }

  .ws-name {
    font-size: 22px;
  }

  .ws-sub {
    font-size: 12.5px;
    margin-bottom: 12px;
  }

  .ws-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ws-action-btn,
  .hero-upgrade-note.show {
    width: 100%;
  }

  .pg-title { font-size: 20px; }

  .hg-stats {
    grid-template-columns: 1fr;
  }

  .stat-card.sales-stat-card { grid-column: 1 / -1; }

    .stat-card.sales-stat-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 170px;
    padding: 22px;
    border-radius: 30px;
  }

  .sales-stat-card::before {
    border-radius: 29px;
  }

  .sales-stat-card .stat-val,
  .sales-stat-card .iqd-number {
    font-size: 31px;
    letter-spacing: -0.8px;
  }

  .sales-stat-card .stat-hint {
    max-width: 100%;
  }


  .stat-val { font-size: 22px; }

  .welcome-strip { border-radius: var(--r-lg); padding: 16px; }
  .ws-name { font-size: 18px; }

  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }

  .qa-btn { padding: 10px 4px; font-size: 10px; }
  .qa-btn i[data-lucide] { width: 18px; height: 18px; }

  .billing-toggle { width: 100%; }

  .special-plan-card { flex-direction: column; }

  .solo-features-head {
    align-items: flex-start;
  }

  .solo-feature {
    width: 232px;
  }

  #p-orders .orders-stats-bar {
    display: flex;
    grid-template-columns: none;
  }

  .dash-search input {
    min-width: 0;
    font-size: 12px;
  }

  .verify-strip-title,
  .verify-strip-sub,
  .panel-sub,
  .field-note {
    overflow-wrap: anywhere;
  }

  .verify-strip {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 42px 14px 14px;
    border-radius: 24px;
  }

  .verify-strip::before {
    top: 13px;
    left: 16px;
    width: 12px;
    height: 12px;
    box-shadow:
      20px 0 0 #ffbd2e,
      40px 0 0 #28c840;
  }

  .verify-strip-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .verify-strip-title {
    font-size: 12.5px;
  }

  .verify-strip-sub {
    font-size: 11px;
    max-width: 100%;
  }

  .verify-pill {
    order: 3;
  }

  .verify-cta {
    order: 4;
    width: 100%;
    text-align: center;
    justify-content: center;
    border-radius: 18px;
    padding: 11px 14px;
  }

  .product-form-wrap,
  .form-section,
  .field,
  .input,
  textarea.input,
  .desc-editor-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .form-section {
    padding: 14px;
    border-radius: 18px;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .upload-url-row,
  .lang-field-head {
    flex-wrap: wrap;
  }

  #digitalMsg,
  textarea.input {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .stat-card {
    min-height: 150px;
    border-radius: 26px;
    padding: 18px;
  }

  .stat-card::before {
    border-radius: 25px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .stat-val {
    font-size: 26px;
  }

  .stat-hint {
    max-width: 100%;
  }

    .hg-orders.card,
  .hg-products.card {
    border-radius: 30px;
  }

  .hg-orders .card-pad,
  .hg-products .card-pad {
    padding: 20px;
  }

  .hg-orders .card-head,
  .hg-products .card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin-bottom: 18px;
  }

  .hg-orders .card-head > :first-child,
  .hg-products .card-head > :first-child {
    min-width: 0;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .hg-orders .card-head-right,
  .hg-products .card-head-right {
    gap: 6px;
    align-self: start;
  }

  .card-head-action {
    height: 28px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .card-head-arrow {
    width: 30px;
    height: 30px;
  }

  .hg-orders .card-head-title,
  .hg-products .card-head-title {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .hg-orders .card-head-sub,
  .hg-products .card-head-sub {
    font-size: 11.5px;
    line-height: 1.7;
    margin-top: 3px;
  }

  .hg-orders .card-head-icon,
  .hg-products .card-head-icon {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    flex: 0 0 38px;
  }

    .hg-quick.card {
    border-radius: 30px;
  }

  .hg-quick.card-pad {
    padding: 22px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .qa-btn {
    min-height: 78px;
    border-radius: 22px;
    padding: 13px 8px 11px;
  }

  .qa-btn i[data-lucide],
  .qa-btn svg {
    width: 21px;
    height: 21px;
  }

  .qa-btn span {
    font-size: 11px;
  }

  #p-orders .order-stat-card {
    flex-basis: 174px;
    min-height: 58px;
    border-radius: 20px;
    padding: 11px 13px;
  }

  .order-stat-card::before {
    border-radius: 19px;
  }

  .order-stat-card span {
    font-size: 11.5px;
  }

  .order-stat-card strong {
    font-size: 21px;
  }

    .products-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    border-radius: 26px;
  }

  .product-card-media {
    margin: 8px 8px 0;
    border-radius: 20px;
  }

  .prod-info {
    padding: 12px 12px 8px;
  }

  .prod-meta {
    font-size: 10px;
    padding: 3px 8px;
    margin-bottom: 7px;
  }

  .prod-name {
    font-size: 12.5px;
    margin-bottom: 8px;
  }

  .product-card-row {
    font-size: 10.5px;
  }

  .prod-price {
    margin: 0 12px;
    padding: 10px 0;
    font-size: 14.5px;
  }

  .prod-actions {
    padding: 10px 12px 12px;
    gap: 6px;
  }

  .prod-actions button,
  .prod-actions a {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 10.5px;
  }

    .s-card {
    border-radius: 28px;
    padding: 22px;
    margin-bottom: 14px;
  }

  .s-card::before {
    border-radius: 27px;
  }

  .s-card-title {
    font-size: 15px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .s-card .money-row,
  .s-card .payout-row,
  .s-card .balance-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .s-card .money-value,
  .s-card .payout-value,
  .s-card .balance-value {
    font-size: 17px;
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   23. PRINT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media print {
  .topnav, .dash-topbar, .mobile-dock, .save-bar, .toast, .arm-notification-toast-stack { display: none !important; }
  .main-wrap { margin-right: 0; padding-top: 16px; }
  .footer { margin-right: 0; }
}



input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
[contenteditable="true"] {
  cursor: text;
}
