/* ==========================================================================
   NEXUS DIGITAL STORE - COMMERCIAL RESELLER DESIGN SYSTEM
   Inspired by DilSMM high-converting architecture, DilTheme Crimson accents,
   Clean row-wise product lists, and human-crafted commercial UX.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Brand Crimson Palette (DilSMM signature) */
  --brand-primary: #C8102E;
  --brand-hover: #A60D24;
  --brand-dark: #800020;
  --brand-soft: rgba(200, 16, 46, 0.08);
  --brand-border: rgba(200, 16, 46, 0.25);

  /* Backgrounds (Dark Mode default) */
  --bg-body: #0E131F;
  --bg-surface: #151C2C;
  --bg-card: #1A2338;
  --bg-card-hover: #212C45;
  --bg-input: #111726;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: #C8102E;

  /* Typography */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Functional Colors */
  --color-green: #10B981;
  --color-green-bg: rgba(16, 185, 129, 0.12);
  --color-amber: #F59E0B;
  --color-amber-bg: rgba(245, 158, 11, 0.12);
  --color-blue: #0EA5E9;
  --color-blue-bg: rgba(14, 165, 233, 0.12);
  --color-red: #EF4444;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.55);
  --transition: all 0.2s ease-in-out;
}

/* Light Mode Variables - Crisp, High-Converting Commercial Theme */
html[data-theme="light"],
body.theme-light {
  --brand-primary: #C8102E;
  --brand-hover: #A60D24;
  --brand-dark: #800020;
  --brand-soft: rgba(200, 16, 46, 0.06);
  --brand-border: rgba(200, 16, 46, 0.22);

  --bg-body: #F4F6F9;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-input: #EDF2F7;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.1);
  --border-focus: #C8102E;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;

  --color-green: #059669;
  --color-green-bg: rgba(5, 150, 105, 0.1);
  --color-amber: #D97706;
  --color-amber-bg: rgba(217, 119, 6, 0.1);
  --color-blue: #0284C7;
  --color-blue-bg: rgba(2, 132, 199, 0.1);
  --color-red: #DC2626;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 0%, rgba(200, 16, 46, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #26334D; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3B4D73; }

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 19, 31, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SM PROVIDER OFFICIAL LOGO (CODING-CRAFTED BRAND ARCHITECTURE)
   Exact match for user's logo: SM + top bar, PROVIDER1_ + bottom bar
   Transparent background, responsive in Dark & Light mode!
   ========================================================================== */
.brand-logo,
.smprovider-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo:hover,
.smprovider-brand-wrap:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.sm-logo-structure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.sm-top-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm-brand-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 0.85;
}

.sm-geom-bar {
  display: block;
  height: 5px;
  background: var(--brand-primary);
  border-radius: 1.5px;
}

.sm-geom-bar.top-bar {
  width: 58px;
  transform: translateY(-1px);
}

.sm-mid-text-row {
  margin-top: 3.5px;
}

.sm-provider-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.23em;
  color: var(--text-primary);
  text-transform: uppercase;
  display: inline-block;
  white-space: nowrap;
}

.sm-cursor {
  color: var(--brand-primary);
  font-weight: 900;
  animation: smCursorPulse 1.5s infinite;
}

@keyframes smCursorPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.sm-bot-bar-row {
  margin-top: 4px;
}

.sm-geom-bar.bot-bar {
  width: 52px;
}

/* Light mode adjustments for SM Provider Logo */
html[data-theme="light"] .sm-brand-title,
body.theme-light .sm-brand-title,
html[data-theme="light"] .sm-provider-text,
body.theme-light .sm-provider-text {
  color: #0F172A;
}

/* ==========================================================================
   ULTRA-PREMIUM CURRENCY SWITCHER COMPONENT
   ========================================================================== */
/* ==========================================================================
   CLEAN COMPACT CURRENCY SWITCHER
   ========================================================================== */
.currency-selector-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.currency-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0 0.65rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  color: var(--text-primary);
}

.currency-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.currency-trigger-btn.active {
  border-color: var(--brand-primary);
  background: rgba(200, 16, 46, 0.15);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.25);
}

.currency-code-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.currency-symbol-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  line-height: 1.1;
}

.currency-chevron-icon {
  font-size: 0.62rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-left: 0.1rem;
}

.currency-trigger-btn.active .currency-chevron-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

/* Compact Dropdown Card */
.currency-dropdown-card {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 145px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 0.3rem;
  z-index: 99999;
  display: none;
}

.currency-dropdown-card.show {
  display: block !important;
}

.currency-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.currency-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.currency-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.currency-option-item.active {
  background: rgba(200, 16, 46, 0.14);
}

.currency-option-label {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.currency-item-code {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}

.currency-item-symbol {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #38BDF8;
}

.currency-item-check {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-primary);
}

/* Nav Menu Links */
/* Center Segmented Pill Navigation Buttons */
.center-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  background: rgba(15, 23, 42, 0.45);
  padding: 0.28rem 0.38rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  flex-shrink: 1;
  min-width: 0;
}

.nav-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}

.nav-tab-link i {
  font-size: 0.92rem;
  transition: transform 0.2s ease;
}

.nav-tab-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-tab-link:hover i {
  transform: scale(1.15);
}

.nav-tab-link.active {
  background: linear-gradient(135deg, #C8102E 0%, #960D24 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.nav-tab-link.nav-admin-btn {
  background: rgba(245, 158, 11, 0.14);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-tab-link.nav-admin-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.nav-tab-link.nav-admin-btn.active {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Light Theme Navigation Styling */
html[data-theme="light"] .center-nav-links,
body.theme-light .center-nav-links {
  background: #E2E8F0;
  border: 1px solid #CBD5E1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .nav-tab-link,
body.theme-light .nav-tab-link {
  color: #475569;
}

html[data-theme="light"] .nav-tab-link:hover,
body.theme-light .nav-tab-link:hover {
  color: #0F172A;
  background: #F1F5F9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .nav-tab-link.active,
body.theme-light .nav-tab-link.active {
  background: linear-gradient(135deg, #C8102E 0%, #960D24 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

/* User Header Capsule (Clean & No Duplicate Balance/Spent) */
.user-header-capsule {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0 !important;
  white-space: nowrap;
}

.user-capsule-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.65rem 0.2rem 0.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.user-capsule-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.user-capsule-avatar-circle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  flex-shrink: 0;
}

.user-capsule-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-capsule-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.user-capsule-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.user-capsule-tier {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.btn-nav-logout {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

html[data-theme="light"] .user-capsule-badge,
body.theme-light .user-capsule-badge {
  background: #EEF2F6;
  border-color: #CBD5E1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-brand {
  background: var(--brand-primary);
  color: #fff;
}
.btn-brand:hover {
  background: var(--brand-hover);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
}

.btn-white {
  background: #fff;
  color: #0E131F;
}
.btn-white:hover {
  background: #F1F5F9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-green {
  background: var(--color-green);
  color: #0E131F;
  font-weight: 800;
}
.btn-green:hover {
  background: #059669;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   SPLIT-SCREEN HERO SECTION (DilSMM Architecture)
   ========================================================================== */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
}

.hero-brand-card {
  background: linear-gradient(145deg, #A60D24 0%, #660015 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-brand-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-main-heading {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.hero-sub-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 1.25rem;
}

.hero-highlights-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.highlight-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.highlight-chip i {
  color: #38BDF8;
  font-size: 0.8rem;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-social-proof-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.proof-stat {
  display: flex;
  flex-direction: column;
}
.proof-stat strong {
  font-size: 1rem;
  color: #fff;
}
.proof-stat span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Right Side: Auth Card */
.hero-auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-input);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
}

html[data-theme="light"] .auth-tab-btn.active,
body.theme-light .auth-tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff !important;
}

/* Clean, Official Google Sign-In Button */
.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
  text-decoration: none;
  outline: none;
}

.btn-google-auth:hover {
  background: #F8FAFC;
  border-color: #C2C8D0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google-auth:active {
  background: #EEF2F6;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-google-auth .google-svg-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: block;
}

.btn-google-auth span {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3C4043;
  letter-spacing: 0.01em;
}

/* Light theme overrides for Google button */
html[data-theme="light"] .btn-google-auth,
body.theme-light .btn-google-auth {
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
}

/* Google OAuth Modal Dialog & Account Chooser */
.google-oauth-modal-dialog {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.google-oauth-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.google-oauth-header .google-svg-icon {
  margin: 0 auto 0.75rem auto;
  display: block;
}

.google-oauth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}

.google-oauth-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.google-oauth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.google-oauth-body {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.google-account-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.google-account-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.google-user-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.google-user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  line-height: 1.25;
}

.google-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.google-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.google-row-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.google-oauth-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

html[data-theme="light"] .google-oauth-modal-dialog,
body.theme-light .google-oauth-modal-dialog {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .google-account-row,
body.theme-light .google-account-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

html[data-theme="light"] .google-account-row:hover,
body.theme-light .google-account-row:hover {
  background: #EEF2F6;
  border-color: #CBD5E1;
}

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.1rem 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}
.or-divider span {
  padding: 0 0.75rem;
}

/* ==========================================================================
   INPUTS & FORMS
   ========================================================================== */
.input-group {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.input-field.with-icon {
  padding-left: 2.35rem;
}

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.input-field.with-icon-right {
  padding-right: 2.65rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.password-toggle-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}

/* ==========================================================================
   DILSMM RESELLER DASHBOARD BANNER (SCREENSHOT 1 ARCHITECTURE)
   ========================================================================== */
.user-dashboard-banner {
  margin: 1.5rem 0 2.25rem 0;
}

.reseller-profile-card {
  background: linear-gradient(135deg, #960D24 0%, #570012 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 32px rgba(150, 13, 36, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.reseller-profile-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.reseller-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.reseller-avatar-col {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reseller-avatar-circle {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  user-select: none;
}

.reseller-avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  color: #38BDF8;
  background: #0a0e17;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1.5px solid #ffffff;
  z-index: 2;
}

.reseller-user-meta {
  display: flex;
  flex-direction: column;
}

.reseller-username-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reseller-name-bold {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.reseller-tier-tag {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FBBF24;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reseller-welcome-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.2rem;
}

.reseller-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.reseller-stat-box {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 78px;
  min-width: 0;
  box-sizing: border-box;
  transition: var(--transition);
}

.reseller-stat-box:hover {
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.stat-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.stat-box-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.stat-box-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #ffffff;
  flex-shrink: 0;
}

.stat-box-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 0.35rem;
}

.counter-icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.counter-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.15rem;
}

.counter-number {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 800;
}

/* ==========================================================================
   QUICK APP CATEGORY ICONS BAR (SCREENSHOT 2 ARCHITECTURE)
   ========================================================================== */
.quick-category-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 1.25rem;
}

.quick-category-nav-bar::-webkit-scrollbar {
  display: none;
}

.quick-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.quick-cat-btn:hover {
  border-color: var(--brand-border);
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.quick-cat-btn.active {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
}

.quick-cat-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
}

.quick-cat-btn.active .quick-cat-icon-circle {
  background: rgba(255, 255, 255, 0.25);
}

.quick-cat-badge {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ==========================================================================
   PRODUCTS CATALOG (ROW-WISE LIST - SHORT & CLEAN)
   ========================================================================== */
.catalog-section {
  max-width: 1320px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}

.catalog-search-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto 1.25rem auto;
  max-width: 800px;
  flex-wrap: wrap;
}

.catalog-title-group h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.catalog-title-group p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.catalog-search-pill-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 440px;
  width: 100%;
}

.search-lens-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.catalog-search-pill-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.7rem 6.5rem 0.7rem 2.85rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.catalog-search-pill-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

.catalog-search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.catalog-search-btn:hover {
  background: var(--brand-hover);
}

.catalog-subfilter-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Storefront Category Filter Pills Wrapper */
.storefront-category-pills-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0.85rem auto 1.35rem auto;
  position: relative;
  box-sizing: border-box;
}

.storefront-category-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem 0.25rem 0.65rem 0.25rem;
}

/* Mobile & Tablet Screens (<= 768px): Sleek horizontal swipeable rail (Zero vertical stacking / No pushing down) */
@media (max-width: 768px) {
  .storefront-category-pills-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 0.15rem 0.5rem !important;
    margin: 0.5rem auto 0.85rem auto !important;
    max-width: 100% !important;
    /* Tareeqa 1: Luxury Subtle Edge Fade Mask (Right side hint for swipe) */
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 46px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 46px), transparent 100%);
    transition: -webkit-mask-image 0.25s ease, mask-image 0.25s ease;
  }
  .storefront-category-pills-wrapper.is-scrolled-mid {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 28px, #000 calc(100% - 40px), transparent 100%);
  }
  .storefront-category-pills-wrapper.is-scrolled-end {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 36px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 36px, #000 100%);
  }
  .storefront-category-pills-wrapper::-webkit-scrollbar {
    display: none !important;
  }
  .storefront-category-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.2rem 0.25rem 0.45rem 0.25rem !important;
    width: max-content !important;
    min-width: 100% !important;
  }
  .storefront-category-pill {
    padding: 0.38rem 0.78rem !important;
    font-size: 0.78rem !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .storefront-category-pill i {
    font-size: 0.85rem !important;
  }
  .storefront-category-pill .pill-count {
    font-size: 0.68rem !important;
    min-width: 1.15rem !important;
    height: 1.15rem !important;
    padding: 0 0.32rem !important;
  }
}

/* Base Pill Button */
.storefront-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.46rem 1rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: var(--font-sans);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.storefront-category-pill:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: rgba(200, 16, 46, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.storefront-category-pill i {
  color: var(--brand-primary);
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

/* Active Pill State */
.storefront-category-pill.active {
  background: linear-gradient(135deg, #C8102E 0%, #9B0C22 100%) !important;
  color: #ffffff !important;
  border-color: #C8102E !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.38) !important;
  font-weight: 700;
}
.storefront-category-pill.active i {
  color: #ffffff !important;
}

/* Category Pill Count Badge */
.storefront-category-pill .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.2rem;
  font-size: 0.72rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 700;
  line-height: 1;
  transition: all 0.18s ease;
}

[data-theme="dark"] .storefront-category-pill .pill-count {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}

.storefront-category-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Storefront Category Section Header */
.storefront-category-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem auto 0.75rem auto;
  padding: 0.5rem 0.25rem 0.65rem 0.25rem;
  border-bottom: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

.storefront-category-header .cat-header-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.storefront-category-header .cat-header-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.storefront-category-header .cat-header-count {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Active Category Filter Banner (Shown when a specific category is selected) */
.storefront-active-category-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin: 0.5rem auto 1.25rem auto;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.storefront-active-category-banner .banner-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.storefront-active-category-banner .banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.storefront-active-category-banner .banner-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.storefront-active-category-banner .banner-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.storefront-active-category-banner .banner-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.storefront-active-category-banner .banner-reset-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
}

@media (max-width: 576px) {
  .storefront-active-category-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.95rem;
  }
  .storefront-active-category-banner .banner-reset-btn {
    align-self: flex-start;
    margin-top: 0.4rem;
  }
}

/* ==========================================================================
   TELEGRAM BOT PRODUCT BUTTONS (Exact Reference Architecture)
   ========================================================================== */
/* Telegram Catalog Master Container */
.telegram-catalog-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Telegram Product Button: Clean Two-Column Flex Layout */
.telegram-product-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border-radius: 10px;
  padding: 0.45rem 0.95rem;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-sans);
  text-align: left;
  box-sizing: border-box;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: all 0.16s ease-in-out;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Left Column: Logo + Title */
.telegram-btn-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0; /* Ensures proper text truncation */
}

/* Right Column: Price + Stock Badge + Subtle Arrow */
.telegram-btn-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Subtle Interactive Chevron Arrow */
.telegram-btn-arrow {
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, color 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
}
.telegram-product-btn:hover .telegram-btn-arrow {
  color: #38BDF8;
  transform: translateX(2px);
}
.telegram-product-btn.out-of-stock:hover .telegram-btn-arrow {
  color: #94A3B8;
  transform: none;
}

