/* ==========================================================================
   Kurd Store VIP — Storefront v3 Pro Shell Design System (Style A: Apple / Fintech Pro)
   Zero :not(#_) hacks · Pure CSS Design Tokens · Light + OLED Dark · RTL & LTR
   Covers: Shared Header, Live Search, Popovers, Floating Mobile Dock, Footer,
           Native Bottom-Sheet Checkout (#package-modal), Auth, Wishlist, Contact,
           About, QR Zoom, Toasts, and Social Proof Toast.
   ========================================================================== */

:root {
  /* Palette — Light (Apple / Fintech Pro) */
  --v3-bg: #f5f7fa;
  --v3-surface: #ffffff;
  --v3-surface-2: #f1f5f9;
  --v3-surface-3: #e8eef5;
  --v3-glass: rgba(255, 255, 255, 0.84);
  --v3-glass-strong: rgba(255, 255, 255, 0.94);

  --v3-border: rgba(15, 23, 42, 0.08);
  --v3-border-strong: rgba(15, 23, 42, 0.15);

  --v3-text: #0b1220;
  --v3-text-2: #475569;
  --v3-text-3: #64748b;

  --v3-primary: #0071e3;
  --v3-primary-hover: #005bbf;
  --v3-primary-deep: #0b2247;
  --v3-primary-soft: rgba(0, 113, 227, 0.08);
  --v3-primary-border: rgba(0, 113, 227, 0.20);
  --v3-navy-grad: linear-gradient(140deg, #0b1930 0%, #11264a 52%, #153463 100%);

  --v3-success: #059669;
  --v3-success-soft: rgba(5, 150, 105, 0.09);
  --v3-success-border: rgba(5, 150, 105, 0.22);

  --v3-warn: #b45309;
  --v3-warn-soft: rgba(217, 119, 6, 0.09);
  --v3-warn-border: rgba(217, 119, 6, 0.22);

  --v3-gold: #b45309;
  --v3-gold-accent: #d97706;
  --v3-gold-soft: rgba(217, 119, 6, 0.09);
  --v3-gold-border: rgba(217, 119, 6, 0.22);

  --v3-danger: #dc2626;
  --v3-danger-soft: rgba(220, 38, 38, 0.09);
  --v3-danger-border: rgba(220, 38, 38, 0.22);

  --v3-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --v3-shadow-sm: 0 2px 10px -2px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --v3-shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
  --v3-shadow-lg: 0 24px 60px -16px rgba(15, 23, 42, 0.22);

  --v3-radius-xs: 8px;
  --v3-radius-sm: 12px;
  --v3-radius-md: 16px;
  --v3-radius-lg: 22px;
  --v3-radius-pill: 999px;

  --v3-font: 'Vazirmatn', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --v3-font-num: 'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --v3-header-h: 64px;
  --v3-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Popover elevated surface */
  --v3-popover-bg: #ffffff;

  /* Legacy variable aliases so inline styles & JS stay synchronized */
  --bg-page: var(--v3-bg);
  --bg-surface: var(--v3-surface);
  --bg-card: var(--v3-surface);
  --bg-card-inner: var(--v3-surface-2);
  --border-color: var(--v3-border);
  --text-main: var(--v3-text);
  --text-sub: var(--v3-text-2);
  --text-muted: var(--v3-text-3);
  --brand-primary: var(--v3-primary);
  --ks-surface: var(--v3-surface);
  --ks-surface-2: var(--v3-surface-2);
  --ks-line: var(--v3-border);
  --ks-line-strong: var(--v3-border-strong);
  --ks-text: var(--v3-text);
  --ks-text-2: var(--v3-text-2);
  --ks-text-3: var(--v3-text-3);
  --ks-emerald: var(--v3-success);
  --kh-btn-ink: var(--v3-text);
  --ksv-surface: var(--v3-surface);
  --ksv-surface-2: var(--v3-surface-2);
  --ksv-surface-subtle: var(--v3-surface-2);
  --ksv-border: var(--v3-border);
  --ksv-border-strong: var(--v3-border-strong);
  --ksv-text: var(--v3-text);
  --ksv-text-muted: var(--v3-text-3);
  --ksv-blue: var(--v3-primary);
  --ksv-primary: var(--v3-primary);
  --ksv-blue-light: var(--v3-primary-soft);
  --ksv-gold: #d97706;
  --ksv-gold-bg: var(--v3-warn-soft);
  --ksv-green: var(--v3-success);
  --ksv-green-bg: var(--v3-success-soft);
}

html[data-theme="dark-mode"],
html[data-theme="dark"],
html.dark-mode,
body.dark-mode {
  --v3-bg: #070c16;
  --v3-surface: #0f1726;
  --v3-surface-2: #162134;
  --v3-surface-3: #1e2c44;
  --v3-glass: rgba(10, 16, 28, 0.88);
  --v3-glass-strong: rgba(15, 23, 38, 0.97);
  --v3-popover-bg: #121c30;

  --v3-border: rgba(255, 255, 255, 0.08);
  --v3-border-strong: rgba(255, 255, 255, 0.15);

  --v3-text: #f8fafc;
  --v3-text-2: #cbd5e1;
  --v3-text-3: #8e9fb6;

  --v3-primary: #3b9eff;
  --v3-primary-hover: #60b2ff;
  --v3-primary-deep: #0b1930;
  --v3-primary-soft: rgba(59, 158, 255, 0.13);
  --v3-primary-border: rgba(59, 158, 255, 0.28);
  --v3-navy-grad: linear-gradient(140deg, #081224 0%, #0e203d 52%, #122b52 100%);

  --v3-success: #34d399;
  --v3-success-soft: rgba(52, 211, 153, 0.13);
  --v3-success-border: rgba(52, 211, 153, 0.26);

  --v3-warn: #fbbf24;
  --v3-warn-soft: rgba(251, 191, 36, 0.12);
  --v3-warn-border: rgba(251, 191, 36, 0.26);

  --v3-gold: #fbbf24;
  --v3-gold-accent: #f59e0b;
  --v3-gold-soft: rgba(251, 191, 36, 0.12);
  --v3-gold-border: rgba(251, 191, 36, 0.26);

  --v3-danger: #f87171;
  --v3-danger-soft: rgba(248, 113, 113, 0.13);
  --v3-danger-border: rgba(248, 113, 113, 0.26);

  --v3-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
  --v3-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.34);
  --v3-shadow-md: 0 16px 40px -12px rgba(0, 0, 0, 0.58);
  --v3-shadow-lg: 0 28px 70px -14px rgba(0, 0, 0, 0.78);

  /* Explicit dark re-bindings so body.dark-mode & inline var(--ks-*) / var(--ksv-*) always switch */
  --bg-page: #070c16;
  --bg-surface: #0f1726;
  --bg-card: #0f1726;
  --bg-card-inner: #162134;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #8e9fb6;
  --brand-primary: #3b9eff;
  --ks-surface: #0f1726;
  --ks-surface-2: #162134;
  --ks-line: rgba(255, 255, 255, 0.08);
  --ks-line-strong: rgba(255, 255, 255, 0.15);
  --ks-text: #f8fafc;
  --ks-text-2: #cbd5e1;
  --ks-text-3: #8e9fb6;
  --ks-emerald: #34d399;
  --kh-btn-ink: #f8fafc;
  --ksv-surface: #0f1726;
  --ksv-surface-2: #162134;
  --ksv-surface-subtle: #162134;
  --ksv-border: rgba(255, 255, 255, 0.08);
  --ksv-border-strong: rgba(255, 255, 255, 0.15);
  --ksv-text: #f8fafc;
  --ksv-text-muted: #94a3b8;
  --ksv-blue: #2997ff;
  --ksv-primary: #2997ff;
  --ksv-blue-light: rgba(41, 151, 255, 0.14);
  --ksv-gold: #fbbf24;
  --ksv-gold-bg: rgba(251, 191, 36, 0.14);
  --ksv-green: #34d399;
  --ksv-green-bg: rgba(52, 211, 153, 0.14);
}

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--v3-bg);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--v3-font);
  background-color: var(--v3-bg);
  color: var(--v3-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}

body.ksv-modal-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.font-inter {
  font-family: var(--v3-font-num);
  font-variant-numeric: tabular-nums;
}

.sr-only,
.ksv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}

.icon-gold { color: var(--v3-gold-accent); }
.icon-blue { color: var(--v3-primary); }
.icon-zap { color: var(--v3-primary); }
.icon-flame { color: var(--v3-gold-accent); }

/* SPA Progress Bar */
#ksv-instant-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--v3-primary), var(--v3-primary-hover));
  z-index: 200000;
  pointer-events: none;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   1. Sticky Frosted Glass Header & Slim Ticker
   -------------------------------------------------------------------------- */
html.ksv-ticker-hidden #ksv-vip-top-ticker {
  display: none;
}

.header-sticky#ksv-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--v3-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--v3-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Top Announcement Ticker */
.ksv-vip-ticker-bar {
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.08), rgba(14, 165, 233, 0.06));
  border-bottom: 1px solid var(--v3-border);
  padding: 6px 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ksv-vip-ticker-bar.is-dismissed {
  opacity: 0;
  transform: translateY(-8px);
}

.ticker-compact-pill-wrap {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
}

.ticker-badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-badge-sparkle svg {
  width: 12px;
  height: 12px;
}

.ticker-static-text {
  color: var(--v3-text-2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ticker-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.ticker-action-pill:hover {
  background: var(--v3-primary-hover);
}

.ticker-action-ico svg {
  width: 12px;
  height: 12px;
}

.ticker-dismiss-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--v3-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ticker-dismiss-btn:hover {
  background: var(--v3-surface-2);
  color: var(--v3-text);
}

/* Main Nav Row */
.nav-container {
  height: var(--v3-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo-image-frame {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  box-shadow: var(--v3-shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  flex-shrink: 0;
}

.brand-logo-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--v3-font-num);
  font-weight: 900;
  font-size: 14.5px;
  letter-spacing: -0.02em;
  color: var(--v3-text);
  line-height: 1.1;
}

.brand-vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-slogan {
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-text-3);
  line-height: 1.2;
}

/* Desktop Nav Menu */
.nav-menu-bar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu-link {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--v3-text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-menu-link:hover {
  background: var(--v3-surface-2);
  color: var(--v3-text);
}

.nav-menu-link.active {
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
}

.nav-menu-ico {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}

/* Live Search Capsule */
.nav-search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 160px;
}

.ksv-mobile-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav-search-bar {
  flex: 1 1 auto;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v3-text-3);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.nav-search-bar:focus-within {
  background: var(--v3-surface);
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 3px var(--v3-primary-soft);
}

.ksv-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--v3-text);
}

.ksv-search-input::placeholder {
  color: var(--v3-text-3);
  font-weight: 500;
}

.btn-clear-search {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--v3-surface-3);
  color: var(--v3-text-2);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-search-shortcut {
  font-family: var(--v3-font-num);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--v3-text-3);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  border-radius: 6px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.btn-close-mobile-search {
  display: none;
  border: none;
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
}

/* Search Dropdown — Solid elevated surface so nested backdrop-filter never washes out */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  min-width: 290px;
  background: var(--v3-popover-bg);
  border: 1px solid var(--v3-border-strong);
  border-radius: var(--v3-radius-md);
  box-shadow: 0 22px 54px -14px rgba(15, 23, 42, 0.28), 0 4px 14px rgba(15, 23, 42, 0.08);
  padding: 6px;
  flex-direction: column;
  gap: 2px;
  z-index: 1500;
  max-height: 380px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.search-result-item:hover {
  background: var(--v3-surface-2);
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 16px;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--v3-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 11px;
  color: var(--v3-text-3);
  font-weight: 600;
}

.search-result-price {
  font-family: var(--v3-font-num);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-empty-state {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--v3-text-2);
}

.search-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 4px;
  margin-top: 4px;
  border-top: 1px solid var(--v3-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--v3-text-3);
}

/* Header Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.icon-circle-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface);
  color: var(--v3-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.icon-circle-btn:hover {
  background: var(--v3-surface-2);
  border-color: var(--v3-border-strong);
  color: var(--v3-text);
}

.icon-circle-btn:active {
  transform: scale(0.95);
}

.header-search-toggle-mobile {
  display: none;
}

.header-notif-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-danger);
  color: #ffffff;
  font-family: var(--v3-font-num);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--v3-surface);
}

.header-notif-badge.is-hidden,
.notif-dropdown-badge.is-hidden {
  display: none;
}

/* Sign In / Register Button */
.btn-auth-nav {
  appearance: none;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0, 113, 227, 0.45);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn-auth-nav:hover {
  background: var(--v3-primary-hover);
}

.btn-auth-nav:active {
  transform: scale(0.97);
}

/* User Profile Pill */
.user-menu-wrap {
  position: relative;
}

.user-profile-pill {
  height: 38px;
  padding: 3px 10px 3px 4px;
  border-radius: 12px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.user-profile-pill:hover {
  background: var(--v3-surface-2);
  border-color: var(--v3-border-strong);
}

.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.user-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
  flex-shrink: 1;
}

.user-caret {
  font-size: 9px;
  color: var(--v3-text-3);
  flex-shrink: 0;
}

/* Header Popovers (Solid elevated surfaces — avoids Chromium nested backdrop-filter washout!) */
.ksv-lang-dropdown,
.ksv-mobile-settings-dropdown,
.notif-dropdown-menu,
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background: var(--v3-popover-bg);
  border: 1px solid var(--v3-border-strong);
  border-radius: 18px;
  box-shadow: 0 24px 56px -14px rgba(15, 23, 42, 0.28), 0 4px 14px rgba(15, 23, 42, 0.08);
  z-index: 12050;
  display: none;
  flex-direction: column;
  animation: v3PopIn 0.18s var(--v3-ease);
}

html.dark-mode .ksv-lang-dropdown,
html[data-theme="dark-mode"] .ksv-lang-dropdown,
html.dark-mode .ksv-mobile-settings-dropdown,
html[data-theme="dark-mode"] .ksv-mobile-settings-dropdown,
html.dark-mode .notif-dropdown-menu,
html[data-theme="dark-mode"] .notif-dropdown-menu,
html.dark-mode .user-dropdown-menu,
html[data-theme="dark-mode"] .user-dropdown-menu,
html.dark-mode .nav-search-dropdown,
html[data-theme="dark-mode"] .nav-search-dropdown {
  box-shadow: 0 28px 64px -12px rgba(0, 0, 0, 0.84), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ksv-lang-dropdown.show,
.ksv-mobile-settings-dropdown.show,
.notif-dropdown-menu.show,
.user-dropdown-menu.show {
  display: flex;
}

@keyframes v3PopIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ksv-lang-dropdown {
  min-width: 156px;
  padding: 6px;
  gap: 2px;
}

.ksv-lang-option {
  border: none;
  background: transparent;
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--v3-text);
  cursor: pointer;
}

.ksv-lang-option:hover {
  background: var(--v3-surface-2);
}

.ksv-lang-option.is-active {
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
}

.ksv-lang-option-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ksv-lang-code {
  font-family: var(--v3-font-num);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--v3-surface-2);
  color: var(--v3-text-2);
}

/* Mobile Quick Settings Popover */
.ksv-mobile-settings-dropdown {
  position: fixed;
  top: 64px;
  inset-inline-end: 12px;
  width: min(300px, calc(100vw - 24px));
  padding: 14px;
  gap: 12px;
}

.ksv-ms-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ksv-ms-row-between {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--v3-border);
}

.ksv-ms-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--v3-text-3);
}

.ksv-ms-segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}

.ksv-ms-seg-btn {
  appearance: none;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 11px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ksv-ms-seg-btn.is-active {
  background: var(--v3-primary);
  border-color: var(--v3-primary);
  color: #ffffff;
}

.ksv-ms-theme-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 11px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ksv-ms-theme-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--v3-primary);
}

/* Header Sheet Dim Backdrop (Sits below #ksv-header z-index:1050 so header stays crystal clear!) */
.notif-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 19, 0.36);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1040;
  display: none;
}

.notif-dropdown-backdrop.show {
  display: block;
}

.notif-dropdown-menu {
  width: min(350px, calc(100vw - 24px));
  overflow: hidden;
}

.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--v3-border);
}

.notif-dropdown-badge {
  padding: 2px 7px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  font-size: 11px;
  font-weight: 800;
}

.btn-dropdown-mark-all {
  border: none;
  background: transparent;
  color: var(--v3-primary);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.notif-dropdown-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-dropdown-empty {
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--v3-text-2);
}

.notif-dropdown-empty p {
  margin: 0;
}

.notif-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.notif-dropdown-item:hover {
  background: var(--v3-surface-2);
}

.notif-dropdown-item.is-unread {
  background: var(--v3-primary-soft);
}

.notif-dropdown-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: transparent;
  flex-shrink: 0;
}

.notif-dropdown-item.is-unread .notif-dropdown-item-dot {
  background: var(--v3-primary);
}

.notif-dropdown-item-body {
  flex: 1;
  min-width: 0;
}

.notif-dropdown-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.notif-dropdown-item-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
}

.notif-dropdown-item-time {
  font-size: 10.5px;
  color: var(--v3-text-3);
  white-space: nowrap;
}

.notif-dropdown-item-msg {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--v3-text-2);
  line-height: 1.45;
}

.notif-dropdown-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--v3-border);
  text-align: center;
}

.notif-dropdown-view-all {
  font-size: 12px;
  font-weight: 800;
  color: var(--v3-primary);
}

/* User Dropdown Menu */
.user-dropdown-menu {
  width: min(326px, calc(100vw - 24px));
  padding: 10px;
  gap: 6px;
}

.user-dropdown-head {
  padding: 11px;
  border-radius: 14px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
}

.user-dropdown-head-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.user-dropdown-head-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--v3-surface);
  border: 1.5px solid var(--v3-border-strong);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--v3-shadow-xs);
}