/* In-Stock: Deep Luxury Midnight Slate / Navy */
.telegram-product-btn.in-stock {
  background: linear-gradient(135deg, #152238 0%, #0F172A 100%);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.telegram-product-btn.in-stock:hover {
  background: linear-gradient(135deg, #1B2B46 0%, #121D33 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.12);
  transform: translateY(-1.5px);
}
.telegram-product-btn.in-stock:active {
  transform: scale(0.99);
}

/* Out-of-Stock: Muted Charcoal / Graphite */
.telegram-product-btn.out-of-stock {
  background: linear-gradient(135deg, #161A22 0%, #11141B 100%);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.72;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.telegram-product-btn.out-of-stock:hover {
  opacity: 0.88;
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}
.telegram-product-btn.out-of-stock:active {
  transform: scale(0.99);
}

/* Icon Wrap (Compact Smooth Squircle) */
.telegram-btn-icon-wrap {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.telegram-btn-icon-wrap img,
.telegram-btn-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  box-sizing: border-box;
}
.telegram-btn-icon-fallback {
  font-size: 1.15rem;
  line-height: 1;
}

/* Title */
.telegram-btn-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.telegram-product-btn.out-of-stock .telegram-btn-title {
  color: #94A3B8;
}

/* Price: Electric Sky Cyan in Dark Mode (High Tech & Vibrant) */
.telegram-btn-price {
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: #38BDF8;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  transition: color 0.16s ease;
}

.telegram-product-btn.in-stock:hover .telegram-btn-price {
  color: #7DD3FC;
}

.telegram-product-btn.out-of-stock .telegram-btn-price {
  color: #64748B;
}

/* Stock Badge: Sleek Muted Slate Pill */
.telegram-btn-stock {
  font-weight: 600;
  font-size: 0.78rem;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.01em;
  transition: all 0.16s ease;
}

.telegram-product-btn.in-stock:hover .telegram-btn-stock {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.telegram-product-btn.out-of-stock .telegram-btn-stock {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.restock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  display: inline-block;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
}

/* Light Mode Overrides for Telegram Buttons */
html[data-theme="light"] .telegram-btn-icon-wrap,
body.theme-light .telegram-btn-icon-wrap {
  background: #F1F5F9;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .telegram-product-btn.in-stock,
body.theme-light .telegram-product-btn.in-stock {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}
html[data-theme="light"] .telegram-product-btn.in-stock:hover,
body.theme-light .telegram-product-btn.in-stock:hover {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1.5px);
}
html[data-theme="light"] .telegram-product-btn.out-of-stock,
body.theme-light .telegram-product-btn.out-of-stock {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0.72;
}
html[data-theme="light"] .telegram-product-btn .telegram-btn-title,
body.theme-light .telegram-product-btn .telegram-btn-title {
  color: #0F172A;
}
html[data-theme="light"] .telegram-product-btn.out-of-stock .telegram-btn-title,
body.theme-light .telegram-product-btn.out-of-stock .telegram-btn-title {
  color: #64748B;
}

/* Price in Light Mode: Signature Brand Crimson (Eye-catching & Distinct) */
html[data-theme="light"] .telegram-product-btn .telegram-btn-price,
body.theme-light .telegram-product-btn .telegram-btn-price {
  color: #C8102E !important;
}
html[data-theme="light"] .telegram-product-btn.in-stock:hover .telegram-btn-price,
body.theme-light .telegram-product-btn.in-stock:hover .telegram-btn-price {
  color: #990B22 !important;
}
html[data-theme="light"] .telegram-product-btn.out-of-stock .telegram-btn-price,
body.theme-light .telegram-product-btn.out-of-stock .telegram-btn-price {
  color: #94A3B8 !important;
}

html[data-theme="light"] .telegram-product-btn .telegram-btn-stock,
body.theme-light .telegram-product-btn .telegram-btn-stock {
  color: #475569 !important;
  background: #F1F5F9 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
html[data-theme="light"] .telegram-product-btn.in-stock:hover .telegram-btn-stock,
body.theme-light .telegram-product-btn.in-stock:hover .telegram-btn-stock {
  background: #E2E8F0 !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #0F172A !important;
}
html[data-theme="light"] .telegram-product-btn.out-of-stock .telegram-btn-stock,
body.theme-light .telegram-product-btn.out-of-stock .telegram-btn-stock {
  color: #DC2626 !important;
  background: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .telegram-product-btn .telegram-btn-arrow,
body.theme-light .telegram-product-btn .telegram-btn-arrow {
  color: rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] .telegram-product-btn:hover .telegram-btn-arrow,
body.theme-light .telegram-product-btn:hover .telegram-btn-arrow {
  color: #0284C7;
}

/* Product Row Container */
.product-rows-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-parent-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.product-parent-row:hover {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

.product-parent-row.expanded {
  border-color: var(--brand-border);
}

.parent-summary-bar {
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.parent-info-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Commercial Product Thumbnail Box */
.product-thumb-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.product-avatar-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.product-text-details {
  display: flex;
  flex-direction: column;
}

.product-main-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-category-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

.parent-metrics-cell {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.price-range-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-range-badge span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-range-badge strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--color-green);
  font-weight: 800;
}

.stock-indicator-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}
.stock-indicator-pill.in-stock { background: var(--color-green-bg); color: var(--color-green); }
.stock-indicator-pill.out-of-stock { background: rgba(239, 68, 68, 0.12); color: var(--color-red); }

.toggle-plans-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.toggle-plans-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.toggle-plans-btn i {
  transition: transform 0.2s ease-in-out;
}

.product-parent-row.expanded .toggle-plans-btn {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.product-parent-row.expanded .toggle-plans-btn i {
  transform: rotate(180deg);
}

/* Sub-plans Drawer (Inside Expanded Row) */
.sub-plans-drawer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  display: none;
}

.product-parent-row.expanded .sub-plans-drawer {
  display: block !important;
}

.sub-plans-table {
  width: 100%;
  border-collapse: collapse;
}

.sub-plans-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sub-plans-table tr:last-child {
  border-bottom: none;
}

.sub-plans-table td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  font-size: 0.86rem;
}

.plan-name-cell {
  font-weight: 700;
  color: #fff;
}

.plan-specs-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
}

.spec-badge {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
}
.spec-badge.warranty {
  color: var(--color-green);
  background: var(--color-green-bg);
}

.plan-price-cell {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-green);
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   ADVANCED ADMIN COMMAND CENTER & FINANCIAL KPIS
   ========================================================================== */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-kpi-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 115px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-lg);
}

.admin-kpi-card.sales {
  border-left: 4px solid #38BDF8;
}
.admin-kpi-card.profit {
  border-left: 4px solid #10B981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-surface) 100%);
}
.admin-kpi-card.liabilities {
  border-left: 4px solid #F59E0B;
}
.admin-kpi-card.deposits {
  border-left: 4px solid #A855F7;
}

.admin-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.admin-kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.admin-kpi-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--border-subtle);
}

.admin-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.admin-kpi-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Light Mode Overrides for KPI cards */
html[data-theme="light"] .admin-kpi-card,
body.theme-light .admin-kpi-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .admin-kpi-card:hover,
body.theme-light .admin-kpi-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .admin-kpi-card.sales,
body.theme-light .admin-kpi-card.sales {
  border-left: 4px solid #0284C7;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.04) 0%, #FFFFFF 100%);
}
html[data-theme="light"] .admin-kpi-card.profit,
body.theme-light .admin-kpi-card.profit {
  border-left: 4px solid #059669;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, #FFFFFF 100%);
}
html[data-theme="light"] .admin-kpi-card.liabilities,
body.theme-light .admin-kpi-card.liabilities {
  border-left: 4px solid #D97706;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.04) 0%, #FFFFFF 100%);
}
html[data-theme="light"] .admin-kpi-card.deposits,
body.theme-light .admin-kpi-card.deposits {
  border-left: 4px solid #9333EA;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.04) 0%, #FFFFFF 100%);
}
html[data-theme="light"] .admin-kpi-val,
body.theme-light .admin-kpi-val {
  color: #0F172A;
}
html[data-theme="light"] .admin-kpi-label,
body.theme-light .admin-kpi-label {
  color: #64748B;
}

/* Admin Tabbed Navigation */
.admin-nav-tabs-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  background: var(--bg-surface);
  padding: 0.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  scrollbar-width: thin;
}

.admin-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.admin-tab-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.admin-tab-badge {
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

/* Light Mode Overrides for Admin Tabs */
html[data-theme="light"] .admin-nav-tabs-wrap,
body.theme-light .admin-nav-tabs-wrap {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
html[data-theme="light"] .admin-tab-btn,
body.theme-light .admin-tab-btn {
  color: #475569;
}
html[data-theme="light"] .admin-tab-btn:hover,
body.theme-light .admin-tab-btn:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .admin-tab-btn.active,
body.theme-light .admin-tab-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
}

/* Telegram Bot / Supplier Cards Grid */
.bot-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.bot-card-box {
  background: rgba(21, 28, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: var(--transition);
}

.bot-card-box:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bot-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.bot-name-strong {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.bot-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bot-status-tag.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.bot-status-tag.inactive {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

html[data-theme="light"] .bot-card-box,
body.theme-light .bot-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .bot-name-strong,
body.theme-light .bot-name-strong {
  color: var(--text-primary);
}

html[data-theme="light"] .bot-meta-table td,
body.theme-light .bot-meta-table td {
  border-bottom: 1px solid var(--border-subtle);
}

.bot-meta-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.bot-meta-table td {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bot-meta-label {
  color: var(--text-muted);
}

.bot-meta-val {
  text-align: right;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Provenance and Profit Pills */
.profit-pill-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.provenance-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.76rem;
}

.provenance-bot-name {
  color: #38BDF8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.provenance-ref-text {
  font-family: var(--font-mono);
  color: #FBBF24;
  font-size: 0.72rem;
}

.provenance-contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
}

.provenance-contact-link:hover {
  color: #38BDF8;
  text-decoration: underline;
}

.rate-to-rate-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.loss-floor-badge {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

@media (max-width: 992px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODAL WINDOWS & CHECKOUT
   ========================================================================== */
/* ==========================================================================
   MODAL WINDOWS & CHECKOUT
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  box-sizing: border-box;
}

.modal-backdrop.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

@media (max-height: 820px) {
  .modal-backdrop.active {
    align-items: flex-start;
  }
}

.modal-dialog {
  margin: 1.25rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Ensure forms inside modal dialog flex properly and allow body scrolling */
.modal-dialog > form,
.modal-dialog form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.modal-header-clean {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.modal-body-clean {
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.modal-body-clean::-webkit-scrollbar {
  width: 6px;
}
.modal-body-clean::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body-clean::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
.modal-body-clean::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-footer-clean {
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.btn-close-clean {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-close-clean:hover { color: var(--text-primary); }

/* ==========================================================================
   CHECKOUT MODAL (World-Class, Compact & High-Contrast)
   ========================================================================== */
.checkout-modal-dialog {
  max-width: 480px !important;
  max-height: calc(100vh - 2rem) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-card) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}

.checkout-modal-header {
  padding: 0.95rem 1.25rem !important;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.checkout-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.checkout-brand-logo-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.checkout-brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.checkout-header-text {
  min-width: 0;
  flex: 1;
}

.checkout-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.checkout-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  flex-wrap: wrap;
}

.checkout-delivery-badge {
  color: #0284C7;
  font-weight: 600;
}
html[data-theme="dark"] .checkout-delivery-badge {
  color: #38BDF8;
}

.checkout-meta-dot {
  color: var(--text-muted);
}

/* 3. CHECKOUT MODAL BADGES */
.checkout-warranty-badge {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.2px;
  padding: 0.18rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  transition: all 0.18s ease;
}

.checkout-warranty-badge.checkout-has-warranty-badge,
.checkout-warranty-badge:not(.checkout-nowarranty-badge) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.08) 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.38);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}
html[data-theme="dark"] .checkout-warranty-badge.checkout-has-warranty-badge,
html[data-theme="dark"] .checkout-warranty-badge:not(.checkout-nowarranty-badge) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(5, 150, 105, 0.12) 100%);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.checkout-warranty-badge.checkout-nowarranty-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%) !important;
  color: #B45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2) !important;
}
html[data-theme="dark"] .checkout-warranty-badge.checkout-nowarranty-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.26) 0%, rgba(217, 119, 6, 0.14) 100%) !important;
  color: #FBBF24 !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.28) !important;
}

/* Checkout spec values */
.checkout-spec-warranty-text.text-warranty {
  color: #059669 !important;
  font-weight: 800;
}
html[data-theme="dark"] .checkout-spec-warranty-text.text-warranty {
  color: #34D399 !important;
  text-shadow: 0 0 6px rgba(52, 211, 153, 0.35);
}
.checkout-spec-warranty-text.text-nowarranty {
  color: #B45309 !important;
  font-weight: 800;
}
html[data-theme="dark"] .checkout-spec-warranty-text.text-nowarranty {
  color: #FBBF24 !important;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.35);
}

/* Orders table badges */
.order-nowarranty-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.08) 100%);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-weight: 750;
  font-size: 0.74rem;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 6px rgba(245, 158, 11, 0.12);
}
html[data-theme="dark"] .order-nowarranty-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.12) 100%);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 1px 8px rgba(245, 158, 11, 0.2);
}

.order-warranty-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.08) 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 750;
  font-size: 0.74rem;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.12);
}
html[data-theme="dark"] .order-warranty-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.12) 100%);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: 0 1px 8px rgba(16, 185, 129, 0.2);
}

.order-expired-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.06) 100%);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.32);
  font-weight: 750;
  font-size: 0.74rem;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.08);
}
html[data-theme="dark"] .order-expired-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(220, 38, 38, 0.12) 100%);
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.38);
  box-shadow: 0 1px 8px rgba(239, 68, 68, 0.18);
}

/* User Search Picker for Onboarding Stock Manager */
.stock-user-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}
.stock-user-picker-item:last-child {
  border-bottom: none;
}
.stock-user-picker-item:hover, .stock-user-picker-item.active {
  background: rgba(56, 189, 248, 0.08);
}
html[data-theme="dark"] .stock-user-picker-item:hover, 
html[data-theme="dark"] .stock-user-picker-item.active {
  background: rgba(56, 189, 248, 0.14);
}

.checkout-close-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.16s ease;
}
.checkout-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

/* Modal Body */
.checkout-modal-body {
  padding: 1rem 1.25rem !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  flex: 1;
}

/* Specs Bar (3 Columns in Single Row) */
.checkout-specs-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
}
.checkout-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  text-align: center;
}
.checkout-spec-item .spec-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.checkout-spec-item .spec-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.checkout-spec-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

/* Description Box */
.checkout-description-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  max-height: 110px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.checkout-description-box::-webkit-scrollbar {
  width: 4px;
}
.checkout-description-box::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 4px;
}
.checkout-description-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

/* Pricing & Stepper Card */
.checkout-pricing-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.checkout-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qty-label-box {
  display: flex;
  flex-direction: column;
}
.qty-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.qty-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 0.2rem;
}

.qty-step-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.qty-step-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.qty-number-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.checkout-bill-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.65rem 0;
}

.checkout-bill-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.bill-label {
  color: var(--text-secondary);
}
.bill-val {
  font-weight: 700;
  color: var(--text-primary);
}
.bill-row.total-row {
  margin-top: 0.2rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border-subtle);
}
.total-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary) !important;
}
.total-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #38BDF8 !important;
}