.user-dropdown-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown-head-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.user-dropdown-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.user-dropdown-head-name {
  font-size: 13.5px;
  font-weight: 850;
  color: var(--v3-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-dropdown-head-phone {
  font-size: 11.5px;
  font-family: var(--v3-font-num);
  color: var(--v3-text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.user-dropdown-head-actions {
  flex-shrink: 0;
}

.user-dropdown-currency-pill {
  height: 30px;
  border: 1px solid var(--v3-border-strong);
  background: var(--v3-surface);
  color: var(--v3-text);
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--v3-shadow-xs);
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.user-dropdown-currency-pill:hover {
  border-color: var(--v3-primary);
  color: var(--v3-primary);
}

.user-dropdown-currency-pill .curr-switch {
  color: var(--v3-primary);
  font-weight: 850;
}

.user-dropdown-vip-tag {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 2px 7px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-gold-soft, rgba(217, 119, 6, 0.11));
  border: 1px solid var(--v3-gold-border, rgba(217, 119, 6, 0.24));
  color: var(--v3-gold, #b45309);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-dropdown-items-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--v3-text);
  transition: background-color 0.14s ease, transform 0.12s ease;
}

.user-dropdown-item:hover {
  background: var(--v3-surface-2);
}

.user-dropdown-item:active {
  transform: scale(0.99);
}

.user-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-item-icon.ico-settings {
  background: var(--v3-surface-2);
  color: var(--v3-text-2);
}

.user-item-title {
  flex: 1;
}

.user-item-arrow {
  color: var(--v3-text-3);
}

.user-dropdown-quick-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.user-quick-btn {
  height: 40px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  border-radius: 12px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.12s ease;
}

.user-quick-btn:hover {
  border-color: var(--v3-primary-border);
  background: var(--v3-surface);
}

.user-quick-btn:active {
  transform: scale(0.97);
}

.user-quick-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-quick-ico.ico-fav {
  color: var(--v3-danger);
}

.user-quick-ico.ico-theme {
  color: var(--v3-primary);
}

.user-dropdown-sep {
  border: none;
  border-top: 1px solid var(--v3-border);
  margin: 1px 0;
}

.user-dropdown-item-logout {
  color: var(--v3-danger);
}

.user-dropdown-item-logout .user-item-icon {
  background: var(--v3-danger-soft);
  color: var(--v3-danger);
}

/* --------------------------------------------------------------------------
   2. Native Docked Mobile Tab Bar & iPadOS Centered Tablet Dock (Scroll-Aware)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {
  /* Hide top ticker bar on touch/iOS viewports so fixed #ksv-header sits flush at top:0 with zero overlap */
  .ksv-vip-ticker-bar {
    display: none;
  }

  /* Fixed Top Header on Mobile & Tablet — eliminates iOS 26 Safari / Telegram In-App sticky gap above header */
  .header-sticky#ksv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--v3-surface) 97%, transparent);
    backdrop-filter: saturate(185%) blur(20px);
    -webkit-backdrop-filter: saturate(185%) blur(20px);
  }

  /* Solid top overscroll shield above safe-area so scrolled cards NEVER peek above #ksv-header */
  .header-sticky#ksv-header::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 80px;
    background: var(--v3-surface);
    pointer-events: none;
  }

  #ksv-page-stage {
    padding-top: calc(var(--v3-header-h, 64px) + env(safe-area-inset-top, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 4px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background: color-mix(in srgb, var(--v3-surface) 97%, transparent);
    backdrop-filter: saturate(190%) blur(24px);
    -webkit-backdrop-filter: saturate(190%) blur(24px);
    border-top: 1px solid var(--v3-border);
    box-shadow: 0 -8px 26px -12px rgba(15, 23, 42, 0.14);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    z-index: 950;
    overflow: visible;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    will-change: transform;
  }

  /* Bottom shield below safe-area so page text NEVER peeks under the mobile dock on iOS 26 Safari */
  .mobile-bottom-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 90px;
    background: var(--v3-surface);
    pointer-events: none;
  }

  html.ksv-dock-hidden .mobile-bottom-nav {
    transform: translateY(calc(100% + 34px));
    opacity: 0;
    pointer-events: none;
  }

  html.dark-mode .mobile-bottom-nav,
  html[data-theme="dark-mode"] .mobile-bottom-nav {
    background: color-mix(in srgb, var(--v3-surface) 92%, transparent);
    box-shadow: 0 -10px 32px -12px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .mobile-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5px;
    height: 48px;
    border-radius: 14px;
    color: var(--v3-text-3);
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
    min-width: 0;
  }

  .mobile-nav-item:active {
    transform: scale(0.94);
  }

  .mobile-nav-icon-wrap {
    position: relative;
    width: 28px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-svg {
    width: 20px;
    height: 20px;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-nav-svg .ksv-ico-fill {
    opacity: 0.11;
    transition: opacity 0.18s ease;
  }

  .mobile-nav-svg .ksv-ico-stroke,
  .mobile-nav-svg .ksv-ico-door {
    transition: stroke 0.18s ease, opacity 0.18s ease;
  }

  .mobile-nav-item.active .mobile-nav-svg {
    transform: translateY(-1px) scale(1.06);
  }

  .mobile-nav-item.active .mobile-nav-svg .ksv-ico-fill {
    opacity: 0.22;
  }

  .mobile-nav-item.active .mobile-nav-svg .ksv-ico-door {
    stroke: var(--v3-primary);
    stroke-width: 2.15;
  }

  .mobile-nav-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-nav-indicator {
    display: none;
  }

  .mobile-nav-item.active {
    background: var(--v3-primary-soft);
    color: var(--v3-primary);
  }

  .mobile-nav-item.active .mobile-nav-label {
    font-weight: 800;
    color: var(--v3-primary);
  }

  /* 3D Protruding Luxury Metallic Gold VIP Crown Pod (Pops cleanly out above dock!) */
  .mobile-nav-item.mobile-nav-vip {
    position: relative;
    overflow: visible;
    color: #b45309;
  }

  .mobile-nav-item.mobile-nav-vip:active {
    transform: none;
  }

  .mobile-nav-item.mobile-nav-vip .vip-3d-dock-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding-bottom: 6px;
    border-radius: 14px;
    background: transparent;
    overflow: visible;
    transition: background-color 0.16s ease;
  }

  .mobile-nav-item.mobile-nav-vip .vip-3d-crown-wrap {
    position: absolute;
    left: 50%;
    top: -21px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 24%, #fde68a 0%, #f59e0b 45%, #d97706 78%, #92400e 100%);
    border: 3.5px solid var(--v3-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow:
      inset 0 2px 3px rgba(255, 255, 255, 0.72),
      inset 0 -3px 5px rgba(120, 53, 15, 0.42),
      0 8px 18px -4px rgba(217, 119, 6, 0.56),
      0 4px 10px -2px rgba(15, 23, 42, 0.2);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
  }

  html.dark-mode .mobile-nav-item.mobile-nav-vip .vip-3d-crown-wrap,
  html[data-theme="dark-mode"] .mobile-nav-item.mobile-nav-vip .vip-3d-crown-wrap {
    border-color: var(--v3-surface);
    box-shadow:
      inset 0 2px 3px rgba(255, 255, 255, 0.58),
      inset 0 -3px 6px rgba(120, 53, 15, 0.55),
      0 10px 22px -4px rgba(245, 158, 11, 0.5),
      0 4px 12px rgba(0, 0, 0, 0.6);
  }

  .mobile-nav-item.mobile-nav-vip .vip-3d-orb-sheen {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
  }

  .mobile-nav-item.mobile-nav-vip .vip-3d-shimmer-sweep {
    display: block;
    position: absolute;
    top: -40%;
    left: -120%;
    width: 60%;
    height: 180%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.62) 50%, transparent 100%);
    transform: rotate(18deg);
    animation: ksvVip3dSweep 5.5s ease-in-out infinite;
  }

  @keyframes ksvVip3dSweep {
    0%, 72% {
      transform: translateX(0) rotate(18deg);
      opacity: 0;
    }
    78% {
      opacity: 1;
    }
    94%, 100% {
      transform: translateX(460%) rotate(18deg);
      opacity: 0;
    }
  }

  .mobile-nav-item.mobile-nav-vip .vip-3d-crown-svg {
    position: relative;
    z-index: 2;
    width: 21px;
    height: 21px;
    filter: drop-shadow(0 1.5px 2px rgba(120, 53, 15, 0.45));
  }

  .vip-3d-crown-svg .ksv-crown-gem {
    fill: #fffbeb;
    opacity: 0.96;
  }

  .vip-3d-crown-svg .ksv-crown-spark {
    fill: #ffffff;
    opacity: 0.92;
  }

  .ksv-vip-live-dot {
    position: absolute;
    top: 1px;
    inset-inline-end: 0;
    z-index: 3;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid var(--v3-surface);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  }

  .mobile-nav-item.mobile-nav-vip .vip-3d-text {
    font-family: var(--v3-font-num);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #b45309;
  }

  html.dark-mode .mobile-nav-item.mobile-nav-vip .vip-3d-text,
  html[data-theme="dark-mode"] .mobile-nav-item.mobile-nav-vip .vip-3d-text {
    color: #fbbf24;
  }

  .mobile-nav-item.mobile-nav-vip:active .vip-3d-crown-wrap {
    transform: translateX(-50%) translateY(2.5px) scale(0.95);
    box-shadow:
      inset 0 2px 3px rgba(255, 255, 255, 0.5),
      inset 0 -2px 4px rgba(120, 53, 15, 0.48),
      0 4px 10px -3px rgba(217, 119, 6, 0.5);
  }

  .mobile-nav-item.mobile-nav-vip.active {
    background: var(--v3-gold-soft, rgba(217, 119, 6, 0.12));
    color: var(--v3-gold, #b45309);
  }

  .mobile-nav-item.mobile-nav-vip.active .vip-3d-crown-wrap {
    transform: translateX(-50%) translateY(-3px) scale(1.06);
    background: radial-gradient(circle at 30% 22%, #fef3c7 0%, #fbbf24 38%, #d97706 76%, #b45309 100%);
    box-shadow:
      inset 0 2px 4px rgba(255, 255, 255, 0.85),
      inset 0 -3px 5px rgba(120, 53, 15, 0.42),
      0 12px 24px -4px rgba(217, 119, 6, 0.68),
      0 0 0 2px rgba(251, 191, 36, 0.28);
  }

  .mobile-nav-item.mobile-nav-vip.active .vip-3d-text {
    color: var(--v3-gold, #b45309);
    font-weight: 900;
  }

  html.dark-mode .mobile-nav-item.mobile-nav-vip.active .vip-3d-text,
  html[data-theme="dark-mode"] .mobile-nav-item.mobile-nav-vip.active .vip-3d-text {
    color: #fde68a;
  }

  .mobile-nav-item.mobile-nav-profile.active .mobile-nav-avatar {
    box-shadow: 0 0 0 2px var(--v3-primary);
  }

  .mobile-nav-badge-dot {
    position: absolute;
    top: -4px;
    inset-inline-end: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--v3-radius-pill);
    background: var(--v3-danger);
    color: #ffffff;
    font-family: var(--v3-font-num);
    font-size: 9.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-avatar {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--v3-primary);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
  }
}

/* Tablet (768px - 991.98px): Centered iPadOS Floating Capsule Dock + Roomy Header */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mobile-bottom-nav {
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(460px, calc(100vw - 48px));
    height: 60px;
    padding: 5px 8px;
    border-radius: 22px;
    border: 1px solid var(--v3-border);
    box-shadow: 0 16px 38px -12px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.06);
    transform: translateX(-50%);
  }

  .mobile-bottom-nav::after {
    display: none;
  }

  html.ksv-dock-hidden .mobile-bottom-nav {
    transform: translate(-50%, calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
  }

  html.dark-mode .mobile-bottom-nav,
  html[data-theme="dark-mode"] .mobile-bottom-nav {
    box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 767.98px) {
  :root {
    --v3-header-h: 56px;
  }

  /* Responsive Header Adjustments */
  .ksv-vip-ticker-bar {
    display: none;
  }

  .nav-menu-bar,
  .brand-slogan {
    display: none;
  }

  .nav-actions > .lang-menu-wrap,
  .nav-actions > .header-currency-btn,
  .nav-actions > .header-theme-btn {
    display: none;
  }

  .nav-actions > .mobile-settings-wrap {
    display: inline-flex;
  }

  .header-search-toggle-mobile {
    display: inline-flex;
  }

  /* Hide header search icon on Home because Home has the App-First Search Bar right below! */
  body.ksv-v3-home .header-search-toggle-mobile {
    display: none;
  }

  .nav-search-wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: none;
    padding: 9px 12px;
    background: var(--v3-glass-strong);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--v3-border);
    z-index: 12060;
  }

  .nav-search-wrap.mobile-open,
  .nav-search-wrap.mobile-search-active {
    display: block;
  }

  .nav-search-wrap.mobile-open .btn-close-mobile-search,
  .nav-search-wrap.mobile-search-active .btn-close-mobile-search {
    display: inline-flex;
  }

  .nav-search-shortcut {
    display: none;
  }

  .nav-actions .icon-circle-btn,
  .nav-actions > .btn-auth-nav,
  .nav-actions .user-profile-pill {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    justify-content: center;
  }

  .nav-actions .user-profile-pill .user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .nav-actions > .btn-auth-nav .btn-auth-text,
  .user-profile-pill .user-name-text,
  .user-profile-pill .user-caret {
    display: none;
  }

  .notif-dropdown-empty .btn-auth-nav {
    width: auto;
    min-width: 150px;
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13px;
  }

  .ksv-mobile-settings-dropdown,
  .notif-dropdown-menu,
  .user-dropdown-menu {
    position: fixed;
    top: calc(var(--v3-header-h, 56px) + env(safe-area-inset-top, 0px) + 8px);
    left: auto;
    right: auto;
    inset-inline-start: auto;
    inset-inline-end: 12px;
    width: min(348px, calc(100vw - 24px));
    margin-inline: 0;
    border-radius: 20px;
    box-shadow: 0 24px 58px -12px rgba(15, 23, 42, 0.3), 0 0 0 1px var(--v3-border);
  }
}

@media (max-width: 1180px) and (min-width: 768px) {
  .nav-container {
    gap: 8px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-menu-bar {
    gap: 2px;
  }

  .nav-menu-link {
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
    gap: 4px;
  }

  .nav-search-wrap {
    flex: 1 1 110px;
    min-width: 90px;
    max-width: 210px;
  }

  .nav-search-shortcut {
    display: none;
  }

  .nav-actions {
    gap: 5px;
  }

  .icon-circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .btn-auth-nav {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    gap: 5px;
    border-radius: 10px;
  }

  .user-profile-pill {
    height: 34px;
    padding: 2px 8px 2px 3px;
    border-radius: 10px;
  }

  .user-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .user-name-text {
    max-width: 78px;
    font-size: 12px;
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  .nav-menu-bar,
  .brand-slogan {
    display: none;
  }

  .nav-actions > .lang-menu-wrap,
  .nav-actions > .header-currency-btn,
  .nav-actions > .header-theme-btn,
  .header-search-toggle-mobile {
    display: none;
  }

  .nav-actions > .mobile-settings-wrap {
    display: inline-flex;
  }

  /* Roomy inline search bar directly in iPad header (no cramped nav-menu-bar!) */
  .nav-search-wrap {
    display: block;
    position: relative;
    flex: 1 1 260px;
    max-width: 420px;
    min-width: 180px;
  }

  footer.store-footer.ksv-signature-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 992px) {
  .mobile-only-control,
  .mobile-settings-wrap,
  #header-mobile-settings-dropdown {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   3. Clean Minimal Footer
   -------------------------------------------------------------------------- */
footer.store-footer.ksv-signature-footer {
  margin-top: 40px;
  padding: 36px 0 36px;
  background: var(--v3-surface);
  border-top: 1px solid var(--v3-border);
}

@media (max-width: 767.98px) {
  footer.store-footer.ksv-signature-footer {
    margin-top: 28px;
    padding: 28px 0 calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

.ksv-footer-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.ksv-footer-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ksv-brand-combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ksv-brand-name-text {
  font-family: var(--v3-font-num);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--v3-text);
}

.ksv-brand-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--v3-text-3);
}

.v3-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

@media (min-width: 960px) {
  .v3-footer-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
}

.v3-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v3-footer-brand-col {
  align-items: center;
  text-align: center;
}

@media (min-width: 960px) {
  .v3-footer-brand-col {
    align-items: flex-start;
    text-align: start;
  }
}

.v3-footer-tagline {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--v3-text-2);
  max-width: 340px;
}

.v3-footer-col-title {
  font-size: 12px;
  font-weight: 850;
  color: var(--v3-text-3);
  letter-spacing: 0.01em;
}

.ksv-footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 960px) {
  .ksv-footer-social-row {
    justify-content: flex-start;
  }
}

.ksv-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  color: var(--v3-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ksv-social-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.ksv-social-btn.wa:hover { background: #16a34a; border-color: #16a34a; }
.ksv-social-btn.tg:hover { background: #0284c7; border-color: #0284c7; }
.ksv-social-btn.ig:hover { background: #e1306c; border-color: #e1306c; }
.ksv-social-btn.tt:hover { background: #111827; border-color: #111827; }
.ksv-social-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.ksv-social-btn.yt:hover { background: #dc2626; border-color: #dc2626; }

.ksv-footer-links-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ksv-link-divider {
  display: none;
}

.ksv-footer-link-col {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 13px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.ksv-footer-link-col:hover {
  border-color: var(--v3-primary-border);
  background: var(--v3-surface);
  transform: translateY(-1px);
}

.ksv-link-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ksv-link-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  min-width: 0;
  flex: 1;
}

.ksv-link-primary {
  font-size: 13px;
  font-weight: 800;
  color: var(--v3-text);
  line-height: 1.25;
}

.ksv-link-secondary {
  font-size: 11px;
  color: var(--v3-text-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Balanced 2x2 Payment Grid (Zero Orphan Badge on Mobile or Desktop!) */
.ksv-footer-payments-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ksv-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  font-family: var(--v3-font-num);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
}

.ksv-pay-badge-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ksv-pay-badge-img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  border-radius: 4px;
}

.ksv-pay-red {
  color: #e11d48;
}

.v3-footer-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--v3-success);
  padding: 7px 11px;
  border-radius: 11px;
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
}

.v3-footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--v3-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 767.98px) {
  .v3-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.ksv-footer-copy-text {
  font-family: var(--v3-font-num);
  font-size: 12px;
  font-weight: 600;
  color: var(--v3-text-3);
}

.v3-footer-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--v3-text-2);
}

/* --------------------------------------------------------------------------
   4. Floating Quick Support / Live Chat Dock (Desktop & Mobile above bottom nav)
   -------------------------------------------------------------------------- */
.ksv-floating-dock {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 900;
}

.ksv-floating-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 19, 0.35);
  display: none;
  z-index: 890;
}

.ksv-floating-dock.is-open .ksv-floating-backdrop {
  display: block;
}

.ksv-floating-buttons-stack {
  position: relative;
  z-index: 905;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ksv-floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid var(--v3-border);
  background: var(--v3-glass-strong);
  backdrop-filter: blur(16px);
  color: var(--v3-text);
  box-shadow: var(--v3-shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.ksv-floating-btn:hover {
  transform: translateY(-2px);
}

.ksv-floating-support-btn {
  background: var(--v3-primary);
  border-color: var(--v3-primary);
  color: #ffffff;
}

.ksv-floating-theme-btn .theme-svg-sun { display: none; }
html.dark-mode .ksv-floating-theme-btn .theme-svg-moon,
html[data-theme="dark-mode"] .ksv-floating-theme-btn .theme-svg-moon { display: none; }
html.dark-mode .ksv-floating-theme-btn .theme-svg-sun,
html[data-theme="dark-mode"] .ksv-floating-theme-btn .theme-svg-sun { display: block; }

.ksv-floating-support-btn .support-svg-close { display: none; }
.ksv-floating-dock.is-open .support-svg-open { display: none; }
.ksv-floating-dock.is-open .support-svg-close { display: block; }

.support-btn-pulse-beacon {
  position: absolute;
  top: 7px;
  inset-inline-end: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid var(--v3-primary);
}

.ksv-floating-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  inset-inline-end: 0;
  width: 300px;
  border-radius: 20px;
  background: var(--v3-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--v3-border);
  box-shadow: var(--v3-shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 910;
}

.ksv-floating-dock.is-open .ksv-floating-menu {
  display: block;
  animation: v3PopIn 0.18s var(--v3-ease);
}

.ksv-floating-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--v3-border);
}

.menu-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-header-texts {
  flex: 1;
  min-width: 0;
}

.menu-header-texts strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.menu-header-texts small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--v3-text-3);
}

.live-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.menu-header-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--v3-surface-2);
  color: var(--v3-text-2);
  font-size: 18px;
  cursor: pointer;
}

.ksv-floating-menu-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ksv-support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
}

.support-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.support-link-icon.wa { background: #25d366; }
.support-link-icon.tg { background: #229ed9; }

.support-link-info {
  flex: 1;
  min-width: 0;
}

.support-link-info strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.support-link-info small {
  font-size: 11px;
  color: var(--v3-text-3);
}

.support-link-action {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--v3-primary);
}

.ksv-support-link-more {
  border: none;
  background: transparent;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-text-2);
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .ksv-floating-dock {
    display: block;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 10px;
    z-index: 960;
    transition: bottom 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s ease, opacity 0.2s ease;
  }

  /* Auto-hide floating support FAB when the Support Card or Footer is on screen (prevents covering SuperQi/Footer) */
  html.ksv-support-fab-hidden .ksv-floating-dock {
    opacity: 0;
    transform: translateY(18px) scale(0.86);
    pointer-events: none;
  }

  /* When bottom nav auto-hides while scrolling down, glide chat FAB neatly down to the corner */
  html.ksv-dock-hidden .ksv-floating-dock {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .ksv-floating-dock .ksv-floating-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.92), 0 8px 20px -6px rgba(0, 113, 227, 0.5);
  }

  .ksv-floating-dock .ksv-floating-btn .support-svg {
    width: 18px;
    height: 18px;
  }

  .ksv-floating-dock .support-btn-pulse-beacon {
    top: 6px;
    inset-inline-end: 6px;
    width: 7px;
    height: 7px;
    border-width: 1.5px;
  }

  html.dark-mode .ksv-floating-dock .ksv-floating-btn,
  html[data-theme="dark-mode"] .ksv-floating-dock .ksv-floating-btn {
    box-shadow: 0 0 0 2.5px rgba(15, 23, 42, 0.92), 0 8px 22px -6px rgba(0, 0, 0, 0.65);
  }

  .ksv-floating-dock .ksv-floating-menu {
    width: min(300px, calc(100vw - 24px));
  }
}

/* --------------------------------------------------------------------------
   5. Shared Modals & Apple Native Bottom-Sheet System
   -------------------------------------------------------------------------- */
.ksv-modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(6, 10, 19, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.ksv-modal-backdrop.show,
.ksv-modal-backdrop.active,
.modal-overlay.show,
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.ksv-modal-dialog,
.modal-container {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: min(90dvh, 840px);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  border-radius: 24px;
  box-shadow: var(--v3-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: v3SheetDesktop 0.24s var(--v3-ease);
}

@keyframes v3SheetDesktop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767.98px) {
  .ksv-modal-backdrop,
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .ksv-modal-dialog,
  .modal-container {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    border-bottom: none;
    animation: v3SheetMobile 0.28s var(--v3-ease);
  }

  .ksv-modal-dialog::before,
  .modal-container::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--v3-border-strong);
    margin: 9px auto 2px;
    flex-shrink: 0;
  }

  @keyframes v3SheetMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

.modal-header-clean,
.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--v3-border);
  flex-shrink: 0;
}

.modal-title-box,
.contact-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.modal-product-icon,
.contact-header-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.modal-product-titles h3,
.contact-header-titles h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 900;
  color: var(--v3-text);
  line-height: 1.25;
}

.modal-product-titles p,
.contact-header-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--v3-text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-close-btn,
.btn-close-modal,
.contact-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-2);
  color: var(--v3-text-2);
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close-btn:hover,
.btn-close-modal:hover,
.contact-modal-close-btn:hover {
  background: var(--v3-surface-3);
  color: var(--v3-text);
}

.modal-body-scroll,
.contact-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 0px));
}

/* About Us Modal — Apple / Fintech Pro v3 */
.about-modal-dialog,
.contact-modal-dialog {
  max-width: 520px;
}

.about-brand-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid var(--v3-primary-border);
  box-shadow: var(--v3-shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--v3-primary);
}

.about-brand-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.about-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--v3-primary-soft);
  border: 1px solid var(--v3-primary-border);
  color: var(--v3-primary);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.3;
}

.about-header-sub {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--v3-text-3);
}

.about-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-intro-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(155deg, var(--v3-surface-2) 0%, var(--v3-surface) 100%);
  border: 1px solid var(--v3-border);
}

.about-intro-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--v3-text-2);
  font-weight: 500;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  min-width: 0;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.about-pillar-card:hover {
  border-color: var(--v3-primary-border);
  transform: translateY(-1px);
}

.about-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-pillar-icon.is-blue {
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
}

.about-pillar-icon.is-green {
  background: var(--v3-success-soft);
  color: var(--v3-success);
}

.about-pillar-icon.is-gold {
  background: var(--v3-gold-soft, rgba(217, 119, 6, 0.11));
  color: var(--v3-gold-accent, #d97706);
}

.about-pillar-icon.is-indigo {
  background: rgba(99, 102, 241, 0.11);
  color: #6366f1;
}

.about-pillar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.about-pillar-copy strong {
  font-size: 12.5px;
  font-weight: 850;
  color: var(--v3-text);
  line-height: 1.3;
}

.about-pillar-copy span {
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-text-3);
  line-height: 1.45;
}

.about-payments-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
}

.about-payments-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-text-3);
}

.about-payments-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  font-family: var(--v3-font-num);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--v3-text);
}

.about-pay-chip img {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  object-fit: contain;
}

.about-modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 2px;
}

.about-btn-primary {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  border: none;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(0, 113, 227, 0.42);
  transition: background-color 0.16s ease, transform 0.14s ease;
}

.about-btn-primary:hover {
  background: var(--v3-primary-hover);
  transform: translateY(-1px);
}

.about-btn-secondary {
  height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid var(--v3-border-strong);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.about-btn-secondary:hover {
  background: var(--v3-surface-3);
}

@media (max-width: 480px) {
  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Contact Modal — Apple / Fintech Pro v3 Support Hub */
.contact-hours-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  margin-bottom: 14px;
}

.contact-hours-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-hours-info {
  flex: 1;
  min-width: 0;
}

.contact-hours-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-hours-label {
  font-size: 12.5px;
  font-weight: 850;
  color: var(--v3-text);
}

.contact-hours-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-success);
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
  padding: 2.5px 9px;
  border-radius: var(--v3-radius-pill);
}

.contact-hours-live-pill.is-offline {
  color: var(--v3-warn, #d97706);
  background: var(--v3-warn-soft, rgba(217, 119, 6, 0.1));
  border-color: var(--v3-warn-border, rgba(217, 119, 6, 0.25));
}

.hours-beacon-dot,
.contact-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.contact-pulse-dot.is-online,
.contact-hours-live-pill.is-online .hours-beacon-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.contact-pulse-dot.is-offline,
.contact-hours-live-pill.is-offline .hours-beacon-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.contact-hours-time-row {
  margin-top: 7px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-hours-primary-time {
  font-family: var(--v3-font-num);
  font-size: 15px;
  font-weight: 900;
  color: var(--v3-text);
  letter-spacing: -0.01em;
}

.contact-hours-daily-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 7px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  color: var(--v3-text-2);
}

.contact-hours-footnote {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--v3-text-3);
}

.contact-channels-header {
  margin-bottom: 10px;
}

.contact-channels-badge {
  font-size: 11.5px;
  font-weight: 850;
  color: var(--v3-text-2);
}

/* Featured Built-In Live Website Chat Spotlight */
.contact-livechat-banner {
  width: 100%;
  margin-bottom: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--v3-primary-border);
  background: linear-gradient(135deg, var(--v3-primary-soft) 0%, var(--v3-surface-2) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.contact-livechat-banner:hover {
  border-color: var(--v3-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(0, 113, 227, 0.35);
}

.contact-livechat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--v3-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -5px rgba(0, 113, 227, 0.5);
}

.contact-livechat-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-livechat-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.contact-livechat-title-row strong {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--v3-text);
}

.contact-livechat-fast-pill {
  padding: 1.5px 7px;
  border-radius: 999px;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.contact-livechat-copy > span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--v3-text-2);
  line-height: 1.45;
}

.contact-livechat-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-primary-border);
  color: var(--v3-primary);
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
  flex-shrink: 0;
}