/* Pinned Footer (Always Visible!) */
.checkout-modal-footer {
  padding: 0.85rem 1.25rem 1rem !important;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.checkout-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.checkout-primary-btn {
  height: 44px;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
}
.checkout-secondary-btn {
  height: 38px;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
.checkout-guarantee-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Light Mode Overrides for Checkout Modal */
html[data-theme="light"] .modal-dialog,
body.theme-light .modal-dialog,
html[data-theme="light"] .checkout-modal-dialog,
body.theme-light .checkout-modal-dialog {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}
html[data-theme="light"] .checkout-modal-header,
body.theme-light .checkout-modal-header,
html[data-theme="light"] .checkout-modal-footer,
body.theme-light .checkout-modal-footer {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .checkout-title,
body.theme-light .checkout-title {
  color: #0F172A !important;
}
html[data-theme="light"] .checkout-close-btn,
body.theme-light .checkout-close-btn {
  background: #F1F5F9;
  color: #475569;
}
html[data-theme="light"] .checkout-close-btn:hover,
body.theme-light .checkout-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

html[data-theme="light"] .checkout-specs-strip,
body.theme-light .checkout-specs-strip {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
html[data-theme="light"] .checkout-spec-item .spec-val,
body.theme-light .checkout-spec-item .spec-val {
  color: #0F172A !important;
}
html[data-theme="light"] .checkout-spec-divider,
body.theme-light .checkout-spec-divider {
  background: #E2E8F0 !important;
}

html[data-theme="light"] .checkout-description-box,
body.theme-light .checkout-description-box {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
html[data-theme="light"] .checkout-description-box p,
body.theme-light .checkout-description-box p {
  color: #334155 !important;
}

html[data-theme="light"] .checkout-pricing-card,
body.theme-light .checkout-pricing-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
html[data-theme="light"] .qty-title,
body.theme-light .qty-title {
  color: #0F172A !important;
}
html[data-theme="light"] .qty-stepper,
body.theme-light .qty-stepper {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}
html[data-theme="light"] .qty-step-btn,
body.theme-light .qty-step-btn {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}
html[data-theme="light"] .qty-step-btn:hover,
body.theme-light .qty-step-btn:hover {
  background: #E2E8F0 !important;
}
html[data-theme="light"] .qty-number-input,
body.theme-light .qty-number-input {
  color: #0F172A !important;
}

html[data-theme="light"] .bill-val,
body.theme-light .bill-val {
  color: #0F172A !important;
}
html[data-theme="light"] .total-label,
body.theme-light .total-label {
  color: #0F172A !important;
}
html[data-theme="light"] .total-val,
body.theme-light .total-val {
  color: #C8102E !important;
}

/* ==========================================================================
   NAVBAR RIGHT CONTROLS (THEME TOGGLE & HAMBURGER)
   ========================================================================== */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

/* Theme Toggle Pill Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(26, 35, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.theme-toggle-btn:hover {
  background: rgba(33, 44, 69, 0.95);
  border-color: rgba(200, 16, 46, 0.55);
  transform: translateY(-1px);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: inline-flex; }

html[data-theme="light"] .theme-icon-sun,
body.theme-light .theme-icon-sun { display: inline-flex; }

html[data-theme="light"] .theme-icon-moon,
body.theme-light .theme-icon-moon { display: none; }

/* Mobile Hamburger Button */
.mobile-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(26, 35, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-hamburger-btn:hover {
  border-color: var(--brand-primary);
  background: rgba(200, 16, 46, 0.15);
}

/* ==========================================================================
   MOBILE OFFCANVAS DRAWER
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-card);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.drawer-close-btn:hover {
  color: #fff;
  background: rgba(200, 16, 46, 0.25);
}

.drawer-user-card {
  margin: 1.15rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  min-height: fit-content;
  box-sizing: border-box;
  width: 100%;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  color: #fff;
  background: rgba(200, 16, 46, 0.12);
  border-left: 3px solid var(--brand-primary);
}

.drawer-install-app-btn {
  background: rgba(56, 189, 248, 0.08) !important;
  border-left: 3px solid #38BDF8 !important;
}

.drawer-app-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #38BDF8;
  color: #0F172A;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: auto;
}

/* Double-Click Lock & Debouncing States */
.loading-disabled,
button[disabled].loading-disabled {
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

/* ==========================================================================
   PROGRESSIVE WEB APP (PWA) SMART FLOATING BANNER
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 390px;
  max-width: calc(100vw - 48px);
  z-index: 1990;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  animation: pwaBannerSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pwa-install-banner.closing {
  animation: pwaBannerSlideOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaBannerSlideIn {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pwaBannerSlideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(120%);
    opacity: 0;
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
}

.pwa-banner-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.pwa-banner-icon {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pwa-badge-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  border: 1.5px solid #0F172A;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
}

.pwa-banner-title strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-rating {
  font-size: 0.7rem;
  font-weight: 800;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.pwa-banner-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 3px 0 0 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pwa-btn-install {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pwa-btn-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.pwa-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Light Mode Overrides */
html[data-theme="light"] .pwa-install-banner,
body.theme-light .pwa-install-banner {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .pwa-banner-icon,
body.theme-light .pwa-banner-icon {
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .pwa-badge-pulse,
body.theme-light .pwa-badge-pulse {
  border-color: #FFFFFF;
}

html[data-theme="light"] .pwa-btn-dismiss:hover,
body.theme-light .pwa-btn-dismiss:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

/* Responsive adjustments for mobile screens (< 640px) */
@media (max-width: 640px) {
  .pwa-install-banner {
    bottom: calc(64px + 12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    border-radius: 14px;
  }
  .pwa-banner-content {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }
  .pwa-banner-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .pwa-banner-title strong {
    font-size: 0.86rem;
  }
  .pwa-banner-desc {
    font-size: 0.7rem;
  }
  .pwa-btn-install {
    padding: 0.38rem 0.7rem !important;
    font-size: 0.78rem !important;
  }
  body.pwa-banner-active .floating-whatsapp-widget {
    bottom: calc(64px + 12px + 68px + 10px + env(safe-area-inset-bottom, 0px)) !important;
    transition: bottom 0.3s ease;
  }
}

.drawer-nav-item.admin-item {
  color: #FBBF24;
}

/* ==========================================================================
   MOBILE DRAWER LUXURY FOOTER HUB (Unified Channel, Support & Theme Control)
   ========================================================================== */
.drawer-footer-hub {
  margin-top: auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-surface);
}

.drawer-unified-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.drawer-unified-card:hover {
  transform: translateY(-1.5px);
  border-color: var(--border-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.channel-bubble {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.support-bubble {
  background: rgba(37, 211, 102, 0.12);
  color: #16A34A;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.drawer-unified-card:hover .channel-bubble {
  background: #0284C7;
  color: #FFFFFF;
}

.drawer-unified-card:hover .support-bubble {
  background: #25D366;
  color: #FFFFFF;
}

.card-text-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.card-primary-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.card-sub-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-trailing-arrow {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-unified-card:hover .card-trailing-arrow {
  color: var(--brand-primary);
  transform: translate(2px, -2px);
}

/* Theme Segmented Switcher Card */
.drawer-theme-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-top: 0.15rem;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.theme-card-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-card-header i {
  font-size: 0.92rem;
  color: var(--brand-primary);
}

.theme-segmented-pill-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px;
  cursor: pointer;
  user-select: none;
  gap: 2px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.theme-pill-seg {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.theme-pill-seg i {
  font-size: 0.74rem;
}

.theme-pill-seg.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
}

/* Light Mode Overrides for Drawer Footer Hub */
html[data-theme="light"] .drawer-footer-hub,
body.theme-light .drawer-footer-hub {
  background: #F8FAFC;
  border-top-color: #E2E8F0;
}

html[data-theme="light"] .drawer-unified-card,
body.theme-light .drawer-unified-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .drawer-unified-card:hover,
body.theme-light .drawer-unified-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .drawer-theme-card,
body.theme-light .drawer-theme-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

html[data-theme="light"] .theme-segmented-pill-switch,
body.theme-light .theme-segmented-pill-switch {
  background: #EDF2F7;
  border-color: #E2E8F0;
}

html[data-theme="light"] .theme-pill-seg.active,
body.theme-light .theme-pill-seg.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   MOBILE BOTTOM FLOATING NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(14, 19, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  transition: all 0.2s ease;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--brand-primary);
}

.bottom-add-funds-btn {
  position: relative;
  top: -10px;
}

.bottom-add-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  transition: transform 0.2s ease;
}

.bottom-add-funds-btn:hover .bottom-add-circle {
  transform: scale(1.08);
}

/* ==========================================================================
   LIGHT MODE COMPONENT OVERRIDES
   ========================================================================== */
html[data-theme="light"] .top-navbar,
body.theme-light .top-navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .brand-name span,
body.theme-light .brand-name span {
  color: #0F172A;
}

html[data-theme="light"] .brand-name small,
body.theme-light .brand-name small {
  color: #64748B;
}

html[data-theme="light"] .currency-trigger-btn,
body.theme-light .currency-trigger-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .currency-code-text,
body.theme-light .currency-code-text {
  color: #0F172A;
}

html[data-theme="light"] .currency-dropdown-card,
body.theme-light .currency-dropdown-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .currency-dropdown-header,
body.theme-light .currency-dropdown-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .currency-item-code,
body.theme-light .currency-item-code {
  color: #0F172A;
}

html[data-theme="light"] .currency-option-item:hover,
body.theme-light .currency-option-item:hover {
  background: #F1F5F9;
}

html[data-theme="light"] .theme-toggle-btn,
body.theme-light .theme-toggle-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #D97706;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .mobile-hamburger-btn,
body.theme-light .mobile-hamburger-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
}

html[data-theme="light"] .mobile-bottom-nav,
body.theme-light .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .mobile-drawer,
body.theme-light .mobile-drawer {
  background: #FFFFFF;
  border-left-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .drawer-user-card,
body.theme-light .drawer-user-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .drawer-nav-item,
body.theme-light .drawer-nav-item {
  color: #475569;
}

html[data-theme="light"] .drawer-nav-item:hover,
html[data-theme="light"] .drawer-nav-item.active,
body.theme-light .drawer-nav-item:hover,
body.theme-light .drawer-nav-item.active {
  color: var(--brand-primary);
  background: rgba(200, 16, 46, 0.06);
}

html[data-theme="light"] .nav-tab-link,
body.theme-light .nav-tab-link {
  color: #64748B;
}

html[data-theme="light"] .nav-tab-link:hover,
html[data-theme="light"] .nav-tab-link.active,
body.theme-light .nav-tab-link:hover,
body.theme-light .nav-tab-link.active {
  color: var(--brand-primary);
  background: var(--brand-soft);
}

html[data-theme="light"] .hero-auth-card,
body.theme-light .hero-auth-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .btn-google-auth,
body.theme-light .btn-google-auth {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

html[data-theme="light"] .btn-google-auth:hover,
body.theme-light .btn-google-auth:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

html[data-theme="light"] .input-field,
body.theme-light .input-field {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

html[data-theme="light"] .input-field:focus,
body.theme-light .input-field:focus {
  background: #FFFFFF;
  border-color: var(--brand-primary);
}

html[data-theme="light"] .input-icon-left,
body.theme-light .input-icon-left {
  color: #94A3B8;
}

html[data-theme="light"] .password-toggle-btn,
body.theme-light .password-toggle-btn {
  color: #64748B;
}

html[data-theme="light"] .password-toggle-btn:hover,
body.theme-light .password-toggle-btn:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .product-parent-row,
body.theme-light .product-parent-row {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}



html[data-theme="light"] .product-main-name,
body.theme-light .product-main-name {
  color: #0F172A;
}

html[data-theme="light"] .price-range-badge strong,
body.theme-light .price-range-badge strong {
  color: #0F172A;
}

html[data-theme="light"] .toggle-plans-btn,
body.theme-light .toggle-plans-btn {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #0F172A;
}

html[data-theme="light"] .sub-plans-drawer,
body.theme-light .sub-plans-drawer {
  background: #F8FAFC;
  border-top-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .plan-name-cell,
body.theme-light .plan-name-cell {
  color: #0F172A;
}

html[data-theme="light"] .spec-badge,
body.theme-light .spec-badge {
  background: #E2E8F0;
  color: #334155;
}

html[data-theme="light"] .cat-pill,
body.theme-light .cat-pill {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #475569;
}

html[data-theme="light"] .cat-pill.active,
body.theme-light .cat-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

html[data-theme="light"] .stat-pill,
body.theme-light .stat-pill {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #0F172A;
}

.codebox-clean {
  background: var(--bg-input, #0F172A);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-sm, 8px);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  user-select: all;
}
.codebox-clean::-webkit-scrollbar {
  height: 4px;
}
.codebox-clean::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

html[data-theme="light"] .codebox-clean,
body.theme-light .codebox-clean {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0284C7;
}

html[data-theme="light"] .modal-dialog,
body.theme-light .modal-dialog {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  color: #0F172A;
}

html[data-theme="light"] .modal-header-clean,
html[data-theme="light"] .modal-footer-clean,
body.theme-light .modal-header-clean,
body.theme-light .modal-footer-clean {
  border-color: rgba(0, 0, 0, 0.07);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   ========================================================================== */
@media (max-width: 1400px) {
  .nav-deposit-capsule-btn {
    display: none !important;
  }
  .nav-channel-pill .nav-channel-text {
    display: none !important;
  }
  .nav-channel-pill {
    padding: 0.35rem 0.55rem !important;
  }
  .center-nav-links {
    gap: 0.25rem !important;
    padding: 0.22rem 0.32rem !important;
  }
  .nav-tab-link {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.77rem !important;
    gap: 0.3rem !important;
  }
  .nav-tab-link i {
    font-size: 0.84rem !important;
  }
}


@media (max-width: 1180px) {
  .nav-inner {
    gap: 0.45rem !important;
  }
  .brand-group {
    gap: 0.45rem !important;
  }
  .center-nav-links {
    gap: 0.18rem !important;
    padding: 0.18rem 0.25rem !important;
  }
  .nav-tab-link {
    padding: 0.3rem 0.45rem !important;
    font-size: 0.73rem !important;
    gap: 0.2rem !important;
  }
  .user-capsule-name {
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 900px) {
  .reseller-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }
}

@media (max-width: 992px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .center-nav-links {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
  }
  #nav-user-actions {
    display: none !important;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  main {
    padding: 0 0.75rem 85px 0.75rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Top Navbar */
  .top-navbar {
    padding: 0.5rem 0.75rem;
  }
  .sm-brand-title {
    font-size: 1.25rem;
  }
  .sm-geom-bar.top-bar {
    width: 44px;
    height: 4px;
  }
  .sm-provider-text {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }
  .sm-geom-bar.bot-bar {
    width: 38px;
    height: 4px;
  }

  .currency-trigger-btn {
    height: 28px;
    padding: 0 0.5rem;
    gap: 0.25rem;
  }
  .currency-code-text {
    font-size: 0.76rem;
  }
  .currency-symbol-sub {
    display: inline-block !important;
    font-size: 0.68rem;
    padding: 0.06rem 0.25rem;
  }
  .currency-dropdown-card {
    min-width: 135px;
    top: calc(100% + 4px);
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  /* DilSMM Reseller Banner - Compact & Well-Managed on Mobile */
  .user-dashboard-banner {
    margin: 1rem 0 1.5rem 0;
  }
  .reseller-profile-card {
    padding: 1rem 0.95rem;
    border-radius: var(--radius-md);
  }
  .reseller-header-row {
    margin-bottom: 0.85rem;
    gap: 0.5rem;
  }
  .reseller-avatar-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.2rem;
  }
  .avatar-verified-badge {
    font-size: 0.95rem;
  }
  .reseller-name-bold {
    font-size: 1.05rem;
  }
  .reseller-tier-tag {
    font-size: 0.62rem;
    padding: 0.12rem 0.45rem;
  }
  .reseller-welcome-sub {
    font-size: 0.72rem;
    margin-top: 0.1rem;
  }
  .reseller-quick-actions .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Hero Section: Compact, Balanced & Professional on Mobile */
  .hero-split-grid {
    margin: 0.75rem 0 1.25rem 0 !important;
    gap: 1rem !important;
  }
  .hero-brand-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }
  .trust-badge-pill {
    margin-bottom: 0.65rem !important;
    padding: 0.25rem 0.65rem !important;
    font-size: 0.65rem !important;
  }
  .hero-main-heading {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }
  .hero-sub-text {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-highlights-chips {
    gap: 0.3rem !important;
    margin-bottom: 0.85rem !important;
  }
  .highlight-chip {
    padding: 0.18rem 0.5rem !important;
    font-size: 0.65rem !important;
  }
  .highlight-chip i {
    font-size: 0.7rem !important;
  }
  .hero-actions-row {
    margin-bottom: 0.85rem !important;
    gap: 0.5rem !important;
  }
  .hero-actions-row .btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
  }
  .hero-social-proof-bar {
    padding-top: 0.75rem !important;
    gap: 0.65rem !important;
  }
  .proof-stat strong {
    font-size: 0.88rem !important;
  }
  .proof-stat span {
    font-size: 0.62rem !important;
  }
  .hero-auth-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* 2x2 Stats Grid: Perfect Proportions with ZERO Text Breakage */
  .reseller-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }
  .reseller-stat-box {
    padding: 0.65rem 0.75rem !important;
    min-height: 68px !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .stat-box-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }
  .stat-box-label {
    font-size: 0.65rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .stat-box-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 0.7rem !important;
  }
  .stat-box-val {
    font-size: 1.05rem !important;
    margin-top: 0.25rem !important;
    line-height: 1.15 !important;
  }

  /* Floating WhatsApp Widget Above Mobile Bottom Nav */
  .floating-whatsapp-widget {
    bottom: 74px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.4rem !important;
  }
  .whatsapp-tooltip-text {
    display: none !important;
  }

  /* Mobile Bottom Nav Spacing for Main Content */
  main {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Catalog Controls Bar */
  .catalog-section {
    padding: 0 !important;
    margin-bottom: 2rem !important;
  }
  .catalog-search-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .catalog-title-group h2 {
    font-size: 1.25rem;
  }
  .catalog-title-group p {
    font-size: 0.78rem;
  }
  .catalog-search-pill-wrapper {
    max-width: 100%;
  }

  /* Telegram Bot Buttons Mobile Responsive */
  .telegram-catalog-container {
    gap: 0.45rem !important;
  }
  .telegram-product-btn {
    padding: 0.42rem 0.75rem !important;
    border-radius: 9px !important;
    gap: 0.5rem !important;
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .telegram-product-btn:active {
    transform: scale(0.985) !important;
  }
  .telegram-btn-left {
    gap: 0.5rem !important;
  }
  .telegram-btn-right {
    gap: 0.45rem !important;
  }
  .telegram-btn-icon-wrap {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 6px !important;
  }
  .telegram-btn-title {
    font-size: 0.84rem !important;
  }
  .telegram-btn-price {
    font-size: 0.88rem !important;
  }
  .telegram-btn-stock {
    font-size: 0.76rem !important;
    padding: 0.15rem 0.45rem !important;
  }
  .telegram-btn-arrow {
    font-size: 0.85rem !important;
  }

  /* Product Parent Row: Ultra-Clean 2-Tier Mobile Layout */
  .product-parent-row {
    border-radius: var(--radius-md);
  }
  .parent-summary-bar {
    padding: 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
  .parent-info-cell {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
  }
  .product-thumb-box {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
  .product-avatar-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 1.2rem !important;
  }
  .product-text-details {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .product-main-name {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }
  .product-category-tag {
    font-size: 0.68rem !important;
  }

  .parent-metrics-cell {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 0.6rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    gap: 0.5rem !important;
  }
  .price-range-badge {
    align-items: flex-start !important;
  }
  .price-range-badge span {
    font-size: 0.65rem !important;
  }
  .price-range-badge strong {
    font-size: 1.05rem !important;
  }
  .stock-indicator-pill {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.5rem !important;
  }
  .toggle-plans-btn {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.78rem !important;
    margin-left: 0 !important;
  }
  .sub-plans-drawer {
    padding: 0.75rem 0.65rem;
  }
}

@media (max-width: 680px) {
  .sub-plans-table,
  .sub-plans-table tbody,
  .sub-plans-table tr,
  .sub-plans-table td {
    display: block;
    width: 100% !important;
  }
  .sub-plans-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .sub-plans-table td {
    padding: 0.3rem 0;
    border: none !important;
    text-align: left !important;
  }
  .plan-name-cell > div:first-child {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .plan-specs-cell {
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0;
  }
  .plan-price-cell {
    font-size: 1.25rem !important;
    color: var(--color-green) !important;
    margin: 0.45rem 0;
  }
  .sub-plans-table td:last-child {
    margin-top: 0.5rem;
  }
  .sub-plans-table td:last-child .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.92rem;
    justify-content: center;
  }
  .hero-social-proof-bar {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem;
  }
  .proof-stat strong {
    font-size: 0.95rem;
  }
  .proof-stat span {
    font-size: 0.65rem;
  }
  .modal-dialog {
    max-width: 95vw !important;
    margin: 0 auto;
    border-radius: var(--radius-md);
  }
  .modal-header-clean,
  .modal-body-clean,
  .modal-footer-clean {
    padding: 1rem;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP SUPPORT WIDGET (DILSMM STANDARD)
   ========================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: #25D366;
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: var(--transition);
}

.floating-whatsapp-widget:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

.whatsapp-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulseRing 2s infinite ease-out;
  pointer-events: none;
}

@keyframes waPulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-tooltip-text {
  position: absolute;
  right: 66px;
  background: rgba(14, 19, 31, 0.95);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
  transform: translateX(10px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp-widget:hover .whatsapp-tooltip-text {
  opacity: 1;
  transform: translateX(0);
}



/* ==========================================================================
   LIGHT MODE OVERRIDES FOR NEW COMPONENTS
   ========================================================================== */
html[data-theme="light"] .counter-box,
body.theme-light .counter-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .counter-number,
body.theme-light .counter-number {
  color: #0F172A;
}

html[data-theme="light"] .quick-cat-btn,
body.theme-light .quick-cat-btn {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #334155;
}

html[data-theme="light"] .quick-cat-btn:hover,
body.theme-light .quick-cat-btn:hover {
  background: #F8FAFC;
  border-color: var(--brand-border);
  color: #0F172A;
}

html[data-theme="light"] .catalog-search-pill-input,
body.theme-light .catalog-search-pill-input {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

html[data-theme="light"] .product-thumb-box,
body.theme-light .product-thumb-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .whatsapp-tooltip-text,
body.theme-light .whatsapp-tooltip-text {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #E2E8F0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM (Fixed position above WhatsApp widget)
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 85px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-info {
  background: rgba(15, 23, 42, 0.95);
  color: #F8FAFC;
  border-color: rgba(56, 189, 248, 0.35);
  border-left: 4px solid #38BDF8;
}
.toast-success {
  background: rgba(6, 78, 59, 0.95);
  color: #ECFDF5;
  border-color: rgba(16, 185, 129, 0.4);
  border-left: 4px solid #10B981;
}
.toast-error {
  background: rgba(127, 29, 29, 0.95);
  color: #FEF2F2;
  border-color: rgba(239, 68, 68, 0.4);
  border-left: 4px solid #EF4444;
}

html[data-theme="light"] .toast-info {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 4px solid #0284C7;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .toast-success {
  background: #FFFFFF;
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid #059669;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .toast-error {
  background: #FFFFFF;
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #DC2626;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  #toast-container {
    bottom: 80px;
    right: 14px;
    left: 14px;
    max-width: none;
  }
}

/* ==========================================================================
   CUSTOMER NOTIFICATION BELL & INBOX MODAL
   ========================================================================== */
.nav-notification-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.nav-notification-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-body);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   CUSTOMER NOTIFICATIONS INBOX - ULTRA POLISHED RESPONSIVE DESIGN
   ========================================================================== */
#modal-notification-inbox {
  z-index: 2500 !important;
}

#modal-notification-inbox .modal-dialog {
  max-width: 580px;
  width: 100%;
  border-radius: 16px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.notif-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.notif-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.notif-modal-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.notif-title-text {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.notif-unread-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.notif-close-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-close-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* CONTROLS BAR: TABS + ACTION LINKS */
.notif-controls-bar {
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.notif-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.notif-tabs::-webkit-scrollbar {
  display: none;
}

.notif-tab {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.notif-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
}

.notif-tab.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.notif-action-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.notif-bar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-notif-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notif-link:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn-notif-link.danger {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}

.btn-notif-link.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
}

/* BODY & CARDS */
.notif-modal-body {
  padding: 1rem 1.25rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.notification-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* EMPTY STATE */
.notif-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.notif-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.notif-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
}

.notif-empty-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.45;
}

/* MODERN NOTIFICATION CARD */
.notif-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  display: flex;
  gap: 0.8rem;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.notif-card:hover {
  border-color: var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.notif-card.is-unread {
  border-left: 4px solid var(--brand-primary);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.07) 0%, var(--bg-surface) 100%);
}

.notif-card.notif-type-replacement.is-unread {
  border-left: 4px solid #10B981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.07) 0%, var(--bg-surface) 100%);
}

.notif-card.notif-type-refund.is-unread {
  border-left: 4px solid #F59E0B;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.07) 0%, var(--bg-surface) 100%);
}

.notif-card.notif-type-system.is-unread {
  border-left: 4px solid #EF4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.07) 0%, var(--bg-surface) 100%);
}

.notif-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.notif-type-replacement .notif-card-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.2);
}

.notif-type-refund .notif-card-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.2);
}

.notif-type-system .notif-card-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.notif-card-content {
  flex: 1;
  min-width: 0;
}

.notif-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.notif-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.notif-card-badge {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.notif-type-replacement .notif-card-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.notif-type-refund .notif-card-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
  border-color: rgba(245, 158, 11, 0.25);
}

.notif-type-system .notif-card-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
  border-color: rgba(239, 68, 68, 0.25);
}

.notif-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.notif-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.notif-card-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-notif-delete-single {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 5px;
  font-size: 0.78rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-notif-delete-single:hover {
  color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  transform: scale(1.15);
}

.notif-card-body {
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* BACKWARDS COMPATIBILITY CLASS NAMES */
.notification-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.85rem;
  transition: var(--transition);
  position: relative;
}
.notification-icon-col {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.notification-body {
  flex: 1;
  min-width: 0;
}
.notification-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.notification-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}
.notification-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.notification-msg {
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* MOBILE RESPONSIVE POLISH (FLOATING WITH HEALTHY SIDE MARGINS, NEVER CHIPKA) */
@media (max-width: 640px) {
  #modal-notification-inbox.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem 0.85rem !important;
  }
  
  #modal-notification-inbox .modal-dialog {
    width: 100% !important;
    max-width: 450px !important;
    margin: auto !important;
    border-radius: 18px !important;
    max-height: 82vh !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35) !important;
    animation: modalPopIn 0.2s ease-out forwards;
  }

  @keyframes modalPopIn {
    from {
      opacity: 0;
      transform: scale(0.96) translateY(8px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .notif-modal-header {
    padding: 0.85rem 1rem !important;
  }

  .notif-controls-bar {
    padding: 0.55rem 0.85rem !important;
  }

  .notif-modal-body {
    padding: 0.85rem 0.85rem 1.25rem 0.85rem !important;
  }

  .notif-card {
    padding: 0.75rem 0.8rem;
    gap: 0.65rem;
  }

  .notif-card-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .notif-card-title {
    font-size: 0.82rem;
  }

  .notif-card-body {
    font-size: 0.78rem;
  }
}

  .notif-modal-header {
    padding: 0.85rem 1rem !important;
  }

  .notif-tabs-strip {
    padding: 0.55rem 1rem !important;
  }

  .notif-modal-body {
    padding: 0.85rem 1rem 2rem 1rem !important;
  }

  .btn-notif-hdr {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.72rem !important;
  }

  .btn-notif-hdr .btn-hdr-text {
    display: inline;
  }

  .notif-card {
    padding: 0.75rem 0.8rem;
    gap: 0.65rem;
  }

  .notif-card-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .notif-card-title {
    font-size: 0.82rem;
  }

  .notif-card-body {
    font-size: 0.78rem;
  }
}

.notification-cred-box {
  margin-top: 0.6rem;
  background: var(--bg-input);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ==========================================================================
   ORDER REPLACEMENT & REFUND BADGES IN TABLES
   ========================================================================== */
.order-replaced-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-refunded-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Admin Action Buttons in Orders Table */
.btn-replace-cred {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-replace-cred:hover {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-refund-prorated {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-refund-prorated:hover {
  background: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   PRORATED REFUND CALCULATOR MODAL UI
   ========================================================================== */
.proration-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.proration-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.proration-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.proration-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.proration-stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.proration-stat-val.highlight-green {
  color: #10B981;
}

.refund-options-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.refund-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.refund-option-label:hover {
  border-color: var(--brand-border);
  background: var(--bg-card-hover);
}

.refund-option-label input[type="radio"]:checked + .refund-option-text {
  color: var(--brand-primary);
  font-weight: 700;
}

.cred-preview-box {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Light mode overrides for modal calculator */
html[data-theme="light"] .proration-card,
body.theme-light .proration-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
html[data-theme="light"] .proration-stat-box,
body.theme-light .proration-stat-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
}
html[data-theme="light"] .refund-option-label,
body.theme-light .refund-option-label {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
html[data-theme="light"] .cred-preview-box,
body.theme-light .cred-preview-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}
html[data-theme="light"] .notification-item,
body.theme-light .notification-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .notification-cred-box,
body.theme-light .notification-cred-box {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #059669;
}

/* ==========================================================================
   MOBILE DRAWER & BOTTOM NAV (STRICT DESKTOP HIDING)
   ========================================================================== */
@media (min-width: 769px) {
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .mobile-bottom-nav,
  .mobile-hamburger-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-card);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    padding: 1.25rem 1rem 3rem 1rem;
  }
  .mobile-drawer.active {
    transform: translateX(0);
  }
  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
  }
  .drawer-close-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  .drawer-close-btn:hover {
    color: var(--brand-primary);
    border-color: var(--brand-border);
  }
  .drawer-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    min-height: fit-content;
    box-sizing: border-box;
    width: 100%;
  }
  .drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }
  .drawer-nav-item:hover,
  .drawer-nav-item.active {
    background: var(--brand-soft);
    color: var(--brand-primary);
  }
  .drawer-nav-item.admin-item {
    color: #F59E0B;
    border: 1px dashed rgba(245, 158, 11, 0.3);
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-card);
    z-index: 1050;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.2rem;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    padding: 0.3rem 0;
    transition: var(--transition);
  }
  .bottom-nav-item i {
    font-size: 1.15rem;
  }
  .bottom-nav-item.active,
  .bottom-nav-item:hover {
    color: var(--brand-primary);
  }
  .bottom-add-funds-btn .bottom-add-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
    margin-top: -10px;
  }
  .bottom-add-funds-btn span {
    font-size: 0.68rem;
    color: var(--brand-primary);
    font-weight: 700;
  }
}

/* ==========================================================================
   RESELLERS LEDGER SEARCH & STATS KPI
   ========================================================================== */
.resellers-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.reseller-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reseller-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.reseller-stat-info {
  display: flex;
  flex-direction: column;
}

.reseller-stat-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.reseller-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.reseller-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  width: 100%;
  max-width: 380px;
}

.reseller-search-wrap i {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reseller-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.reseller-search-input::placeholder {
  color: var(--text-muted);
}

/* Balance Mode Switcher Pills */
.balance-mode-pills {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1.15rem;
}

.balance-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.balance-mode-btn.active {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.balance-diff-badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-top: 0.35rem;
}

.balance-diff-badge.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.balance-diff-badge.negative {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.balance-diff-badge.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Delivered Keys Box & Monospace Viewer */
.keys-view-box {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.stock-lines-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-green);
}

/* ==========================================================================
   MY ORDERS & DELIVERIES VIEW - MODERN COMMERCIAL REDESIGN
   ========================================================================== */

.orders-view-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.orders-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.orders-header-left h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.orders-header-left p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.orders-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Quick Stats Bar */
.orders-quick-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem 0;
}

.order-stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.order-stat-pill:hover {
  border-color: rgba(200, 16, 46, 0.3);
  transform: translateY(-1px);
}

.order-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.order-stat-meta {
  display: flex;
  flex-direction: column;
}

.order-stat-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Search & Filter Toolbar */
.orders-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.order-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.order-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.order-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.55rem 2.2rem 0.55rem 2.35rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.order-search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.order-search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem;
  display: flex;
  align-items: center;
}

.order-status-tabs-pill {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-input);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
}

.order-filter-tab {
  background: transparent;
  border: none;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.order-filter-tab:hover {
  color: var(--text-primary);
}

.order-filter-tab.active {
  background: var(--brand-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.35);
}

/* Smart Copy Order ID Chip */
.order-id-chip {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.order-id-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  transform: translateY(-1px);
}

.order-id-chip.copied-active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.order-copy-icon {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Desktop Orders Table */
.desktop-orders-table-wrap {
  display: block;
  overflow-x: auto;
}

.orders-clean-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-clean-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  letter-spacing: 0.5px;
}

.orders-clean-table td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.orders-clean-table tbody tr {
  transition: background 0.15s ease;
}

.orders-clean-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.order-date-cell {
  display: flex;
  flex-direction: column;
}

.order-date-main {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.order-date-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.order-product-cell {
  display: flex;
  flex-direction: column;
  max-width: 320px;
}

.order-product-cell strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.order-custom-spec {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.order-price-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #38BDF8;
}

.order-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.order-help-btn {
  padding: 0.38rem 0.55rem;
  font-size: 0.85rem;
  color: #25D366 !important;
  border-color: rgba(37, 211, 102, 0.3) !important;
}

.order-help-btn:hover {
  background: rgba(37, 211, 102, 0.12) !important;
  border-color: #25D366 !important;
}

/* Mobile Orders List (Cards) */
.mobile-orders-cards-list {
  display: none;
}

.mobile-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mobile-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mobile-order-title-box {
  margin-bottom: 0.85rem;
}

.mobile-order-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.mobile-order-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-order-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.95rem;
}

.mobile-order-spec-item {
  display: flex;
  flex-direction: column;
}

.m-spec-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.m-spec-val {
  font-size: 0.84rem;
  color: var(--text-primary);
}

.mobile-order-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-order-support-link {
  background: transparent;
  border: none;
  color: #25D366;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-order-support-link:hover {
  background: rgba(37, 211, 102, 0.08);
}

/* Light Theme Overrides */
html[data-theme="light"] .orders-view-card,
body.theme-light .orders-view-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .order-stat-pill,
body.theme-light .order-stat-pill {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .order-stat-icon-wrap,
body.theme-light .order-stat-icon-wrap {
  background: #EFF6FF;
}

html[data-theme="light"] .orders-filter-toolbar,
body.theme-light .orders-filter-toolbar {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .order-search-input,
body.theme-light .order-search-input {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

html[data-theme="light"] .order-status-tabs-pill,
body.theme-light .order-status-tabs-pill {
  background: #EDF2F7;
}

html[data-theme="light"] .order-id-chip,
body.theme-light .order-id-chip {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

html[data-theme="light"] .order-id-chip:hover,
body.theme-light .order-id-chip:hover {
  background: #DBEAFE;
  border-color: #3B82F6;
}

html[data-theme="light"] .order-price-val,
body.theme-light .order-price-val {
  color: #C8102E !important;
}

html[data-theme="light"] .orders-clean-table th,
body.theme-light .orders-clean-table th {
  border-color: #E2E8F0;
  color: #64748B;
}

html[data-theme="light"] .orders-clean-table td,
body.theme-light .orders-clean-table td {
  border-color: #F1F5F9;
  color: #1E293B;
}

html[data-theme="light"] .orders-clean-table tbody tr:hover,
body.theme-light .orders-clean-table tbody tr:hover {
  background: #F8FAFC;
}

html[data-theme="light"] .mobile-order-card,
body.theme-light .mobile-order-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .mobile-order-specs-grid,
body.theme-light .mobile-order-specs-grid {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

/* ==========================================================================
   STOCK MANAGER MOBILE VIEW ENGINE (RESPONSIVE INVOICE & INVENTORY CARDS)
   ========================================================================== */
.mobile-supplier-invoices-list {
  display: none;
}

.mobile-settlement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

html[data-theme="light"] .mobile-settlement-card,
body.theme-light .mobile-settlement-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.mobile-settlement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mobile-settlement-code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #10B981;
  font-size: 0.88rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}

.mobile-settlement-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-settlement-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}

html[data-theme="light"] .mobile-settlement-specs-grid,
body.theme-light .mobile-settlement-specs-grid {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.m-settlement-spec-item {
  display: flex;
  flex-direction: column;
}

.mobile-settlement-products-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}

.supplier-portal-tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.supplier-portal-tabs-grid .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.supplier-portal-tabs-grid .btn .tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive breakpoint for Mobile Cards */
@media (max-width: 768px) {
  .desktop-orders-table-wrap,
  .desktop-supplier-invoices-wrap {
    display: none !important;
  }
  .mobile-orders-cards-list,
  .mobile-supplier-invoices-list {
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
  }
  .supplier-portal-wrap {
    padding: 0 0.5rem !important;
    margin: 0.75rem auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .admin-kpi-card {
    padding: 0.65rem 0.65rem !important;
    min-height: 80px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .admin-kpi-top {
    margin-bottom: 0.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.25rem !important;
  }
  .admin-kpi-label {
    font-size: 0.64rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    word-break: break-word !important;
    letter-spacing: 0 !important;
  }
  .admin-kpi-icon-wrap {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
  }
  .admin-kpi-val {
    font-size: 1.25rem !important;
    line-height: 1.1 !important;
    margin: 0.15rem 0 !important;
  }
  .admin-kpi-sub {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    margin-top: 0.2rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .supplier-portal-tabs-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.3rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .supplier-portal-tabs-grid .btn {
    font-size: 0.72rem !important;
    padding: 0.45rem 0.15rem !important;
  }
  .orders-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .orders-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .orders-filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .order-status-tabs-pill {
    overflow-x: auto;
    width: 100%;
  }
}

/* ==========================================================================
/* ==========================================================================
   ROUTE ANTI-FLICKER / ZERO-GLITCH ENGINE
   ========================================================================== */
html.route-non-store #hero-split-section,
html.route-non-store #user-dashboard-banner,
html.route-non-store #catalog-main-section {
  display: none !important;
}
html.route-non-store #view-container {
  display: block !important;
}

.plan-page-view-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.25rem 0 3rem 0;
}

/* Top Navigation & Breadcrumb */
.plan-page-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.plan-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.plan-back-button:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--bg-card);
  transform: translateX(-2px);
}

.plan-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-page-breadcrumb .bc-link {
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  font-weight: 500;
}

.plan-page-breadcrumb .bc-link:hover {
  color: var(--brand-primary);
}

.plan-page-breadcrumb .bc-sep {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.plan-page-breadcrumb .bc-parent {
  color: var(--text-secondary);
}

.plan-page-breadcrumb .bc-active {
  color: var(--text-primary);
  font-weight: 700;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 680px) {
  .plan-page-top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }
  .plan-page-breadcrumb {
    font-size: 0.78rem;
    flex-wrap: wrap;
    line-height: 1.4;
    width: 100%;
  }
  .plan-page-breadcrumb .bc-active {
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
  }
}

/* Main Grid */
.plan-page-main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Left Column: Product Details Card */
.plan-details-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.plan-hero-header {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.plan-hero-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.plan-page-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.plan-page-icon-fallback {
  font-size: 1.85rem;
  line-height: 1;
}

.plan-hero-title-box {
  flex: 1;
  min-width: 0;
}

.plan-hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.plan-format-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  color: #0284C7;
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.plan-warranty-pill {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.25px;
  padding: 0.22rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.plan-warranty-pill.pill-warranty,
.plan-warranty-pill:not(.pill-nowarranty) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.08) 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.38);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.16);
}
.plan-warranty-pill.pill-warranty i,
.plan-warranty-pill:not(.pill-nowarranty) i {
  color: #10B981;
  font-size: 0.85rem;
  filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.3));
}
.plan-warranty-pill.pill-warranty:hover,
.plan-warranty-pill:not(.pill-nowarranty):hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

html[data-theme="dark"] .plan-warranty-pill.pill-warranty,
html[data-theme="dark"] .plan-warranty-pill:not(.pill-nowarranty) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(5, 150, 105, 0.12) 100%);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.48);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}
html[data-theme="dark"] .plan-warranty-pill.pill-warranty i,
html[data-theme="dark"] .plan-warranty-pill:not(.pill-nowarranty) i {
  color: #34D399;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5));
}

.plan-stock-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.plan-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.plan-parent-category {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 3-Pillar Specs Cards Grid */
.plan-specs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.plan-spec-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: transform 0.15s ease;
}

.spec-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.plan-spec-tile.spec-tile-warranty {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 60%);
}
.plan-spec-tile.spec-tile-warranty:hover {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.16);
}

.plan-spec-tile.spec-tile-nowarranty {
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 60%);
}
.plan-spec-tile.spec-tile-nowarranty:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18);
}