html[dir="rtl"] .ksv-dir-arrow {
  transform: scaleX(-1);
}

.contact-modal-buttons-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-channel-card {
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-decoration: none;
  text-align: start;
  min-width: 0;
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.contact-channel-card.wa:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.48);
  background: linear-gradient(160deg, rgba(37, 211, 102, 0.08), var(--v3-surface-2));
}

.contact-channel-card.tg:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 158, 217, 0.48);
  background: linear-gradient(160deg, rgba(34, 158, 217, 0.08), var(--v3-surface-2));
}

.channel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.channel-card-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.channel-copy-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface);
  color: var(--v3-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.channel-copy-btn:hover {
  background: var(--v3-primary-soft);
  border-color: var(--v3-primary-border);
  color: var(--v3-primary);
}

.channel-card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-card-icon-wrap.wa {
  background: linear-gradient(135deg, #25d366, #16a34a);
  box-shadow: 0 5px 12px -4px rgba(22, 163, 74, 0.48);
}

.channel-card-icon-wrap.tg {
  background: linear-gradient(135deg, #29b6f6, #0284c7);
  box-shadow: 0 5px 12px -4px rgba(2, 132, 199, 0.48);
}

.channel-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  color: var(--v3-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[dir="rtl"] .channel-card-arrow svg {
  transform: scaleX(-1);
}

.channel-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.channel-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--v3-text);
}

.channel-card-contact {
  font-family: var(--v3-font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-text-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card-action-tag {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.channel-card-action-tag.wa {
  background: rgba(22, 163, 74, 0.11);
  color: #15803d;
}

.channel-card-action-tag.tg {
  background: rgba(2, 132, 199, 0.11);
  color: #0369a1;
}

html[data-theme="dark-mode"] .channel-card-action-tag.wa,
html[data-theme="dark"] .channel-card-action-tag.wa,
html.dark-mode .channel-card-action-tag.wa,
body.dark-mode .channel-card-action-tag.wa {
  color: #4ade80;
}

html[data-theme="dark-mode"] .channel-card-action-tag.tg,
html[data-theme="dark"] .channel-card-action-tag.tg,
html.dark-mode .channel-card-action-tag.tg,
body.dark-mode .channel-card-action-tag.tg {
  color: #38bdf8;
}

.contact-trust-banner {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--v3-primary-soft);
  border: 1px solid var(--v3-primary-border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--v3-text-2);
}

.trust-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--v3-surface);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-trust-banner strong {
  color: var(--v3-primary);
  font-weight: 850;
}

@media (max-width: 480px) {
  .contact-livechat-banner {
    flex-wrap: wrap;
  }

  .contact-livechat-cta {
    width: 100%;
    justify-content: center;
  }

  .contact-modal-buttons-row {
    grid-template-columns: 1fr;
  }
}

/* Wishlist Modal */
.wishlist-modal-count-pill {
  padding: 2px 8px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  font-size: 11px;
  font-weight: 800;
}

.wishlist-empty-state {
  padding: 32px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wishlist-empty-icon { font-size: 36px; }
.wishlist-empty-state h4 { margin: 0; font-size: 16px; font-weight: 900; }
.wishlist-empty-state p { margin: 0; font-size: 13px; color: var(--v3-text-2); max-width: 320px; }

.btn-browse-catalog {
  margin-top: 8px;
  border: none;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wishlist-items-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wishlist-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
}

.wishlist-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--v3-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wishlist-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-card-details {
  flex: 1;
  min-width: 0;
}

.wishlist-card-details h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-price-tag {
  font-family: var(--v3-font-num);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-primary);
}

.wishlist-badge-stock {
  font-size: 11px;
  font-weight: 700;
  color: var(--v3-success);
}

.wishlist-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-wishlist-action-buy {
  border: none;
  background: var(--v3-primary);
  color: #ffffff;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.btn-wishlist-action-del {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface);
  color: var(--v3-text-3);
  cursor: pointer;
}

.wishlist-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--v3-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-clear-wishlist {
  border: 1px solid var(--v3-danger-border);
  background: var(--v3-danger-soft);
  color: var(--v3-danger);
  height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-close-wishlist {
  margin-inline-start: auto;
  border: 1px solid var(--v3-border);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Detached Floating Checkout Sheet (#package-modal) — Apple Pay Pro UX
   -------------------------------------------------------------------------- */
#package-modal.modal-overlay {
  padding: 20px 16px;
}

#package-modal .checkout-modal-container {
  max-width: 500px;
  max-height: min(84dvh, 720px);
  border-radius: 24px;
  border: 1px solid var(--v3-border-strong);
  box-shadow: 0 26px 64px -16px rgba(6, 10, 19, 0.36), 0 8px 22px -8px rgba(6, 10, 19, 0.16);
}

@media (max-width: 767.98px) {
  #package-modal.modal-overlay {
    align-items: flex-end;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  #package-modal .checkout-modal-container {
    width: 100%;
    max-width: 100%;
    max-height: min(84dvh, calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)));
    border-radius: 26px;
    border: 1px solid var(--v3-border-strong);
    box-shadow: 0 24px 58px -12px rgba(6, 10, 19, 0.42), 0 8px 20px -6px rgba(6, 10, 19, 0.2);
  }

  #package-modal .checkout-modal-container::before {
    margin: 8px auto 1px;
  }
}

/* Keyboard-Open / Short Viewport Focus Mode (Prevents Sticky Footer Blocking Inputs) */
#package-modal[data-ksm-short="1"] .checkout-modal-container {
  max-height: calc(100dvh - 16px);
}

#package-modal[data-ksm-short="1"] .modal-header-unified {
  padding: 7px 12px 9px;
}

#package-modal[data-ksm-short="1"] .pkg-compact-summary-bar.ksv-pinned-summary {
  padding: 6px 12px;
}

#package-modal[data-ksm-short="1"] .phase-actions {
  position: static;
  margin-top: 8px;
}

#package-modal .modal-header-unified {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--v3-border);
  background: var(--v3-surface);
  flex-shrink: 0;
}

/* Live 3-Step Animated Progress Track */
#package-modal .ksv-stepper-progress {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2.5px;
  background: var(--v3-surface-3);
  overflow: hidden;
  pointer-events: none;
}

#package-modal .ksv-stepper-progress-fill {
  height: 100%;
  width: 33.333%;
  background: linear-gradient(90deg, var(--v3-primary), var(--v3-success));
  border-radius: 999px;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#package-modal[data-active-phase="2"] .ksv-stepper-progress-fill {
  width: 66.666%;
}

#package-modal[data-active-phase="3"] .ksv-stepper-progress-fill {
  width: 100%;
}

#package-modal .checkout-stepper-bar {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 13px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
}

#package-modal .stepper-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 33px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-text-3);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

#package-modal .stepper-step .step-num {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--v3-surface-3);
  color: var(--v3-text-2);
  font-family: var(--v3-font-num);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#package-modal .stepper-step.active {
  background: var(--v3-surface);
  color: var(--v3-text);
  font-weight: 800;
  box-shadow: var(--v3-shadow-xs);
  cursor: default;
}

#package-modal .stepper-step.active .step-num {
  background: var(--v3-primary);
  color: #ffffff;
}

#package-modal .stepper-step.completed {
  color: var(--v3-success);
  cursor: pointer;
}

#package-modal .stepper-step.completed:hover {
  background: var(--v3-success-soft);
}

#package-modal .stepper-step.completed .step-num {
  background: var(--v3-success);
  color: #ffffff;
}

#package-modal .stepper-step.is-future {
  opacity: 0.62;
}

#package-modal .stepper-step.is-future:hover {
  opacity: 0.9;
  background: var(--v3-surface-3);
}

/* Modal Body & Skeleton (Exact 14px horizontal padding, zero overflow) */
#package-modal .modal-body-scroll {
  padding: 11px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

#package-modal.is-modal-loading #pkg-header-content-wrapper,
#package-modal.is-modal-loading #pkg-compact-summary-bar,
#package-modal.is-modal-loading #order-form {
  display: none !important;
}

.ksv-pkg-skeleton {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-bottom: 18px;
}

.ksv-pkg-skeleton[hidden] {
  display: none;
}

.ksv-skel-block {
  border-radius: 14px;
  background: linear-gradient(90deg, var(--v3-surface-2) 25%, var(--v3-surface-3) 50%, var(--v3-surface-2) 75%);
  background-size: 200% 100%;
  animation: v3Shimmer 1.2s infinite linear;
}

@keyframes v3Shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.ksv-skel-head { display: flex; gap: 12px; align-items: center; }
.ksv-skel-icon { width: 48px; height: 48px; flex-shrink: 0; }
.ksv-skel-meta { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ksv-skel-title { height: 18px; width: 65%; }
.ksv-skel-sub { height: 13px; width: 42%; }
.ksv-skel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ksv-skel-tile { height: 54px; }
.ksv-skel-card { height: 96px; }
.ksv-skel-btn { height: 50px; }

/* Compact Single-Row Product Hero Strip in Phase 1 (Zero Metric Box Bloat!) */
#pkg-header-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-head-banner.ksv-compact-hero {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
}

.pkg-head-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--v3-primary);
  font-size: 22px;
}

.pkg-head-icon img,
.ksm-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-head-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pkg-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pkg-modal-card-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--v3-text);
  line-height: 1.25;
}

.pkg-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-success-soft);
  color: var(--v3-success);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.pkg-hero-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--v3-text-2);
}

.pkg-hero-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pkg-hero-meta-chip strong {
  font-weight: 700;
  font-size: 11.5px;
  color: inherit;
}

.pkg-hero-meta-chip.is-stock strong {
  color: var(--v3-success);
  font-weight: 800;
}

.pkg-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v3-success);
  flex-shrink: 0;
}

.pkg-hero-sep {
  color: var(--v3-border-strong);
  font-weight: 900;
}

.pkg-hero-price-col {
  flex: 0 0 auto;
  text-align: end;
  padding-inline-start: 6px;
}

/* On multi-plan products, price is displayed clearly on each plan card + live CTA button */
#package-modal.has-multi-options .pkg-hero-price-col {
  display: none;
}

.pkg-hero-price-col .pkg-modal-price {
  display: block;
  color: var(--v3-primary);
}

.pkg-hero-price-col .vip-price-label {
  display: none;
}

.vip-price-top-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.vip-discount-pill-tag {
  font-family: var(--v3-font-num);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--v3-success-soft);
  color: var(--v3-success);
  white-space: nowrap;
}

.vip-old-price-strike {
  font-family: var(--v3-font-num);
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-text-3);
  text-decoration: line-through;
  white-space: nowrap;
}

.vip-final-price-glow {
  font-family: var(--v3-font-num);
  font-size: 14.5px;
  font-weight: 900;
  color: var(--v3-primary);
  white-space: nowrap;
}

.vip-price-composite {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.vip-price-val-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.pkg-modal-price del,
.opt-card-old-price {
  font-family: var(--v3-font-num);
  font-size: 11px;
  color: var(--v3-text-3);
  text-decoration: line-through;
  font-weight: 600;
}

@media (max-width: 420px) {
  .pkg-head-banner.ksv-compact-hero {
    gap: 9px;
    padding: 9px 10px;
  }

  .pkg-head-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .pkg-modal-card-name {
    font-size: 14px;
  }

  .vip-final-price-glow {
    font-size: 13.5px;
  }
}

/* Bundle Combo Items & VIP Deal Banners */
.ksv-bundle-showcase-card {
  padding: 12px 13px;
  background: var(--v3-primary-soft);
  border: 1px solid var(--v3-primary-border);
  border-radius: 15px;
}

.ksv-bundle-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.ksv-bundle-showcase-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ksv-bundle-discount-pill {
  background: var(--v3-success);
  color: #ffffff;
  font-family: var(--v3-font-num);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.ksv-bundle-items-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ksv-bundle-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
}

.ksv-bundle-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.ksv-bundle-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.ksv-bundle-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ksv-bundle-item-info {
  min-width: 0;
  flex: 1;
}

.ksv-bundle-item-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ksv-bundle-item-plan {
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-text-3);
  margin-top: 1px;
}

.ksv-bundle-item-price {
  font-family: var(--v3-font-num);
  font-size: 12px;
  font-weight: 800;
  color: var(--v3-text-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.ksv-deal-offer-banner {
  padding: 10px 12px;
  background: var(--v3-gold-soft);
  border: 1px solid var(--v3-gold-border);
  border-radius: 14px;
  align-items: center;
  gap: 10px;
}

.ksv-deal-offer-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--v3-surface);
  color: var(--v3-gold);
  border: 1px solid var(--v3-gold-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ksv-deal-offer-copy {
  flex: 1;
  min-width: 0;
}

.ksv-deal-offer-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--v3-gold);
}

.ksv-deal-offer-copy small {
  display: block;
  font-size: 11px;
  color: var(--v3-text-2);
}

.ksv-deal-savings-badge {
  background: var(--v3-gold-accent, #d97706);
  color: #ffffff;
  font-family: var(--v3-font-num);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

/* PINNED Phase 2 Summary Strip (Lives OUTSIDE .modal-body-scroll!) */
.pkg-compact-summary-bar.ksv-pinned-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 15px;
  background: var(--v3-surface-2);
  border-bottom: 1px solid var(--v3-border);
  flex-shrink: 0;
  z-index: 3;
}

.compact-bar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.compact-bar-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  color: var(--v3-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compact-bar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-bar-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.compact-bar-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--v3-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-bar-plan {
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-bar-price-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.compact-bar-price {
  font-family: var(--v3-font-num);
  font-size: 14px;
  font-weight: 900;
  color: var(--v3-primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.compact-bar-price .ksv-mini-old-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--v3-text-3);
  text-decoration: line-through;
}

/* Checkout Form Phases with Smooth Enter Transition */
#order-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.checkout-phase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.checkout-phase.is-active-phase {
  animation: ksvPhaseEnter 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ksvPhaseEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ultra-Slim 1-Line Customer Identity Strip (Bottom of Phase 1) */
.checkout-customer-fields {
  margin: 0 !important;
}

.checkout-customer-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 11px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
}

.checkout-cust-brand-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.checkout-cust-avatar-frame {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.checkout-cust-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-cust-avatar-initial {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--v3-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
}

.checkout-cust-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.checkout-cust-name-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.checkout-cust-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--v3-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-cust-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--v3-gold-soft);
  color: var(--v3-gold);
  font-size: 9.5px;
  font-weight: 900;
  flex-shrink: 0;
}

.checkout-cust-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--v3-text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-cust-sep {
  color: var(--v3-border-strong);
  font-weight: 900;
}

.checkout-cust-phone {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

@media (max-width: 390px) {
  .checkout-cust-meta-row {
    display: none;
  }
}

.checkout-cust-status-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.checkout-cust-verified-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--v3-success-soft);
  color: var(--v3-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-cust-id-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--v3-text-3);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  padding: 2px 7px;
  border-radius: 7px;
  white-space: nowrap;
}

/* Plan Options Filter Tabs & Clean Selectable Radio Rows (NO 4-Badge Cramped Boxes!) */
.opt-plan-type-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: var(--v3-surface-2);
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.opt-plan-type-filter-bar::-webkit-scrollbar { display: none; }

.opt-plan-filter-btn {
  flex: 1 0 auto;
  border: none;
  background: transparent;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.opt-plan-filter-btn.active {
  background: var(--v3-surface);
  color: var(--v3-primary);
  font-weight: 800;
  box-shadow: var(--v3-shadow-xs);
}

.options-segmented-cards {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.options-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

/* Compact 2-Column Horizontal Plan Radio Card (Apple Pay Style — 35% Less Vertical Height!) */
.option-plan-card {
  appearance: none;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--v3-surface);
  border: 1.5px solid var(--v3-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.option-plan-card:hover {
  border-color: var(--v3-border-strong);
}

.option-plan-card:active {
  transform: scale(0.992);
}

.option-plan-card.selected {
  background: var(--v3-primary-soft);
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 1px var(--v3-primary);
}

.option-plan-card.is-out-of-stock {
  opacity: 0.58;
}

.opt-card-start {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.opt-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.opt-card-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.opt-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--v3-text);
  line-height: 1.25;
}

.opt-card-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--v3-border-strong);
  background: var(--v3-surface);
  color: transparent;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-plan-card.selected .opt-card-indicator {
  border-color: var(--v3-primary);
  background: var(--v3-primary);
  color: #ffffff;
}

.opt-card-sub-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: 1.3;
  color: var(--v3-text-3);
}

.opt-card-type-badge {
  font-weight: 700;
  color: var(--v3-text-2);
}

.opt-card-dot {
  color: var(--v3-border-strong);
  font-weight: 900;
}

.opt-card-end {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  text-align: end;
}

.opt-card-price-row {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.opt-card-price-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.opt-card-price {
  font-family: var(--v3-font-num);
  font-size: 14.5px;
  font-weight: 900;
  color: var(--v3-primary);
  white-space: nowrap;
}

.opt-card-cur {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.82;
}

.opt-card-disc-pill {
  font-family: var(--v3-font-num);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--v3-success-soft);
  color: var(--v3-success);
  white-space: nowrap;
}

.opt-card-warranty-tag {
  color: var(--v3-text-3);
  font-weight: 600;
}

.opt-card-active-flag,
.opt-stock-badge.in-stock {
  color: var(--v3-success);
  font-weight: 800;
}

.opt-stock-badge.out-of-stock {
  color: var(--v3-danger);
  font-weight: 800;
}

/* 2-Column Grid Variant (UC / Gift Cards / >6 Options) */
.options-grid-cards .option-plan-card {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 9px 10px;
}

.options-grid-cards .opt-card-end {
  align-items: flex-start;
  padding-inline-start: 29px;
}

.options-grid-cards .opt-card-price-row {
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
}

/* Clean Compact Plan Features Card */
#pkg-plan-feature-showcase,
.pkg-desc-showcase {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: var(--v3-surface-2) !important;
  border: 1px solid var(--v3-border) !important;
  box-shadow: none !important;
}

#pkg-plan-feature-badge,
#pkg-plan-warranty-badge {
  display: none !important;
}

.ksm-plan-showcase-head,
.pkg-desc-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid var(--v3-border) !important;
  flex-wrap: wrap !important;
}

.ksm-plan-showcase-title-row,
.pkg-desc-title-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
}

/* Keep badges super crisp and subtle */
.ksm-plan-showcase-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ksm-selected-plan-pill {
  display: none; /* Plan card already shows blue selected state — removes redundant pill! */
}

#pkg-plan-feature-badge,
#pkg-plan-warranty-badge,
.pkg-desc-guarantee-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 8px !important;
  background: var(--v3-surface) !important;
  color: var(--v3-text-2) !important;
  border: 1px solid var(--v3-border) !important;
  white-space: normal !important;
}

.ksm-feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ksm-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--v3-text-2);
  padding: 2px 0;
}

.ksm-feat-item.is-collapsed {
  display: none;
}

.ksm-feat-list.is-expanded .ksm-feat-item.is-collapsed {
  display: flex;
}

.ksm-feat-icon {
  flex-shrink: 0;
  color: var(--v3-success);
  font-weight: 900;
}

.ksm-feat-toggle-btn {
  margin-top: 8px;
  width: 100%;
  border: 1px dashed var(--v3-border-strong);
  background: var(--v3-surface);
  color: var(--v3-primary);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Seamless Single-Line Assurance Strip (replaces bulky checkbox box) */
.pkg-plan-confirm-box {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.pkg-plan-confirm-native {
  display: none;
}

.pkg-plan-confirm-check-ui {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--v3-success);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pkg-plan-confirm-check-svg {
  width: 12px;
  height: 12px;
}

.pkg-plan-confirm-copy {
  flex: 1;
  min-width: 0;
}

.pkg-plan-confirm-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--v3-text);
  line-height: 1.35;
}

.pkg-plan-confirm-sub {
  display: block;
  font-size: 11px;
  color: var(--v3-text-3);
}

.pkg-plan-confirm-pill {
  display: none;
}

.pkg-vip-domain-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
}

.ksv-assurance-svg {
  color: var(--v3-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ksv-assurance-copy {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--v3-text-2);
}

.ksv-assurance-copy strong {
  color: var(--v3-success);
  font-weight: 800;
}

/* Required Customer Inputs Card (Right After Plan — High Clarity) */
.ksv-required-input-card {
  padding: 12px 13px;
  border-radius: 14px;
  background: var(--v3-primary-soft);
  border: 1px solid var(--v3-primary-border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ksv-required-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.ksv-required-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
}

.ksv-required-card-title svg {
  color: var(--v3-primary);
  flex-shrink: 0;
}

.ksv-req-star {
  color: var(--v3-danger);
  font-weight: 900;
}

.ksv-required-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--v3-primary);
  background: var(--v3-surface);
  border: 1px solid var(--v3-primary-border);
  padding: 2px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

.custom-fields-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ksv-email-help-note {
  margin: -2px 0 0;
  font-size: 11px;
  color: var(--v3-text-2);
  line-height: 1.45;
}

/* Compact Single-Line Quantity & Collapsible Bulk Tiers */
.ksv-bulk-compact-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ksv-bulk-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ksv-bulk-label-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.ksv-bulk-title-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
}

.ksv-bulk-title-group svg {
  color: var(--v3-primary);
  flex-shrink: 0;
}

.ksv-bulk-toggle-pill {
  appearance: none;
  border: 1px solid var(--v3-gold-border);
  background: var(--v3-gold-soft);
  color: var(--v3-gold);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.ksv-bulk-toggle-pill:active {
  transform: scale(0.97);
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--v3-shadow-xs);
}

.ksv-qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ksv-qty-btn:hover {
  background: var(--v3-surface-3);
}

.ksv-qty-input {
  width: 44px;
  height: 34px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--v3-font-num);
  font-weight: 900;
  font-size: 13.5px;
  color: var(--v3-text);
  outline: none;
  -moz-appearance: textfield;
}

.ksv-volume-tiers-row {
  display: flex;
  gap: 7px;
  width: 100%;
  padding-top: 2px;
}

#volume-tiers-row.is-tiers-collapsed {
  display: none !important;
}

.volume-tier-pill {
  flex: 1;
  min-width: 0;
  padding: 7px 4px;
  border-radius: 10px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-strong);
  color: var(--v3-text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.volume-tier-pill:hover {
  transform: translateY(-1px);
}

.volume-tier-pill.is-tier-1 { border-color: var(--v3-primary-border); }
.volume-tier-pill.is-tier-2 { border-color: var(--v3-success-border); }
.volume-tier-pill.is-tier-3 { border-color: var(--v3-gold-border); }

.ksm-tier-qty {
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-text);
}

.ksm-tier-pct {
  font-family: var(--v3-font-num);
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
}

.volume-tier-pill.is-tier-1 .ksm-tier-pct { background: var(--v3-primary-soft); color: var(--v3-primary); }
.volume-tier-pill.is-tier-2 .ksm-tier-pct { background: var(--v3-success-soft); color: var(--v3-success); }
.volume-tier-pill.is-tier-3 .ksm-tier-pct { background: var(--v3-gold-soft); color: var(--v3-gold); }

.ksv-volume-savings-alert {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--v3-success);
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
  padding: 7px 10px;
  border-radius: 9px;
  align-items: center;
  gap: 6px;
}

/* Promo Code Collapsible Row & Applied Breakdown */
.promo-box-container {
  margin: 0 !important;
}