.spec-tile-icon.icon-warranty {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.38);
}
html[data-theme="dark"] .spec-tile-icon.icon-warranty {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #A7F3D0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}

.spec-tile-icon.icon-nowarranty {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.38);
}
html[data-theme="dark"] .spec-tile-icon.icon-nowarranty {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FDE68A;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.spec-val-warranty {
  color: #047857 !important;
  font-weight: 800;
}
html[data-theme="dark"] .spec-val-warranty {
  color: #34D399 !important;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.spec-val-nowarranty {
  color: #B45309 !important;
  font-weight: 800;
}
html[data-theme="dark"] .spec-val-nowarranty {
  color: #FBBF24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.spec-tile-icon.icon-stock {
  background: rgba(56, 189, 248, 0.12);
  color: #0284C7;
}

.spec-tile-icon.icon-delivery {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.spec-tile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spec-tile-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.spec-tile-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Description & Features Section */
.plan-description-section {
  margin-bottom: 1.25rem;
}

.plan-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.plan-description-full-text {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem 1.65rem;
}

.plan-description-full-text p {
  font-size: 0.94rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

.plan-warranty-pill.pill-nowarranty {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
  font-weight: 750;
}
.plan-warranty-pill.pill-nowarranty i {
  color: #D97706;
  font-size: 0.85rem;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}
.plan-warranty-pill.pill-nowarranty:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

html[data-theme="dark"] .plan-warranty-pill.pill-nowarranty {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.26) 0%, rgba(217, 119, 6, 0.14) 100%);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.52);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.28);
}
html[data-theme="dark"] .plan-warranty-pill.pill-nowarranty i {
  color: #FBBF24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

/* Right Column: Sleek Sticky Checkout Card */
.plan-page-right-col {
  position: sticky;
  top: 85px;
}

.plan-sticky-checkout-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.85rem 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-secure-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.checkout-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.checkout-qty-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quantity-stepper-compact {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  height: 32px;
  overflow: hidden;
}

.quantity-stepper-compact button {
  border: none;
  background: transparent;
  padding: 0 0.75rem;
  height: 100%;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.quantity-stepper-compact button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.quantity-stepper-compact input {
  width: 48px;
  min-width: 42px;
  height: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  padding: 0 4px;
  -moz-appearance: textfield;
}

.quantity-stepper-compact input::-webkit-inner-spin-button,
.quantity-stepper-compact input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-stepper-compact input:focus {
  background: rgba(200, 16, 46, 0.08);
  border-radius: 4px;
}

.checkout-summary-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.85rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.summary-label {
  color: var(--text-secondary);
}

.summary-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
}

.balance-badge-ok {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.balance-badge-low {
  font-size: 0.65rem;
  font-weight: 700;
  color: #DC2626;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem 0;
}

.summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total-line .total-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.summary-total-line .total-amount-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #38BDF8;
}

/* Action Buttons */
.plan-action-btn {
  height: 42px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.plan-btn-wallet {
  margin-bottom: 0.5rem;
}

.plan-btn-direct {
  margin-bottom: 0.5rem;
}

.checkout-card-footnote {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

/* Light Theme Overrides */
html[data-theme="light"] .plan-details-card,
body.theme-light .plan-details-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .plan-hero-logo-box,
body.theme-light .plan-hero-logo-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

html[data-theme="light"] .plan-spec-tile,
body.theme-light .plan-spec-tile {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .plan-description-full-text,
body.theme-light .plan-description-full-text {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .plan-description-full-text p,
body.theme-light .plan-description-full-text p {
  color: #334155;
}

html[data-theme="light"] .plan-sticky-checkout-card,
body.theme-light .plan-sticky-checkout-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .checkout-summary-strip,
body.theme-light .checkout-summary-strip {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .summary-total-line .total-amount-val,
body.theme-light .summary-total-line .total-amount-val {
  color: #C8102E !important;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .plan-page-view-wrap {
    padding-bottom: 7rem;
  }
  .plan-page-main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .plan-page-right-col {
    position: static;
  }
  .plan-details-card {
    padding: 1.25rem;
  }
  .plan-sticky-checkout-card {
    padding: 1.15rem;
  }
  .plan-specs-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .plan-hero-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .plan-main-title {
    font-size: 1.2rem;
  }
}

/* Anti-glitch pre-paint route suppression */
html.route-non-store #hero-split-section,
html.route-non-store #user-dashboard-banner,
html.route-non-store #catalog-main-section {
  display: none !important;
}
html.route-non-store #view-container {
  display: block !important;
}

/* ==========================================================================
   ENTERPRISE ADMIN CONSOLE & COMMAND CENTER STYLES
   ========================================================================== */

.admin-console-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* 1. Admin Top Action Bar */
.admin-top-action-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title-badge-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.admin-main-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.admin-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.admin-metric-chip.chip-deposits {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-metric-chip.chip-stock {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-metric-chip.chip-bots {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.admin-metric-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* 2. Admin 2-Column Console Layout */
.admin-console-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .admin-console-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. Left Admin Sidebar Navigation (Dedicated Independent Scrolling System) */
.admin-sidebar-nav {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
  width: 5px;
}
.admin-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.admin-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
.admin-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.admin-sidebar-header-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem 0.25rem 0.75rem;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
  user-select: none;
  text-decoration: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.admin-sidebar-item-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-sidebar-item i {
  font-size: 1.05rem;
  width: 1.25rem;
  text-align: center;
}

.admin-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.admin-sidebar-item.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
}

.admin-sidebar-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.admin-sidebar-item.active .admin-sidebar-badge {
  background: rgba(0, 0, 0, 0.3);
}

/* 4. Main Admin Workspace Area (Dedicated Independent Scrolling System) */
.admin-main-workspace {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: calc(100vh - 100px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.admin-main-workspace::-webkit-scrollbar {
  width: 6px;
}
.admin-main-workspace::-webkit-scrollbar-track {
  background: transparent;
}
.admin-main-workspace::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
.admin-main-workspace::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
  .admin-sidebar-nav {
    position: static;
    max-height: 320px;
  }
  .admin-main-workspace {
    max-height: none;
    min-height: auto;
  }
}

/* 5. CSV Hub Components */
.admin-csv-hub-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-csv-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.admin-csv-dropzone:hover {
  border-color: var(--brand-primary);
  background: rgba(200, 16, 46, 0.05);
}

.admin-csv-preview-table-wrap {
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

/* 6. Stock Keys Inspector */
.admin-key-cell {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-input);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 7. Product Catalog Nested Groups */
.admin-product-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.admin-parent-header-row {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-subplan-list {
  padding: 0.5rem 1.25rem;
}

.admin-subplan-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-subplan-item-row:last-child {
  border-bottom: none;
}

/* 8. Light Mode Overrides for Admin Console */
html[data-theme="light"] .admin-top-action-bar,
body.theme-light .admin-top-action-bar,
html[data-theme="light"] .admin-sidebar-nav,
body.theme-light .admin-sidebar-nav,
html[data-theme="light"] .admin-main-workspace,
body.theme-light .admin-main-workspace,
html[data-theme="light"] .admin-csv-hub-box,
body.theme-light .admin-csv-hub-box,
html[data-theme="light"] .admin-product-group-card,
body.theme-light .admin-product-group-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .admin-main-heading,
body.theme-light .admin-main-heading {
  color: #0F172A;
}

html[data-theme="light"] .admin-sidebar-item,
body.theme-light .admin-sidebar-item {
  color: #475569;
}

html[data-theme="light"] .admin-sidebar-item:hover,
body.theme-light .admin-sidebar-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

html[data-theme="light"] .admin-sidebar-item.active,
body.theme-light .admin-sidebar-item.active {
  background: var(--brand-primary);
  color: #FFFFFF;
}

html[data-theme="light"] .admin-csv-dropzone,
body.theme-light .admin-csv-dropzone {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

html[data-theme="light"] .admin-key-cell,
body.theme-light .admin-key-cell {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #0F172A;
}

/* ==========================================================================
   PRO WHOLESALE CURRENCY SETTLEMENT & DEPOSIT CALCULATOR
   ========================================================================== */
.deposit-rate-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.deposit-rate-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.deposit-calc-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 520px) {
  .deposit-calc-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .deposit-calc-sync {
    transform: rotate(90deg);
    margin: 0.25rem auto;
  }
}

.deposit-calc-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deposit-calc-sync {
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 1.35rem;
}

.deposit-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.deposit-input-wrapper input {
  padding-right: 4rem !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

.deposit-curr-tag {
  position: absolute;
  right: 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid var(--border-subtle);
}

.gateway-single-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.15rem;
  transition: all var(--trans-fast);
}

.gateway-single-card:hover {
  border-color: var(--brand-primary);
}

.gateway-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.gateway-acc-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #38BDF8;
}

.gateway-instructions-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.4rem;
}

.deposit-confirm-summary {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   ADMIN AUTOMATED PAYMENT GATEWAYS HUB
   ========================================================================== */
.admin-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.admin-gateway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-fast);
}

.admin-gateway-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.admin-gateway-card.enabled {
  border-left: 4px solid var(--color-green);
}

.admin-gateway-card.disabled {
  border-left: 4px solid var(--text-muted);
  opacity: 0.85;
}

.gateway-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.gateway-mode-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gateway-mode-badge.live {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gateway-mode-badge.sandbox {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.webhook-copy-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38BDF8;
  margin: 0.75rem 0;
  word-break: break-all;
}

html[data-theme="light"] .admin-gateway-card,
body.theme-light .admin-gateway-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

html[data-theme="light"] .webhook-copy-box,
body.theme-light .webhook-copy-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0284C7;
}

/* ==========================================================================
   PRO FINTECH PAYMENT GATEWAY THEME & SCAN-TO-PAY QR SHOWCASE
   ========================================================================== */

/* Visual Method Selection Grid */
.payment-methods-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 1rem 0;
}

.pm-pill-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.pm-pill-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.04);
  transform: translateY(-1px);
}

.pm-pill-card.active {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pm-pill-card.active.ep {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.pm-pill-card.active.jc {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.pm-pill-card.active.bn {
  border-color: #FBBF24;
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}

.pm-pill-card.active.bk {
  border-color: #60A5FA;
  background: rgba(96, 165, 250, 0.08);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

.pm-brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  padding: 4px;
  position: relative;
}

.pm-brand-icon-box.ep-bg {
  background: #FFFFFF;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.pm-brand-icon-box.jc-bg {
  background: #FFFFFF;
  border: 1.5px solid rgba(228, 0, 43, 0.4);
}

.pm-brand-icon-box.bn-bg {
  background: #181A20;
  border: 1.5px solid rgba(240, 185, 11, 0.5);
}

.pm-brand-icon-box.bk-bg {
  background: #FFFFFF;
  border: 1.5px solid rgba(9, 84, 52, 0.4);
}

.pm-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.pm-brand-icon-box .pm-brand-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pm-pill-card:hover .pm-brand-icon-box {
  transform: scale(1.08);
}

.pm-pill-card.active.ep .pm-brand-icon-box {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.55);
  border-color: #10B981;
}

.pm-pill-card.active.jc .pm-brand-icon-box {
  box-shadow: 0 0 16px rgba(228, 0, 43, 0.55);
  border-color: #E4002B;
}

.pm-pill-card.active.bn .pm-brand-icon-box {
  box-shadow: 0 0 16px rgba(240, 185, 11, 0.65);
  border-color: #F0B90B;
}

.pm-pill-card.active.bk .pm-brand-icon-box {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
  border-color: #38BDF8;
}

/* Compact Brand Tile in Gateway Provider Badges */
.payment-provider-badge .pm-brand-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  padding: 2px;
  box-shadow: none;
  border-width: 1px;
}

/* Compact Brand Tile in Admin Ledger & Audits */
.sub-plans-table .pm-brand-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  padding: 2px;
  box-shadow: none;
  border-width: 1px;
}

/* High Profile Terminal Brand Tiles */
.portal-method-btn .pm-brand-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.portal-method-btn:hover .pm-brand-icon-box {
  transform: scale(1.08);
}

.portal-method-btn.active.ep .pm-brand-icon-box {
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6);
  border-color: #10B981;
}

.portal-method-btn.active.jc .pm-brand-icon-box {
  box-shadow: 0 0 18px rgba(228, 0, 43, 0.6);
  border-color: #E4002B;
}

.portal-method-btn.active.bn .pm-brand-icon-box {
  box-shadow: 0 0 18px rgba(240, 185, 11, 0.7);
  border-color: #F0B90B;
}

.portal-method-btn.active.bk .pm-brand-icon-box {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
  border-color: #38BDF8;
}

.pm-pill-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.pm-pill-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.pm-pill-meta strong {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-pill-meta span {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-pill-check {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 800;
  color: #10B981;
  opacity: 0;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
}

.pm-pill-card.active .pm-pill-check {
  opacity: 1;
}

/* Quick Deposit Presets */
.deposit-quick-presets-wrap {
  margin: 0.75rem 0 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.deposit-quick-presets-wrap .presets-label {
  font-size: 0.73rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.deposit-quick-presets {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.preset-chip:hover {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.preset-chip.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.18));
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.preset-chip .chip-hot {
  font-size: 0.6rem;
  background: #EF4444;
  color: #FFFFFF;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.preset-chip .chip-vip {
  font-size: 0.6rem;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #000000;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Payment Proof Receipt Dropzone */
.deposit-proof-dropzone {
  background: rgba(15, 23, 42, 0.4);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.35rem;
}

.deposit-proof-dropzone:hover {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-1px);
}

.deposit-proof-prompt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.deposit-proof-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.proof-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: #000000;
  flex-shrink: 0;
}

.proof-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.btn-remove-proof {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-remove-proof:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Security Trust Badges Strip */
.payment-security-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.55rem 0.85rem;
  margin: 0.75rem 0;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.73rem;
  color: var(--text-secondary);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-security-strip .sec-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.btn-copy-glow {
  transition: all 0.18s ease;
}

.btn-copy-glow:hover {
  border-color: #10B981 !important;
  color: #10B981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* Payment Details & QR Split Layout */
.payment-details-split {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin: 0.85rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .payment-details-split {
    flex-direction: column-reverse;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
  }
}

.payment-details-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.payment-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.payment-provider-badge.ep {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-provider-badge.jc {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.payment-provider-badge.bn {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.payment-provider-badge.bk {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.payment-acc-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
}

.payment-acc-num-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.payment-acc-number {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.payment-acc-title-row {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.payment-acc-title-row strong {
  color: var(--text-primary);
}

.payment-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.payment-steps-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.3rem;
}

.payment-steps-list li::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  color: var(--brand-primary);
  font-weight: 800;
}

/* High Contrast QR Code Showcase */
.payment-qr-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  width: 175px;
  text-align: center;
}

@media (max-width: 640px) {
  .payment-qr-showcase {
    width: 100%;
    max-width: 220px;
    padding: 0.75rem;
  }
}

.qr-frame-box {
  background: #FFFFFF;
  padding: 0.45rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.5rem;
  position: relative;
}

.payment-qr-img {
  width: 135px;
  height: 135px;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}

.qr-scan-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.qr-save-link {
  font-size: 0.68rem;
  color: #38BDF8;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.25rem;
  display: inline-block;
}

.qr-save-link:hover {
  text-decoration: underline;
}

/* Desktop Navbar Quick Deposit Capsule */
.nav-deposit-capsule-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
  animation: pulse-soft 3s infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25); }
  50% { box-shadow: 0 2px 18px rgba(99, 102, 241, 0.55); }
}

/* Light Theme Overrides */
html[data-theme="light"] .pm-pill-card,
body.theme-light .pm-pill-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

html[data-theme="light"] .pm-brand-icon-box.ep-bg,
body.theme-light .pm-brand-icon-box.ep-bg {
  background: #FFFFFF;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

html[data-theme="light"] .pm-brand-icon-box.jc-bg,
body.theme-light .pm-brand-icon-box.jc-bg {
  background: #FFFFFF;
  border-color: rgba(228, 0, 43, 0.4);
  box-shadow: 0 2px 6px rgba(228, 0, 43, 0.15);
}

html[data-theme="light"] .pm-brand-icon-box.bn-bg,
body.theme-light .pm-brand-icon-box.bn-bg {
  background: #181A20;
  border-color: rgba(240, 185, 11, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .pm-brand-icon-box.bk-bg,
body.theme-light .pm-brand-icon-box.bk-bg {
  background: #FFFFFF;
  border-color: rgba(9, 84, 52, 0.4);
  box-shadow: 0 2px 6px rgba(9, 84, 52, 0.15);
}

html[data-theme="light"] .payment-details-split,
body.theme-light .payment-details-split {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .payment-acc-box,
body.theme-light .payment-acc-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .payment-qr-showcase,
body.theme-light .payment-qr-showcase {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .preset-chip,
body.theme-light .preset-chip {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #1E293B;
}

html[data-theme="light"] .preset-chip:hover,
body.theme-light .preset-chip:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38BDF8;
}

html[data-theme="light"] .preset-chip.active,
body.theme-light .preset-chip.active {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

html[data-theme="light"] .deposit-proof-dropzone,
body.theme-light .deposit-proof-dropzone {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

html[data-theme="light"] .deposit-proof-dropzone:hover,
body.theme-light .deposit-proof-dropzone:hover {
  background: #F0FDF4;
  border-color: #10B981;
}

html[data-theme="light"] .payment-security-strip,
body.theme-light .payment-security-strip {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

/* ==========================================================================
   COMPACT MODERN FINTECH CHECKOUT TERMINAL (ZERO-SCROLL PATTERN)
   ========================================================================== */
.checkout-terminal-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0.65rem auto 1.5rem auto;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.checkout-back-link:hover {
  color: var(--text-primary);
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(-2px);
}

.checkout-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-channel 1.8s infinite;
}

/* 2-Column Checkout Grid */
.checkout-main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0.95rem;
  align-items: start;
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .checkout-terminal-wrap {
    max-width: 100%;
    padding: 0 0.85rem;
    margin: 0.5rem auto 1.5rem auto;
  }
  .checkout-main-grid {
    grid-template-columns: 290px 1fr;
    gap: 0.75rem;
    align-items: start;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .checkout-terminal-wrap {
    padding: 0 0.65rem 6.5rem 0.65rem; /* Clears floating mobile bottom nav bar */
    margin: 0.4rem auto 1rem auto;
  }
  .checkout-main-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
  }
  .checkout-summary-pane {
    order: 1;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    gap: 0.5rem;
    height: auto;
  }
  .checkout-summary-pane.deposit-mode {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
  }
  .checkout-summary-pane .checkout-item-header {
    padding-bottom: 0.45rem;
  }
  .checkout-summary-pane .checkout-item-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .checkout-summary-pane .checkout-item-title {
    font-size: 0.84rem;
  }
  .checkout-summary-pane .checkout-pricing-table {
    padding: 0.45rem 0.65rem;
    gap: 0.25rem;
  }
  .checkout-summary-pane .pricing-row {
    font-size: 0.75rem;
  }
  .checkout-summary-pane .checkout-total-banner {
    padding: 0.5rem 0.75rem;
  }
  .checkout-summary-pane .total-pkr-sum {
    font-size: 1.18rem;
  }
  .checkout-summary-pane .checkout-meta-strip {
    margin-top: 0;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border-subtle);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .checkout-summary-pane .checkout-timer-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.68rem;
  }
  .checkout-summary-pane .checkout-guarantee-list {
    flex-direction: row;
    gap: 0.55rem;
    flex-wrap: wrap;
    font-size: 0.66rem;
  }
  .checkout-action-pane {
    order: 2;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    gap: 0.55rem;
    height: auto;
  }
}

@media (max-width: 480px) {
  .checkout-methods-tabs.two-methods {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .checkout-method-tab {
    padding: 0.45rem 0.5rem;
    gap: 0.45rem;
  }
  .checkout-method-tab .tab-logo-box {
    width: 30px;
    height: 30px;
  }
  .checkout-method-tab .tab-text-box strong {
    font-size: 0.76rem;
  }
  .checkout-method-tab .tab-text-box span {
    font-size: 0.6rem;
  }
}

/* LEFT COLUMN: Summary Pane */
.checkout-summary-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.checkout-summary-pane.deposit-mode {
  padding: 1rem;
  gap: 0.65rem;
}
.checkout-summary-pane.deposit-mode .deposit-preset-section {
  margin: 0;
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.checkout-summary-pane.deposit-mode .checkout-total-banner {
  padding: 0.55rem 0.85rem;
  margin-top: 0;
}
.checkout-summary-pane.deposit-mode .compact-deposit-guarantees {
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.68rem;
  gap: 0.35rem;
}

.checkout-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(99, 102, 241, 0.18) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.checkout-item-meta {
  flex: 1;
  min-width: 0;
}

.checkout-badge-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38BDF8;
  margin-bottom: 0.15rem;
}

.checkout-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.checkout-pricing-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.checkout-total-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 95, 70, 0.06) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}

.total-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.total-usdt-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.total-pkr-sum {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #10B981;
  line-height: 1.2;
}

.checkout-meta-strip {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
}

.checkout-timer-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.6rem;
}

.checkout-guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.checkout-guarantee-list div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkout-guarantee-list i {
  color: #10B981;
  font-size: 0.78rem;
}

/* Left Column Quick FAQ Capsule */
.checkout-faq-capsule {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.faq-capsule-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-mini-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.faq-mini-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-mini-q {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-mini-a {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* RIGHT COLUMN: Action Pane */
.checkout-action-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Gateway Tabs */
.checkout-methods-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.checkout-methods-tabs.two-methods {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (max-width: 580px) {
  .checkout-methods-tabs,
  .checkout-methods-tabs.two-methods {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.checkout-method-tab {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

.checkout-method-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.04);
}

.checkout-method-tab .tab-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.checkout-method-tab .tab-text-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.checkout-method-tab .tab-text-box strong {
  font-size: 0.84rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-method-tab .tab-text-box span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Active Gateway Tab Colors */
.checkout-method-tab.active.ep {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.checkout-method-tab.active.jc {
  border-color: #E4002B;
  background: rgba(228, 0, 43, 0.1);
  box-shadow: 0 0 0 2px rgba(228, 0, 43, 0.25);
}

.checkout-method-tab.active.bn {
  border-color: #F0B90B;
  background: rgba(240, 185, 11, 0.1);
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.25);
}

.checkout-method-tab.active.bk {
  border-color: #095434;
  background: rgba(9, 84, 52, 0.12);
  box-shadow: 0 0 0 2px rgba(9, 84, 52, 0.25);
}

/* Dynamic Account Details Box */
.checkout-details-box {
  animation: fadeIn 0.2s ease;
}

.checkout-specs-split {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 0.75rem;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 540px) {
  .checkout-specs-split {
    grid-template-columns: 1fr;
    padding: 0.65rem;
  }
}

.checkout-specs-pane {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.spec-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.spec-tile.highlight {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.spec-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
}

.spec-label-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec-badge-verified {
  font-size: 0.64rem;
  font-weight: 700;
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.spec-badge-hint {
  font-size: 0.62rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.spec-badge-exact {
  font-size: 0.62rem;
  font-weight: 700;
  color: #F59E0B;
  flex-shrink: 0;
  white-space: nowrap;
}

.spec-value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
}

.spec-value-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0; /* Critical: allows flex item to truncate rather than expanding parent */
  flex: 1;
}

.spec-value-text.font-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}

.spec-value-text.amount {
  color: #10B981;
  font-weight: 800;
  font-size: 0.95rem;
}

.spec-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38BDF8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.spec-copy-btn:hover {
  background: #38BDF8;
  color: #0F172A;
  border-color: #38BDF8;
}

/* Crypto Wallet Box & Address Responsive Tiles */
.crypto-wallet-box {
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.crypto-wallet-header {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
}

.crypto-sync-pill {
  color: #10B981;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.crypto-addr-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.crypto-addr-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.crypto-net-pill {
  font-size: 0.64rem;
  font-weight: 800;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.crypto-addr-val {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* Light Theme overrides for Crypto Wallet Box */
html[data-theme="light"] .crypto-wallet-box,
body.theme-light .crypto-wallet-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .crypto-addr-tile,
body.theme-light .crypto-addr-tile {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .crypto-addr-val,
body.theme-light .crypto-addr-val {
  color: #334155;
}

/* QR Code Pane */
.checkout-qr-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 0.5rem;
  text-align: center;
}

.compact-qr-frame {
  background: #FFFFFF;
  padding: 0.35rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 0;
  display: inline-block;
}

.compact-qr-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}

@media (max-width: 540px) {
  .compact-qr-img {
    width: 120px;
    height: 120px;
  }
}

.qr-scan-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.qr-save-link {
  font-size: 0.64rem;
  color: #38BDF8;
  text-decoration: none;
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.qr-save-link:hover {
  text-decoration: underline;
}

/* Concise Notice Strip */
.checkout-notice-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-xs);
  padding: 0.55rem 0.75rem;
  margin-top: 0.65rem;
  line-height: 1.45;
}

.checkout-notice-strip i {
  color: #38BDF8;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.exact-chip {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
}

/* Integrated Instant TID Verification Strip */
.checkout-verify-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}

.verify-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.verify-step-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.verify-step-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.verify-input-group {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 580px) {
  .verify-input-group {
    flex-direction: column;
    gap: 0.45rem;
  }
  .checkout-submit-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }
}

.verify-field-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.verify-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.checkout-tid-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.checkout-tid-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.checkout-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.checkout-submit-btn:hover {
  background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.checkout-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Light Theme Overrides for Checkout Terminal */
html[data-theme="light"] .checkout-summary-pane,
body.theme-light .checkout-summary-pane,
html[data-theme="light"] .checkout-action-pane,
body.theme-light .checkout-action-pane {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .checkout-pricing-table,
body.theme-light .checkout-pricing-table,
html[data-theme="light"] .checkout-specs-split,
body.theme-light .checkout-specs-split {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .spec-tile,
body.theme-light .spec-tile,
html[data-theme="light"] .checkout-qr-pane,
body.theme-light .checkout-qr-pane,
html[data-theme="light"] .checkout-verify-section,
body.theme-light .checkout-verify-section,
html[data-theme="light"] .checkout-method-tab,
body.theme-light .checkout-method-tab {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

html[data-theme="light"] .checkout-tid-input,
body.theme-light .checkout-tid-input {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

html[data-theme="light"] .checkout-notice-strip,
body.theme-light .checkout-notice-strip {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E3A8A;
}

html[data-theme="light"] .checkout-notice-strip i,
body.theme-light .checkout-notice-strip i {
  color: #2563EB;
}

/* Dynamic Result Terminal */
.portal-result-container {
  margin-top: 1.25rem;
  animation: fadeIn 0.3s ease;
}

/* State: Success / Completed */
.portal-result-card.success {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1.5px solid #10B981;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.portal-result-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portal-result-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.portal-result-card.success .portal-result-icon-badge {
  background: #10B981;
  color: #FFFFFF;
}

.portal-result-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.portal-result-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.2rem 0 0 0;
}

.portal-credentials-card {
  background: #0B1120;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  margin: 1rem 0;
}

.cred-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #34D399;
}

.portal-cred-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #F8FAFC;
  word-break: break-all;
  white-space: pre-wrap;
  margin-bottom: 0.75rem;
}

/* State: Waiting / Not Yet Detected */
.portal-result-card.waiting {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.portal-result-card.waiting .portal-result-icon-badge {
  background: #F59E0B;
  color: #FFFFFF;
  animation: pulse-soft 2s infinite;
}

/* State: Error / Rejected / Duplicate */
.portal-result-card.error {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.12) 0%, rgba(185, 28, 28, 0.05) 100%);
  border: 1.5px solid #EF4444;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.portal-result-card.error .portal-result-icon-badge {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-error-retry {
  background: #EF4444 !important;
}
.btn-error-retry:hover {
  background: #DC2626 !important;
}

.portal-waiting-message {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #F1F5F9;
  margin: 0.85rem 0 1.15rem 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border-left: 3.5px solid #F59E0B;
}

.portal-waiting-message.portal-error-message {
  color: #FECACA;
  background: rgba(239, 68, 68, 0.12);
  border-left-color: #EF4444;
}

/* Light Mode Overrides for Payment Portal Result Cards */
html[data-theme="light"] .portal-result-card.success,
body.theme-light .portal-result-card.success {
  background: #F0FDF4 !important;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1) !important;
}

html[data-theme="light"] .portal-result-card.waiting,
body.theme-light .portal-result-card.waiting {
  background: #FFFBEB !important;
  border: 1.5px solid #F59E0B !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1) !important;
}

html[data-theme="light"] .portal-result-card.error,
body.theme-light .portal-result-card.error {
  background: #FEF2F2 !important;
  border: 1.5px solid #EF4444 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1) !important;
}

html[data-theme="light"] .portal-waiting-message,
body.theme-light .portal-waiting-message {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-left: 3.5px solid #D97706 !important;
}

html[data-theme="light"] .portal-waiting-message.portal-error-message,
body.theme-light .portal-waiting-message.portal-error-message {
  background: #FFFFFF !important;
  color: #7F1D1D !important;
  border: 1px solid #FECACA !important;
  border-left: 4px solid #EF4444 !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08) !important;
}

html[data-theme="light"] .portal-result-title,
body.theme-light .portal-result-title {
  color: #0F172A;
}

html[data-theme="light"] .portal-result-subtitle,
body.theme-light .portal-result-subtitle {
  color: #64748B;
}

html[data-theme="light"] .portal-cred-box,
body.theme-light .portal-cred-box {
  background: #F8FAFC !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0F172A !important;
}

.portal-waiting-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-verify-again {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #F59E0B;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-verify-again:hover {
  background: #D97706;
}

.btn-verify-again:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-support-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

}

.btn-support-wa:hover {
  background: #1EBE5D;
}

/* ==========================================================================
   DEPOSIT PORTAL FINTECH PRO AMOUNT CARD & INPUTS
   ========================================================================== */
.deposit-preset-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin: 0.65rem 0 0.85rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.deposit-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.deposit-label-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.deposit-limits-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.deposit-pro-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: text;
}

.deposit-pro-input-wrap:focus-within {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.deposit-currency-sym {
  font-size: 1.25rem;
  font-weight: 800;
  color: #10B981;
  line-height: 1;
}

.deposit-pro-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  outline: none;
  font-family: var(--font-mono);
}

/* Remove number input spinner up/down buttons completely */
.deposit-pro-input::-webkit-outer-spin-button,
.deposit-pro-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.deposit-pro-input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.deposit-pro-input::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.deposit-currency-unit {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.deposit-feedback-line {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  min-height: 1.2rem;
}

.deposit-feedback-line strong {
  color: #10B981;
  font-weight: 800;
}

.deposit-presets-header {
  margin: 0.75rem 0 0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.deposit-presets-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.portal-preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.portal-preset-btn:hover {
  border-color: #10B981;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-1px);
}

.portal-preset-btn.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 0 1.5px #10B981;
}

.portal-preset-btn .hot-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.52rem;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 800;
}

.portal-preset-btn .vip-badge {
  background: #F59E0B;
  color: #000000;
  font-size: 0.52rem;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 800;
}

/* Light Theme Overrides for Deposit Card & Input */
html[data-theme="light"] .checkout-summary-pane.deposit-mode .deposit-preset-section,
body.theme-light .checkout-summary-pane.deposit-mode .deposit-preset-section,
html[data-theme="light"] .deposit-preset-section,
body.theme-light .deposit-preset-section {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .deposit-label-badge,
body.theme-light .deposit-label-badge {
  color: #0F172A;
}

html[data-theme="light"] .deposit-pro-input-wrap,
body.theme-light .deposit-pro-input-wrap {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .deposit-pro-input-wrap:focus-within,
body.theme-light .deposit-pro-input-wrap:focus-within {
  border-color: #10B981 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16) !important;
}

html[data-theme="light"] .deposit-pro-input,
body.theme-light .deposit-pro-input {
  color: #0F172A !important;
}

html[data-theme="light"] .deposit-pro-input::placeholder,
body.theme-light .deposit-pro-input::placeholder {
  color: #94A3B8 !important;
}

html[data-theme="light"] .deposit-currency-unit,
body.theme-light .deposit-currency-unit {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

html[data-theme="light"] .deposit-presets-header,
body.theme-light .deposit-presets-header {
  color: #64748B;
}

html[data-theme="light"] .portal-preset-btn,
body.theme-light .portal-preset-btn {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #1E293B !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .portal-preset-btn:hover,
body.theme-light .portal-preset-btn:hover {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #047857 !important;
}

html[data-theme="light"] .portal-preset-btn.active,
body.theme-light .portal-preset-btn.active {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #065F46 !important;
  box-shadow: 0 0 0 1.5px #10B981 !important;
}

@media (max-width: 580px) {
  .checkout-methods-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }
  .deposit-presets-grid-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }
}

/* ==========================================================================
   OFFICIAL CHANNEL PILL & PERSISTENT INTEGRATIONS
   ========================================================================== */
.nav-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38BDF8;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.nav-channel-pill:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.nav-channel-icon {
  font-size: 0.95rem;
  color: #38BDF8;
}

.nav-channel-pulse {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-channel 1.8s infinite;
}

@keyframes pulse-channel {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.banner-channel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.banner-channel-cta:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #FFFFFF;
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.drawer-channel-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(2, 132, 199, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.drawer-channel-btn:hover {
  background: rgba(14, 165, 233, 0.25);
  color: #ffffff;
  border-color: #38BDF8;
}

/* ==========================================================================
   PREMIUM RESELLER ANNOUNCEMENT POPUP (AUTO-BROADCAST)
   ========================================================================== */
.announcement-backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(8, 12, 22, 0.72) !important;
}

.announcement-modal-dialog {
  max-width: 340px !important;
  width: 88% !important;
  margin: auto !important;
  transform: translate(0, 0);
}

#modal-announcement-broadcast.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}

/* ==========================================================================
   LUXURY WHATSAPP GIVEAWAY MODAL (CONVERTED HIGH-IMPACT HERO ARCHETYPE)
   ========================================================================== */
.luxury-giveaway-card {
  max-width: 340px !important;
  width: 100% !important;
  margin: auto !important;
  padding: 1.65rem 1.35rem 1.25rem 1.35rem !important;
  border-radius: 22px !important;
  text-align: center !important;
  position: relative !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.2), 0 8px 20px -4px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  animation: giveaway-card-pop 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

@keyframes giveaway-card-pop {
  0% { opacity: 0; transform: scale(0.9) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Dark Theme Overrides for Luxury Card */
html[data-theme="dark"] .luxury-giveaway-card,
body:not(.theme-light) .luxury-giveaway-card {
  background: linear-gradient(160deg, #182033 0%, #0F1422 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(139, 92, 246, 0.16) !important;
}

/* Close Button */
.giveaway-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.giveaway-close-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: scale(1.08) rotate(90deg);
}

html[data-theme="dark"] .giveaway-close-btn,
body:not(.theme-light) .giveaway-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

/* Top Festive Visual Stage */
.giveaway-visual-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.15rem auto 0.95rem auto;
  height: 84px;
  width: 120px;
}

/* Glowing Radial Gift Orb */
.giveaway-orb-outer {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid rgba(147, 51, 234, 0.28);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  animation: orb-gentle-pulse 3s infinite ease-in-out;
  background: rgba(147, 51, 234, 0.05);
}

@keyframes orb-gentle-pulse {
  0%, 100% { transform: scale(1); border-color: rgba(147, 51, 234, 0.35); box-shadow: 0 0 18px rgba(147, 51, 234, 0.2); }
  50% { transform: scale(1.04); border-color: rgba(147, 51, 234, 0.6); box-shadow: 0 0 28px rgba(147, 51, 234, 0.4); }
}

.giveaway-orb-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #A855F7 0%, #7E22CE 55%, #6B21A8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(126, 34, 206, 0.4);
}

.giveaway-orb-emoji {
  font-size: 1.9rem;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  animation: gift-wobble 3s infinite ease-in-out;
}

@keyframes gift-wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-8deg) scale(1.08); }
  30% { transform: rotate(8deg) scale(1.08); }
  45% { transform: rotate(-4deg) scale(1.04); }
  60% { transform: rotate(0deg) scale(1); }
}

/* Floating Confetti Flakes (Celebration Particles) */
.giveaway-confetti {
  position: absolute;
  border-radius: 3px;
  pointer-events: none;
  animation: confetti-float 3s infinite ease-in-out alternate;
}

.confetti-p1 {
  width: 7px;
  height: 12px;
  background: #A855F7;
  top: 10px;
  left: 6px;
  transform: rotate(-25deg);
  animation-delay: 0.1s;
}

.confetti-p2 {
  width: 8px;
  height: 7px;
  background: #F59E0B;
  top: 8px;
  right: 10px;
  transform: rotate(35deg);
  animation-delay: 0.5s;
}

.confetti-p3 {
  width: 6px;
  height: 10px;
  background: #EC4899;
  bottom: 8px;
  left: 10px;
  transform: rotate(45deg);
  animation-delay: 0.8s;
}

.confetti-p4 {
  width: 10px;
  height: 5px;
  background: #25D366;
  bottom: 10px;
  right: 12px;
  transform: rotate(-30deg);
  animation-delay: 1.2s;
}

.confetti-p5 {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38BDF8;
  top: 40px;
  left: 0px;
  animation-delay: 0.3s;
}

.confetti-p6 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FBBF24;
  top: 38px;
  right: 0px;
  animation-delay: 0.9s;
}

@keyframes confetti-float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(20deg); }
}

/* Typography */
.giveaway-body {
  margin-bottom: 1.15rem;
}

.giveaway-headline {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin: 0 0 0.35rem 0 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
}

html[data-theme="dark"] .giveaway-headline,
body:not(.theme-light) .giveaway-headline {
  color: #FFFFFF !important;
}

.giveaway-desc {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  color: #64748B !important;
  margin: 0 auto !important;
  max-width: 275px;
  text-align: center !important;
  word-break: break-word;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.giveaway-desc p {
  margin: 0 0 0.35rem 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.giveaway-desc p:last-child {
  margin-bottom: 0 !important;
}

html[data-theme="dark"] .giveaway-desc,
body:not(.theme-light) .giveaway-desc {
  color: #94A3B8 !important;
}

/* High-Converting WhatsApp Button */
.giveaway-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.btn-giveaway-whatsapp {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  width: 100% !important;
  height: 44px !important;
  border-radius: 50px !important;
  background: #25D366 !important;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px -3px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.btn-giveaway-whatsapp:hover {
  background: linear-gradient(135deg, #28E06E 0%, #1FA855 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px -4px rgba(37, 211, 102, 0.55) !important;
  color: #FFFFFF !important;
}

.btn-giveaway-whatsapp:active {
  transform: scale(0.985) !important;
}

.giveaway-wa-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

/* Subtle "Maybe later" Link */
.btn-giveaway-later {
  display: inline-block !important;
  background: transparent !important;
  border: none !important;
  color: #94A3B8 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-top: 0.35rem !important;
  padding: 0.25rem 0.65rem !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.btn-giveaway-later:hover {
  color: #64748B !important;
  text-decoration: underline !important;
}

html[data-theme="dark"] .btn-giveaway-later:hover,
body:not(.theme-light) .btn-giveaway-later:hover {
  color: #E2E8F0 !important;
}

.announcement-modal-card {
  background: linear-gradient(155deg, rgba(21, 28, 44, 0.98) 0%, rgba(13, 17, 28, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 1.25rem 1.35rem 1rem 1.35rem;
  box-sizing: border-box;
  animation: announcement-card-pop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes announcement-card-pop {
  0% { opacity: 0; transform: scale(0.94) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Ambient Top Accent Bar */
.announcement-card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
}

/* Category Specific Glows and Accents */
.announcement-modal-card.type-PROMO {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px -5px rgba(239, 68, 68, 0.28);
}
.announcement-modal-card.type-PROMO .announcement-card-accent-bar {
  background: linear-gradient(90deg, #EF4444, #F59E0B, #DC2626);
}

.announcement-modal-card.type-STOCK_ALERT {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px -5px rgba(16, 185, 129, 0.28);
}
.announcement-modal-card.type-STOCK_ALERT .announcement-card-accent-bar {
  background: linear-gradient(90deg, #10B981, #059669, #34D399);
}

.announcement-modal-card.type-MAINTENANCE {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px -5px rgba(245, 158, 11, 0.28);
}
.announcement-modal-card.type-MAINTENANCE .announcement-card-accent-bar {
  background: linear-gradient(90deg, #F59E0B, #DC2626, #FBBF24);
}

.announcement-modal-card.type-COMMUNITY {
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px -5px rgba(37, 211, 102, 0.28);
}
.announcement-modal-card.type-COMMUNITY .announcement-card-accent-bar {
  background: linear-gradient(90deg, #25D366, #128C7E, #10B981);
}

.announcement-modal-card.type-NEWS {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px -5px rgba(14, 165, 233, 0.28);
}
.announcement-modal-card.type-NEWS .announcement-card-accent-bar {
  background: linear-gradient(90deg, #0EA5E9, #38BDF8, #6366F1);
}

/* Compact Header */
.announcement-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.announcement-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.announcement-icon-bubble {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38BDF8;
  flex-shrink: 0;
}

.type-PROMO .announcement-icon-bubble {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #EF4444;
}
.type-STOCK_ALERT .announcement-icon-bubble {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10B981;
}
.type-MAINTENANCE .announcement-icon-bubble {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #F59E0B;
}
.type-COMMUNITY .announcement-icon-bubble {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25D366;
}

.announcement-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.announcement-type-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.announcement-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  white-space: nowrap;
}

.type-PROMO .announcement-badge-pill {
  background: rgba(239, 68, 68, 0.14);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.35);
}
.type-STOCK_ALERT .announcement-badge-pill {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.35);
}
.type-MAINTENANCE .announcement-badge-pill {
  background: rgba(245, 158, 11, 0.14);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.35);
}
.type-COMMUNITY .announcement-badge-pill {
  background: rgba(37, 211, 102, 0.14);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.35);
}

/* Highlight Ribbon Pill */
.announcement-highlight-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.type-STOCK_ALERT .announcement-highlight-pill {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.type-COMMUNITY .announcement-highlight-pill {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.announcement-date-text {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Live Animated Countdown Timer Bar */
.announcement-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.12);
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: 9px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
}

.countdown-label-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #EF4444;
  letter-spacing: 0.03em;
}

.countdown-fire-icon {
  font-size: 0.9rem;
  animation: fire-flicker 1.5s infinite;
}

@keyframes fire-flicker {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #EF4444); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 6px #F59E0B); }
}

.countdown-timer-digits {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #FFFFFF;
}

.digit-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 0.15rem 0.35rem;
  font-size: 0.84rem;
  min-width: 22px;
  text-align: center;
}

.cd-sep {
  color: #EF4444;
  font-weight: 900;
  animation: sep-blink 1s infinite;
}

@keyframes sep-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Minimalist Circular Close Button */
.announcement-close-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}

.announcement-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #EF4444;
  transform: rotate(90deg);
}

/* Card Body */
.announcement-card-body {
  margin-bottom: 0.75rem;
}

.announcement-modal-title {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.01em;
}

.announcement-modal-content {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  max-height: 130px;
  overflow-y: auto;
  scrollbar-width: thin;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 1-Click Copy Coupon Code Capsule */
.announcement-coupon-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin-top: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-coupon-capsule:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #F59E0B;
  transform: translateY(-1px);
}

.coupon-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coupon-tag-icon {
  color: #F59E0B;
  font-size: 1.1rem;
}

.coupon-meta {
  display: flex;
  flex-direction: column;
}

.coupon-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coupon-code-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.btn-copy-coupon {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 0.22rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.announcement-coupon-capsule:hover .btn-copy-coupon {
  background: #F59E0B;
  color: #0E131F;
}

/* Actions Group (Dual CTAs) */
.announcement-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.btn-announcement-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.68rem 1rem;
  border-radius: 11px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  cursor: pointer;
}

.btn-announcement-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-announcement-primary:active {
  transform: scale(0.99);
}

/* Dynamic Primary Button Colors by Category */
.type-PROMO .btn-announcement-primary {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}
.type-PROMO .btn-announcement-primary:hover {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.55);
}

.type-STOCK_ALERT .btn-announcement-primary {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.type-MAINTENANCE .btn-announcement-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.type-COMMUNITY .btn-announcement-primary {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.type-NEWS .btn-announcement-primary {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.announcement-btn-arrow {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.btn-announcement-primary:hover .announcement-btn-arrow {
  transform: translateX(3px);
}

/* Secondary Channel Link (Clean & Understated) */
.announcement-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #10B981;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.announcement-secondary-link:hover {
  color: #34D399;
  text-decoration: underline;
  transform: translateY(-0.5px);
}

/* Micro Footer */
.announcement-modal-footer {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
}

.announcement-dont-show-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.announcement-dont-show-label input[type="checkbox"] {
  accent-color: var(--brand-primary);
  cursor: pointer;
  width: 13px;
  height: 13px;
}

.announcement-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.announcement-dismiss-btn:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Light Mode Overrides for Announcement Card */
html[data-theme="light"] .announcement-modal-card,
body.theme-light .announcement-modal-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}
html[data-theme="light"] .announcement-modal-content,
body.theme-light .announcement-modal-content {
  background: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}
html[data-theme="light"] .announcement-close-btn,
body.theme-light .announcement-close-btn {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #64748B;
}
html[data-theme="light"] .announcement-modal-footer,
body.theme-light .announcement-modal-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  .nav-channel-text {
    display: none;
  }
  .nav-channel-pill {
    padding: 0.35rem 0.55rem;
  }
  .announcement-modal-dialog {
    width: 86% !important;
    max-width: 320px !important;
    margin: auto !important;
  }
  .luxury-giveaway-card {
    padding: 1.45rem 1.15rem 1.1rem 1.15rem !important;
    border-radius: 20px !important;
  }
  .giveaway-visual-stage {
    height: 74px;
    margin-bottom: 0.7rem;
  }
  .giveaway-orb-outer {
    width: 68px;
    height: 68px;
  }
  .giveaway-orb-emoji {
    font-size: 1.7rem;
  }
  .giveaway-headline {
    font-size: 1.12rem !important;
    margin-bottom: 0.25rem !important;
  }
  .giveaway-desc {
    font-size: 0.78rem !important;
    max-width: 250px;
    line-height: 1.4 !important;
  }
  .btn-giveaway-whatsapp {
    height: 42px !important;
    font-size: 0.88rem !important;
  }
  .announcement-modal-title {
    font-size: 1.1rem;
  }
  .announcement-modal-content {
    font-size: 0.82rem;
    padding: 0.75rem;
    max-height: 200px;
  }
  .btn-announcement-channel {
    font-size: 0.86rem;
    padding: 0.75rem 1rem;
  }
  .announcement-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .announcement-dont-show-label {
    justify-content: center;
  }
}

/* ==========================================================================
   BROADCAST & CHANNEL ADMIN PANEL WORKSPACE (PREMIUM LUXURY REDESIGN)
   ========================================================================== */

/* Official Updates Channel Configuration Card */
.channel-config-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.channel-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.channel-form-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .channel-form-grid-top {
    grid-template-columns: 1fr;
  }
}

.channel-form-row-bottom {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.channel-url-input-wrap {
  flex: 1;
  min-width: 260px;
}

.channel-actions-wrap {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

/* ==========================================================================
   BROADCAST CARDS FEED (Replaces overflowing flat table)
   ========================================================================== */
.broadcast-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.broadcast-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.broadcast-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

/* Category Accent Left Borders */
.broadcast-card.type-PROMO {
  border-left: 5px solid #EF4444;
}
.broadcast-card.type-STOCK_ALERT {
  border-left: 5px solid #10B981;
}
.broadcast-card.type-NEWS {
  border-left: 5px solid #0EA5E9;
}
.broadcast-card.type-MAINTENANCE {
  border-left: 5px solid #F59E0B;
}

/* Paused / Inactive Card State */
.broadcast-card.is-paused {
  opacity: 0.82;
  background: rgba(21, 28, 44, 0.55);
  border-left-color: #64748B !important;
}

/* Card Header */
.broadcast-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.broadcast-badge-cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* Category Pill */
.broadcast-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.type-PROMO .broadcast-category-pill {
  background: rgba(239, 68, 68, 0.14);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.type-STOCK_ALERT .broadcast-category-pill {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.type-NEWS .broadcast-category-pill {
  background: rgba(14, 165, 233, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}
.type-MAINTENANCE .broadcast-category-pill {
  background: rgba(245, 158, 11, 0.14);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.type-COMMUNITY .broadcast-category-pill {
  background: rgba(37, 211, 102, 0.14);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.35);
}

/* Metadata Chips (Action, Countdown, Highlight) */
.broadcast-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Popup Badge */
.broadcast-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}
.broadcast-popup-badge.active {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.broadcast-popup-badge.muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.broadcast-date-stamp {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   PROMINENT STATUS TOGGLE BUTTON (Clear, Large, Unmistakable)
   ========================================================================== */
.broadcast-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
}

.broadcast-status-toggle.status-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.broadcast-status-toggle.status-active:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
  transform: scale(1.02);
}

.broadcast-status-toggle.status-inactive {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-secondary);
}

.broadcast-status-toggle.status-inactive:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
  transform: scale(1.02);
}

/* Glowing Pulsing Status LED Dot */
.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.broadcast-status-toggle.status-active .status-indicator-dot {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: broadcast-pulse-green 2s infinite;
}

.broadcast-status-toggle.status-inactive .status-indicator-dot {
  background: #94A3B8;
}

@keyframes broadcast-pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-main-label {
  letter-spacing: 0.03em;
}

.status-action-hint {
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 600;
}

/* Card Body */
.broadcast-card-body {
  margin: 0.85rem 0 1.15rem 0;
}

.broadcast-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.broadcast-card-content-preview {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.broadcast-attached-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 0.45rem 0.95rem;
  border-radius: 7px;
  color: #38BDF8;
  font-weight: 600;
  flex-wrap: wrap;
}

.broadcast-attached-cta strong {
  color: #ffffff;
}

.broadcast-attached-cta .cta-url-text {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* Card Footer / Actions Toolbar */
.broadcast-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.85rem;
}

.broadcast-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.broadcast-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}

.broadcast-action-btn.edit {
  color: var(--text-primary);
  border-color: var(--border-card);
}
.broadcast-action-btn.edit:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.broadcast-action-btn.preview {
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.05);
}
.broadcast-action-btn.preview:hover {
  background: #0284C7;
  border-color: #0284C7;
  color: #ffffff;
}

.broadcast-action-btn.delete {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}
.broadcast-action-btn.delete:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #ffffff;
}

.broadcast-visibility-state {
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.broadcast-visibility-state.active {
  color: #10B981;
}
.broadcast-visibility-state.paused {
  color: var(--text-muted);
}

/* Empty State */
.broadcast-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: 14px;
}
.broadcast-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.broadcast-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.broadcast-empty-state p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.25rem auto;
  line-height: 1.5;
}

/* Light Theme Polishes */
html[data-theme="light"] .channel-config-card,
body.theme-light .channel-config-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .broadcast-card,
body.theme-light .broadcast-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .broadcast-card:hover,
body.theme-light .broadcast-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .broadcast-card.is-paused,
body.theme-light .broadcast-card.is-paused {
  background: #F8FAFC;
}
html[data-theme="light"] .broadcast-card-content-preview,
body.theme-light .broadcast-card-content-preview {
  background: #F8FAFC;
  border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .broadcast-attached-cta strong,
body.theme-light .broadcast-attached-cta strong {
  color: #0F172A;
}

/* ==========================================================================
   DEVELOPER RESELLER API v2 DOCUMENTATION PORTAL
   ========================================================================== */
.api-docs-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0.5rem auto 2.5rem auto;
}

.api-docs-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.api-docs-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.api-pill-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.api-pill-live {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.api-docs-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.api-docs-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.api-creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .api-creds-grid {
    grid-template-columns: 1fr;
  }
}

.api-cred-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.api-cred-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
}

.api-key-display-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: #10B981;
  word-break: break-all;
  user-select: all;
}

.api-cred-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.api-smm-setup-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.03) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.smm-setup-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #F59E0B;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.smm-setup-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.smm-step strong {
  color: var(--text-primary);
}

.api-tabs-nav {
  display: flex;
  gap: 0.45rem;
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 0.45rem;
  overflow-x: auto;
}

.api-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.api-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.api-tab-btn.active {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.api-doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.api-endpoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  width: fit-content;
}

.api-endpoint-badge .method {
  font-size: 0.7rem;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.api-section-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.api-section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.api-sub-heading {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.85rem 0 0.35rem 0;
}

.api-table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
}

.api-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.api-param-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border-card);
}

.api-param-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.badge-req {
  font-size: 0.65rem;
  font-weight: 800;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.badge-opt {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.json-preview {
  color: #10B981;
}

/* Light Theme Overrides for API Docs */
html[data-theme="light"] .api-docs-hero,
body.theme-light .api-docs-hero,
html[data-theme="light"] .api-cred-card,
body.theme-light .api-cred-card,
html[data-theme="light"] .api-doc-card,
body.theme-light .api-doc-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .api-key-display-box,
body.theme-light .api-key-display-box,
html[data-theme="light"] .api-endpoint-badge,
body.theme-light .api-endpoint-badge {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .api-param-table th,
body.theme-light .api-param-table th {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

html[data-theme="light"] .api-param-table td,
body.theme-light .api-param-table td {
  border-color: #F1F5F9;
  color: #334155;
}

/* ==========================================================================
   SITE-WIDE LUXURY FOOTER (Brand, Trust, SEO & Legal Shield)
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
}

html.viewing-admin-panel .site-footer,
body.viewing-admin-panel .site-footer,
body:not(.app-hydrated) .site-footer {
  display: none !important;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-primary) 50%, transparent 100%);
  opacity: 0.6;
}

.footer-inner-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem 1.5rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.footer-brand-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-badges-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-badge-item i {
  color: #10B981;
  font-size: 0.95rem;
}

.footer-column-heading {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links-list li a,
.footer-links-list li button {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  text-align: left;
}

.footer-links-list li a:hover,
.footer-links-list li button:hover {
  color: var(--brand-primary);
  transform: translateX(3px);
}

.footer-tag-hot {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-transform: uppercase;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-trademark-disclaimer {
  max-width: 720px;
  line-height: 1.5;
}

.footer-legal-pills {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal-pills a,
.footer-legal-pills button {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s;
}

.footer-legal-pills a:hover,
.footer-legal-pills button:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-muted);
}

/* ==========================================================================
   GUIDES & SEO KNOWLEDGE BASE HUB
   ========================================================================== */
.guides-hub-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
}

.guides-hero-banner {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guides-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.12);
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.guides-hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.guides-hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.guides-filter-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guides-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.guides-filter-btn:hover,
.guides-filter-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.guides-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.guide-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.guide-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.guide-card-top-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), #F59E0B);
}

.guide-card-body {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.guide-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #0284C7;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.guide-read-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.guide-card-heading {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.guide-card-snippet {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ==========================================================================
   ARTICLE SINGLE READING VIEW
   ========================================================================== */
.article-view-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem 1rem;
}

.article-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-back-link {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.article-back-link:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.article-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.article-header-meta {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

.article-headline {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.article-body-prose {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body-prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2.2rem 0 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.article-body-prose h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1.6rem 0 0.8rem 0;
}

.article-body-prose p {
  margin-bottom: 1.25rem;
}

.article-body-prose ul,
.article-body-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body-prose li {
  margin-bottom: 0.45rem;
}

.article-product-cta-box {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1.5px solid var(--brand-primary);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-cta-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.article-cta-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-cta-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
}

.article-cta-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.article-faq-accordion {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
}

.faq-question {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-question i {
  color: var(--brand-primary);
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   LEGAL SHIELD & CONSUMER POLICIES PORTAL
   ========================================================================== */
.policies-portal-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem 1rem;
}

.policies-hero-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.policies-hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.policies-hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.policies-tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.4rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.policies-tabs-nav::-webkit-scrollbar {
  display: none;
}

.policy-tab-btn {
  flex: 1;
  min-width: 170px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.policy-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.policy-tab-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.policy-card-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.policy-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.policy-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.policy-last-updated {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.policy-document-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.policy-document-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.policy-clause-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-clause-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.policy-clause-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-void-notice {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.policy-void-title {
  color: #EF4444;
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkout-legal-shield-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.75rem;
  text-align: center;
}

.checkout-legal-shield-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  font-weight: 600;
}

.checkout-legal-shield-note a:hover {
  color: var(--brand-primary);
}

/* Responsive Breakpoints for Footer, Guides & Policies */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
  .guides-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  /* Prevent Fixed Floating Bottom Navigation Dock from obscuring Footer & Views */
  .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  .article-view-wrap,
  .guides-hub-container,
  .policies-portal-wrap {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Compact Floating WhatsApp Widget - Stays neatly above bottom nav, never blocks text */
  .floating-whatsapp-widget {
    bottom: calc(64px + 8px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
    z-index: 1040 !important;
    opacity: 0.9 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  }
  .floating-whatsapp-widget:hover,
  .floating-whatsapp-widget:active {
    opacity: 1 !important;
    transform: scale(1.05) !important;
  }

  /* Reduce Nested Gutters on Mobile - Maximizes Screen Real Estate */
  main {
    padding: 0 0.5rem !important;
  }
  #view-container {
    margin: 0.85rem 0 !important;
  }
  .policies-portal-wrap,
  .guides-hub-container,
  .article-view-wrap {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
  }

  /* Single Column Card Grid on Mobile Screens - No side overflows */
  .guides-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Guides Filter Pills - Wrapped Centered Touch Pills, Zero Clipped Words */
  .guides-filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding-bottom: 0.25rem !important;
  }
  .guides-filter-btn {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.85rem !important;
  }

  /* Guides Hero Banner scaling on Mobile */
  .guides-hero-banner {
    padding: 1.25rem 0.85rem !important;
    margin-bottom: 1.25rem !important;
    border-radius: 12px !important;
  }
  .guides-hero-title {
    font-size: 1.35rem !important;
  }
  .guides-hero-subtitle {
    font-size: 0.84rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.45 !important;
  }

  /* Article Single View Mobile Polish */
  .article-view-wrap {
    padding: 0.75rem 0.4rem 4.5rem 0.4rem !important;
  }
  .article-content-card {
    padding: 1.25rem 0.85rem !important;
    border-radius: 12px !important;
  }
  .article-headline {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
  }
  .article-body-prose {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
  }
  .article-body-prose h2 {
    font-size: 1.2rem !important;
    margin: 1.5rem 0 0.65rem 0 !important;
  }
  .article-product-cta-box {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    padding: 1.15rem 0.95rem !important;
    gap: 1rem !important;
  }
  .article-product-cta-box .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Policies Portal - 2x2 Symmetrical Grid on Mobile, Zero Cutoffs */
  .policies-hero-header {
    margin-bottom: 1rem !important;
    padding: 0.25rem 0 !important;
  }
  .policies-hero-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.35rem !important;
  }
  .policies-hero-sub {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }
  .policies-tabs-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
    padding: 0.35rem !important;
    margin-bottom: 1.25rem !important;
    overflow-x: visible !important;
  }
  .policy-tab-btn {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0.65rem 0.45rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    border-radius: 8px !important;
  }
  .policy-card-container {
    padding: 1.15rem 0.85rem !important;
    border-radius: 12px !important;
  }
  .policy-document-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
  .policy-document-sub {
    font-size: 0.84rem !important;
    margin-bottom: 1.25rem !important;
  }
  .policy-clause-box {
    padding: 1rem 0.85rem !important;
    border-radius: 10px !important;
    margin-bottom: 1rem !important;
  }
  .policy-clause-title {
    font-size: 0.92rem !important;
  }
  .policy-clause-text {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
  }
  .policy-void-notice {
    padding: 1rem 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  /* Full-width action button rows on Mobile */
  .policy-actions-row,
  .article-actions-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-top: 1.5rem !important;
  }
  .policy-actions-row .btn,
  .article-actions-row .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* API Docs Responsive Tabs */
  .api-tabs-nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .api-tabs-nav::-webkit-scrollbar {
    display: none !important;
  }
  .api-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 0.45rem 0.75rem !important;
  }
}

@media (max-width: 600px) {
  .footer-inner-container {
    padding: 2.25rem 1rem 1.75rem 1rem !important;
  }
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .footer-brand-pane {
    text-align: left !important;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }
  .footer-legal-pills {
    gap: 0.65rem !important;
    width: 100% !important;
  }
}







/* ==========================================================================
   STOCK MANAGER REPLACEMENT CENTER & WARRANTY CLAIMS (Light & Dark Theme)
   ========================================================================== */
.supplier-claim-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: var(--transition);
}

.supplier-claim-card.is-pending {
  border-color: rgba(245, 158, 11, 0.35);
}

html[data-theme="light"] .supplier-claim-card,
body.theme-light .supplier-claim-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .supplier-claim-card.is-pending,
body.theme-light .supplier-claim-card.is-pending {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.06);
}

/* Callout Note */
.supplier-claim-callout {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #F59E0B;
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

html[data-theme="light"] .supplier-claim-callout,
body.theme-light .supplier-claim-callout {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #D97706;
}

.supplier-claim-callout-text {
  color: #F59E0B;
  font-weight: 600;
  margin-top: 0.2rem;
}

html[data-theme="light"] .supplier-claim-callout-text,
body.theme-light .supplier-claim-callout-text {
  color: #B45309;
}

/* Credentials Box in Modal & Details */
.supplier-creds-box {
  background: #0B1120;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

html[data-theme="light"] .supplier-creds-box,
body.theme-light .supplier-creds-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.supplier-creds-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

html[data-theme="light"] .supplier-creds-label,
body.theme-light .supplier-creds-label {
  color: #64748B;
}

.supplier-creds-content {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 700;
  color: #38BDF8;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.5;
  user-select: all;
  margin-top: 0.35rem;
}

html[data-theme="light"] .supplier-creds-content,
body.theme-light .supplier-creds-content {
  color: #0369A1;
}

.supplier-creds-notes {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #1E293B;
  font-size: 0.74rem;
  color: #94A3B8;
}

html[data-theme="light"] .supplier-creds-notes,
body.theme-light .supplier-creds-notes {
  border-top-color: #E2E8F0;
  color: #64748B;
}

.supplier-creds-notes strong {
  color: #E2E8F0;
}

html[data-theme="light"] .supplier-creds-notes strong,
body.theme-light .supplier-creds-notes strong {
  color: #0F172A;
}

/* Replacement Fulfilled Box */
.supplier-fulfilled-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
}

html[data-theme="light"] .supplier-fulfilled-box,
body.theme-light .supplier-fulfilled-box {
  background: #F0FDF4;
  border-color: rgba(5, 150, 105, 0.25);
}

.supplier-fulfilled-title {
  color: #10B981;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
}

html[data-theme="light"] .supplier-fulfilled-title,
body.theme-light .supplier-fulfilled-title {
  color: #059669;
}

.supplier-fulfilled-content {
  background: #0B1120;
  border: 1px solid #1E293B;
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: #10B981;
  word-break: break-all;
  margin-top: 0.35rem;
  user-select: all;
}

html[data-theme="light"] .supplier-fulfilled-content,
body.theme-light .supplier-fulfilled-content {
  background: #FFFFFF;
  border-color: #A7F3D0;
  color: #047857;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Modal Input Box */
.supplier-modal-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.95rem;
  margin-top: 0.65rem;
}

html[data-theme="light"] .supplier-modal-form-box,
body.theme-light .supplier-modal-form-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

/* ==========================================================================
   WHOLESALE BOT SERVICE CATALOG MANAGER (THEME AWARE LIGHT/DARK)
   ========================================================================== */
.supplier-catalog-sticky-toolbar {
  position: sticky;
  top: -1rem;
  z-index: 10;
  background: var(--bg-surface);
  padding: 0.65rem 0;
  margin-top: -0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
html[data-theme="light"] .supplier-catalog-sticky-toolbar,
body.theme-light .supplier-catalog-sticky-toolbar {
  background: #FFFFFF !important;
  border-bottom-color: #E2E8F0 !important;
}

.catalog-filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  outline: none;
}
.catalog-filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}
.catalog-filter-pill.active {
  background: var(--brand-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--brand-primary) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.25);
}
.catalog-filter-pill.active span {
  color: #FFFFFF !important;
}

html[data-theme="light"] .catalog-filter-pill,
body.theme-light .catalog-filter-pill {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .catalog-filter-pill:hover,
body.theme-light .catalog-filter-pill:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: rgba(0, 0, 0, 0.2);
}

.bot-catalog-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bot-catalog-service-card:hover {
  border-color: var(--border-focus);
}

html[data-theme="light"] .bot-catalog-service-card,
body.theme-light .bot-catalog-service-card,
html[data-theme="light"] #modal-admin-supplier-catalog .bot-catalog-service-card,
body.theme-light #modal-admin-supplier-catalog .bot-catalog-service-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
html[data-theme="light"] .bot-catalog-service-card:hover,
body.theme-light .bot-catalog-service-card:hover,
html[data-theme="light"] #modal-admin-supplier-catalog .bot-catalog-service-card:hover,
body.theme-light #modal-admin-supplier-catalog .bot-catalog-service-card:hover {
  background: #F8FAFC !important;
  border-color: rgba(200, 16, 46, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.bot-catalog-service-card .service-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}
html[data-theme="light"] .bot-catalog-service-card .service-title,
body.theme-light .bot-catalog-service-card .service-title {
  color: #0F172A !important;
}

.bot-catalog-service-card .service-sell-price {
  font-size: 0.76rem;
  color: var(--text-primary);
  font-weight: 700;
}
html[data-theme="light"] .bot-catalog-service-card .service-sell-price,
body.theme-light .bot-catalog-service-card .service-sell-price {
  color: #0F172A !important;
}

.bot-catalog-service-card .service-profit-tag {
  color: #10B981;
  font-size: 0.7rem;
  font-weight: 600;
}
html[data-theme="light"] .bot-catalog-service-card .service-profit-tag,
body.theme-light .bot-catalog-service-card .service-profit-tag {
  color: #059669 !important;
  font-weight: 700;
}

/* Catalog Status Badges */
.catalog-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 800;
}
.catalog-badge-status.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.catalog-badge-status.status-hidden {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.catalog-badge-status.status-unmapped {
  background: rgba(100, 116, 139, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

html[data-theme="light"] .catalog-badge-status.status-active,
body.theme-light .catalog-badge-status.status-active {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border-color: #86EFAC !important;
}
html[data-theme="light"] .catalog-badge-status.status-hidden,
body.theme-light .catalog-badge-status.status-hidden {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border-color: #FCA5A5 !important;
}
html[data-theme="light"] .catalog-badge-status.status-unmapped,
body.theme-light .catalog-badge-status.status-unmapped {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-color: #CBD5E1 !important;
}

/* Stock Badges */
.catalog-badge-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}
.catalog-badge-stock.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}
.catalog-badge-stock.out-stock {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}
html[data-theme="light"] .catalog-badge-stock.in-stock,
body.theme-light .catalog-badge-stock.in-stock {
  background: #DCFCE7 !important;
  color: #15803D !important;
}
html[data-theme="light"] .catalog-badge-stock.out-stock,
body.theme-light .catalog-badge-stock.out-stock {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
}

/* Service ID Tag */
.catalog-service-id {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #0284C7;
}
html[data-theme="light"] .catalog-service-id,
body.theme-light .catalog-service-id {
  background: #E0F2FE !important;
  color: #0369A1 !important;
}