.v3-promo-disclosure-btn {
  width: 100%;
  border: 1px dashed var(--v3-border-strong);
  background: var(--v3-surface-2);
  color: var(--v3-text-2);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.v3-promo-disc-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.v3-promo-disc-left svg {
  color: var(--v3-primary);
  flex-shrink: 0;
}

.v3-promo-disclosure-btn:hover {
  border-color: var(--v3-primary);
  color: var(--v3-primary);
}

.vip-promo-feedback {
  margin-top: 8px;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.ksv-promo-locked-note {
  margin-top: 2px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--v3-warn-soft);
  border: 1px solid var(--v3-warn-border);
  color: var(--v3-warn);
  font-size: 11.5px;
  font-weight: 700;
  align-items: center;
  gap: 7px;
}

.ksv-promo-locked-note svg {
  flex-shrink: 0;
}

.ksv-promo-applied-card {
  margin-top: 8px;
  padding: 11px 12px;
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
  border-radius: 14px;
  flex-direction: column;
  gap: 9px;
}

.ksv-promo-applied-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ksv-promo-applied-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ksv-promo-applied-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--v3-success);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ksv-promo-applied-title {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--v3-success);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ksv-promo-code-badge {
  background: var(--v3-success);
  color: #ffffff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
  font-family: var(--v3-font-num);
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.ksv-promo-applied-sub {
  color: var(--v3-text-2);
  font-size: 11px;
  display: block;
  margin-top: 1px;
}

.ksv-promo-remove-btn {
  background: var(--v3-danger-soft);
  border: 1px solid var(--v3-danger-border);
  color: var(--v3-danger);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.ksv-promo-breakdown-grid {
  background: var(--v3-surface);
  border: 1px solid var(--v3-success-border);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.ksv-promo-col {
  border-inline-end: 1px solid var(--v3-border);
  padding-inline-end: 6px;
}

.ksv-promo-col.is-last {
  border-inline-end: none;
  padding-inline-end: 0;
}

.ksv-promo-col-lbl {
  font-size: 10.5px;
  color: var(--v3-text-3);
  font-weight: 700;
}

.ksv-promo-col-lbl.is-success { color: var(--v3-success); }
.ksv-promo-col-lbl.is-dark { color: var(--v3-text); }

.ksv-promo-col-orig {
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-text-3);
  text-decoration: line-through;
  margin-top: 2px;
  font-family: var(--v3-font-num);
}

.ksv-promo-col-disc {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-success);
  margin-top: 2px;
  font-family: var(--v3-font-num);
}

.ksv-promo-col-final {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--v3-success);
  margin-top: 2px;
  font-family: var(--v3-font-num);
}

/* Out of Stock Notice & Restock Actions */
.ksv-oos-notice {
  padding: 12px 13px;
  background: var(--v3-danger-soft);
  border: 1px solid var(--v3-danger-border);
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--v3-danger);
  line-height: 1.5;
}

.ksv-oos-head {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.ksv-oos-desc {
  font-size: 12px;
  color: var(--v3-text-2);
  margin-bottom: 10px;
}

.restock-actions-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-restock {
  flex: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  border-radius: 10px;
  text-decoration: none;
  padding: 8px 12px;
}

.btn-restock-wa { background: #25d366; }
.btn-restock-tg { background: #0088cc; }

.vip-promo-input-group {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 8px;
}

.vip-promo-input-group.is-collapsed-by-v3 {
  display: none;
}

.vip-promo-field-wrap {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--v3-surface-2);
  border: 1.5px solid var(--v3-border-strong);
  display: flex;
  align-items: center;
  gap: 7px;
}

.vip-promo-field-wrap:focus-within {
  border-color: var(--v3-primary);
  background: var(--v3-surface);
  box-shadow: 0 0 0 3px var(--v3-primary-soft);
}

.vip-promo-leading-icon {
  flex-shrink: 0;
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vip-promo-input {
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-text);
}

.vip-promo-input::placeholder {
  font-size: 13px;
  font-weight: 500;
  color: var(--v3-text-3);
}

.vip-tag-indicator {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  flex-shrink: 0;
}

.vip-btn-apply {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.vip-btn-apply:hover {
  background: var(--v3-primary-hover);
}

.vip-btn-apply:active {
  transform: scale(0.97);
}

@media (max-width: 440px) {
  .vip-tag-indicator {
    display: none;
  }

  .vip-btn-apply {
    padding: 0 12px;
    font-size: 12px;
  }

  .opt-plan-filter-btn {
    padding: 0 9px;
    font-size: 11.5px;
    height: 32px;
  }
}

.checkout-email-input,
.custom-input-field {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--v3-surface);
  border: 1.5px solid var(--v3-border-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--v3-text);
  outline: none;
}

.checkout-email-input:focus,
.custom-input-field:focus {
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 3px var(--v3-primary-soft);
}

/* Sticky Bottom Action Bar Inside Detached Checkout Sheet (Exact -14px bleed, ZERO horizontal overflow!) */
#package-modal .phase-actions {
  position: sticky;
  bottom: 0;
  margin: auto -14px 0;
  padding: 10px 14px 12px;
  background: var(--v3-glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--v3-border);
  box-shadow: 0 -8px 20px -12px rgba(6, 10, 19, 0.14);
  z-index: 10;
}

/* Ensure breathing room above sticky footer */
#package-modal .checkout-phase > :nth-last-child(2) {
  margin-bottom: 4px;
}

.btn-submit-order {
  appearance: none;
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 15px;
  border: none;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 113, 227, 0.55);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn-submit-order:hover {
  background: var(--v3-primary-hover);
}

.btn-submit-order:active {
  transform: scale(0.985);
}

.ksm-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: start;
}

.ksm-cta-icon,
.pkg-desc-badge-icon,
.ksm-plan-showcase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pkg-desc-badge-icon,
.ksm-plan-showcase-icon {
  color: var(--v3-primary);
}

.btn-phase2-plan-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ksm-cta-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--v3-font-num);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Phase 2: Payment Methods & Transfer Details */
.pkg-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text-2);
}

.pkg-section-title svg {
  color: var(--v3-primary);
  flex-shrink: 0;
}

.payment-selector {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 1px;
}

.payment-selector::-webkit-scrollbar {
  display: none;
}

.pay-option {
  flex: 1 1 0;
  min-width: 62px;
  position: relative;
  padding: 8px 3px 7px;
  border-radius: 13px;
  background: var(--v3-surface-2);
  border: 1.5px solid var(--v3-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.pay-option.selected {
  background: var(--v3-primary-soft);
  border-color: var(--v3-primary);
}

.pay-opt-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
}

.pay-opt-wallet-bal {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ksv-wallet-clean-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--v3-surface-subtle, rgba(16, 185, 129, 0.07));
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.ksv-wallet-ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #059669;
}

html[data-theme="dark-mode"] .ksv-wallet-ready-pill,
html.dark-mode .ksv-wallet-ready-pill {
  color: #34d399;
}

.ksv-wallet-after-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--v3-text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ksv-wallet-after-meta strong {
  color: var(--v3-text, #0f172a);
  font-weight: 900;
}

.ksv-transfer-wait-notice {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: var(--v3-text, #1e293b);
  font-size: 11.8px;
  line-height: 1.58;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[data-theme="dark-mode"] .ksv-transfer-wait-notice,
html.dark-mode .ksv-transfer-wait-notice {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
}

.ksv-transfer-wait-text {
  font-weight: 700;
}

.ksv-transfer-wait-text strong {
  color: #b45309;
}

html[data-theme="dark-mode"] .ksv-transfer-wait-text strong,
html.dark-mode .ksv-transfer-wait-text strong {
  color: #fbbf24;
}

.ksv-transfer-wait-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ksv-switch-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px -3px rgba(16, 185, 129, 0.45);
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.ksv-switch-wallet-pill:hover {
  opacity: 0.94;
}

.ksv-switch-wallet-pill:active {
  transform: scale(0.98);
}

.pay-opt-check {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
}

.pay-option.selected .pay-opt-check {
  display: inline-flex;
}

.pm-unified-container {
  border-radius: 15px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pm-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pm-banner-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pm-brand-badge-pill {
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.pm-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--v3-success);
}

.pm-holder-wrap {
  font-size: 11.5px;
  color: var(--v3-text-3);
}

.pm-holder-name {
  color: var(--v3-text);
  font-weight: 800;
}

/* Side-by-Side Transfer + Compact QR Grid (Stays side-by-side on phones!) */
.pm-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: stretch;
}

@media (max-width: 460px) {
  .pm-main-grid {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 7px;
  }
}

@media (max-width: 330px) {
  .pm-main-grid {
    grid-template-columns: 1fr;
  }
}

.pm-transfer-card {
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  border-radius: 13px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.pm-transfer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.pm-transfer-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pm-transfer-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--v3-text-3);
}

.pm-digits-text {
  font-family: var(--v3-font-num);
  font-size: 14px;
  font-weight: 900;
  color: var(--v3-text);
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-btn-copy {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--v3-primary-border);
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.pm-btn-copy:active {
  transform: scale(0.94);
}

.pm-btn-copy.pm-btn-copy-amount {
  border-color: var(--v3-success-border);
  background: var(--v3-success-soft);
  color: var(--v3-success);
}

.pm-transfer-divider {
  height: 1px;
  background: var(--v3-border);
}

.pm-amount-val-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.pm-amount-num {
  font-family: var(--v3-font-num);
  font-size: 16.5px;
  font-weight: 900;
  color: var(--v3-success);
}

.pm-amount-curr {
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-text-3);
}

.pm-qr-steady-box {
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  border-radius: 13px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.pm-qr-steady-box:hover {
  border-color: var(--v3-primary-border);
}

.pm-qr-steady-head {
  display: none;
}

.pm-qr-zoom-caption {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pm-qr-wrapper {
  width: 76px;
  height: 76px;
  padding: 4px;
  background: #ffffff;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 460px) {
  .pm-qr-wrapper {
    width: 66px;
    height: 66px;
  }

  .pm-digits-text {
    font-size: 13px;
  }

  .pm-amount-num {
    font-size: 15px;
  }
}

.pm-qr-mount,
.pm-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Segmented 2-Tab Payment Proof Card */
.ksv-proof-unified-card {
  border-radius: 15px;
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ksv-proof-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.ksv-proof-header-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v3-text);
}

.ksv-proof-header-icon {
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
}

.ksv-proof-badge {
  padding: 2px 8px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.ksv-proof-seg-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3.5px;
  border-radius: 12px;
  background: var(--v3-surface-3);
}

.ksv-proof-seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  color: var(--v3-text-2);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ksv-proof-seg-btn.is-active {
  background: var(--v3-surface);
  color: var(--v3-primary);
  box-shadow: var(--v3-shadow-xs);
}

.ksv-proof-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-success);
  flex-shrink: 0;
}

.ksv-proof-tab-dot[hidden] {
  display: none;
}

.ksv-proof-opt-block.is-tab-hidden {
  display: none !important;
}

.ksv-proof-format-tag {
  display: block;
  font-family: var(--v3-font-num);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--v3-text-3);
  margin-top: 1px;
}

.ksv-compact-dropzone {
  display: block;
  border: 1.5px dashed var(--v3-primary-border);
  background: var(--v3-surface);
  border-radius: 13px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ksv-compact-dropzone.has-file {
  border-style: solid;
  border-color: var(--v3-success-border);
  background: var(--v3-success-soft);
}

.dropzone-idle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ksv-dz-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dropzone-circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropzone-text-primary {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
  line-height: 1.3;
}

.btn-dropzone-action {
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--v3-primary);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.preview-card-inner {
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-thumbnail-wrap {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--v3-border);
  flex-shrink: 0;
}

.preview-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ksm-preview-footer {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-filename {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ksm-preview-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--v3-text-3);
}

.preview-status-pill {
  color: var(--v3-success);
  font-weight: 800;
}

.ksm-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ksm-change-receipt-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--v3-primary);
}

.btn-remove-receipt {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--v3-danger-soft);
  color: var(--v3-danger);
  font-weight: 900;
  cursor: pointer;
}

.receipt-ref-input-group {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 7px 0 10px;
  border-radius: 13px;
  background: var(--v3-surface);
  border: 1.5px solid var(--v3-border-strong);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.receipt-ref-input-group:focus-within {
  border-color: var(--v3-primary);
  box-shadow: 0 0 0 3px var(--v3-primary-soft);
}

.receipt-ref-prefix {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  font-size: 13.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.receipt-ref-input {
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-text);
}

.receipt-ref-input::placeholder {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--v3-text-3);
}

.receipt-ref-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-ref-paste {
  height: 32px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--v3-primary-border);
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ref-clear {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--v3-surface-2);
  color: var(--v3-text-3);
  cursor: pointer;
}

/* Phase 2 & 3 Split Sticky Action Bar (Crisp Back + Readiness-Aware CTA) */
#package-modal .phase-actions-split {
  display: flex;
  align-items: center;
  gap: 9px;
}

.v3-step-back-btn {
  appearance: none;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--v3-border-strong);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.v3-step-back-btn:hover {
  background: var(--v3-surface-3);
}

.v3-step-back-btn:active {
  transform: scale(0.97);
}

/* On narrow phones (<= 420px), collapse Back text to crisp icon-only square so Submit + Price CTA never wraps! */
@media (max-width: 420px) {
  .v3-step-back-btn {
    width: 46px;
    min-width: 46px;
    padding: 0;
  }

  .v3-step-back-btn > span:last-child {
    display: none;
  }
}

.v3-step-next-btn,
.v3-step-submit-btn {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 48px;
  justify-content: center;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 900;
}

#btn-goto-phase-3.is-proof-pending {
  background: var(--v3-surface-2);
  color: var(--v3-text-2);
  border: 1.5px dashed var(--v3-border-strong);
  box-shadow: none;
}

#btn-goto-phase-3.is-proof-pending:hover {
  background: var(--v3-surface-3);
  color: var(--v3-text);
}

.v3-step-submit-btn {
  background: var(--v3-success);
  box-shadow: 0 8px 20px -8px rgba(5, 150, 105, 0.45);
}

.v3-step-submit-btn:hover {
  background: color-mix(in srgb, var(--v3-success) 86%, #000000);
}

.v3-step-arrow {
  font-size: 15px;
  line-height: 1;
}

/* Phase 3: Apple Wallet Ticket Plan Row & Inline Edit Controls */
.v3-ticket-plan-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.v3-ticket-plan-row .v3-ticket-plan-pill {
  margin-top: 0;
}

.v3-review-edit-btn {
  appearance: none;
  border: none;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.v3-review-edit-btn:hover {
  background: var(--v3-primary-border);
}

.v3-review-edit-btn:active {
  transform: scale(0.96);
}

/* Phase 3: Apple Wallet Digital Invoice Ticket (Light + OLED Dark Native) */
.v3-invoice-ticket {
  position: relative;
  background: var(--v3-surface);
  border: 1.5px solid var(--v3-border-strong);
  border-radius: 20px;
  padding: 16px;
  margin: 2px 0 8px;
  box-shadow: var(--v3-shadow-sm);
  overflow: hidden;
}

.v3-invoice-ticket::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--v3-primary), #10b981);
}

.v3-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.v3-ticket-prod {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.v3-ticket-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--v3-primary-soft);
  border: 1px solid var(--v3-primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.v3-ticket-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v3-ticket-prod-meta {
  min-width: 0;
}

.v3-ticket-prod-name {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--v3-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v3-ticket-plan-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--v3-primary-soft);
  border: 1px solid var(--v3-primary-border);
  color: var(--v3-primary);
  font-size: 11.5px;
  font-weight: 800;
}

.v3-ticket-status-col {
  flex-shrink: 0;
}

.v3-ticket-official-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
  color: var(--v3-success);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.v3-ticket-official-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v3-success);
}

.v3-ticket-perf {
  position: relative;
  border-top: 1.5px dashed var(--v3-border-strong);
  margin: 14px -16px;
}

.v3-ticket-perf::before,
.v3-ticket-perf::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--v3-surface);
  border: 1.5px solid var(--v3-border-strong);
}

.v3-ticket-perf::before { left: -9px; }
.v3-ticket-perf::after { right: -9px; }

.v3-ticket-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v3-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--v3-border);
}

.v3-review-row:last-child {
  border-bottom: none;
}

.v3-review-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.v3-review-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--v3-text-2);
  flex-shrink: 0;
}

.v3-review-lbl.is-warn { color: var(--v3-warn); font-weight: 800; }
.v3-review-lbl.is-success { color: var(--v3-success); font-weight: 800; }

.v3-review-val-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v3-review-val {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--v3-text);
  overflow-wrap: anywhere;
}

.v3-review-val.is-primary { color: var(--v3-primary); }
.v3-review-val.is-success { color: var(--v3-success); }

.v3-ltr-iso {
  direction: ltr;
  unicode-bidi: isolate;
}

.v3-review-id-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-primary);
  background: var(--v3-primary-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

.v3-review-warn-chip {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--v3-warn);
  background: var(--v3-warn-soft);
  border: 1px solid var(--v3-warn-border);
  padding: 2px 8px;
  border-radius: 7px;
}

.v3-review-method-chip {
  font-size: 12px;
  font-weight: 800;
  color: var(--v3-text);
  background: var(--v3-surface-2);
  border: 1px solid var(--v3-border-strong);
  padding: 3px 10px;
  border-radius: 8px;
}

.v3-review-ok-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--v3-success);
  background: var(--v3-success-soft);
  border: 1px solid var(--v3-success-border);
  padding: 3px 8px;
  border-radius: 7px;
}

.v3-review-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 7px;
  border: 1.5px solid var(--v3-border-strong);
}

.v3-review-bundle-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.review-promo-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-promo-meta code {
  font-family: var(--v3-font-num);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--v3-success-soft);
  color: var(--v3-success);
}

.v3-review-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 15px;
  background: var(--v3-success-soft);
  border: 1.5px solid var(--v3-success-border);
}

.v3-review-total-lbl {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--v3-success);
}

.v3-review-total-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--v3-text-2);
  margin-top: 1px;
}

.v3-review-total-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-shrink: 0;
}

.v3-review-total-price {
  font-size: 21px;
  font-weight: 900;
  color: var(--v3-success);
  letter-spacing: -0.01em;
}

.v3-ticket-trust-line {
  margin-top: 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--v3-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

/* QR Zoom Modal (Light + OLED Dark, white optical scan stage) */
.qr-zoom-dialog {
  max-width: 380px;
  width: calc(100vw - 28px);
  text-align: center;
  padding: 16px;
  border-radius: 22px;
}

.qr-zoom-header {
  padding: 0 0 11px 0;
  margin-bottom: 12px;
}

.qr-zoom-header h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--v3-text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.qr-zoom-header h3 svg {
  color: var(--v3-primary);
  flex-shrink: 0;
}

.qr-zoom-body {
  padding: 4px 0;
}

.v3-qr-zoom-stage {
  background: #ffffff;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--v3-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--v3-shadow-sm);
  overflow: hidden;
  max-width: 100%;
}

.v3-qr-zoomed-img {
  width: 240px;
  height: 240px;
  max-width: 72vw;
  max-height: 55vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #ffffff;
  transition: width 0.2s ease, height 0.2s ease, transform 0.2s ease;
  cursor: zoom-in;
}

.qr-zoom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.qr-zoom-ctrl-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--v3-border-strong);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qr-zoom-ctrl-btn.is-primary {
  border-color: var(--v3-primary);
  background: var(--v3-primary);
  color: #ffffff;
}

.v3-qr-scale-pill {
  min-width: 52px;
  font-size: 12px;
  font-weight: 900;
  color: var(--v3-primary);
  background: var(--v3-primary-soft);
  padding: 6px 10px;
  border-radius: 8px;
}

.v3-qr-zoom-hint {
  margin: 10px 0 12px;
  font-size: 12px;
  color: var(--v3-text-2);
  font-weight: 600;
}

.v3-qr-zoom-done-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--v3-border-strong);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

/* Mobile 16px Anti-Zoom Rule */
@media (max-width: 767.98px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not(#pverify-otp-code):not(#auth-totp-input):not(#forgot-otp-code),
  select,
  textarea {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   7. Toasts & Live Social Proof Toast
   -------------------------------------------------------------------------- */
.ksv-toast-container {
  position: fixed;
  top: calc(var(--v3-header-h) + 12px);
  inset-inline-end: 16px;
  z-index: 200010;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.ksv-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--v3-glass-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--v3-border);
  box-shadow: var(--v3-shadow-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--v3-text);
  animation: v3PopIn 0.2s var(--v3-ease);
}

.ksv-toast.ksv-toast-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ksv-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

.ksv-toast-success .ksv-toast-icon { background: var(--v3-success); }
.ksv-toast-error .ksv-toast-icon { background: var(--v3-danger); }
.ksv-toast-warning .ksv-toast-icon { background: var(--v3-warn); }
.ksv-toast-info .ksv-toast-icon { background: var(--v3-primary); }

/* Live Purchase Social Proof Toast */
.ksv-social-toast {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 880;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--v3-glass-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--v3-border);
  box-shadow: var(--v3-shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s var(--v3-ease), transform 0.28s var(--v3-ease);
}

.ksv-social-toast.ksv-toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .ksv-social-toast {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 12px;
  }
}

.ksv-social-toast-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--v3-success-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ksv-social-toast-body {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.ksv-social-toast-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.ksv-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--v3-success);
  background: var(--v3-success-soft);
  padding: 1px 6px;
  border-radius: 6px;
}

.ksv-social-toast-desc {
  color: var(--v3-text-2);
  margin-top: 2px;
}

.ksv-social-toast-time {
  font-size: 10.5px;
  color: var(--v3-text-3);
  margin-top: 1px;
}

.ksv-toast-close {
  border: none;
  background: transparent;
  color: var(--v3-text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

/* Native Confirm / Prompt Dialog */
.ksv-ui-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 10, 19, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ksv-ui-dialog-backdrop.show {
  display: flex;
}

.ksv-ui-dialog-card {
  width: min(420px, 100%);
  background: var(--v3-surface);
  color: var(--v3-text);
  border: 1px solid var(--v3-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--v3-shadow-lg);
  display: grid;
  gap: 14px;
}

.ksv-ui-dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ksv-ui-dialog-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  background: var(--v3-primary-soft);
  color: var(--v3-primary);
}

.ksv-ui-dialog-card[data-tone="danger"] .ksv-ui-dialog-badge {
  background: var(--v3-danger-soft);
  color: var(--v3-danger);
}

.ksv-ui-dialog-card[data-tone="warning"] .ksv-ui-dialog-badge {
  background: var(--v3-warn-soft);
  color: var(--v3-warn);
}

.ksv-ui-dialog-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 900;
}

.ksv-ui-dialog-msg {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--v3-text-2);
  white-space: pre-line;
}

.ksv-ui-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ksv-ui-dialog-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--v3-border-strong);
  background: var(--v3-surface-2);
  color: var(--v3-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ksv-ui-dialog-btn.primary {
  border-color: var(--v3-primary);
  background: var(--v3-primary);
  color: #ffffff;
}

.ksv-ui-dialog-btn.danger {
  border-color: var(--v3-danger);
  background: var(--v3-danger);
  color: #ffffff;
}

/* Mobile rendering turbo: defer off-screen footer layout/paint */
footer.store-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}
