/* ==========================================================================
   CUENTAS ECUADOR - MASTER STYLESHEET
   Aesthetics: Clean Apple / Play Store Pro Look
   - Optimized side margins for PC & Laptops (wide breadth)
   - Mobile: 2 products per row
   - Clean, uncluttered typography & natural hierarchy
   - Minimalist Admin Panel without excessive boxed frames
   - Official WhatsApp Floating Widget
   ========================================================================== */

:root {
  /* Colors */
  --bg-body: #fbfbfd;
  --bg-page: #f5f5f7;
  --surface-card: #ffffff;
  --surface-subtle: #f5f5f7;
  --surface-hover: #f9f9fb;
  
  --ink-primary: #111827;
  --ink-secondary: #4b5563;
  --ink-tertiary: #6b7280;
  --ink-inverse: #ffffff;
  
  --border-hairline: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.05);
  
  --blue-apple: #0071e3;
  --blue-hover: #0077ed;
  --blue-subtle: #e8f2fc;
  
  --emerald-cuentas: #007042;
  --emerald-denuvo: #007042;
  --emerald-dark: #05653b;
  --emerald-subtle: #e8f5ee;
  
  --amber-points: #d97706;
  --amber-subtle: #fffbeb;
  
  --red-danger: #e11d48;
  --red-subtle: #fff1f2;
  
  --purple-subtle: #f3e8ff;
  --purple-accent: #7e22ce;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Transitions */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 240ms;
}

/* ==========================================================================
   ELDORADO.GG DARK THEME VARIABLES & OVERRIDES
   ========================================================================== */
[data-theme="dark"] {
  /* Dark Theme Colors (Eldorado.gg palette) */
  --bg-body: #0c0e15;
  --bg-page: #0f111a;
  --surface-card: #151824;
  --surface-subtle: #191d2c;
  --surface-hover: #1e2235;

  --ink-primary: #f1f5f9;
  --ink-secondary: #94a3b8;
  --ink-tertiary: #64748b;
  --ink-inverse: #0c0e15;

  --border-hairline: #222638;
  --border-subtle: #1c2030;

  --blue-apple: #38bdf8;
  --blue-hover: #0ea5e9;
  --blue-subtle: rgba(56, 189, 248, 0.12);

  --emerald-denuvo: #10b981;
  --emerald-dark: #059669;
  --emerald-subtle: rgba(16, 185, 129, 0.14);

  --amber-points: #f5a623;
  --amber-subtle: rgba(245, 166, 35, 0.15);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-hairline);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle-btn:hover {
  color: #0f172a;
  background: #f8fafc;
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.theme-toggle-btn .theme-icon-moon {
  display: block;
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #1c2030;
  border-color: #262b3d;
  color: #f5a623;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #252a3d;
  color: #fbbf24;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  display: block;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

strong, b {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-body);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

#app {
  width: 100%;
  overflow-x: clip;
}

body.panel-open {
  overflow: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1480px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 36px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--ink-primary);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-tagline {
  color: var(--ink-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--duration-fast) ease;
}

.nav-link:hover {
  color: var(--ink-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: var(--blue-apple);
  background: var(--blue-subtle);
  font-weight: 600;
}

.admin-nav-link {
  color: var(--purple-accent);
  background: var(--purple-subtle);
  font-weight: 600;
}

.mobile-nav-divider,
.mobile-nav-theme-btn {
  display: none !important;
}

.header-search {
  flex: 1 1 240px;
  max-width: 360px;
}

.site-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  background: rgba(245, 245, 247, 0.9);
  transition: all var(--duration-fast) ease;
}

.site-search-box:focus-within {
  border-color: var(--blue-apple);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.search-icon {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

.site-search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink-primary);
  font-size: 0.86rem;
}

.site-search-box input::placeholder {
  color: var(--ink-tertiary);
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink-tertiary);
  font-size: 0.7rem;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 6px;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--ink-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-icon-btn,
.cart-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--ink-primary);
  box-shadow: none;
  border-radius: 50%;
  text-decoration: none;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.15s ease;
}

.cart-icon-btn:hover,
.cart-icon-button:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px) scale(1.05);
  border-color: transparent;
  box-shadow: none;
}

.cart-icon-btn:active,
.cart-icon-button:active {
  transform: scale(0.92);
}

.header-cart-icon {
  width: 23px;
  height: 23px;
  color: #1e293b;
  transition: color 0.15s ease;
}

.cart-icon-btn:hover .header-cart-icon,
.cart-icon-button:hover .header-cart-icon {
  color: var(--blue-apple);
}

.cart-label {
  display: none !important;
}

.cart-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--blue-apple);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  border: 1.5px solid #ffffff;
}

/* ==========================================================================
   Header Profile Button & Dropdown Menu
   ========================================================================== */
.profile-dropdown-wrapper {
  position: relative;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid var(--border-hairline);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.profile-button:hover {
  background: #f8fafc;
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.12);
  transform: translateY(-1px);
}

.profile-button:active {
  transform: scale(0.95);
}

.profile-button.is-logged-in {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.profile-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-apple) 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.35);
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-button:hover .profile-avatar-badge {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.45);
}

.profile-avatar-badge.is-reseller {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

.profile-button:hover .profile-avatar-badge.is-reseller {
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45);
}

.profile-avatar-badge #profileInitial {
  display: block;
  text-transform: uppercase;
}

.header-user-icon {
  width: 20px;
  height: 20px;
  color: #334155;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.profile-button:hover .header-user-icon {
  color: var(--blue-apple);
}

.profile-btn-label,
.profile-chevron-icon {
  display: none !important;
}

/* Profile Dropdown Menu Card */
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 275px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  animation: profileMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

@keyframes profileMenuPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-avatar-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  flex-shrink: 0;
}

.profile-avatar-info {
  flex: 1;
  min-width: 0;
}

.profile-avatar-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.profile-avatar-info small {
  display: block;
  color: var(--ink-secondary);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.profile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.profile-menu-item:hover {
  background: #f1f5f9;
  color: var(--blue-apple);
}

.profile-menu-item .pmi-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.profile-menu-item:hover .pmi-icon {
  color: var(--blue-apple);
}

.profile-menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 5px 4px;
}

.logout-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.logout-menu-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.logout-menu-btn .pmi-icon {
  width: 18px;
  height: 18px;
  stroke: #ef4444;
  flex-shrink: 0;
  transition: stroke 0.15s ease;
}

.logout-menu-btn:hover .pmi-icon {
  stroke: #dc2626;
}

.login-button {
  min-height: 35px;
  padding: 0 15px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.logout-btn {
  color: var(--red-danger);
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--blue-apple);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.22);
  transition: all var(--duration-fast) var(--ease-apple);
}

.primary-action:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.secondary-action:hover {
  background: var(--surface-subtle);
}

.button-reset {
  width: auto;
}

.section-tag {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--blue-apple);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}

.stock-pill.in-stock {
  background: var(--emerald-subtle);
  color: var(--emerald-dark);
}

.stock-pill.low {
  background: var(--amber-subtle);
  color: var(--amber-points);
}

.stock-pill.empty {
  background: var(--red-subtle);
  color: var(--red-danger);
}

.reward-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--amber-subtle);
  color: var(--amber-points);
  font-size: 0.72rem;
  font-weight: 600;
}

.points-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--amber-subtle);
  color: var(--amber-points);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ==========================================================================
   HOME HERO BANNER (SINGLE UNIFIED CONTAINER WITH DYNAMIC GAMER MODE)
   ========================================================================== */

.home-banner-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #edf2f7 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .home-banner-wrapper {
  background: linear-gradient(135deg, #0d101b 0%, #131728 50%, #171c2f 100%);
  border-bottom-color: #222638;
}

.home-banner-wrapper.is-gamer-active,
.home-banner-wrapper:has(.is-gamer-active) {
  background: linear-gradient(135deg, #0d101b 0%, #131728 50%, #191f36 100%) !important;
  border-bottom-color: rgba(245, 166, 35, 0.35) !important;
}

.home-hero-banner {
  max-width: 1480px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
  border-radius: 0;
  padding: clamp(20px, 2.5vw, 30px) clamp(16px, 2.5vw, 36px);
  background: transparent;
  border: none;
  overflow: hidden;
  gap: 20px;
  box-shadow: none;
}

/* Modo Gamer Active State on Banner */
.home-hero-banner.is-gamer-active {
  background: transparent;
  border: none;
  box-shadow: none;
}

.banner-text-content {
  flex: 1 1 auto;
  max-width: 640px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.banner-text-content h1 {
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  transition: color 0.3s ease;
}

.home-hero-banner.is-gamer-active .banner-text-content h1,
[data-theme="dark"] .banner-text-content h1 {
  color: #f1f5f9;
}

/* Description for PC */
.banner-hero-desc {
  display: block;
  font-size: 0.94rem;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.45;
  font-weight: 400;
  transition: color 0.3s ease;
}

[data-theme="dark"] .banner-hero-desc,
.home-hero-banner.is-gamer-active .banner-hero-desc {
  color: #94a3b8;
}

.hero-actions-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 10px;
  position: relative;
  z-index: 10;
}

/* Trust-First 'Referencias de clientes' Button */
.apple-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none !important;
  outline: none;
  width: fit-content;
  cursor: pointer;
}

.apple-ref-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  border: none !important;
}

.apple-ref-btn:active {
  transform: scale(0.97);
}

.apple-ref-btn svg {
  flex-shrink: 0;
  stroke: #ffffff;
}

/* Arrow smooth nudge animation */
@keyframes refArrowNudge {
  0%, 25%, 75%, 100% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(4px);
  }
  58% {
    transform: translateX(1.5px);
  }
}

.apple-ref-btn .ref-arrow-icon {
  display: inline-block;
  animation: refArrowNudge 1.8s ease-in-out infinite;
  will-change: transform;
}

.apple-ref-btn:hover .ref-arrow-icon {
  animation: none;
  transform: translateX(4px);
}

/* Modo Gamer / Normal Toggle Button (Sleek Secondary Button) */
.gamer-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #0f172a;
  color: #f8fafc;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  outline: none;
  cursor: pointer;
  width: fit-content;
  text-align: center;
}

.gamer-toggle-btn:hover {
  background: #1e293b;
  color: #f5a623;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
  border-color: rgba(245, 166, 35, 0.4) !important;
}

.gamer-toggle-btn.active {
  background: linear-gradient(135deg, #f5a623 0%, #f7931a 100%);
  color: #0b0d14;
  font-weight: 700;
  border: none !important;
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.35);
}

.gamer-toggle-btn.active:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0d14;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.5);
  transform: translateY(-1px);
}

/* Right Media / Image Area */
.banner-image-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.banner-hero-img {
  height: clamp(110px, 13vw, 155px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-hero-banner.is-gamer-active .banner-hero-img {
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

/* Dark Mode Overrides for Banner */
[data-theme="dark"] .home-hero-banner {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .apple-ref-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  border: none !important;
}

[data-theme="dark"] .apple-ref-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: none !important;
}

[data-theme="dark"] .gamer-toggle-btn {
  background: #171b29;
  color: #cbd5e1;
  border: 1px solid #283049 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gamer-toggle-btn:hover {
  background: #20263a;
  color: #f5a623;
  border-color: rgba(245, 166, 35, 0.5) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .gamer-toggle-btn.active {
  background: linear-gradient(135deg, #f5a623 0%, #f7931a 100%);
  color: #0b0d14;
}

[data-theme="dark"] .gamer-toggle-btn.active:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0d14;
}

/* Mobile Responsiveness for Single Banner */
@media (max-width: 768px) {
  .home-hero-banner {
    padding: 14px 16px;
    gap: 12px;
    min-height: 105px;
    position: relative;
  }

  .banner-text-content {
    position: relative;
    z-index: 5;
  }

  .banner-text-content h1 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .banner-hero-desc {
    display: block !important;
    font-size: 0.74rem !important;
    line-height: 1.35;
    margin: 0 0 10px;
    max-width: 95%;
  }

  .hero-actions-row {
    flex-wrap: nowrap !important;
    position: relative;
    z-index: 10;
  }

  .apple-ref-btn,
  .gamer-toggle-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .banner-hero-img {
    height: 85px;
  }
}

@media (max-width: 540px) {
  .home-banner-wrapper {
    margin-top: 0;
    padding: 0;
  }

  .home-hero-banner {
    padding: 12px 14px;
    min-height: auto;
    border-radius: 0;
    gap: 8px;
    position: relative;
    overflow: hidden;
  }

  .banner-text-content {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 5;
  }

  .banner-text-content h1 {
    font-size: 0.94rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .banner-hero-desc {
    font-size: 0.74rem !important;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .banner-image-container {
    position: relative;
    z-index: 1;
    pointer-events: none;
  }

  .hero-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 6px;
    width: max-content;
    max-width: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }

  .apple-ref-btn {
    padding: 5px 12px;
    font-size: 0.74rem;
    height: auto;
    min-height: 28px;
    gap: 5px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto;
    line-height: 1.2;
    border: none !important;
    outline: none;
  }

  .apple-ref-btn svg {
    width: 10px;
    height: 10px;
  }

  .apple-ref-btn .ref-arrow-icon {
    width: 9px;
    height: 9px;
  }

  .gamer-toggle-btn {
    padding: 5px 12px;
    font-size: 0.74rem;
    height: auto;
    min-height: 28px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    outline: none;
  }

  .banner-hero-img {
    height: 72px;
  }
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR & TRUST STRIP
   ========================================================================== */

.top-announcement-bar {
  background: #0f172a;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
  text-align: center;
  transition: all 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-announcement-bar.hidden {
  display: none !important;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.announcement-link:hover {
  opacity: 0.85;
}

.announcement-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: currentColor;
  opacity: 0.7;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.15s;
}

.announcement-close:hover {
  opacity: 1;
}

.cuentas-trust-banner,
.denuvo-trust-banner {
  max-width: 1480px;
  margin: 12px auto 8px;
  padding: 0 clamp(16px, 2.5vw, 36px);
}

.trust-pill-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #107c41;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-pill-wrapper:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.trust-bar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px;
  background: #00853e; /* Professional Security Green */
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.trust-bar-main:hover {
  background: #007637;
}

.trust-left-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  flex-shrink: 0;
}

.trust-shield-check {
  width: 18px;
  height: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

.trust-items-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 500;
  flex-wrap: nowrap;
}

.trust-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trust-item-pill svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  opacity: 0.95;
  flex-shrink: 0;
}

.trust-sep {
  opacity: 0.45;
  font-size: 0.8rem;
  font-weight: 300;
  user-select: none;
}

.trust-arrow-right {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.trust-bar-main:hover .trust-arrow-right,
.trust-bar-sub:hover .trust-arrow-right {
  transform: translateX(3px);
}

.trust-bar-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  background: #ffffff;
  border-top: 1px solid #d4ebd9;
  color: #036933;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.trust-bar-sub:hover {
  background: #f4fbf6;
}

.trust-sub-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-bell-icon {
  width: 15px;
  height: 15px;
  fill: #ffffff !important;
  color: #ffffff !important;
  flex-shrink: 0;
}

.trust-sub-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #065f2c;
  font-weight: 500;
}

.trust-sub-right {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #00853e;
  font-size: 0.83rem;
  font-weight: 600;
  flex-shrink: 0;
}

.trust-mobile-right {
  display: none;
}

@media (max-width: 768px) {
  .denuvo-trust-banner {
    padding: 0 10px;
    margin: 10px auto 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .trust-bar-main {
    padding: 8px 10px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .trust-left-title {
    font-size: clamp(0.76rem, 3.4vw, 0.84rem);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
  }

  .trust-left-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-only-trust-items {
    display: none !important;
  }

  .trust-mobile-right {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: clamp(0.74rem, 3.2vw, 0.82rem);
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .trust-bar-sub {
    padding: 7px 10px;
    font-size: 0.76rem;
    width: 100%;
    box-sizing: border-box;
  }

  .trust-sub-left span {
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   STOREFRONT & CATALOG TOOLBAR
   ========================================================================== */

.storefront-compact {
  padding: 12px clamp(16px, 2.5vw, 36px) 52px;
  max-width: 1480px;
  margin: 0 auto;
}


/* ==========================================================================
   G2G-INSPIRED MARKETPLACE FILTER & SORT SYSTEM
   ========================================================================== */

/* ── 1. Trending Brands Carousel ── */
.trending-brands-section {
  max-width: 1480px;
  margin: 14px auto 16px;
  padding: 0 clamp(16px, 2.5vw, 36px);
}

.trending-brands-marquee-wrapper {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.trending-brands-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: marqueeInfinite 26s linear infinite;
  will-change: transform;
}

.trending-brands-marquee-wrapper:hover .trending-brands-track,
.trending-brands-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeInfinite {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.trending-pill-card {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              background 0.2s ease;
}

.trending-pill-card:hover {
  background: #ffffff;
  border-color: #0071e3;
  color: #0071e3;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.16);
}

.trending-pill-card:active {
  transform: scale(0.95);
}

.trending-pill-card.active {
  background: linear-gradient(135deg, #0071e3, #0077ed);
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  font-weight: 600;
  transform: scale(1.03);
}

/* ── 2. Marketplace Layout (Sidebar + Main Grid) ── */
.marketplace-layout-container {
  max-width: 1480px;
  margin: 0 auto 60px;
  padding: 0 clamp(16px, 2.5vw, 36px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* ── 3. Desktop Filter Sidebar ── */
.marketplace-filter-sidebar {
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 76px;
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.filter-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-icon-svg {
  width: 16px;
  height: 16px;
  color: #2563eb;
}

.filter-title-text {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.filter-active-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
}

.btn-clear-all-filters {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.btn-clear-all-filters:hover {
  background: #fef2f2;
}

/* Accordions */
.filter-accordions-group {
  display: flex;
  flex-direction: column;
}

.filter-accordion-item {
  border-bottom: 1px solid #f1f5f9;
}

.filter-accordion-item:last-child {
  border-bottom: none;
}

.filter-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.accordion-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.accordion-count-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 600;
}

.accordion-chevron {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.filter-accordion-item.is-collapsed .accordion-chevron {
  transform: rotate(-90deg);
}

.filter-accordion-item.is-collapsed .filter-accordion-content {
  display: none;
}

.filter-accordion-content {
  padding-bottom: 14px;
}

/* Radio Option List */
.filter-radio-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.filter-radio-option:hover {
  background: #f8fafc;
}

.filter-radio-option.selected {
  background: #eff6ff;
}

.filter-radio-option input[type="radio"] {
  display: none;
}

.radio-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.filter-radio-option.selected .radio-indicator {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.filter-option-name {
  flex: 1;
  font-size: 0.84rem;
  color: #334155;
  font-weight: 400;
}

.filter-radio-option.selected .filter-option-name {
  color: #1e40af;
  font-weight: 500;
}

.filter-option-count {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Budget Inputs */
.budget-input-range-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.budget-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
}

.budget-input-wrapper:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.budget-currency {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  margin-right: 2px;
}

.budget-input-wrapper input {
  width: 100%;
  min-height: 32px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 500;
}

.budget-sep {
  color: #94a3b8;
  font-size: 0.8rem;
}

.quick-budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-budget-chip {
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.74rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-budget-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.quick-budget-chip.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  font-weight: 500;
}

/* ── 4. Main Section Toolbar & Search ── */
.marketplace-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.marketplace-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketplace-toolbar-left .results-count-text {
  font-size: 0.88rem;
  color: #64748b;
}

.marketplace-toolbar-left .results-count-text strong {
  color: #0f172a;
  font-weight: 600;
}

.marketplace-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-filter-open-btn {
  display: none;
}

/* Custom Sort Dropdown Component */
.custom-sort-dropdown-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sort-prefix-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.custom-sort-dropdown {
  position: relative;
}

.sort-dropdown-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sort-dropdown-trigger-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.mobile-sort-icon {
  display: none;
}

.sort-dropdown-chevron {
  width: 14px;
  height: 14px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.custom-sort-dropdown.open .sort-dropdown-chevron {
  transform: rotate(180deg);
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  width: 190px;
  padding: 4px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sort-dropdown-menu.hidden {
  display: none;
}

.sort-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.sort-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sort-menu-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.sort-check-icon {
  font-weight: 600;
  color: #2563eb;
}

/* Status Bar & Active Tags */
.marketplace-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.active-filter-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 500;
}

.filter-tag-label {
  color: #64748b;
  font-weight: 400;
}

.filter-tag-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 1px;
  font-size: 0.85rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.filter-tag-close-btn:hover {
  color: #ef4444;
}

.filter-tag-clear-all-link {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
}

.filter-tag-clear-all-link:hover {
  text-decoration: underline;
}

.results-count-text {
  font-size: 0.82rem;
  color: #64748b;
}

.results-count-text strong {
  color: #0f172a;
  font-weight: 600;
}

/* ── 5. Mobile Drawer & Responsiveness ── */
.mobile-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.mobile-filter-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  animation: slideUpDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpDrawer {
  to { transform: translateY(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.drawer-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.drawer-btn-clear {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.drawer-btn-apply {
  flex: 2;
  min-height: 42px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

@media (max-width: 880px) {
  .marketplace-layout-container {
    grid-template-columns: 1fr;
  }

  .marketplace-filter-sidebar {
    display: none;
  }

  .mobile-filter-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-left: 8px;
    white-space: nowrap;
  }

  .mobile-filter-open-btn svg {
    width: 15px;
    height: 15px;
    color: #2563eb;
  }

  .mobile-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
  }
}


/* Mobile Drawer Price Filters */
.mobile-menu-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-filter-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.mobile-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-price-inputs label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-price-inputs label span {
  font-size: 0.72rem;
  color: var(--ink-tertiary);
}

.mobile-price-inputs input {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  background: #ffffff;
  font-size: 0.84rem;
  color: var(--ink-primary);
}

.svg-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  flex-shrink: 0;
}

.tier-icon-bronze { color: #b45309; }
.tier-icon-silver { color: #475569; }
.tier-icon-gold { color: #854d0e; }

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--ease-apple), box-shadow var(--duration-normal) ease, border-color var(--duration-fast) ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 113, 227, 0.25);
}

.product-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f4;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms var(--ease-apple);
}

.product-card:hover .product-card-media img {
  transform: scale(1.03);
}

.card-category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  border: none !important;
  box-shadow: none !important;
}

.card-featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  border: none !important;
  box-shadow: none !important;
}

/* Product Card Design 2: Stock Overlay Badge (Sin sombra, sin bordes, sin negrita, sin punto) */
.card-stock-badge {
  position: absolute;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: normal;
  display: inline-block;
  z-index: 2;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  white-space: nowrap;
}

.card-stock-badge.pos-top-right {
  top: 8px;
  right: 8px;
}

.card-stock-badge.pos-bottom-left {
  bottom: 8px;
  left: 8px;
}

.card-stock-badge.pos-bottom-right {
  bottom: 8px;
  right: 8px;
}

.card-stock-badge.in-stock {
  background: #059669;
  color: #ffffff;
  border: none !important;
  box-shadow: none !important;
}

.card-stock-badge.low {
  background: #d97706;
  color: #ffffff;
  border: none !important;
  box-shadow: none !important;
}

.card-stock-badge.empty {
  background: #dc2626;
  color: #ffffff;
  border: none !important;
  box-shadow: none !important;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}

.product-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

/* Dynamic Visibility for product-header-row (Configured from Admin Panel) */
@media (min-width: 769px) {
  html.hide-product-header-pc .product-header-row {
    display: none !important;
  }
}

@media (max-width: 768px) {
  html.hide-product-header-mobile .product-header-row {
    display: none !important;
  }
}

.product-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.product-title a:hover {
  color: var(--blue-apple);
}

.product-summary {
  flex: 1;
  margin: 0 0 10px;
  color: var(--ink-secondary);
  font-size: 0.86rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-prefix,
.price-prefix-b2b {
  color: var(--ink-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.price-b2b-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-b2b-mobile {
  display: none;
}

.hero-title-reseller-mobile {
  display: none;
}

.price-value {
  color: var(--ink-primary);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.view-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--blue-apple);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
}

.view-detail-btn svg {
  width: 12px;
  height: 12px;
}

.product-card:hover .view-detail-btn {
  background: var(--blue-apple);
  color: #ffffff;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */

.product-page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px clamp(16px, 2.5vw, 36px) 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-secondary);
  font-size: 0.86rem;
}

.breadcrumb a:hover {
  color: var(--blue-apple);
}

.breadcrumb .current {
  color: var(--ink-primary);
  font-weight: 600;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: clamp(20px, 3vw, 36px);
  align-items: flex-start;
}

.product-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 440px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.carousel-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.08);
}

.carousel-arrow.left { left: 12px; }
.carousel-arrow.right { right: 12px; }

.carousel-arrow svg {
  width: 16px;
  height: 16px;
}

.carousel-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.carousel-thumbs button {
  width: 70px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.65;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-thumbs button.active {
  border-color: var(--blue-apple);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.carousel-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-header-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-meta-row-clean {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #64748b;
}

.meta-item-clean {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.meta-item-clean.meta-category {
  color: #0284c7;
  font-weight: 600;
  text-transform: capitalize;
}

.meta-item-clean.meta-region,
.meta-item-clean.meta-delivery {
  color: #15803d;
}

.meta-item-clean.meta-reward {
  color: #d97706;
}

.meta-item-clean.meta-moq {
  color: #0369a1;
}

.meta-dot {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.product-page-title {
  margin: 2px 0 6px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.product-page-summary {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.55;
  font-weight: 400;
}

/* --- Plan Selector Cards --- */
.plan-selector-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.selector-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.plan-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 140px;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.plan-card-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.plan-card-btn.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.plan-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-card-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  background: #ffffff;
}

.plan-card-btn.active .plan-card-radio {
  border-color: #0284c7;
}

.radio-inner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.15s ease;
}

.plan-card-btn.active .radio-inner-dot {
  background: #0284c7;
}

.plan-card-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.plan-card-btn.active .plan-card-name {
  color: #0369a1;
}

.plan-card-bottom {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 24px;
}

.plan-card-price {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
}

.plan-card-btn.active .plan-card-price {
  color: #0284c7;
}

.retail-crossed {
  font-size: 0.74rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 400;
}

/* --- Compact Topup & Variants Cards Grid (Mobile 2-Cols) --- */
.plan-cards-grid.topup-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  width: 100%;
}

.topup-cards-grid .plan-card-btn {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  gap: 4px;
}

.topup-cards-grid .plan-card-top {
  gap: 6px;
  width: 100%;
}

.topup-cards-grid .plan-card-radio {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.topup-cards-grid .radio-inner-dot {
  width: 7px;
  height: 7px;
}

.topup-cards-grid .plan-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.topup-cards-grid .plan-card-bottom {
  padding-left: 21px;
  gap: 4px;
}

.topup-cards-grid .plan-card-price {
  font-size: 1.05rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .plan-cards-grid.topup-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .topup-cards-grid .plan-card-btn {
    padding: 9px 10px;
    border-radius: 10px;
  }

  .topup-cards-grid .plan-card-name {
    font-size: 0.79rem;
  }

  .topup-cards-grid .plan-card-bottom {
    padding-left: 19px;
  }

  .topup-cards-grid .plan-card-price {
    font-size: 0.98rem;
  }
}

/* --- Clean Service Specs Inline (Divided by | with No Box) --- */
.service-specs-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-top: 4px;
}

.spec-inline-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-inline-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spec-inline-val {
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 500;
}

.spec-inline-val.spec-green {
  color: #15803d;
  font-weight: 600;
}

.spec-pipe-divider {
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 300;
  user-select: none;
}

@media (max-width: 768px) {
  .service-specs-inline {
    display: none !important;
  }
}

.product-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
}

.section-subheading {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
}

.product-description-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
  font-weight: 400;
}

.features-checklist-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.features-checklist-clean li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 450;
}

.features-checklist-clean li svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

/* --- Buy Sidebar & Sticky Buy Box --- */
.product-buy-sidebar {
  position: sticky;
  top: 80px;
  z-index: 10;
}

.buy-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buy-box-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.stock-status-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stock-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.stock-status-dot.out-stock {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.stock-status-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
}

.volume-discount-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.buy-qty-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buy-field-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
}

.buy-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 3px 6px;
}

.buy-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.buy-qty-btn:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
}

.buy-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.buy-qty-number {
  min-width: 28px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.buy-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.unit-price-row .buy-price-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.unit-price-row .buy-price-val {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
}

.unit-price-row .retail-crossed {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 400;
}

.total-price-row {
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  margin-top: -2px;
}

.buy-total-label {
  font-size: 0.96rem;
  font-weight: 600;
  color: #0f172a;
}

.buy-total-val {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.currency-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 2px;
}


/* --- Custom Buyer Input Box (Player ID / Username / Custom Info) --- */
.custom-buyer-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 4px 0 8px 0;
}

.custom-buyer-box:focus-within {
  background: transparent;
  border: none;
  box-shadow: none;
}

.custom-buyer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.81rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin-bottom: 1px;
}

.custom-buyer-label-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.custom-buyer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.custom-req-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #ef4444;
  background: #fee2e2;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.3;
}

.custom-buyer-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  font-size: 0.90rem;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.custom-buyer-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.custom-buyer-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.custom-buyer-input.input-has-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  animation: buyerInputShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes buyerInputShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.custom-buyer-hint {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.25;
  margin-top: 1px;
}

.custom-buyer-error {
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 4px;
}

.buy-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-primary-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.buy-now-btn {
  flex: 1 1 auto;
  min-height: 48px;
  height: 48px;
  padding: 0 18px;
  background: linear-gradient(135deg, #ff7a00 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.18s ease, transform 0.12s ease;
}

.buy-now-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: none !important;
}

.buy-now-btn:active:not(:disabled) {
  transform: translateY(0);
}

.buy-now-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none !important;
}

.buy-add-cart-btn {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  aspect-ratio: 1 / 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.buy-add-cart-btn:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0284c7;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.buy-add-cart-btn:active:not(:disabled) {
  transform: translateY(0);
}

.buy-add-cart-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none !important;
}

.buy-add-cart-btn.added-feedback {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: scale(0.96);
}

.buy-now-btn svg,
.buy-add-cart-btn svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
}

.buy-submit-btn,
.add-cart-btn:not(.buy-add-cart-btn) {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 600;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.buy-submit-btn:hover:not(:disabled),
.add-cart-btn:not(.buy-add-cart-btn):hover:not(:disabled) {
  background: #0369a1;
  box-shadow: none !important;
}

.buy-submit-btn:disabled,
.add-cart-btn:not(.buy-add-cart-btn):disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.65;
}

.buy-submit-btn svg,
.add-cart-btn:not(.buy-add-cart-btn) svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  stroke: currentColor;
}

.buy-redeem-btn,
.redeem-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  font-size: 0.88rem;
  justify-content: center;
}

.buy-trust-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  margin-top: 6px;
}

.trust-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.trust-row-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px;
  color: #0284c7;
  stroke: #0284c7;
  flex-shrink: 0 !important;
}

.trust-row-icon.trust-bolt-icon {
  fill: #0284c7;
  stroke: none;
}

.trust-feature-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
}

.trust-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-desc {
  font-size: 0.77rem;
  font-weight: 400;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.trust-pay-logos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 2px;
}

.trust-pay-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .product-buy-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  /* En teléfonos: product-buy-sidebar inmediatamente después de plan-selector-block */
  .product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .product-main-col {
    display: contents;
  }

  .product-gallery-card {
    order: 1;
  }

  .product-header-section {
    order: 2;
  }

  .plan-selector-block {
    order: 3;
  }

  .reseller-disabled-notice,
  .reseller-volume-pricing-card {
    order: 4;
  }

  .product-buy-sidebar {
    order: 5;
    position: static;
    width: 100%;
  }

  .product-content-card {
    order: 6;
  }

  /* Modo Mayorista en Teléfono */
  .reseller-portal-banner-wrapper {
    display: none !important;
  }

  .hero-title-general {
    display: none !important;
  }

  .hero-title-reseller-mobile {
    display: block !important;
  }

  .product-card.product-card-wholesale .moq-pill,
  .product-card-wholesale .moq-pill {
    display: none !important;
  }

  .price-b2b-desktop {
    display: none !important;
  }

  .price-b2b-mobile {
    display: inline !important;
  }

  .retail-crossed .pvp-prefix {
    display: none !important;
  }
}

.related-products-section {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
}

.related-products-section h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ==========================================================================
   CART & CHECKOUT (WORLD-CLASS FINTECH REDESIGN)
   ========================================================================== */

.cart-page-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px clamp(16px, 2.5vw, 36px) 64px;
}

.cart-header-title {
  margin-bottom: 24px;
}

.cart-header-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #059669;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.cart-header-trust-tag svg {
  width: 16px;
  height: 16px;
  color: #059669;
  flex-shrink: 0;
}

.cart-header-title h1 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cart-header-title p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  max-width: 720px;
  line-height: 1.45;
}

.empty-cart-state {
  padding: 60px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-width: 520px;
  margin: 20px auto;
}

.empty-cart-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: #94a3b8;
  display: grid;
  place-items: center;
}

.empty-cart-icon svg {
  width: 48px;
  height: 48px;
}

.empty-cart-state h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #0f172a;
}

.empty-cart-state p {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 0.9rem;
}

.cart-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cart-items-list {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Checkout Section Cards (Steps 1, 2, 3) */
.checkout-section-card {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.checkout-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.step-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  flex-shrink: 0;
  border: none;
}

.checkout-card-header h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: #0f172a;
}

.step-desc {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 0.84rem;
}

.required-indicator {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Cart Items Container */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: none;
  transition: background 0.15s ease;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.cart-item-row:hover {
  background: #f1f5f9;
}

.cart-item-thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.cart-product-title-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cart-product-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  display: block;
}

.cart-title-marquee {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.cart-product-title.is-overflowing .cart-title-marquee {
  animation: cartMarqueePingPong var(--marquee-duration, 6s) ease-in-out infinite;
}

.cart-product-title:hover .cart-title-marquee,
.custom-id-text-wrap:hover .custom-id-text-marquee {
  animation-play-state: paused;
}

@keyframes cartMarqueePingPong {
  0%, 22% {
    transform: translateX(0);
  }
  58%, 78% {
    transform: translateX(var(--marquee-dist, -50px));
  }
  100% {
    transform: translateX(0);
  }
}

.cart-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
  max-width: 100%;
  min-width: 0;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 500;
  color: #0369a1;
  background: #e0f2fe;
  border: none;
  border-radius: 8px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.custom-id-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #0f766e;
  background: #ccfbf1;
  border: none;
  border-radius: 8px;
  padding: 3px 8px;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.custom-id-tag svg {
  color: #0f766e;
  flex-shrink: 0;
}

.custom-id-text-wrap {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.custom-id-text-marquee {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.custom-id-text-wrap.is-overflowing .custom-id-text-marquee {
  animation: cartMarqueePingPong var(--marquee-duration, 6s) ease-in-out infinite;
}

.order-admin-custom-id {
  font-size: 0.8rem;
  font-weight: 500;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  width: fit-content;
  border: none;
  margin-top: 2px;
}

.moq-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 500;
  color: #0284c7;
  background: #e0f2fe;
  border: none;
  border-radius: 8px;
  padding: 3px 8px;
  white-space: nowrap;
}

.moq-warning-text {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.moq-warning-text svg {
  flex-shrink: 0;
}

.cart-item-row.item-below-moq {
  background: #fff1f2 !important;
  border: none !important;
}

.cart-item-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-item-price-line .item-subtotal-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.cart-item-price-line .unit-price-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.cart-item-row .qty-counter-box {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border-radius: 12px;
  padding: 3px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.cart-item-row .qty-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-item-row .qty-btn:hover {
  background: #e2e8f0;
}

.cart-item-row .qty-display {
  min-width: 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.qty-counter-box {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border-radius: 10px;
  padding: 2px 4px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-display {
  min-width: 22px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.item-subtotal-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

/* Payment Tabs Bar - Modern Segmented Switch */
.payment-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  background: #f1f5f9;
  border-radius: 14px;
  border: none;
}

.pay-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-tab-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
}

.pay-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}

.pay-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.payment-detail-panel {
  display: none;
}

.payment-detail-panel.is-active {
  display: block;
  animation: viewFadeSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fintech Bank Cards - Vibrant Real Brand Cards (Borderless) */
.bank-card-fintech {
  border-radius: 20px;
  border: none !important;
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bank-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.bank-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 5px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.copy-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.bank-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bank-data-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.bank-field small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  font-weight: 450;
}

.field-copyable {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 8px;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.mini-copy svg {
  display: block;
}

/* 1. Banco Pichincha (Tarjeta Oficial con Facetas Geométricas / Vectores) */
.pichincha-card {
  background-color: #ffd800;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 380' preserveAspectRatio='none'%3E%3Crect width='600' height='380' fill='%23fed600'/%3E%3Cpolygon points='260,0 520,0 390,170' fill='%23ffea50' opacity='0.55'/%3E%3Cpolygon points='440,0 600,0 600,160' fill='%23f2bd00' opacity='0.75'/%3E%3Cpolygon points='110,380 490,0 600,0 600,380' fill='%23e6a900' opacity='0.85'/%3E%3Cpolygon points='230,380 600,120 600,380' fill='%23cf8c00' opacity='0.96'/%3E%3Cpolygon points='380,380 600,240 600,380' fill='%23ba7a00' opacity='0.65'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none !important;
  color: #081d40;
  box-shadow: 0 8px 26px -4px rgba(212, 149, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.pichincha-card .bank-card-head {
  border-bottom: 1px solid rgba(8, 29, 64, 0.12);
}

.pichincha-card .bank-card-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 550;
  color: #081d40;
  letter-spacing: -0.01em;
}

.pichincha-card .bank-card-brand span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(8, 29, 64, 0.82);
}

.pichincha-card .copy-pill-btn {
  background: #081d40;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(8, 29, 64, 0.25);
}

.pichincha-card .copy-pill-btn:hover {
  background: #040e20;
  color: #ffffff;
}

.pichincha-card .bank-field small {
  color: #081d40;
  opacity: 0.75;
  font-weight: 450;
}

.pichincha-card .bank-field span {
  font-size: 0.94rem;
  font-weight: 500;
  color: #081d40;
}

.pichincha-card .field-copyable code {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #081d40;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 9px;
  letter-spacing: 0.4px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pichincha-card .mini-copy {
  background: #ffffff;
  color: #081d40;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pichincha-card .mini-copy:hover {
  background: #081d40;
  color: #ffffff;
}

.pichincha-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  padding-top: 4px;
}

.pichincha-visa-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  font-style: italic;
  color: #ffffff !important;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.pichincha-visa-badge span {
  font-size: 0.68rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  text-transform: capitalize;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* 2. Produbanco (Verde Esmeralda Vivo Oficial Promerica) */
.produbanco-card {
  background: linear-gradient(135deg, #00874e 0%, #005f37 100%);
  border: none !important;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 135, 78, 0.25);
}

.produbanco-card .bank-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.produbanco-card .bank-card-brand strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 550;
  color: #ffffff;
}

.produbanco-card .bank-card-brand span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.produbanco-card .copy-pill-btn {
  background: #ffffff;
  color: #005f37;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.produbanco-card .copy-pill-btn:hover {
  background: #ecfdf5;
  color: #004d2c;
}

.produbanco-card .bank-field small {
  color: rgba(255, 255, 255, 0.75);
}

.produbanco-card .bank-field span {
  font-size: 0.94rem;
  font-weight: 500;
  color: #ffffff;
}

.produbanco-card .field-copyable code {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.4px;
  border: none;
}

.produbanco-card .mini-copy {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.produbanco-card .mini-copy:hover {
  background: #ffffff;
  color: #005f37;
}

/* 3. Deuna (Violeta / Púrpura Eléctrico Vivo Oficial) */
.deuna-card {
  background: linear-gradient(135deg, #7c3aed 0%, #581c87 100%);
  border: none !important;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.deuna-layout-flex {
  display: flex;
  align-items: center;
  gap: 22px;
}

.deuna-card .deuna-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}

.deuna-qr-img {
  width: 146px;
  height: 146px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.deuna-qr-img:hover {
  transform: scale(1.03);
}

.qr-zoom-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #581c87;
  font-weight: 500;
}

.qr-zoom-hint svg {
  flex-shrink: 0;
}

.deuna-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deuna-brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deuna-mini-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.deuna-card .deuna-brand-badge strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 550;
  color: #ffffff;
}

.deuna-card .deuna-brand-badge p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.deuna-card .deuna-instructions ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.deuna-card .deuna-phone-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  margin-top: 6px;
}

.deuna-card .deuna-phone-box small {
  display: block;
  font-size: 0.72rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.78);
}

.deuna-card .deuna-phone-box strong {
  font-size: 0.96rem;
  font-weight: 500;
  color: #ffffff;
}

/* 4. PayPal (Azul Royal Vivo Oficial PayPal) */
.paypal-card {
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  border: none !important;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 112, 186, 0.25);
}

.paypal-card .bank-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.paypal-card .bank-card-brand strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 550;
  color: #ffffff;
}

.paypal-card .bank-card-brand span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.paypal-card .copy-pill-btn {
  background: #ffffff;
  color: #003087;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.paypal-card .copy-pill-btn:hover {
  background: #f0f7ff;
  color: #002266;
}

.paypal-card .bank-field small {
  color: rgba(255, 255, 255, 0.75);
}

.paypal-card .bank-field span {
  font-size: 0.94rem;
  font-weight: 500;
  color: #ffffff;
}

.paypal-card .field-copyable code {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.4px;
  border: none;
}

.paypal-card .mini-copy {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.paypal-card .mini-copy:hover {
  background: #ffffff;
  color: #003087;
}

.paypal-card .paypal-instructions-box {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
}

.paypal-card .paypal-instructions-box p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Dynamic Active Tabs matching vibrant brand colors (No colored borders) */
.pay-tab-btn[data-pay-tab="pichincha"].active {
  background: #ffdd00;
  color: #0a1e42;
  border: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pay-tab-btn[data-pay-tab="produbanco"].active {
  background: #00874e;
  color: #ffffff;
  border: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pay-tab-btn[data-pay-tab="deuna"].active {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pay-tab-btn[data-pay-tab="paypal"].active {
  background: #0070ba;
  color: #ffffff;
  border: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Guest Checkout Contact & Delivery Details */
.guest-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.guest-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guest-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.optional-badge {
  font-size: 0.84rem;
  font-weight: 400;
  color: #64748b;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.guest-phone-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 46px;
}

.guest-phone-input-wrap:focus-within {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
  background: #ffffff;
}

.guest-phone-input-wrap.has-error,
.guest-phone-input-wrap.input-has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  animation: shakeX 0.4s ease;
}

.guest-phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  background: #f1f5f9;
  height: 100%;
  border-right: 1px solid #cbd5e1;
  flex-shrink: 0;
  user-select: none;
}

.guest-phone-prefix strong {
  color: #0f172a;
  font-weight: 700;
}

.guest-phone-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #0f172a;
  height: 100%;
  font-family: inherit;
  min-width: 0;
}

.guest-phone-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: normal;
}

.guest-email-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  height: 46px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.guest-email-input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
  background: #ffffff;
}

.guest-email-input.has-error,
.guest-email-input.input-has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.guest-field-hint {
  font-size: 0.77rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 2px;
}

.guest-field-hint strong {
  color: #0284c7;
  font-weight: 600;
}

.guest-field-error {
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 600;
  margin: 3px 0 0;
  line-height: 1.3;
}

.guest-trust-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
  font-size: 0.84rem;
  line-height: 1.4;
}

.logged-in-buyer-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Receipt Dropzone Fintech */
.receipt-dropzone-fintech {
  padding: 24px 18px;
  border-radius: 18px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.receipt-dropzone-fintech:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.dropzone-unloaded {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone-camera-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue-apple);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 2px;
}

.dropzone-camera-icon svg {
  width: 22px;
  height: 22px;
}

.dropzone-main-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.dropzone-main-text .text-link {
  color: var(--blue-apple);
  text-decoration: underline;
}

.dropzone-hint-text {
  font-size: 0.78rem;
  color: #64748b;
}

.dropzone-loaded {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px;
  text-align: left;
}

.preview-img-container {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.preview-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-meta-info {
  flex: 1;
}

.preview-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #059669;
  margin-bottom: 2px;
}

.preview-status-tag svg {
  flex-shrink: 0;
}

.preview-filename {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 6px;
  word-break: break-all;
}

.change-receipt-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: none;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-size: 0.76rem;
  font-weight: 500;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s;
}

.change-receipt-btn:hover {
  background: #f1f5f9;
}

.receipt-error-msg {
  margin: 8px 0 0;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Sidebar Order Summary Fintech */
.cart-summary-sidebar {
  position: sticky;
  top: 84px;
}

.summary-card-fintech {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.summary-header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.order-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.order-secure-badge svg {
  width: 13px;
  height: 13px;
}

.summary-lines-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #475569;
}

.summary-line-item span:last-child {
  font-weight: 700;
  color: #0f172a;
}

.summary-line-item .text-emerald {
  color: #059669 !important;
  font-weight: 700 !important;
  background: #ecfdf5;
  padding: 3px 9px;
  border-radius: 6px;
  border: none;
  font-size: 0.8rem;
}

.summary-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 6px 0;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid #e2e8f0 !important;
  border-radius: 0;
  margin-top: 8px;
}

.total-label-col span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.total-label-col small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 1px;
}

.total-price-hero {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.checkout-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: none !important;
  background: #0071e3;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-main-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.checkout-main-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.checkout-main-btn svg {
  width: 18px;
  height: 18px;
  color: inherit;
  stroke: currentColor;
  flex-shrink: 0;
}

/* 1. Pichincha Dynamic Button (Amarillo Oficial Pichincha + Texto Azul Marino) */
.checkout-main-btn[data-pay-method="pichincha"] {
  background: #fed600;
  color: #081d40;
  box-shadow: 0 4px 16px rgba(254, 214, 0, 0.38);
}

.checkout-main-btn[data-pay-method="pichincha"]:hover:not(:disabled) {
  background: #f5c800;
  color: #040e20;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(254, 214, 0, 0.48);
}

.checkout-main-btn[data-pay-method="pichincha"] svg {
  color: #081d40;
  stroke: #081d40;
}

.checkout-main-btn[data-pay-method="pichincha"] span {
  color: #081d40;
  font-weight: 650;
}

/* 2. Produbanco Dynamic Button (Verde Esmeralda Oficial Promerica) */
.checkout-main-btn[data-pay-method="produbanco"] {
  background: linear-gradient(135deg, #00874e 0%, #005f37 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 135, 78, 0.35);
}

.checkout-main-btn[data-pay-method="produbanco"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #009657 0%, #006e40 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 135, 78, 0.45);
}

.checkout-main-btn[data-pay-method="produbanco"] svg {
  color: #ffffff;
  stroke: #ffffff;
}

/* 3. Deuna Dynamic Button (Violeta Púrpura Eléctrico Oficial) */
.checkout-main-btn[data-pay-method="deuna"] {
  background: linear-gradient(135deg, #7c3aed 0%, #581c87 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.checkout-main-btn[data-pay-method="deuna"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #8b5cf6 0%, #6b21a8 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.checkout-main-btn[data-pay-method="deuna"] svg {
  color: #ffffff;
  stroke: #ffffff;
}

/* 4. PayPal Dynamic Button (Azul Royal Oficial PayPal) */
.checkout-main-btn[data-pay-method="paypal"] {
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.35);
}

.checkout-main-btn[data-pay-method="paypal"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #0079c8 0%, #003799 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 112, 186, 0.45);
}

.checkout-main-btn[data-pay-method="paypal"] svg {
  color: #ffffff;
  stroke: #ffffff;
}

.checkout-trust-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.checkout-trust-link:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.checkout-trust-link svg {
  color: #10b981;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  transition: color 0.2s ease;
}

.checkout-trust-link strong {
  color: #059669;
  font-weight: 600;
  display: inline;
  transition: color 0.2s ease;
}

/* Evitar que el link de referencias sea verde cuando el botón es verde (Produbanco) */
.checkout-trust-link[data-pay-method="produbanco"] svg {
  color: #0284c7;
}

.checkout-trust-link[data-pay-method="produbanco"] strong {
  color: #0284c7;
}

.checkout-guarantee-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.35;
}

.guarantee-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0;
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
}

.guarantee-icon-wrap svg {
  width: 18px;
  height: 18px;
}

/* Hide WhatsApp on Checkout / Cart Page */
body.route-cart #whatsappWidget,
body.route-cart .whatsapp-widget {
  display: none !important;
}

@media (max-width: 860px) {
  .cart-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .checkout-section-card {
    margin-bottom: 0;
  }
  .payment-tabs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .deuna-layout-flex {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cart-page-wrapper {
    padding: 16px 12px 48px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  /* Separación uniforme y más compacta entre los bloques del carrito en teléfono */
  .cart-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .checkout-section-card {
    padding: 16px 14px;
    border-radius: 16px;
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .summary-card-fintech {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .checkout-card-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .cart-item-row {
    align-items: flex-start;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 14px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .cart-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .cart-item-info {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
  }

  .cart-product-title {
    font-size: 0.92rem;
  }

  .cart-item-row .qty-counter-box {
    align-self: flex-start;
    margin-top: -2px;
    padding: 2px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .cart-item-row .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .cart-item-row .qty-display {
    min-width: 18px;
    font-size: 0.84rem;
  }

  /* Align payment tab buttons to the left on mobile phones */
  .pay-tab-btn {
    justify-content: flex-start;
    padding: 10px 12px;
    gap: 8px;
    text-align: left;
  }

  .pay-tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}


/* ==========================================================================
   PROFILE & MIS COMPRAS
   ========================================================================== */

.profile-page-wrapper {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 2.8vw, 40px) 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
}

.profile-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-section-header-row h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.profile-orders-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: var(--ink-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-avatar-large {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-apple), #38bdf8);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
}

.profile-header-info {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name-row h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.profile-header-info p {
  margin: 2px 0 0;
  color: var(--ink-secondary);
  font-size: 0.86rem;
}

.profile-stats-grid {
  display: flex;
  gap: 12px;
}

.stat-box {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  text-align: center;
}

.stat-box span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

.stat-box strong {
  font-size: 1.05rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .profile-header-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .profile-stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.profile-section {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
}

.profile-section h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-card-delivered {
  background: #f0fdf4;
  border-left: 3px solid #10b981;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-date {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--ink-tertiary);
}

.order-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-total {
  font-size: 1.05rem;
  font-weight: 600;
}

.order-items-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.receipt-thumbnail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.view-receipt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-apple);
  font-weight: 600;
}

.view-receipt-link img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}

.delivery-result-card {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid #dcfce7;
}

.delivery-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.delivery-result-header strong {
  font-size: 0.84rem;
  color: #166534;
}

.delivery-text-display {
  margin: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #f8fafc;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.delivery-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.delivery-img-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.pending-notice-box {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: #fffbeb;
  font-size: 0.8rem;
  color: #92400e;
}

.narrow-form {
  max-width: 380px;
}

/* ==========================================================================
   ADMIN PANEL (CLEAN APPLE LOOK - NO EXCESSIVE FRAMES/BOXES)
   ========================================================================== */

.admin-shell-wrapper {
  margin: 0;
  padding: 0 0 60px;
  max-width: 100%;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 57px);
}

.admin-sidebar {
  position: sticky;
  top: 57px;
  width: 260px;
  height: calc(100vh - 57px);
  max-height: calc(100vh - 57px);
  overflow-y: auto;
  align-self: start;
  flex-shrink: 0;
  padding: 0;
  border-radius: 0;
  background: #ffffff;
  border-right: 1px solid #e8edf4;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.admin-brand-header {
  padding: 1.1rem 1rem 1rem;
  border-bottom: 1px solid #e8edf4;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.6rem 0.6rem;
  flex: 1;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.admin-tab-btn:hover {
  background: #edf2f7;
  color: #1e293b;
}

.admin-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.admin-workspace {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #f1f5f9;
  min-height: calc(100vh - 64px);
}

.admin-workspace-header {
  padding: 1.1rem 1.5rem 0.9rem;
  background: #ffffff;
  border-bottom: 1px solid #e8edf4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-workspace-header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-stats-bar {
  display: flex;
  gap: 8px;
}

.admin-stat-item {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
}

.admin-stat-item span {
  display: block;
  color: var(--ink-secondary);
  font-size: 0.7rem;
}

.admin-stat-item strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.dashboard-panel {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e8edf4;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
}

.admin-workspace > #adminTabContent {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-panel .panel-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1.2fr);
  gap: 18px;
}

.product-form {
  display: grid;
  gap: 10px;
}

.form-group {
  display: grid;
  gap: 4px;
}

.form-group span {
  color: var(--ink-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  background: #ffffff;
  color: var(--ink-primary);
  outline: none;
}

.form-group textarea {
  min-height: 64px;
  padding-top: 6px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-apple);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
}

.check-line input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue-apple);
}

/* Clean Admin Orders (Clean Flat List, No Boxed Clutter) */
.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-order-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-xs);
}

.admin-order-card.order-pending-card {
  border-left: 3.5px solid #f59e0b;
}

.admin-order-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.order-id-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-id-meta strong {
  font-size: 0.96rem;
}

.order-date-tag {
  font-size: 0.76rem;
  color: var(--ink-tertiary);
}

.order-status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-status-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-delivered {
  background: #dcfce7;
  color: #166534;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.order-total-badge {
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.col-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ink-tertiary);
  margin-bottom: 3px;
}

.admin-order-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}

.admin-order-items-list li {
  padding: 2px 0;
}

.receipt-preview-admin {
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-preview-admin img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.admin-dispatch-section {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.dispatch-section-header {
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.dispatch-form textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.delivery-thumbs-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.delivery-thumbs-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.dispatch-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Photo Manager & Image Cards in Admin Product Form */
.photo-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 10px 0;
}

.photo-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.photo-item-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #f8fafc;
}

.photo-item-controls {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
}

.photo-item-controls span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-btn-group {
  display: flex;
  gap: 4px;
}

.photo-btn-group button {
  flex: 1;
  padding: 3px 0;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-btn-group button:hover {
  background: #e2e8f0;
}

.photo-btn-group .btn-delete {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.photo-btn-group .btn-delete:hover {
  background: #fecaca;
}

/* Dispatch Form & Delivery Thumbnails */
.multi-image-upload-wrapper {
  margin: 8px 0;
}

.upload-dropzone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-dropzone-btn:hover {
  background: #e2e8f0;
  border-color: #64748b;
}

.upload-dropzone-btn input[type="file"] {
  display: none;
}

.dispatch-existing-images {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dispatch-existing-images span {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.delivery-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-img-wrapper {
  position: relative;
  display: inline-block;
}

.delivery-img-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  padding: 0;
  background: #f8fafc;
  cursor: pointer;
  display: block;
}

.delivery-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-delivery-thumb {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
  padding: 0;
}

.btn-remove-delivery-thumb:hover {
  transform: scale(1.15);
  background: #dc2626;
}

.dispatch-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dispatch-submit-btn {
  background: #16a34a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.dispatch-submit-btn:hover:not(:disabled) {
  background: #15803d !important;
}

.btn-reject-order {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

.btn-reject-order:hover {
  background: #fecaca !important;
}


/* Clean Admin Products, Resellers & Users Lists */
.admin-products-list,
.admin-categories-list,
.admin-resellers-list,
.admin-users-list,
.admin-redemptions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-product-row,
.user-row-card,
.category-row-item,
.redemption-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface-subtle);
}

.admin-product-row img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-product-row-info {
  flex: 1;
}

.admin-row-top h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-product-summary {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.action-btn-sm {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  color: var(--ink-primary);
  font-size: 0.74rem;
  font-weight: 500;
}

.btn-edit { color: var(--blue-apple); }
.btn-delete { color: var(--red-danger); }
.btn-approve { color: var(--emerald-denuvo); }

.tier-pill {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
}

.tier-bronze { background: #fdf2e9; color: #b45309; }
.tier-silver { background: #f1f5f9; color: #475569; }
.tier-gold { background: #fefce8; color: #854d0e; }

.credentials-generated-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.monospace-textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #86efac;
  color: #14532d;
}

.audit-logs-table-wrapper {
  overflow-x: auto;
}

.audit-logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.audit-logs-table th {
  padding: 10px 12px;
  background: var(--surface-subtle);
  font-weight: 600;
  text-align: left;
}

.audit-logs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   IMAGE ZOOM MODAL / LIGHTBOX
   ========================================================================== */

.must-change-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.must-change-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.must-change-card {
  position: relative;
  z-index: 10;
  width: min(440px, 100%);
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-elevated);
}

.must-change-header {
  text-align: center;
  margin-bottom: 16px;
}

.security-shield-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.must-change-header h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 600;
}

.must-change-header p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.image-zoom-card {
  position: relative;
  z-index: 10;
  width: min(760px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.image-zoom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.image-zoom-body {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: #0f172a;
}

.image-zoom-body img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.image-zoom-footer {
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
}

/* ==========================================================================
   AUTH MODAL & AUTH PANEL (APPLE-INSPIRED DESIGN)
   ========================================================================== */

.auth-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-apple);
}

.auth-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 28px 26px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: scale(0.96) translateY(8px);
  transition: transform var(--duration-normal) var(--ease-apple);
}

.auth-panel.open .auth-card {
  transform: scale(1) translateY(0);
}

.close-auth-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.close-auth-btn:hover {
  background: #e2e8f0;
  color: var(--ink-primary);
}

.auth-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.auth-brand-info strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.auth-brand-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-secondary);
  margin-top: 1px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  padding: 4px;
  margin-top: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
}

.tab-button {
  min-height: 34px;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.tab-button.active {
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.auth-form.active {
  display: flex;
}

.form-title-group h2 {
  margin: 0 0 2px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.form-title-group p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.form-group span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-primary);
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-field-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-tertiary);
  pointer-events: none;
}

.auth-input-wrapper input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px 8px 36px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--ink-primary);
  font-size: 0.88rem;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background var(--duration-fast) ease;
}

.auth-input-wrapper input:focus {
  outline: none;
  border-color: var(--blue-apple);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.auth-submit-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--blue-apple);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
  color: var(--ink-tertiary);
  font-size: 0.72rem;
}

.auth-trust-footer svg {
  width: 13px;
  height: 13px;
  color: #10b981;
}

/* ==========================================================================
   WHATSAPP WIDGET & FLOAT ICON (ENLARGED & PROMINENT)
   ========================================================================== */

.whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.whatsapp-card,
.whatsapp-float {
  pointer-events: auto;
}

.whatsapp-card {
  width: min(320px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all var(--duration-normal) var(--ease-apple);
}

.whatsapp-widget.is-open .whatsapp-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.whatsapp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #ffffff;
}

.whatsapp-agent-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.whatsapp-agent-avatar img {
  width: 100%;
  height: 100%;
  border: 2px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
}

.agent-status-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #25d366;
}

.whatsapp-head-info {
  flex: 1;
}

.whatsapp-head-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.whatsapp-head-info small {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
}

.whatsapp-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.whatsapp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #efeae2;
}

.whatsapp-message {
  padding: 10px 12px;
  border-radius: 0 12px 12px 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.whatsapp-sender-label {
  margin-bottom: 3px;
  color: #128c7e;
  font-size: 0.72rem;
  font-weight: 600;
}

.whatsapp-message p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.whatsapp-time {
  display: block;
  text-align: right;
  font-size: 0.66rem;
  color: #8696a0;
  margin-top: 4px;
}

.whatsapp-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.whatsapp-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.84rem;
}

.whatsapp-form button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.whatsapp-form button svg {
  width: 16px;
  height: 16px;
}

/* BOTÓN MÁS GRANDE DE WHATSAPP (64px DESKTOP) */
.whatsapp-float {
  position: relative;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  border: none;
  transition: transform var(--duration-fast) var(--ease-apple), box-shadow var(--duration-fast) ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24) !important;
}

.whatsapp-float:active {
  transform: scale(0.96);
}

.whatsapp-float svg {
  width: 34px !important;
  height: 34px !important;
  fill: #ffffff !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: 40px;
  padding: 36px clamp(16px, 2.5vw, 36px) 24px;
  border-top: 1px solid var(--border-hairline);
  background: #ffffff;
}

.footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  max-width: 1480px;
  margin: 0 auto;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-row strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.footer-brand-col p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 360px;
}

.footer-payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.payment-tag {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 0.74rem;
  font-weight: 500;
}

.footer-col-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-primary);
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-links-col nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links-col a {
  color: var(--ink-secondary);
  font-size: 0.84rem;
}

.footer-links-col a:hover {
  color: var(--blue-apple);
}

.footer-contact-col p {
  margin: 0 0 3px;
  color: var(--ink-secondary);
  font-size: 0.84rem;
}

.footer-contact-col strong {
  color: var(--ink-primary);
}

.footer-contact-col small {
  display: block;
  margin-top: 8px;
  color: var(--ink-tertiary);
  font-size: 0.74rem;
}

/* ==========================================================================
   ABOUT & CONTACT (PREMIUM REDESIGN)
   ========================================================================== */

.about-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 48px) 70px;
}

.about-hero-pro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue-apple);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.about-badge svg {
  width: 15px;
  height: 15px;
}

.about-badge.online-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.online-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.about-hero-pro h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  line-height: 1.15;
}

.about-lead-pro {
  margin: 0 auto;
  color: var(--ink-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* STATS GRID */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.about-stat-box {
  padding: 22px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.about-stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.stat-num {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: var(--blue-apple);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

/* PILLARS */
.about-section-container {
  margin-bottom: 44px;
}

.about-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 28px;
}

.about-section-header h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.about-section-header p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pillar-card {
  padding: 24px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e8edf4;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.pillar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pillar-chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #475569;
}

.pillar-icon-box {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 0;
  transition: transform 0.2s ease;
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.08);
}

.pillar-icon-box.icon-box--blue {
  background: #eff6ff;
  color: #2563eb;
}

.pillar-icon-box.icon-box--emerald {
  background: #ecfdf5;
  color: #059669;
}

.pillar-icon-box.icon-box--green {
  background: #f0fdf4;
  color: #16a34a;
}

.pillar-icon-box.icon-box--purple {
  background: #faf5ff;
  color: #9333ea;
}

.pillar-icon-box svg {
  width: 22px;
  height: 22px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.pillar-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 400;
}

/* ABOUT CTA CARD */
.about-cta-card {
  padding: 36px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.about-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.about-cta-content h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 600;
  color: #ffffff;
}

.about-cta-content p {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.about-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.about-cta-actions .secondary-action {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-cta-actions .secondary-action:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* CONTACT PAGE */
.contact-channels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.contact-side-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-channel-card {
  padding: 26px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
}

.contact-channel-card.featured-channel {
  border-color: #a7f3d0;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.channel-icon-pill {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.channel-icon-pill.whatsapp-bg {
  background: #25d366;
  color: #ffffff;
}

.channel-icon-pill.email-bg {
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue-apple);
}

.channel-icon-pill.schedule-bg {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.channel-icon-pill svg {
  width: 22px;
  height: 22px;
}

.channel-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #059669;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.channel-body h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.channel-desc {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  font-size: 0.86rem;
  line-height: 1.4;
}

.channel-highlight-value {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.whatsapp-direct-btn {
  width: 100%;
  min-height: 44px;
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  font-size: 0.94rem;
  font-weight: 500;
}

.whatsapp-direct-btn:hover {
  background: #1ebd5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.quick-prompts-group {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-prompts-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-prompts-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-prompts-buttons a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  color: var(--ink-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.quick-prompts-buttons a:hover {
  border-color: #25d366;
  background: #f0fdf4;
  color: #065f46;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.schedule-list li strong {
  color: var(--ink-primary);
}

.schedule-note {
  display: block;
  color: var(--ink-tertiary);
  font-size: 0.72rem;
}

/* FAQ SECTION */
.contact-faq-section {
  margin-top: 20px;
}

.faq-accordion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.faq-item {
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.35;
}

.faq-item h4 svg {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-item p {
  margin: 0;
  padding-left: 26px;
  color: var(--ink-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (2 PRODUCTS PER ROW ON MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .cart-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-summary-sidebar {
    position: static;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE VIEWPORT: EXACT 2 PRODUCTS PER ROW */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .header-container {
    padding: 0 10px;
    gap: 8px;
    min-height: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .brand {
    gap: 0;
    flex-shrink: 0;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .brand-tagline,
  .brand-name {
    display: none !important;
  }

  .header-search {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0 4px;
  }

  .site-search-box {
    min-height: 34px;
    width: 100%;
    padding: 0 10px;
    background: #f1f5f9;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
  }

  .site-search-box input {
    font-size: 0.82rem;
    min-height: 32px;
    width: 100%;
    min-width: 0;
  }

  .site-search-box .search-kbd {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header-actions .theme-toggle-btn {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    color: #1e293b;
    cursor: pointer;
  }

  .menu-list-icon {
    width: 21px;
    height: 21px;
    stroke: currentColor;
  }

  .profile-btn-label,
  .profile-chevron-icon {
    display: none !important;
  }

  .profile-button {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
  }

  .profile-button.is-logged-in {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .profile-avatar-badge {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
  }

  .header-user-icon {
    width: 18px;
    height: 18px;
  }

  .cart-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .header-cart-icon {
    width: 21px;
    height: 21px;
  }

  .cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-card);
    z-index: 999;
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 8px 12px;
  }

  .mobile-nav-divider {
    display: block !important;
    width: 100%;
    height: 1px;
    background: var(--border-hairline);
    margin: 8px 0;
  }

  .mobile-nav-theme-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-hairline);
    background: #f8fafc;
    color: var(--ink-primary);
    cursor: pointer;
    box-sizing: border-box;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .mobile-nav-theme-btn:hover {
    background: #f1f5f9;
  }

  .mobile-nav-theme-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav-theme-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .mobile-nav-theme-text-dark {
    display: none;
  }

  .mobile-nav-theme-text-light {
    display: inline;
  }

  .mobile-theme-switch-pill {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.25s ease;
    display: inline-block;
    flex-shrink: 0;
  }

  .mobile-theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header-actions .login-button {
    display: none;
  }

  /* Toolbar side by side alignment on phone: Results count on left, Filtrar + Sort Icon on right at the same height */
  .marketplace-top-toolbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .marketplace-toolbar-left {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .marketplace-toolbar-left .results-count-text {
    font-size: clamp(0.74rem, 3.2vw, 0.82rem) !important;
    color: var(--ink-secondary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .marketplace-toolbar-left .results-count-text strong {
    color: var(--ink-primary) !important;
    font-weight: 700 !important;
  }

  .marketplace-actions-group {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .mobile-filter-open-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: var(--surface-card) !important;
    border: 1px solid var(--border-hairline) !important;
    color: var(--ink-primary) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  .mobile-filter-open-btn:active {
    transform: scale(0.96) !important;
    background: var(--surface-hover) !important;
    border-color: #94a3b8 !important;
  }

  .mobile-filter-open-btn .filter-btn-icon {
    width: 14px !important;
    height: 14px !important;
    color: #f5a623 !important;
    flex-shrink: 0 !important;
  }

  .mobile-filter-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    background: #f5a623 !important;
    color: #0c0e15 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(245, 166, 35, 0.25) !important;
  }

  .custom-sort-dropdown-container {
    display: block !important;
    flex-shrink: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
  }

  .custom-sort-dropdown {
    width: auto !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .sort-prefix-label {
    display: none !important;
  }

  .sort-dropdown-trigger-btn {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: var(--surface-card) !important;
    border: 1px solid var(--border-hairline) !important;
    color: var(--ink-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
  }

  .sort-dropdown-trigger-btn:active {
    transform: scale(0.96) !important;
    background: var(--surface-hover) !important;
    border-color: #94a3b8 !important;
  }

  .mobile-sort-icon {
    display: inline-flex !important;
    width: 17px !important;
    height: 17px !important;
    color: var(--ink-primary) !important;
    flex-shrink: 0 !important;
  }

  .current-sort-text,
  .sort-dropdown-chevron {
    display: none !important;
  }

  .sort-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    width: 195px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
    z-index: 150 !important;
  }

  .whatsapp-widget {
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 99999 !important;
  }

  .whatsapp-float {
    width: 58px !important;
    height: 58px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .whatsapp-float svg {
    width: 30px !important;
    height: 30px !important;
  }

  /* 2 PRODUCTOS POR FILA EN TELÉFONO */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: 10px;
    content-visibility: auto;
    contain-intrinsic-size: 0 280px;
    transform: translateZ(0);
  }

  .product-card-media {
    aspect-ratio: 16 / 11;
  }

  .product-info {
    padding: 8px 8px 10px;
  }

  .product-title {
    font-size: 0.92rem;
    line-height: 1.2;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .product-meta {
    padding-top: 5px;
  }

  .price-value {
    font-size: 1.05rem;
  }

  .view-detail-btn {
    padding: 3px 8px;
    font-size: 0.76rem;
  }

  .form-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Universal container containment on mobile */
  .marketplace-layout-container,
  .trending-brands-section,
  .denuvo-trust-banner,
  .home-banner-wrapper,
  .reseller-portal-banner-wrapper,
  .site-footer,
  .footer-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-tagline,
  .brand-name,
  .cart-label {
    display: none !important;
  }

  .header-actions {
    gap: 6px;
  }

  .menu-toggle,
  .profile-button,
  .cart-icon-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .profile-avatar-badge {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.9rem !important;
  }

  .whatsapp-widget {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 99999 !important;
  }

  .whatsapp-card {
    width: calc(100vw - 24px);
    max-width: 360px;
  }

  .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .whatsapp-float svg {
    width: 26px !important;
    height: 26px !important;
  }
}



/* ==========================================================================
   ADMIN SEARCH, FILTER PILLS & ACCORDION CARDS (COLLAPSIBLE MANAGEMENT)
   ========================================================================== */

.panel-header-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.toolbar-title-group h2 {
  margin: 0 0 3px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.toolbar-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

.toolbar-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-add-reseller {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  background: var(--blue-apple);
  color: #ffffff;
  white-space: nowrap;
}

.admin-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  max-width: 100%;
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-tertiary);
  pointer-events: none;
}

.admin-search-wrapper input {
  width: 100%;
  min-height: 38px;
  padding: 6px 36px 6px 36px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--ink-primary);
  font-size: 0.84rem;
  transition: all var(--duration-fast) ease;
}

.admin-search-wrapper input:focus {
  outline: none;
  border-color: var(--blue-apple);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.clear-admin-search-btn {
  position: absolute;
  right: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--ink-tertiary);
  cursor: pointer;
}

.clear-admin-search-btn:hover {
  color: var(--ink-primary);
}

.clear-admin-search-btn svg {
  width: 15px;
  height: 15px;
}

/* FILTER PILLS */
.admin-filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
  scrollbar-width: thin;
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}

.filter-pill-btn:hover {
  background: #f1f5f9;
  color: var(--ink-primary);
}

.filter-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.filter-pill-btn svg {
  width: 14px;
  height: 14px;
}

/* ACCORDION ORDER CARDS */
.admin-orders-accordion-list,
.admin-resellers-accordion-list,
.admin-users-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-accordion-card,
.user-accordion-card {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.order-accordion-card:hover,
.user-accordion-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.order-accordion-card.order-pending-border {
  border-left: 4px solid #f59e0b;
}

.order-accordion-card.is-expanded,
.user-accordion-card.is-expanded {
  border-color: #94a3b8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ACCORDION HEADER */
.order-accordion-header,
.user-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background var(--duration-fast) ease;
}

.order-accordion-card.is-expanded .order-accordion-header,
.user-accordion-card.is-expanded .user-accordion-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.order-accordion-header:hover,
.user-accordion-header:hover {
  background: #f8fafc;
}

.order-acc-left,
.user-acc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.order-acc-chevron,
.user-acc-chevron {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink-secondary);
  flex-shrink: 0;
}

.order-acc-chevron svg,
.user-acc-chevron svg {
  width: 14px;
  height: 14px;
}

.order-acc-id-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.order-acc-id {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}

.order-acc-customer {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-marquee-wrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.mobile-marquee-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.customer-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-email {
  font-size: 0.76rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-acc-meta,
.user-acc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.order-acc-date {
  font-size: 0.78rem;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.receipt-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.receipt-indicator.has-receipt {
  background: #dcfce7;
  color: #166534;
}

.receipt-indicator.has-receipt svg {
  width: 13px;
  height: 13px;
}

.receipt-indicator.no-receipt {
  background: #f1f5f9;
  color: var(--ink-tertiary);
}

.order-acc-total {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--blue-apple);
  white-space: nowrap;
}

.order-acc-toggle-btn,
.user-acc-toggle-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.order-acc-toggle-btn:hover,
.user-acc-toggle-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.order-acc-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.order-acc-archive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink-secondary, #64748b);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: all var(--duration-fast) ease;
}

.order-acc-archive-btn:hover {
  background: #f1f5f9;
  color: var(--ink-primary, #0f172a);
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.order-acc-archive-btn.is-archived {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.order-acc-archive-btn.is-archived:hover {
  background: #fde68a;
  color: #92400e;
}

.order-acc-archive-btn svg {
  width: 15px;
  height: 15px;
}

/* ACCORDION BODY */
.order-accordion-body,
.user-accordion-body {
  padding: 20px;
  background: #ffffff;
  animation: slideDown 0.2s ease-out;
}

.order-accordion-body.is-hidden,
.user-accordion-body.is-hidden {
  display: none !important;
}

.order-accordion-body.is-visible,
.user-accordion-body.is-visible {
  display: block !important;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* USER ACCORDION SPECIFICS */
.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
}

.user-avatar-circle.avatar-admin {
  background: #fef3c7;
  color: #d97706;
}

.user-avatar-circle.avatar-reseller {
  background: #f0fdf4;
  color: #16a34a;
}

.user-acc-info {
  display: flex;
  flex-direction: column;
}

.user-acc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-acc-title-row strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.user-acc-email {
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.reseller-quick-management-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.reseller-details-col p {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.reseller-details-col p strong {
  color: var(--ink-primary);
}

.reseller-actions-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reseller-actions-buttons-grid .action-btn-sm {
  width: 100%;
  justify-content: center;
  min-height: 36px;
  font-size: 0.84rem;
  font-weight: 500;
}

.user-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.user-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-info-item span {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.user-info-item strong {
  font-size: 0.92rem;
  color: var(--ink-primary);
}

.points-badge {
  display: inline-block;
  font-weight: 600 !important;
  color: #d97706 !important;
}

.nav-badge-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 6px;
}

.admin-tab-btn.active .nav-badge-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.stat-highlight-pending {
  color: #d97706 !important;
}

/* RESPONSIVE FIXES FOR ACCORDION HEADERS (Moved to dedicated Admin Mobile block below) */


/* ==========================================================================
   RESELLER B2B PORTAL BANNER
   ========================================================================== */
.reseller-portal-banner-wrapper {
  max-width: 1480px;
  margin: 0 auto 16px;
  padding: 0 clamp(16px, 2.5vw, 36px);
}

.reseller-portal-banner {
  margin-bottom: 0;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reseller-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.reseller-banner-text {
  flex: 1 1 360px;
}

.reseller-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.reseller-banner-text h2 {
  margin: 0 0 4px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: #ffffff;
}

.reseller-banner-text p {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.4;
}

.reseller-banner-perks {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reseller-perk-item {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reseller-perk-item strong {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reseller-perk-item span {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f8fafc;
}


/* ==========================================================================
   PROFESSIONAL ANIMATION ENGINE & DYNAMIC MICRO-INTERACTIONS
   ========================================================================== */

/* 1. Page / View Transition */
#app > * {
  animation: viewFadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Hero Banner Illustration */
.banner-hero-img {
  animation: none;
}

/* 3. Staggered Entrance for Product Cards */
.products-grid > .product-card {
  animation: cardReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.products-grid > .product-card:nth-child(1) { animation-delay: 0.02s; }
.products-grid > .product-card:nth-child(2) { animation-delay: 0.05s; }
.products-grid > .product-card:nth-child(3) { animation-delay: 0.08s; }
.products-grid > .product-card:nth-child(4) { animation-delay: 0.11s; }
.products-grid > .product-card:nth-child(5) { animation-delay: 0.14s; }
.products-grid > .product-card:nth-child(6) { animation-delay: 0.17s; }
.products-grid > .product-card:nth-child(7) { animation-delay: 0.20s; }
.products-grid > .product-card:nth-child(8) { animation-delay: 0.23s; }
.products-grid > .product-card:nth-child(n+9) { animation-delay: 0.26s; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 4. Product Card Interactions (Hover strictly scoped to desktop pointers) */
.product-card {
  border-color: var(--border-hairline);
  transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.35);
  }

  .product-card:hover .product-card-media img {
    transform: scale(1.02);
  }

  .product-card .view-detail-btn {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .product-card:hover .view-detail-btn {
    background: var(--blue-apple);
    color: #ffffff;
    border-color: var(--blue-apple);
  }

  .product-card:hover .view-detail-btn svg {
    transform: translateX(2px);
  }
}

/* 5. Trust Bar Items Micro-Hover */
.trust-col-item {
  transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .trust-col-item:hover {
    transform: translateY(-2px);
  }

  .trust-col-item:hover svg {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* 6. Category Pills Interactive Feedback */
.category-pill-btn {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .category-pill-btn:hover {
    border-color: #00853e;
    color: #00853e;
  }
}

.category-pill-btn:active {
  transform: scale(0.96);
}

.category-pill-btn.active {
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

/* 7. WhatsApp Floating Button (Clean Static Shadow, No CPU Loop) */
.whatsapp-float {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  }
}

.whatsapp-float:active {
  transform: scale(0.94);
}

.whatsapp-card {
  transform-origin: bottom right;
  transition: transform 0.25s ease,
              opacity 0.2s ease,
              visibility 0.2s ease;
}

.agent-status-dot {
  opacity: 1;
}

/* 8. Cart Button & Badge Animations */
.cart-icon-button {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.cart-icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-icon-button:active {
  transform: scale(0.94);
}

.cart-badge {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 9. Buttons Elevation and Tap Feel */
.primary-action {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35);
}

.primary-action:active {
  transform: scale(0.97);
}

.secondary-action {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease;
}

.secondary-action:hover {
  transform: translateY(-2px);
  background: var(--surface-subtle);
  border-color: rgba(0, 0, 0, 0.2);
}

.secondary-action:active {
  transform: scale(0.97);
}

/* 10. Modals & Zoom Pop-In Animations */
.modal-backdrop,
.must-change-backdrop {
  animation: modalFadeIn 0.25s ease forwards;
}

.modal-card,
.must-change-card,
.image-zoom-box {
  animation: modalScaleUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 11. Admin Accordion Dynamic Smooth Transition */
.order-accordion-card,
.user-accordion-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.order-accordion-card:hover,
.user-accordion-card:hover {
  border-color: rgba(0, 113, 227, 0.3);
}

.order-acc-chevron,
.user-acc-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
}

.order-accordion-body.is-visible,
.user-accordion-body.is-visible {
  animation: accordionOpen 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes accordionOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 12. Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Admin Settings Page ── */
.admin-settings-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

.settings-page-header {
  margin-bottom: 2rem;
}
.settings-page-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.settings-page-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.settings-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-section-card {
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf4;
}

.settings-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8f4fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-section-icon svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
  stroke: #2563eb;
}

.settings-bank-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.settings-section-header > div h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.1rem;
}
.settings-section-header > div span {
  font-size: 0.78rem;
  color: #94a3b8;
}

.settings-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.settings-field--full {
  grid-column: 1 / -1;
}

.settings-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.settings-field > span small {
  font-size: 0.72rem;
  font-weight: 400;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #dde3ed;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
  box-sizing: border-box;
}
.settings-field input:focus,
.settings-field select:focus,
.settings-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.settings-field textarea {
  resize: vertical;
  min-height: 80px;
}

.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 0 0;
}

.settings-save-msg {
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: opacity 0.25s;
}
.settings-save-msg.hidden { display: none; }
.settings-save-msg.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.settings-save-msg.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.settings-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.settings-save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.settings-save-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.settings-save-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .settings-fields-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Admin Brand & Header polish ── */
.admin-brand-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}
.admin-brand-sub {
  display: block;
  font-size: 0.73rem;
  color: #94a3b8;
  font-weight: 400;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.75rem 0.875rem;
  border-top: 1px solid #f1f5f9;
}
.admin-mini-stats {
  display: flex;
  gap: 0.5rem;
}
.admin-mini-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
}
.mini-stat-num {
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155;
  line-height: 1;
}
.mini-stat-num.pending { color: #d97706; }
.mini-stat-label {
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.admin-page-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.admin-page-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.admin-page-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Reduce heavy bold in admin panels */
.dashboard-panel h2,
.panel-header h2 {
  font-weight: 600 !important;
  font-size: 1rem !important;
}
.panel-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.detail-label {
  font-weight: 500;
  color: #64748b;
  font-size: 0.84rem;
}

.delivered-badge-title {
  font-weight: 600;
  color: #15803d;
}

.status-pending-text {
  font-weight: 600;
  color: #d97706;
}

.points-cost-num {
  font-weight: 600;
}

/* ==========================================================================
   ADMIN CREDENTIALS BOX & ACCOUNT ACTIONS
   ========================================================================== */

.reseller-credentials-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cred-header-mini {
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 0.86rem;
}

.cred-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cred-row-item:last-child {
  border-bottom: none;
}

.cred-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  min-width: 115px;
}

.cred-value-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cred-value-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.password-masked {
  letter-spacing: 0.15em;
}

.mini-copy-btn, .mini-pass-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-copy-btn:hover, .mini-pass-toggle-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.cred-whatsapp-share-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.btn-whatsapp-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-whatsapp-share:hover {
  background: #1eb956;
  color: #ffffff;
}

.btn-delete-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-delete-account:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
}

.btn-warning-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 500;
}

.btn-warning-outline:hover {
  background: #b45309 !important;
  color: #ffffff !important;
}

.user-actions-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   ADMIN PANEL RESPONSIVE & MOBILE (MAX-WIDTH: 768PX)
   ========================================================================== */

@media (max-width: 768px) {
  /* Main Container Viewport Constraints (Prevents Horizontal Overflow) */
  .admin-shell-wrapper {
    padding: 0 0 50px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  .admin-shell {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  /* Sticky Top Navigation Bar: Spans 100% Width */
  .admin-sidebar {
    position: sticky !important;
    top: 50px !important;
    z-index: 90 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .admin-sidebar {
    background: #121522 !important;
    border-bottom-color: #222638 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  }

  .admin-brand-header,
  .admin-sidebar-footer {
    display: none !important;
  }

  .admin-nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    scrollbar-width: none !important;
  }

  .admin-nav-list::-webkit-scrollbar {
    display: none !important;
  }

  .admin-tab-btn {
    flex-shrink: 0 !important;
    width: auto !important;
    padding: 7px 13px !important;
    border-radius: 20px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border: 1px solid transparent !important;
  }

  [data-theme="dark"] .admin-tab-btn {
    background: #1a1e30 !important;
    color: #94a3b8 !important;
    border-color: #262c42 !important;
  }

  .admin-tab-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
  }

  [data-theme="dark"] .admin-tab-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
  }

  .admin-tab-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }

  /* Workspace & Header */
  .admin-workspace {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
  }

  [data-theme="dark"] .admin-workspace {
    background: #0d101d !important;
  }

  .admin-workspace-header {
    padding: 10px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  [data-theme="dark"] .admin-workspace-header {
    background: #141724 !important;
    border-bottom-color: #222638 !important;
  }

  .admin-page-title {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    letter-spacing: -0.01em !important;
  }

  .admin-page-eyebrow {
    font-size: 0.65rem !important;
  }

  .admin-workspace > #adminTabContent {
    padding: 10px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    gap: 10px !important;
  }

  .dashboard-panel {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Toolbar and Search */
  .panel-header-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .toolbar-title-group h2 {
    font-size: 0.95rem !important;
    word-break: break-word !important;
  }

  .toolbar-subtitle {
    font-size: 0.76rem !important;
  }

  .toolbar-actions-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .admin-search-wrapper {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-search-wrapper input {
    width: 100% !important;
    height: 42px !important;
    font-size: 16px !important; /* Prevents auto-zoom on mobile */
    padding-left: 36px !important;
    padding-right: 32px !important;
    box-sizing: border-box !important;
  }

  .btn-add-reseller,
  .btn-add-product,
  .btn-create-order {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    font-size: 0.86rem !important;
    box-sizing: border-box !important;
  }

  /* Filter pills horizontal scroll */
  .admin-filter-pills-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    gap: 6px !important;
  }

  .admin-filter-pills-bar::-webkit-scrollbar {
    display: none !important;
  }

  .filter-pill-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.76rem !important;
    padding: 6px 11px !important;
    min-height: 32px !important;
  }

  /* Admin Pagination Bar on Mobile */
  .admin-pagination-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
  }

  .pagination-info {
    font-size: 0.78rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .pagination-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pagination-btn {
    min-width: 28px !important;
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.75rem !important;
  }

  /* Mobile Marquee (Texto corredizo): ONLY when overflowing (.is-sliding) */
  .mobile-marquee-wrap {
    overflow: hidden !important;
    position: relative !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    display: block !important;
  }

  .mobile-marquee-text {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  .mobile-marquee-text.is-sliding {
    display: inline-block !important;
    max-width: none !important;
    overflow: visible !important;
    will-change: transform !important;
    animation: marqueeSlideBackAndForth 6.5s ease-in-out infinite alternate !important;
  }

  .mobile-marquee-wrap:hover .mobile-marquee-text.is-sliding,
  .mobile-marquee-wrap:active .mobile-marquee-text.is-sliding {
    animation-play-state: paused !important;
  }

  @keyframes marqueeSlideBackAndForth {
    0%, 22% {
      transform: translateX(0);
    }
    78%, 100% {
      transform: translateX(var(--travel-distance, -30%));
    }
  }

  /* Receipt Indicator Compact Square Icon Badge on Mobile */
  .receipt-indicator {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }

  .receipt-indicator .receipt-indicator-text {
    display: none !important;
  }

  .receipt-indicator svg {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
  }

  .receipt-indicator.has-receipt {
    background: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    color: #16a34a !important;
  }

  .receipt-indicator.no-receipt {
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    color: #d97706 !important;
  }

  [data-theme="dark"] .receipt-indicator.has-receipt {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
  }

  [data-theme="dark"] .receipt-indicator.no-receipt {
    background: rgba(245, 166, 35, 0.16) !important;
    border-color: rgba(245, 166, 35, 0.35) !important;
    color: #fbbf24 !important;
  }

  /* Order Accordion Cards on Mobile */
  .order-accordion-card,
  .user-accordion-card {
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .order-accordion-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .order-acc-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .order-acc-id-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .order-acc-id {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: var(--ink-primary) !important;
  }

  .order-acc-customer {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .customer-name {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: var(--ink-primary) !important;
  }

  .customer-email {
    font-size: 0.76rem !important;
    color: var(--ink-secondary) !important;
    line-height: 1.25 !important;
  }

  .order-acc-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding-top: 8px !important;
    border-top: 1px dashed #e2e8f0 !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .order-acc-meta {
    border-top-color: #222638 !important;
  }

  .order-acc-date {
    font-size: 0.72rem !important;
  }

  .order-acc-total {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-left: auto !important;
    color: var(--blue-apple) !important;
  }

  .order-acc-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  .order-acc-actions .order-acc-toggle-btn {
    flex: 1 1 auto !important;
    width: auto !important;
    min-height: 40px !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
  }

  .order-acc-actions .order-acc-archive-btn,
  .order-acc-actions .order-acc-chevron {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
  }

  .user-acc-toggle-btn {
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
  }

  .order-accordion-body,
  .user-accordion-body {
    padding: 12px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Admin Order Details: Single-Column Stack */
  .admin-order-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
  }

  .order-col-user,
  .order-col-receipt,
  .order-col-dispatch {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .order-col-user,
  [data-theme="dark"] .order-col-receipt,
  [data-theme="dark"] .order-col-dispatch {
    background: #181c2e !important;
    border-color: #262c42 !important;
  }

  .order-items-summary {
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid #e2e8f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .order-items-summary {
    border-top-color: #262c42 !important;
  }

  .order-items-list li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    font-size: 0.8rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .order-items-list li {
    border-bottom-color: #262c42 !important;
  }

  .order-items-list li:last-child {
    border-bottom: none !important;
  }

  .receipt-preview-box img {
    width: 100% !important;
    max-height: 240px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    background: #0f172a !important;
    display: block !important;
  }

  .btn-zoom-receipt {
    width: 100% !important;
    min-height: 38px !important;
    margin-top: 8px !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
  }

  .admin-dispatch-form textarea {
    font-size: 16px !important; /* Prevents auto-zoom on mobile safari/chrome */
    width: 100% !important;
    min-height: 85px !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
  }

  .upload-dropzone-btn {
    width: 100% !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    box-sizing: border-box !important;
  }

  .dispatch-actions-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
  }

  .dispatch-submit-btn,
  .btn-reject-order,
  .whatsapp-action-btn {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
  }

  /* User & Reseller Cards on Mobile */
  .user-accordion-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .user-acc-left {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .user-avatar-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
  }

  .user-acc-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .user-acc-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .user-acc-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    padding-top: 8px !important;
    border-top: 1px dashed #e2e8f0 !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .user-acc-meta {
    border-top-color: #222638 !important;
  }

  .user-acc-toggle-btn {
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
  }

  /* Reseller Drawer */
  .reseller-quick-management-box {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 10px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .reseller-details-col,
  .reseller-actions-col {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .reseller-actions-buttons-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .reseller-actions-buttons-grid .action-btn-sm {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .user-details-grid {
    grid-template-columns: 1fr !important;
    padding: 12px 10px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cred-row-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 6px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cred-value-box {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cred-value-box code {
    word-break: break-all !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .user-actions-row {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-delete-account {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Admin Product Rows on Mobile */
  .admin-product-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-product-row > img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
  }

  .admin-product-row-info {
    flex: 1 !important;
    min-width: 0 !important;
    width: calc(100% - 62px) !important;
  }

  .admin-row-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .admin-row-top h3 {
    font-size: 0.88rem !important;
  }

  .admin-product-meta-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 6px 0 !important;
    width: 100% !important;
  }

  .admin-product-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-product-actions .action-btn-sm {
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Admin Grid and Forms on Mobile */
  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-columns {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General mobile input protection: Prevent iOS zoom */
  .admin-workspace input,
  .admin-workspace select,
  .admin-workspace textarea,
  .product-form .form-group input,
  .product-form .form-group select,
  .product-form .form-group textarea {
    font-size: 16px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
  }

  /* References view on mobile */
  .admin-references-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-ref-thumb {
    aspect-ratio: 1 / 1 !important;
  }

  /* Audit Logs table horizontal scrolling on mobile */
  .audit-logs-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .audit-logs-table {
    min-width: 580px !important;
    font-size: 0.76rem !important;
  }

  /* Category Rows */
  .category-row-item {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .category-item-actions {
    display: flex !important;
    gap: 6px !important;
  }

  .category-item-actions .action-btn-sm {
    min-height: 34px !important;
    padding: 0 12px !important;
  }

  /* Settings Page on Mobile */
  .settings-fields-grid {
    grid-template-columns: 1fr !important;
    padding: 12px 10px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .settings-section-card {
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .settings-section-header {
    padding: 10px 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .settings-save-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   ADMIN PAGINATION BAR (PÁGINAS 1 - 2 - 3...)
   ========================================================================== */

.admin-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.pagination-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-dots {
  padding: 0 4px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.admin-pagination-bar.top-pagination {
  margin-top: 0;
  margin-bottom: 1rem;
  border-top: none;
  border-bottom: 1px solid #edf2f7;
  padding-top: 0;
  padding-bottom: 0.75rem;
}

/* B2B Wholesale Product Configuration Box in Admin */
.form-b2b-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 1.1rem;
  margin: 1.25rem 0;
}

.b2b-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.b2b-box-title svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

.b2b-tiers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .b2b-tiers-row {
    grid-template-columns: 1fr;
  }
}

/* Customer / Reseller Facing Volume Pricing Card */
.reseller-volume-pricing-card {
  background: #f8fafc;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.1rem 0;
}

.vol-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: #1e293b;
}

.vol-active-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vol-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .vol-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.vol-tier-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vol-tier-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

.vol-tier-item .tier-range {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.vol-tier-item.active .tier-range {
  color: #1d4ed8;
}

.vol-tier-item .tier-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.vol-tier-item.active .tier-price {
  color: #1d4ed8;
}

.vol-tier-item .tier-unit {
  font-size: 0.7rem;
  color: #94a3b8;
}

.reseller-disabled-notice {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #9a3412;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   DEDICATED WHOLESALER B2B MOBILE DASHBOARD PORTAL
   ========================================================================== */
.reseller-portal-wrapper {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 2.8vw, 40px) 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reseller-hero-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.reseller-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reseller-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.reseller-hero-info {
  flex: 1;
  min-width: 0;
}

.reseller-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.reseller-name-row h1 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.reseller-tier-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4px;
  flex-wrap: wrap;
}

.reseller-email-tag {
  font-size: 0.8rem;
  color: #64748b;
}

.reseller-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .reseller-hero-actions {
    grid-template-columns: 1fr;
  }
}

.reseller-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 42px;
}

.btn-whatsapp-support {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-support:hover {
  background: #20ba59;
  color: #ffffff;
}

.btn-view-cart {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-view-cart:hover {
  background: #e2e8f0;
}

.reseller-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

@media (max-width: 680px) {
  .reseller-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reseller-metrics-grid .metric-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.reseller-metrics-grid .metric-card.highlight-metric {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.metric-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.metric-value.text-amber {
  color: #d97706;
}

.metric-value.text-emerald {
  color: #059669;
}

.metric-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

.reseller-tabs-bar {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.reseller-tab-btn {
  flex: 1;
  min-width: 105px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 42px;
}

.reseller-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.reseller-tab-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reseller-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}

.reseller-section-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.b2b-orders-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.b2b-order-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.b2b-order-card.card-delivered {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
}

.b2b-order-card.card-pending {
  border-color: #fde68a;
}

.b2b-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.order-number-badge {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.order-date-text {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.order-header-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.order-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.b2b-order-items-list {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #f1f5f9;
}

.b2b-order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  gap: 0.5rem;
}

.item-name-col {
  flex: 1;
  min-width: 0;
}

.item-plan-badge {
  font-size: 0.72rem;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.item-qty-col {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.item-subtotal-col {
  font-weight: 700;
  color: #0f172a;
}

.b2b-receipt-row {
  display: flex;
}

.b2b-view-receipt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.b2b-view-receipt-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.b2b-delivery-box {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.delivery-box-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #065f46;
  font-size: 0.88rem;
}

.b2b-copy-creds-btn {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
  min-height: 38px;
}

.b2b-copy-creds-btn:active {
  transform: scale(0.97);
}

.b2b-copy-creds-btn.btn-copied-success {
  background: #047857 !important;
}

.creds-pre-container {
  background: #0f172a;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}

.b2b-delivery-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: #34d399;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
  line-height: 1.5;
}

.b2b-delivery-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #065f46;
}

.b2b-gallery-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.b2b-gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1.5px solid #a7f3d0;
  padding: 2px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.b2b-pending-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 8px;
  color: #92400e;
  font-size: 0.82rem;
  line-height: 1.4;
}

.b2b-pending-notice p, .b2b-rejected-notice p {
  margin: 0;
}

.b2b-rejected-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 8px;
  color: #991b1b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.b2b-catalog-search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.b2b-catalog-search-bar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.b2b-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.b2b-catalog-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.b2b-catalog-card.b2b-card-out-stock {
  border-color: #fecaca;
  background: #fffafa;
}

.b2b-card-top-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.b2b-card-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.b2b-card-title-col {
  flex: 1;
  min-width: 0;
}

.b2b-cat-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.b2b-prod-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b2b-stock-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.b2b-stock-tag.tag-in-stock {
  font-size: 0.74rem;
  font-weight: 600;
  color: #16a34a;
}

.b2b-stock-tag.tag-out-stock {
  font-size: 0.74rem;
  font-weight: 600;
  color: #dc2626;
}

.b2b-moq-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 6px;
  border-radius: 4px;
}

.b2b-card-tiers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px;
  border: 1px solid #f1f5f9;
}

.b2b-tier-cell {
  text-align: center;
  padding: 4px 2px;
  border-radius: 6px;
}

.b2b-tier-cell.highlight-cell {
  background: #f0fdf4;
}

.b2b-tier-cell.best-cell {
  background: #eff6ff;
}

.tier-cell-range {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.tier-cell-price {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.b2b-card-actions .b2b-buy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  min-height: 40px;
  transition: all 0.2s ease;
}

.b2b-card-actions .b2b-buy-btn:hover {
  background: #1d4ed8;
}

.b2b-card-actions .b2b-buy-btn.disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.reseller-account-card, .reseller-password-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.reseller-password-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.account-info-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.account-info-group label {
  color: #64748b;
  font-weight: 500;
}

.account-info-group strong {
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   User & Reseller Modern Wide Order Cards
   ========================================================================== */
.user-orders-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.user-order-item-card {
  background: #15171c;
  color: #f8fafc;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  width: 100%;
}

.user-order-item-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.user-order-item-card.is-delivered {
  border-left: 4px solid #10b981;
}

.user-order-item-card.is-pending {
  border-left: 4px solid #f59e0b;
}

.user-order-item-card.is-rejected {
  border-left: 4px solid #ef4444;
}

/* Card Header */
.user-order-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-order-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.user-order-id-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-order-id-label {
  font-size: 0.74rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.user-order-id-code {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.user-order-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.user-order-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-size: 0.74rem;
  font-weight: 700;
}

.user-order-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.user-order-total-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.uoth-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.uoth-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.user-order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.uosp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.user-order-status-pill.pill-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.user-order-status-pill.pill-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.user-order-status-pill.pill-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Card Body Content */
.user-order-body-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-order-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.user-order-product-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-order-product-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.user-order-prod-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.user-order-product-main {
  flex: 1;
  min-width: 0;
}

.user-order-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-order-product-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.user-order-plan-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
}

.user-order-meta-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.user-order-sku-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #64748b;
}

.user-order-cat-tag {
  color: #94a3b8;
}

.user-order-product-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.user-order-qty-block,
.user-order-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.uop-num-lbl {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.user-order-qty-pill {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 600;
}

.user-order-price-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
}

/* Inline Credentials Preview Card */
.user-order-creds-preview {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-order-creds-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.uoc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-size: 0.84rem;
}

.uoc-title strong {
  font-weight: 700;
}

.user-order-creds-code-box {
  background: #0d0e12;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow-y: auto;
}

/* Card Footer Bar */
.user-order-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-order-footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.user-order-items-count-text {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
}

.user-order-guarantee-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 600;
}

.user-order-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-fast-copy-creds,
.btn-footer-copy-creds {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fast-copy-creds:hover,
.btn-footer-copy-creds:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-copied-success {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.btn-open-order-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-open-order-details:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* Order Responsive on Mobile (Phones) */
@media (max-width: 768px) {
  .user-order-item-card {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    gap: 1rem;
  }

  .user-order-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .user-order-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .user-order-product-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .user-order-product-left {
    width: 100%;
  }

  .user-order-product-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
  }

  .user-order-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .user-order-footer-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-open-order-details,
  .btn-fast-copy-creds,
  .btn-footer-copy-creds {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
}

/* ==========================================================================
   Order Detail Modal (Matching Image 2 Reference)
   ========================================================================== */
.order-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.order-detail-modal-card {
  background: #121316;
  color: #f1f5f9;
  border: 1px solid #27272a;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.order-detail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #27272a;
  background: #18191c;
}

.btn-modal-back {
  background: transparent;
  color: #f4f4f5;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.btn-modal-close-icon {
  background: #27272a;
  color: #a1a1aa;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.btn-modal-close-icon:hover {
  background: #3f3f46;
  color: #ffffff;
}

.order-detail-modal-content {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Activation Banner in Modal */
.activation-link-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activation-link-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activation-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #f8fafc;
}

.activation-icon {
  font-size: 1.1rem;
}

.badge-visto {
  background: #065f46;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.activation-creds-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activation-pre {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn-copy-activation {
  align-self: flex-start;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-activation:hover {
  background: #1d4ed8;
}

.activation-pending-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 1rem;
}

.pending-icon-title {
  display: flex;
  gap: 10px;
}

.pending-clock-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.pending-icon-title strong {
  display: block;
  font-size: 0.9rem;
  color: #fbbf24;
  margin-bottom: 3px;
}

.pending-icon-title p {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Modal Product Card */
.modal-product-item-card {
  background: #18191c;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-product-title-row h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f4f4f5;
  margin: 0;
}

.modal-product-sku-row .product-sku-tag {
  font-size: 0.78rem;
  color: #71717a;
  font-family: ui-monospace, monospace;
}

.modal-product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.item-qty-tag {
  font-size: 0.85rem;
  color: #a1a1aa;
}

.item-price-tag {
  font-size: 0.95rem;
  color: #ffffff;
}

.modal-vendor-tag {
  font-size: 0.78rem;
  color: #a1a1aa;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #27272a;
}

.modal-vendor-tag strong {
  color: #38bdf8;
}

/* Order Summary Key-Value List */
.order-summary-block {
  background: #18191c;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 1rem;
}

.order-summary-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.85rem 0;
}

.summary-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.summary-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #a1a1aa;
}

.summary-kv-row span:last-child,
.summary-kv-row strong {
  color: #f4f4f5;
}

.summary-kv-row.total-highlight-row {
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  border-top: 1px solid #27272a;
  font-size: 0.95rem;
}

.summary-kv-row.total-highlight-row strong {
  font-size: 1.1rem;
  color: #ffffff;
}

.points-reward-row {
  background: rgba(234, 179, 8, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
}

.points-badge-gold {
  color: #facc15 !important;
  font-weight: 700;
}

/* Modal Actions Bar */
.modal-actions-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-action-highlight {
  flex: 1;
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}

.btn-action-highlight:hover {
  background: #dc2626;
}

.btn-action-neutral {
  flex: 1;
  background: #27272a;
  color: #f4f4f5;
  border: 1px solid #3f3f46;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-action-neutral:hover {
  background: #3f3f46;
}

.btn-action-chat-whatsapp {
  flex: 1;
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-action-chat-whatsapp:hover {
  background: #059669;
}

/* ==========================================================================
   REFERENCES & CUSTOMER PROOFS (CLEAN MINIMALIST DESIGN)
   ========================================================================== */
.references-page-clean {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px) 56px;
}

.references-title-row {
  margin-bottom: 24px;
}

.references-title-row h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.references-title-row p {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Pure visual gallery: rounded images, no text underneath, no colored borders */
.references-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.ref-img-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.ref-img-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ref-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.ref-img-card:hover img {
  transform: scale(1.02);
}

.references-empty-clean {
  padding: 48px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Mobile Responsiveness for References */
@media (max-width: 640px) {
  .references-page-clean {
    padding: 16px 12px 36px;
  }
  .references-title-row {
    margin-bottom: 16px;
  }
  .references-title-row h1 {
    font-size: 1.35rem;
  }
  .references-title-row p {
    font-size: 0.84rem;
  }
  .references-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .ref-img-card {
    border-radius: 12px;
  }
}

/* --- Admin References Styles --- */
.ref-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.ref-upload-dropzone:hover,
.ref-upload-dropzone.drag-over {
  border-color: #64748b;
  background: #f1f5f9;
}

.ref-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.ref-dropzone-content svg {
  color: #475569;
}

.ref-dropzone-content strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.ref-dropzone-content small {
  font-size: 0.75rem;
  color: #64748b;
}

.ref-preview-container {
  position: relative;
  max-width: 220px;
  margin: 0 auto;
}

.ref-preview-container img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.ref-remove-preview-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.admin-references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.admin-ref-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-ref-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f1f5f9;
  cursor: pointer;
  overflow: hidden;
}

.admin-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-ref-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-ref-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-ref-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ref-actions {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   ELDORADO.GG DARK THEME COMPONENT STYLES
   ========================================================================== */

[data-theme="dark"] body {
  background-color: var(--bg-body);
  color: var(--ink-primary);
}

/* Header & Navigation */
[data-theme="dark"] .site-header {
  background: #141724;
  border-bottom-color: #222638;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .site-header.scrolled {
  background: #121522;
}

[data-theme="dark"] .brand-name {
  color: #f1f5f9;
}

[data-theme="dark"] .brand-tagline {
  color: #8b96af;
}

[data-theme="dark"] .site-search-box {
  background: #1b1f30;
  border-color: #262c42;
}

[data-theme="dark"] .site-search-box:focus-within {
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  background: #1e2336;
}

[data-theme="dark"] .site-search-box input {
  color: #f1f5f9;
}

[data-theme="dark"] .site-search-box input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .search-kbd {
  background: #252a3e;
  color: #94a3b8;
  border-color: #333a54;
}

[data-theme="dark"] .nav-link {
  color: #8b96af;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #f1f5f9;
  background: #1e2336;
}

[data-theme="dark"] .profile-button {
  background: #1b1f30;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .profile-button.is-logged-in {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .profile-button:hover {
  background: #232940;
  border-color: rgba(56, 189, 248, 0.4);
}

[data-theme="dark"] .profile-button.is-logged-in:hover {
  background: transparent;
}

[data-theme="dark"] .profile-menu {
  background: #151825;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .profile-menu-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .profile-avatar-info strong {
  color: #f1f5f9;
}

[data-theme="dark"] .profile-avatar-info small {
  color: #94a3b8;
}

[data-theme="dark"] .profile-menu-item {
  color: #cbd5e1;
}

[data-theme="dark"] .profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

[data-theme="dark"] .profile-menu-item .pmi-icon {
  color: #94a3b8;
}

[data-theme="dark"] .profile-menu-item:hover .pmi-icon {
  color: #ffffff;
}

[data-theme="dark"] .profile-menu-divider {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .logout-menu-btn {
  color: #f87171;
}

[data-theme="dark"] .logout-menu-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

[data-theme="dark"] .logout-menu-btn .pmi-icon {
  stroke: #f87171;
}

[data-theme="dark"] .logout-menu-btn:hover .pmi-icon {
  stroke: #ef4444;
}

[data-theme="dark"] .cart-icon-btn,
[data-theme="dark"] .cart-icon-button {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .cart-icon-btn:hover,
[data-theme="dark"] .cart-icon-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}

[data-theme="dark"] .header-cart-icon {
  color: #f1f5f9;
}

[data-theme="dark"] .cart-icon-btn:hover .header-cart-icon,
[data-theme="dark"] .cart-icon-button:hover .header-cart-icon {
  color: #38bdf8;
}

[data-theme="dark"] .cart-badge {
  border-color: #141724;
}

/* Mobile Menu Header */
[data-theme="dark"] .menu-toggle {
  color: #f1f5f9;
  border: none;
  background: transparent;
}

[data-theme="dark"] .menu-toggle .menu-list-icon,
[data-theme="dark"] .menu-list-icon {
  stroke: #f1f5f9;
}

[data-theme="dark"] .menu-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .menu-toggle:hover .menu-list-icon {
  stroke: #38bdf8;
}

[data-theme="dark"] .site-header.menu-open .menu-toggle .menu-list-icon {
  stroke: #38bdf8;
}

[data-theme="dark"] .site-header.menu-open .main-nav {
  background: #141724;
  border-bottom-color: #222638;
}

[data-theme="dark"] .mobile-nav-divider {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mobile-nav-theme-btn {
  background: #1b1f30;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .mobile-nav-theme-btn:hover {
  background: #232940;
}

[data-theme="dark"] .mobile-nav-theme-text-light {
  display: none;
}

[data-theme="dark"] .mobile-nav-theme-text-dark {
  display: inline;
  color: #f1f5f9;
}

[data-theme="dark"] .mobile-theme-switch-pill {
  background: #0284c7;
}

[data-theme="dark"] .mobile-theme-switch-thumb {
  transform: translateX(16px);
  background: #ffffff;
}

/* ==========================================================================
   TRUST STRIP IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .trust-pill-wrapper {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .trust-bar-main {
  background: #064e3b;
  color: #ffffff;
}

[data-theme="dark"] .trust-bar-sub {
  background: #063c2c !important;
  border-top: 1px solid #0d543f !important;
  color: #ffffff !important;
  font-weight: 500;
}

[data-theme="dark"] .trust-bar-sub:hover {
  background: #084c38 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .trust-sub-left span {
  color: #ffffff !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .trust-sub-left svg.trust-bell-icon {
  color: #ffffff !important;
  fill: #ffffff !important;
}

[data-theme="dark"] .trust-sub-left svg:not(.trust-bell-icon) {
  color: #fbbf24 !important;
  fill: #fbbf24 !important;
}

[data-theme="dark"] .trust-sub-right {
  color: #a7f3d0 !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .trust-sub-right svg {
  color: #a7f3d0 !important;
}

/* ==========================================================================
   TRENDING BRAND CAROUSEL PILLS IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .trending-pill-card {
  background: #151825;
  border-color: #222638;
  color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .trending-pill-card:hover {
  background: #1c2136;
  border-color: #f5a623;
  color: #f5a623;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.25);
}

[data-theme="dark"] .trending-pill-card.active {
  background: linear-gradient(135deg, #f5a623 0%, #f7931a 100%);
  color: #0b0d14;
  border-color: #f5a623;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}

/* ==========================================================================
   MARKETPLACE FILTER SIDEBAR & MOBILE DRAWER IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .marketplace-filter-sidebar {
  background: #151825;
  border-color: #222638;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .filter-sidebar-header {
  border-bottom-color: #222638;
}

[data-theme="dark"] .filter-title-text {
  color: #f1f5f9;
}

[data-theme="dark"] .filter-icon-svg {
  color: #f5a623;
}

[data-theme="dark"] .filter-active-count-badge {
  background: #f5a623;
  color: #0c0e15;
}

[data-theme="dark"] .btn-clear-all-filters {
  color: #f87171;
}

[data-theme="dark"] .btn-clear-all-filters:hover {
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .filter-accordion-item {
  border-bottom-color: #222638;
}

[data-theme="dark"] .filter-accordion-header {
  color: #f1f5f9;
}

[data-theme="dark"] .accordion-title {
  color: #f1f5f9;
}

[data-theme="dark"] .accordion-count-tag {
  background: #1e243b;
  color: #f5a623;
}

[data-theme="dark"] .accordion-chevron {
  color: #64748b;
}

[data-theme="dark"] .filter-radio-option {
  color: #94a3b8;
}

[data-theme="dark"] .filter-radio-option:hover {
  background: #1c2033;
}

[data-theme="dark"] .filter-radio-option.selected {
  background: #1e243b;
}

[data-theme="dark"] .filter-option-name {
  color: #cbd5e1;
}

[data-theme="dark"] .filter-radio-option.selected .filter-option-name {
  color: #f5a623;
  font-weight: 600;
}

[data-theme="dark"] .filter-option-count {
  color: #64748b;
}

[data-theme="dark"] .radio-indicator {
  background: #151825;
  border-color: #384260;
}

[data-theme="dark"] .filter-radio-option.selected .radio-indicator {
  border-color: #f5a623;
  background: #f5a623;
  box-shadow: inset 0 0 0 3px #151825;
}

[data-theme="dark"] .budget-input-wrapper {
  background: #181c2d;
  border-color: #262c42;
}

[data-theme="dark"] .budget-input-wrapper:focus-within {
  background: #1c2136;
  border-color: #f5a623;
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
}

[data-theme="dark"] .budget-input-wrapper input {
  color: #f1f5f9;
}

[data-theme="dark"] .budget-currency {
  color: #8b96af;
}

[data-theme="dark"] .budget-sep {
  color: #64748b;
}

[data-theme="dark"] .quick-budget-chip {
  background: #181d2f;
  color: #94a3b8;
  border: 1px solid #252c42;
}

[data-theme="dark"] .quick-budget-chip:hover {
  background: #20273f;
  color: #f1f5f9;
  border-color: #384260;
}

[data-theme="dark"] .quick-budget-chip.active {
  background: rgba(245, 166, 35, 0.15);
  border-color: #f5a623;
  color: #f5a623;
  font-weight: 600;
}

/* ==========================================================================
   MARKETPLACE TOOLBAR, COUNT & SORT DROPDOWN IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .results-count-text {
  color: #8b96af;
}

[data-theme="dark"] .results-count-text strong {
  color: #f1f5f9;
  font-weight: 700;
}

[data-theme="dark"] .mobile-filter-open-btn {
  background: #151825;
  border-color: #222638;
  color: #f1f5f9;
}

[data-theme="dark"] .mobile-filter-badge {
  background: #f5a623;
  color: #0c0e15;
}

[data-theme="dark"] .sort-prefix-label {
  color: #8b96af;
}

[data-theme="dark"] .sort-dropdown-trigger-btn {
  background: #151825;
  border-color: #222638;
  color: #f1f5f9;
}

[data-theme="dark"] .sort-dropdown-trigger-btn:hover {
  background: #1b1f30;
  border-color: #384260;
}

[data-theme="dark"] .sort-dropdown-chevron {
  color: #8b96af;
}

[data-theme="dark"] .sort-dropdown-menu {
  background: #151825;
  border-color: #222638;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .sort-menu-item {
  color: #cbd5e1;
}

[data-theme="dark"] .sort-menu-item:hover {
  background: #1e2336;
  color: #f1f5f9;
}

[data-theme="dark"] .sort-menu-item.active {
  background: #1e243b;
  color: #f5a623;
  font-weight: 600;
}

[data-theme="dark"] .sort-check-icon {
  color: #f5a623;
}

[data-theme="dark"] .filter-tag-chip {
  background: #181c2e;
  border-color: #262c42;
  color: #cbd5e1;
}

[data-theme="dark"] .filter-tag-label {
  color: #8b96af;
}

[data-theme="dark"] .filter-tag-chip strong {
  color: #f1f5f9;
}

[data-theme="dark"] .filter-tag-close-btn {
  color: #8b96af;
}

[data-theme="dark"] .filter-tag-close-btn:hover {
  color: #ef4444;
}

[data-theme="dark"] .filter-tag-clear-all-link {
  color: #f87171;
}

/* Mobile Filter Drawer */
[data-theme="dark"] #mobileFilterDrawer .drawer-panel,
[data-theme="dark"] .drawer-panel {
  background: #141724;
  border-color: #222638;
  color: #f1f5f9;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .drawer-header {
  background: #121522;
  border-bottom-color: #222638;
}

[data-theme="dark"] .drawer-header h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .drawer-close-btn {
  background: #1c2033;
  color: #94a3b8;
  border-color: #262c42;
}

[data-theme="dark"] .drawer-close-btn:hover {
  background: #252b42;
  color: #f1f5f9;
}

[data-theme="dark"] .drawer-footer {
  background: #121522;
  border-top-color: #222638;
}

[data-theme="dark"] .drawer-btn-clear {
  background: #1c2033;
  color: #cbd5e1;
  border-color: #262c42;
}

[data-theme="dark"] .drawer-btn-clear:hover {
  background: #252b42;
  color: #f1f5f9;
}

[data-theme="dark"] .drawer-btn-apply {
  background: linear-gradient(135deg, #f5a623 0%, #f7931a 100%);
  color: #0b0d14;
  font-weight: 700;
}

/* ==========================================================================
   PRODUCT CARDS IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .product-card {
  background: #151825;
  border-color: #222638;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .product-card:hover {
  border-color: #384260;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .product-card-media {
  background: #0f121d;
}

[data-theme="dark"] .product-title {
  color: #f1f5f9;
}

[data-theme="dark"] .product-title a {
  color: #f1f5f9;
}

[data-theme="dark"] .product-title a:hover {
  color: #f5a623;
}

[data-theme="dark"] .product-summary {
  color: #8b96af;
}

[data-theme="dark"] .price-value {
  color: #ffffff !important;
}

[data-theme="dark"] .price-prefix,
[data-theme="dark"] .price-prefix-b2b {
  color: #64748b;
}

[data-theme="dark"] .view-detail-btn {
  background: #1e2336;
  color: #38bdf8;
}

[data-theme="dark"] .view-detail-btn:hover {
  background: #27304b;
  color: #f1f5f9;
}

[data-theme="dark"] .tag-category,
[data-theme="dark"] .meta-tag {
  background: #1c2033;
  color: #8b96af;
  border-color: #252b40;
}

[data-theme="dark"] .card-category-badge {
  background: #141724;
  color: #94a3b8;
  border: none !important;
}

[data-theme="dark"] .card-featured-badge {
  background: #241b10;
  color: #f5a623;
  border: none !important;
}

[data-theme="dark"] .card-stock-badge {
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .card-stock-badge.in-stock {
  background: #064e3b;
  color: #6ee7b7;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .card-stock-badge.low {
  background: #78350f;
  color: #fde68a;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .card-stock-badge.empty {
  background: #7f1d1d;
  color: #fca5a5;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .product-header-row {
  border: none !important;
}

[data-theme="dark"] .stock-pill {
  border: none !important;
}

[data-theme="dark"] .stock-pill.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: none !important;
}

[data-theme="dark"] .stock-pill.low {
  background: rgba(245, 166, 35, 0.15);
  color: #fbbf24;
  border: none !important;
}

[data-theme="dark"] .stock-pill.empty {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: none !important;
}

[data-theme="dark"] .points-chip,
[data-theme="dark"] .reward-pill {
  background: rgba(245, 166, 35, 0.12);
  color: #fbbf24;
  border: none !important;
}

[data-theme="dark"] .vol-active-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] .volume-discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Buttons */
[data-theme="dark"] .primary-action,
[data-theme="dark"] .auth-submit-btn,
[data-theme="dark"] .btn-action-primary,
[data-theme="dark"] .hero-buy-btn {
  background: linear-gradient(135deg, #f5a623 0%, #f7931a 100%);
  color: #0b0d14;
  font-weight: 700;
  border: none;
}

[data-theme="dark"] .primary-action:hover,
[data-theme="dark"] .auth-submit-btn:hover,
[data-theme="dark"] .btn-action-primary:hover,
[data-theme="dark"] .hero-buy-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.4);
}

[data-theme="dark"] .secondary-action {
  background: #1c2033;
  color: #f1f5f9;
  border-color: #262c42;
}

[data-theme="dark"] .secondary-action:hover {
  background: #252b42;
}

/* Modals & Auth Card */
[data-theme="dark"] .auth-card,
[data-theme="dark"] .modal-dialog,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dashboard-panel {
  background: #151825;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .auth-tabs {
  background: #1a1e2f;
  border-color: #262c42;
}

[data-theme="dark"] .tab-button {
  color: #8b96af;
}

[data-theme="dark"] .tab-button.active {
  background: #242a42;
  color: #f1f5f9;
}

[data-theme="dark"] .auth-input-wrapper input,
[data-theme="dark"] .auth-field-wrapper input,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #181c2e;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .auth-field-icon {
  color: #64748b;
}

[data-theme="dark"] .close-auth-btn {
  background: #1e243b;
  color: #cbd5e1;
}

[data-theme="dark"] .close-auth-btn:hover {
  background: #28314a;
  color: #f1f5f9;
}

[data-theme="dark"] .auth-input-wrapper input:focus,
[data-theme="dark"] .auth-field-wrapper input:focus,
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: #1c2136;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* WhatsApp Widget - Mantener colores exactos de tema white en modo oscuro */
[data-theme="dark"] .whatsapp-card {
  background: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .whatsapp-card-head {
  background: linear-gradient(135deg, #075e54, #128c7e) !important;
  color: #ffffff !important;
  border-bottom: none !important;
}

[data-theme="dark"] .whatsapp-card-head strong,
[data-theme="dark"] .whatsapp-card-head small {
  color: #ffffff !important;
}

[data-theme="dark"] .whatsapp-close {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .whatsapp-card-body {
  background: #efeae2 !important;
}

[data-theme="dark"] .whatsapp-message {
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .whatsapp-sender-label {
  color: #128c7e !important;
}

[data-theme="dark"] .whatsapp-message p {
  color: #111827 !important;
}

[data-theme="dark"] .whatsapp-time {
  color: #8696a0 !important;
}

[data-theme="dark"] .whatsapp-form {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .whatsapp-form input {
  background: transparent !important;
  border: none !important;
  color: #111827 !important;
}

[data-theme="dark"] .whatsapp-form input::placeholder {
  color: #9ca3af !important;
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: #090b11;
  border-top-color: #1a1d2c;
}

[data-theme="dark"] .footer-col h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .footer-col a {
  color: #8b96af;
}

[data-theme="dark"] .footer-col a:hover {
  color: #f5a623;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #1a1d2c;
  color: #64748b;
}

/* Customer References Page (/referencias) in Dark Mode */
[data-theme="dark"] .references-title-row h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .references-title-row p {
  color: #8b96af;
}

[data-theme="dark"] .ref-img-card {
  background: #151825;
  border: 1px solid #222638;
}

[data-theme="dark"] .ref-img-card:hover {
  border-color: #384260;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .image-zoom-card,
[data-theme="dark"] .must-change-card {
  background: #151825;
  border: 1px solid #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .image-zoom-header {
  background: #121522;
  border-bottom: 1px solid #222638;
}

[data-theme="dark"] .image-zoom-caption {
  color: #f1f5f9;
}

[data-theme="dark"] .image-zoom-footer {
  background: #121522;
  border-top: 1px solid #222638;
}

[data-theme="dark"] .monospace-textarea {
  background: #121522;
  border: 1px solid #262c42;
  color: #38bdf8;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE IN DARK MODE (COMPREHENSIVE)
   ========================================================================== */
[data-theme="dark"] .product-page-wrapper {
  color: #cbd5e1;
}

[data-theme="dark"] .breadcrumb {
  color: #64748b;
}

[data-theme="dark"] .breadcrumb a {
  color: #8b96af;
}

[data-theme="dark"] .breadcrumb a:hover {
  color: #f5a623;
}

[data-theme="dark"] .breadcrumb .current {
  color: #f1f5f9;
}

[data-theme="dark"] .product-gallery-card {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .carousel-stage {
  background: #0d101a;
  border-color: #222638;
}

[data-theme="dark"] .carousel-arrow {
  background: rgba(20, 23, 36, 0.85);
  color: #f1f5f9;
  border: 1px solid #2b324a;
}

[data-theme="dark"] .carousel-arrow:hover {
  background: #1e2336;
  color: #f5a623;
  border-color: #f5a623;
}

[data-theme="dark"] .carousel-thumbs button {
  background: #0f121d;
  border-color: #222638;
}

[data-theme="dark"] .carousel-thumbs button.active {
  border-color: #f5a623;
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.3);
}

[data-theme="dark"] .product-page-title {
  color: #f1f5f9;
}

[data-theme="dark"] .product-page-summary {
  color: #8b96af;
}

[data-theme="dark"] .meta-item-clean.meta-category {
  color: #38bdf8;
}

[data-theme="dark"] .meta-item-clean.meta-region,
[data-theme="dark"] .meta-item-clean.meta-delivery {
  color: #34d399;
}

[data-theme="dark"] .meta-item-clean.meta-reward {
  color: #fbbf24;
}

[data-theme="dark"] .meta-item-clean.meta-moq {
  color: #60a5fa;
}

[data-theme="dark"] .meta-dot {
  color: #333a52;
}

/* Plan / Variant Selector */
[data-theme="dark"] .plan-selector-block {
  border-top-color: #222638;
}

[data-theme="dark"] .selector-label {
  color: #f1f5f9;
  font-weight: 600;
}

[data-theme="dark"] .plan-card-btn {
  background: #181c2d;
  border-color: #262c42;
  color: #cbd5e1;
}

[data-theme="dark"] .plan-card-btn:hover {
  border-color: #384260;
  background: #1d2338;
}

[data-theme="dark"] .plan-card-btn.active {
  background: #1a2238;
  border-color: #f5a623;
  box-shadow: 0 0 0 1.5px #f5a623, 0 4px 14px rgba(245, 166, 35, 0.2);
}

[data-theme="dark"] .plan-card-name {
  color: #cbd5e1;
}

[data-theme="dark"] .plan-card-btn.active .plan-card-name {
  color: #ffffff;
  font-weight: 700;
}

[data-theme="dark"] .plan-card-price {
  color: #ffffff;
}

[data-theme="dark"] .plan-card-bottom .retail-crossed {
  color: #64748b;
}

[data-theme="dark"] .plan-card-radio {
  border-color: #384260;
  background: #141724;
}

[data-theme="dark"] .plan-card-btn.active .plan-card-radio {
  border-color: #f5a623;
  background: #f5a623;
}

/* Service Specs Inline */
[data-theme="dark"] .service-specs-inline {
  border-top: 1px solid #222638;
  border-bottom: 1px solid #222638;
}

[data-theme="dark"] .spec-inline-label {
  color: #8b96af;
}

[data-theme="dark"] .spec-inline-val {
  color: #cbd5e1;
}

[data-theme="dark"] .spec-inline-val.spec-green {
  color: #34d399;
  font-weight: 600;
}

[data-theme="dark"] .spec-pipe-divider {
  color: #2b324a;
}

/* Product Content & Checklist */
[data-theme="dark"] .product-content-card {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .section-subheading {
  color: #f1f5f9;
}

[data-theme="dark"] .product-description-text {
  color: #94a3b8;
}

[data-theme="dark"] .features-checklist-clean li {
  color: #cbd5e1;
}

[data-theme="dark"] .features-checklist-clean li svg {
  color: #10b981;
}

/* Sticky Buy Box (Complete Overrides for Image 1) */
[data-theme="dark"] .product-buy-sidebar {
  background: transparent;
}

[data-theme="dark"] .buy-box-card {
  background: #151825;
  border-color: #222638;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .buy-box-stock-row {
  border-bottom-color: #222638;
}

[data-theme="dark"] .stock-status-text {
  color: #cbd5e1;
}

[data-theme="dark"] .buy-field-label {
  color: #8b96af;
}

[data-theme="dark"] .buy-qty-control {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .buy-qty-btn {
  color: #f1f5f9;
  background: #22283e;
}

[data-theme="dark"] .buy-qty-btn:hover:not(:disabled) {
  background: #2b3350;
  color: #f5a623;
}

[data-theme="dark"] .buy-qty-number {
  color: #f1f5f9;
  border-left-color: #262c42;
  border-right-color: #262c42;
}

[data-theme="dark"] .unit-price-row .buy-price-label {
  color: #8b96af;
}

[data-theme="dark"] .unit-price-row .buy-price-val {
  color: #f1f5f9;
}

[data-theme="dark"] .total-price-row {
  border-top: 1px dashed #222638;
}

[data-theme="dark"] .buy-total-label {
  color: #f1f5f9;
  font-weight: 600;
}

[data-theme="dark"] .buy-total-val {
  color: #ffffff;
  font-weight: 700;
}

[data-theme="dark"] .currency-tag {
  color: #8b96af;
}


/* Custom Buyer Box (Clean Redesign) */
[data-theme="dark"] .custom-buyer-box {
  background: transparent;
  border: none;
}

[data-theme="dark"] .custom-buyer-box:focus-within {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .custom-buyer-label {
  color: #cbd5e1;
}

[data-theme="dark"] .custom-buyer-icon {
  color: #f5a623;
}

[data-theme="dark"] .custom-req-badge {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .custom-buyer-input {
  color: #f1f5f9;
  background: #121524;
  border-color: #272f44;
}

[data-theme="dark"] .custom-buyer-input::placeholder {
  color: #55617c;
}

[data-theme="dark"] .custom-buyer-input:focus {
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.14);
  background: #151829;
}

[data-theme="dark"] .custom-buyer-hint {
  color: #7b88a4;
}

/* Buy & Cart Buttons (Dark Theme) */
[data-theme="dark"] .buy-now-btn {
  background: linear-gradient(135deg, #f5a623 0%, #f7931a 100%);
  color: #0b0d14;
  font-weight: 700;
  border: none;
  box-shadow: none !important;
}

[data-theme="dark"] .buy-now-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  box-shadow: none !important;
}

[data-theme="dark"] .buy-now-btn:disabled {
  background: #2a3148;
  color: #64748b;
  border: none;
  box-shadow: none !important;
}

[data-theme="dark"] .buy-add-cart-btn {
  background: #181d2f;
  color: #f1f5f9;
  border: 1px solid #28314a;
  box-shadow: none !important;
}

[data-theme="dark"] .buy-add-cart-btn:hover:not(:disabled) {
  background: #232a42;
  color: #f5a623;
  border-color: #3b4666;
  box-shadow: none !important;
}

[data-theme="dark"] .buy-add-cart-btn:disabled {
  background: #141724;
  color: #55617c;
  border-color: #20273a;
  box-shadow: none !important;
}

[data-theme="dark"] .buy-add-cart-btn.added-feedback {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}

/* Trust Features in Buy Box (TradeShield / Verified style) */
[data-theme="dark"] .buy-trust-features {
  border-top: 1px solid #222638;
}

[data-theme="dark"] .trust-row-icon {
  color: #38bdf8;
  stroke: #38bdf8;
}

[data-theme="dark"] .trust-row-icon.trust-bolt-icon {
  fill: #38bdf8;
  stroke: none;
}

[data-theme="dark"] .trust-title {
  color: #f1f5f9;
}

[data-theme="dark"] .trust-desc {
  color: #94a3b8;
}

[data-theme="dark"] .trust-pay-logo-img {
  border: none;
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .instant-guarantee-note {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

[data-theme="dark"] .related-products-section {
  border-top-color: #222638;
}

[data-theme="dark"] .related-products-section h2 {
  color: #f1f5f9;
}

/* Reseller Volume Pricing Card */
[data-theme="dark"] .reseller-volume-pricing-card {
  background: #141828;
  border-color: #222638;
}

[data-theme="dark"] .vol-price-header strong {
  color: #f1f5f9;
}

[data-theme="dark"] .vol-tier-item {
  background: #181c2d;
  border-color: #262c42;
}

[data-theme="dark"] .vol-tier-item .tier-range {
  color: #8b96af;
}

[data-theme="dark"] .vol-tier-item .tier-price {
  color: #f5a623;
}

[data-theme="dark"] .vol-tier-item .tier-unit {
  color: #64748b;
}

[data-theme="dark"] .vol-tier-item.active {
  background: #1a2238;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .vol-tier-item.active .tier-range,
[data-theme="dark"] .vol-tier-item.active .tier-price {
  color: #38bdf8;
}

/* ==========================================================================
   CHECKOUT & SHOPPING CART (/cart) IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .cart-page-wrapper {
  color: #f1f5f9;
}

[data-theme="dark"] .cart-header-title h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .cart-header-title p {
  color: #8b96af;
}

[data-theme="dark"] .cart-header-trust-tag {
  background: transparent;
  color: #34d399;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .cart-header-trust-tag svg {
  color: #34d399;
}

[data-theme="dark"] .empty-cart-state {
  background: #151825;
  border-color: #222638;
  color: #f1f5f9;
}

[data-theme="dark"] .empty-cart-state h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .empty-cart-state p {
  color: #8b96af;
}

[data-theme="dark"] .checkout-section-card {
  background: #141724;
  border: none;
  color: #f1f5f9;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .checkout-card-header {
  border-bottom: 1px solid #1e2438;
}

[data-theme="dark"] .checkout-card-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .step-desc {
  color: #8b96af;
}

[data-theme="dark"] .step-num-badge {
  background: #1e2438;
  color: #f1f5f9;
  border: none;
}

[data-theme="dark"] .cart-items-container {
  background: transparent !important;
}

[data-theme="dark"] .cart-item-row {
  background: #191d2d !important;
  border: none !important;
  color: #f1f5f9;
}

[data-theme="dark"] .cart-item-row:hover {
  background: #1f253a !important;
}

[data-theme="dark"] .cart-item-thumb {
  background: #10121d !important;
  border: none !important;
}

[data-theme="dark"] .cart-item-row.item-below-moq {
  background: #27161b !important;
  border: none !important;
}

[data-theme="dark"] .cart-product-title {
  color: #f1f5f9;
}

[data-theme="dark"] .cart-remove-btn {
  color: #ef4444;
}

[data-theme="dark"] .cart-remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .plan-tag {
  background: #1e293b;
  color: #38bdf8;
  border: none !important;
}

[data-theme="dark"] .custom-id-tag {
  background: #132e2c;
  color: #2dd4bf;
  border: none !important;
}

[data-theme="dark"] .custom-id-tag svg {
  color: #2dd4bf;
}

[data-theme="dark"] .unit-price-label {
  color: #8b96af;
}

[data-theme="dark"] .moq-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: none !important;
}

[data-theme="dark"] .item-subtotal-val {
  color: #f1f5f9;
  font-weight: 600;
}

[data-theme="dark"] .qty-counter-box {
  background: #10121d;
  border: none;
  color: #f1f5f9;
}

[data-theme="dark"] .qty-btn {
  background: #1e2438;
  color: #cbd5e1;
  border: none;
}

[data-theme="dark"] .qty-btn:hover {
  background: #28314a;
  color: #f1f5f9;
}

[data-theme="dark"] .qty-display {
  color: #f1f5f9;
}

[data-theme="dark"] .payment-tabs-bar {
  background: #10121d;
  border: none;
}

[data-theme="dark"] .pay-tab-btn {
  background: transparent;
  border: none;
  color: #8b96af;
}

[data-theme="dark"] .pay-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

[data-theme="dark"] .pay-tab-btn.active {
  background: #1e2438;
  border: none;
  color: #f1f5f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Dynamic Dark Mode Bank Cards (Borderless Vibrant) */
[data-theme="dark"] .pichincha-card {
  border: none !important;
  color: #081d40;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .pichincha-card .bank-card-head {
  border-bottom: 1px solid rgba(8, 29, 64, 0.12);
}

[data-theme="dark"] .pichincha-card .bank-card-brand strong {
  color: #081d40;
  font-weight: 550;
}

[data-theme="dark"] .pichincha-card .bank-card-brand span {
  color: rgba(8, 29, 64, 0.82);
  font-weight: 400;
}

[data-theme="dark"] .pichincha-card .bank-field small {
  color: rgba(8, 29, 64, 0.75);
  font-weight: 450;
}

[data-theme="dark"] .pichincha-card .bank-field span {
  color: #081d40;
  font-weight: 500;
}

[data-theme="dark"] .pichincha-card .field-copyable code {
  background: #ffffff;
  border: none;
  color: #081d40;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .pichincha-card .copy-pill-btn {
  background: #081d40;
  color: #ffffff;
  font-weight: 500;
  border: none;
  box-shadow: 0 2px 8px rgba(8, 29, 64, 0.25);
}

[data-theme="dark"] .pichincha-card .copy-pill-btn:hover {
  background: #040e20;
  color: #ffffff;
}

[data-theme="dark"] .pichincha-card .mini-copy {
  background: #ffffff;
  border: none;
  color: #081d40;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .pay-tab-btn[data-pay-tab="pichincha"].active {
  background: #fed600;
  color: #081d40;
  border: none;
  font-weight: 500;
}

/* Produbanco Dark */
[data-theme="dark"] .produbanco-card {
  background: linear-gradient(135deg, #00874e 0%, #005f37 100%);
  border: none !important;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .produbanco-card .bank-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .produbanco-card .bank-card-brand strong {
  color: #ffffff;
  font-weight: 550;
}

[data-theme="dark"] .produbanco-card .bank-card-brand span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

[data-theme="dark"] .produbanco-card .bank-field small {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 450;
}

[data-theme="dark"] .produbanco-card .bank-field span {
  color: #ffffff;
  font-weight: 500;
}

[data-theme="dark"] .produbanco-card .field-copyable code {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-weight: 500;
}

[data-theme="dark"] .produbanco-card .copy-pill-btn {
  background: #ffffff;
  color: #005f37;
  font-weight: 500;
  border: none;
}

[data-theme="dark"] .produbanco-card .copy-pill-btn:hover {
  background: #ecfdf5;
  color: #004d2c;
}

[data-theme="dark"] .produbanco-card .mini-copy {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
}

[data-theme="dark"] .pay-tab-btn[data-pay-tab="produbanco"].active {
  background: #00874e;
  color: #ffffff;
  border: none;
  font-weight: 500;
}

/* Deuna Dark */
[data-theme="dark"] .deuna-card {
  background: linear-gradient(135deg, #7c3aed 0%, #581c87 100%);
  border: none !important;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .deuna-card .deuna-qr-box {
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .deuna-card .qr-zoom-hint {
  color: #581c87;
  font-weight: 500;
}

[data-theme="dark"] .deuna-card .deuna-brand-badge strong {
  color: #ffffff;
  font-weight: 550;
}

[data-theme="dark"] .deuna-card .deuna-brand-badge p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

[data-theme="dark"] .deuna-card .deuna-instructions ol {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

[data-theme="dark"] .deuna-card .deuna-phone-box {
  background: rgba(255, 255, 255, 0.18);
  border: none;
}

[data-theme="dark"] .deuna-card .deuna-phone-box small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 450;
}

[data-theme="dark"] .deuna-card .deuna-phone-box strong {
  color: #ffffff;
  font-weight: 500;
}

[data-theme="dark"] .pay-tab-btn[data-pay-tab="deuna"].active {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  font-weight: 500;
}

/* PayPal Dark */
[data-theme="dark"] .paypal-card {
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  border: none !important;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .paypal-card .bank-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .paypal-card .bank-card-brand strong {
  color: #ffffff;
  font-weight: 550;
}

[data-theme="dark"] .paypal-card .bank-card-brand span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

[data-theme="dark"] .paypal-card .bank-field small {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 450;
}

[data-theme="dark"] .paypal-card .bank-field span {
  color: #ffffff;
  font-weight: 500;
}

[data-theme="dark"] .paypal-card .field-copyable code {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-weight: 500;
}

[data-theme="dark"] .paypal-card .copy-pill-btn {
  background: #ffffff;
  color: #003087;
  font-weight: 500;
  border: none;
}

[data-theme="dark"] .paypal-card .copy-pill-btn:hover {
  background: #f0f7ff;
  color: #002266;
}

[data-theme="dark"] .paypal-card .mini-copy {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
}

[data-theme="dark"] .paypal-card .paypal-instructions-box {
  background: rgba(255, 255, 255, 0.15);
  border: none;
}

[data-theme="dark"] .paypal-card .paypal-instructions-box p {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

[data-theme="dark"] .pay-tab-btn[data-pay-tab="paypal"].active {
  background: #0070ba;
  color: #ffffff;
  border: none;
  font-weight: 500;
}

/* Guest Checkout Contact Dark Mode */
[data-theme="dark"] .guest-field-label {
  color: #f8fafc;
}

[data-theme="dark"] .guest-field-label .required-indicator {
  color: #ef4444;
  font-weight: 500;
}

[data-theme="dark"] .optional-badge {
  background: transparent;
  color: #8b9cb0;
  font-weight: 400;
  font-size: 0.84rem;
}

[data-theme="dark"] .guest-phone-input-wrap {
  background: #141824;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  height: 46px;
}

[data-theme="dark"] .guest-phone-input-wrap:focus-within {
  background: #101420;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .guest-phone-prefix {
  background: #1a2030;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 0 14px;
}

[data-theme="dark"] .guest-phone-prefix strong {
  color: #ffffff;
  font-weight: 700;
}

[data-theme="dark"] .guest-phone-input {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
}

[data-theme="dark"] .guest-phone-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

[data-theme="dark"] .guest-email-input {
  background: #141824;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
  height: 46px;
  padding: 0 14px;
}

[data-theme="dark"] .guest-email-input:focus {
  background: #101420;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .guest-email-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

[data-theme="dark"] .guest-field-hint {
  color: #8b96af;
}

[data-theme="dark"] .guest-field-hint strong {
  color: #38bdf8;
}

[data-theme="dark"] .guest-trust-banner {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

[data-theme="dark"] .logged-in-buyer-badge {
  background: #191d2d;
  border-color: #2b324a;
}

/* Receipt Dropzone */
[data-theme="dark"] .receipt-dropzone-fintech {
  background: #191d2d;
  border: 2px dashed #2b324a;
}

[data-theme="dark"] .dropzone-main-text {
  color: #f1f5f9;
}

[data-theme="dark"] .dropzone-hint-text {
  color: #8b96af;
}

[data-theme="dark"] .dropzone-camera-icon {
  background: #10121d;
  color: #38bdf8;
}

[data-theme="dark"] .preview-img-container {
  background: #10121d;
  border: none;
}

[data-theme="dark"] .preview-filename {
  color: #cbd5e1;
}

[data-theme="dark"] .preview-status-tag {
  color: #34d399;
}

[data-theme="dark"] .change-receipt-btn {
  background: #23293e;
  border: none;
  color: #f1f5f9;
}

[data-theme="dark"] .change-receipt-btn:hover {
  background: #28314a;
  color: #ffffff;
}

/* Cart Items & Summary Sidebar */
[data-theme="dark"] .summary-card-fintech {
  background: #141824;
  border: 1px solid #1f2536;
  color: #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .summary-header {
  border-bottom: 1px solid #1f2536;
}

[data-theme="dark"] .summary-header h3 {
  color: #f8fafc;
  font-weight: 700;
}

[data-theme="dark"] .order-secure-badge {
  background: rgba(16, 185, 129, 0.12);
  border: none;
  color: #34d399;
  box-shadow: none;
}

[data-theme="dark"] .summary-line-item {
  color: #94a3b8;
}

[data-theme="dark"] .summary-line-item span:last-child {
  color: #f8fafc;
  font-weight: 600;
}

[data-theme="dark"] .summary-line-item .text-emerald {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12);
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .summary-total-box {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
}

[data-theme="dark"] .total-label-col span {
  color: #f8fafc;
  font-weight: 600;
}

[data-theme="dark"] .checkout-guarantee-block {
  border-top: 1px solid #1f2536;
}

[data-theme="dark"] .total-label-col small {
  color: #94a3b8;
}

[data-theme="dark"] .total-price-hero {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: none;
}

[data-theme="dark"] .checkout-main-btn {
  border: none !important;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="pichincha"] {
  background: #fed600;
  color: #081d40;
  box-shadow: 0 4px 20px rgba(254, 214, 0, 0.28);
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="pichincha"]:hover:not(:disabled) {
  background: #f5c800;
  color: #040e20;
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="pichincha"] svg {
  color: #081d40;
  stroke: #081d40;
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="pichincha"] span {
  color: #081d40;
  font-weight: 650;
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="produbanco"] {
  background: linear-gradient(135deg, #00874e 0%, #005f37 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 135, 78, 0.28);
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="produbanco"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #009657 0%, #006e40 100%);
  color: #ffffff;
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="deuna"] {
  background: linear-gradient(135deg, #7c3aed 0%, #581c87 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.28);
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="deuna"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #8b5cf6 0%, #6b21a8 100%);
  color: #ffffff;
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="paypal"] {
  background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 112, 186, 0.28);
}

[data-theme="dark"] .checkout-main-btn[data-pay-method="paypal"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #0079c8 0%, #003799 100%);
  color: #ffffff;
}

[data-theme="dark"] .checkout-trust-link {
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

[data-theme="dark"] .checkout-trust-link:hover {
  background: #1a2030;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .checkout-trust-link svg {
  color: #34d399;
}

[data-theme="dark"] .checkout-trust-link strong {
  color: #34d399;
}

[data-theme="dark"] .checkout-trust-link[data-pay-method="produbanco"] svg {
  color: #38bdf8;
}

[data-theme="dark"] .checkout-trust-link[data-pay-method="produbanco"] strong {
  color: #38bdf8;
}

[data-theme="dark"] .guarantee-item {
  color: #cbd5e1;
  font-weight: 500;
}

[data-theme="dark"] .guarantee-icon-wrap {
  background: transparent !important;
  border: none !important;
  color: #34d399;
}

[data-theme="dark"] .cart-input-field label {
  color: #cbd5e1;
}

[data-theme="dark"] .cart-input-field input {
  background: #181c2e;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .cart-input-field input:focus {
  border-color: #f5a623;
}

/* ==========================================================================
   WHOLESALER B2B, PROFILE, ABOUT & CONTACT IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .reseller-portal-banner {
  background: linear-gradient(135deg, #131728 0%, #171d33 100%);
  border-color: #262d47;
}

[data-theme="dark"] .reseller-hero-card {
  background: #141724;
  border-color: #222638;
}

[data-theme="dark"] .reseller-banner-text h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .reseller-banner-text p {
  color: #8b96af;
}

[data-theme="dark"] .reseller-perk-item {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .reseller-perk-item span {
  color: #8b96af;
}

[data-theme="dark"] .reseller-perk-item strong {
  color: #f5a623;
}

[data-theme="dark"] .reseller-tabs-bar {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .reseller-tab-btn {
  color: #8b96af;
}

[data-theme="dark"] .reseller-tab-btn.active {
  background: #1e243a;
  color: #f5a623;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .reseller-section-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .reseller-metrics-grid .metric-card {
  background: #151825;
  border-color: #222638;
  color: #f1f5f9;
}

[data-theme="dark"] .b2b-catalog-search-bar input {
  background: #181c2e;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .b2b-catalog-search-bar input:focus {
  border-color: #f5a623;
}

[data-theme="dark"] .b2b-catalog-card {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .b2b-prod-title {
  color: #f1f5f9;
}

[data-theme="dark"] .b2b-cat-label {
  color: #8b96af;
}

[data-theme="dark"] .b2b-card-tiers-row {
  background: #121522;
  border-top-color: #222638;
}

[data-theme="dark"] .b2b-tier-cell {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .tier-cell-range {
  color: #8b96af;
}

[data-theme="dark"] .tier-cell-price {
  color: #f5a623;
}

[data-theme="dark"] .b2b-tier-cell.highlight-cell {
  background: #1a2238;
  border-color: #38bdf8;
}

[data-theme="dark"] .b2b-tier-cell.highlight-cell .tier-cell-price {
  color: #38bdf8;
}

[data-theme="dark"] .b2b-order-card {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .b2b-order-card.card-delivered {
  background: #0d1f18;
  border-color: #10b981;
}

[data-theme="dark"] .order-number-badge {
  color: #f1f5f9;
}

[data-theme="dark"] .order-amount {
  color: #f5a623;
}

[data-theme="dark"] .b2b-order-items-list {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .item-name-col {
  color: #f1f5f9;
}

[data-theme="dark"] .item-plan-badge {
  background: #1c2033;
  color: #38bdf8;
}

[data-theme="dark"] .item-subtotal-col {
  color: #f5a623;
}

[data-theme="dark"] .b2b-view-receipt-btn {
  background: #1e2336;
  border-color: #2b324a;
  color: #cbd5e1;
}

[data-theme="dark"] .b2b-view-receipt-btn:hover {
  background: #28314a;
  color: #f1f5f9;
}

[data-theme="dark"] .b2b-delivery-box {
  background: #0a1c14;
  border-color: #155e43;
}

[data-theme="dark"] .delivery-box-title {
  color: #34d399;
}

[data-theme="dark"] .b2b-gallery-thumb {
  background: #151825;
  border: 1px solid #262c42;
}

[data-theme="dark"] .b2b-pending-notice,
[data-theme="dark"] .reseller-disabled-notice {
  background: #231906;
  border-color: #78350f;
  color: #fbbf24;
}

[data-theme="dark"] .reseller-account-card,
[data-theme="dark"] .reseller-password-card {
  background: #151825;
  border-color: #222638;
  color: #f1f5f9;
}

[data-theme="dark"] .account-info-group label {
  color: #8b96af;
}

[data-theme="dark"] .account-info-group strong {
  color: #f1f5f9;
}

[data-theme="dark"] .reseller-password-card h3 {
  color: #f1f5f9;
}

/* Customer Profile & Orders */
[data-theme="dark"] .profile-page-wrapper {
  color: #f1f5f9;
}

[data-theme="dark"] .profile-header-card,
[data-theme="dark"] .profile-section,
[data-theme="dark"] .profile-card {
  background: #151825;
  border-color: #222638;
  color: #f1f5f9;
}

[data-theme="dark"] .profile-orders-count-badge {
  background: #1e243b;
  color: #cbd5e1;
}

[data-theme="dark"] .stat-box {
  background: #181c2e;
  border: 1px solid #262c42;
}

[data-theme="dark"] .stat-box strong {
  color: #f1f5f9;
}

[data-theme="dark"] .stat-box span {
  color: #8b96af;
}

[data-theme="dark"] .order-card {
  background: #181c2e;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .order-card-delivered {
  background: #0d1f18;
  border-left-color: #10b981;
}

[data-theme="dark"] .order-items-list,
[data-theme="dark"] .order-items-compact {
  color: #cbd5e1;
}

[data-theme="dark"] .order-total {
  color: #f5a623;
}

[data-theme="dark"] .delivery-result-card {
  background: #0a1c14;
  border: 1px solid #155e43;
}

[data-theme="dark"] .delivery-result-header strong {
  color: #34d399;
}

[data-theme="dark"] .delivery-text-display {
  background: #0f121d;
  border: 1px solid #222638;
  color: #34d399;
}

[data-theme="dark"] .pending-notice-box {
  background: #231906;
  border: 1px solid #78350f;
  color: #fbbf24;
}

[data-theme="dark"] .delivery-img-thumb {
  background: #151825;
  border: 1px solid #262c42;
}

/* About Page */
[data-theme="dark"] .about-page-wrapper {
  color: #cbd5e1;
}

[data-theme="dark"] .about-hero-pro h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .about-lead-pro {
  color: #8b96af;
}

[data-theme="dark"] .about-badge {
  background: #181c2e;
  border: 1px solid #262c42;
  color: #34d399;
}

[data-theme="dark"] .about-stat-box {
  background: #151825;
  border: 1px solid #222638;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .about-stat-box:hover {
  border-color: #384260;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .stat-num {
  color: #f5a623;
}

[data-theme="dark"] .stat-label {
  color: #f1f5f9;
}

[data-theme="dark"] .stat-sub {
  color: #8b96af;
}

[data-theme="dark"] .about-section-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .about-section-header p {
  color: #8b96af;
}

[data-theme="dark"] .pillar-card {
  background: #151825;
  border: 1px solid #222638;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .pillar-card:hover {
  border-color: #384260;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .pillar-card h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .pillar-card p {
  color: #8b96af;
}

[data-theme="dark"] .pillar-chip {
  background: #1e243b;
  color: #cbd5e1;
}

[data-theme="dark"] .pillar-icon-box.icon-box--blue {
  background: #172554;
  color: #38bdf8;
}

[data-theme="dark"] .pillar-icon-box.icon-box--emerald {
  background: #064e3b;
  color: #34d399;
}

[data-theme="dark"] .pillar-icon-box.icon-box--green {
  background: #052e20;
  color: #22c55e;
}

[data-theme="dark"] .pillar-icon-box.icon-box--purple {
  background: #3b0764;
  color: #c084fc;
}

[data-theme="dark"] .about-cta-card {
  background: linear-gradient(135deg, #131728 0%, #171d33 100%);
  border: 1px solid #262d47;
}

/* Contact Page */
[data-theme="dark"] .contact-page-wrapper {
  color: #cbd5e1;
}

[data-theme="dark"] .contact-channel-card {
  background: #151825;
  border: 1px solid #222638;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .contact-channel-card.featured-channel {
  background: linear-gradient(180deg, #151825 0%, #0d1f18 100%);
  border-color: #10b981;
}

[data-theme="dark"] .channel-body h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .channel-desc {
  color: #8b96af;
}

[data-theme="dark"] .channel-highlight-value {
  color: #f1f5f9;
}

[data-theme="dark"] .quick-prompts-group {
  border-top-color: #222638;
}

[data-theme="dark"] .quick-prompts-title {
  color: #8b96af;
}

[data-theme="dark"] .quick-prompts-buttons a {
  background: #181c2e;
  border: 1px solid #262c42;
  color: #cbd5e1;
}

[data-theme="dark"] .quick-prompts-buttons a:hover {
  background: #1e243a;
  border-color: #f5a623;
  color: #f5a623;
}

[data-theme="dark"] .schedule-list li {
  color: #8b96af;
}

[data-theme="dark"] .schedule-list li strong {
  color: #f1f5f9;
}

[data-theme="dark"] .schedule-note {
  color: #64748b;
}

[data-theme="dark"] .contact-faq-section h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .faq-item {
  background: #151825;
  border: 1px solid #222638;
}

[data-theme="dark"] .faq-item h4 {
  color: #f1f5f9;
}

[data-theme="dark"] .faq-item p {
  color: #8b96af;
}

/* ==========================================================================
   PANEL ADMINISTRADOR (/admin) IN DARK MODE
   ========================================================================== */
[data-theme="dark"] .admin-shell-wrapper,
[data-theme="dark"] .admin-workspace {
  background: #0c0e15 !important;
}

[data-theme="dark"] .admin-sidebar {
  background: #141724;
  border-color: #222638;
}

[data-theme="dark"] .admin-brand-header {
  border-bottom-color: #222638;
}

[data-theme="dark"] .admin-brand-name {
  color: #f1f5f9;
}

[data-theme="dark"] .admin-brand-sub {
  color: #8b96af;
}

[data-theme="dark"] .admin-sidebar-footer {
  border-top-color: #222638;
}

[data-theme="dark"] .admin-mini-stat {
  background: #181c2e;
  border: 1px solid #222638;
}

[data-theme="dark"] .mini-stat-num {
  color: #f1f5f9;
}

[data-theme="dark"] .mini-stat-label {
  color: #8b96af;
}

[data-theme="dark"] .admin-tab-btn {
  color: #8b96af;
}

[data-theme="dark"] .admin-tab-btn:hover {
  background: #1a1f33;
  color: #f1f5f9;
}

[data-theme="dark"] .admin-tab-btn.active {
  background: #1e243a;
  color: #f5a623;
  font-weight: 600;
}

[data-theme="dark"] .admin-workspace-header {
  background: #141724;
  border-bottom-color: #222638;
}

[data-theme="dark"] .admin-page-title {
  color: #f1f5f9;
}

[data-theme="dark"] .admin-page-eyebrow {
  color: #8b96af;
}

[data-theme="dark"] .admin-stat-item {
  background: #181c2e;
  border: 1px solid #222638;
}

[data-theme="dark"] .admin-stat-item span {
  color: #8b96af;
}

[data-theme="dark"] .admin-stat-item strong {
  color: #f1f5f9;
}

[data-theme="dark"] .dashboard-panel {
  background: #141724;
  border-color: #222638;
  color: #f1f5f9;
}

[data-theme="dark"] .dashboard-panel .panel-header h2,
[data-theme="dark"] .toolbar-title-group h2,
[data-theme="dark"] .panel-header h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .panel-header p,
[data-theme="dark"] .toolbar-subtitle {
  color: #8b96af;
}

[data-theme="dark"] .panel-header {
  border-bottom-color: #222638;
}

[data-theme="dark"] .admin-filter-pills-bar {
  border-bottom-color: #222638;
}

[data-theme="dark"] .filter-pill-btn {
  background: #181c2e;
  color: #8b96af;
  border-color: #262c42;
}

[data-theme="dark"] .filter-pill-btn:hover {
  background: #1f253d;
  color: #f1f5f9;
}

[data-theme="dark"] .filter-pill-btn.active {
  background: #f5a623;
  color: #0c0e15;
  border-color: #f5a623;
  font-weight: 700;
}

[data-theme="dark"] .admin-search-wrapper input {
  background: #181c2e;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .admin-search-wrapper input:focus {
  background: #1c2136;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

[data-theme="dark"] .order-accordion-card,
[data-theme="dark"] .user-accordion-card,
[data-theme="dark"] .admin-product-row {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .order-accordion-card:hover,
[data-theme="dark"] .user-accordion-card:hover,
[data-theme="dark"] .admin-product-row:hover {
  border-color: #384260;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .order-accordion-header,
[data-theme="dark"] .user-accordion-header {
  background: #151825;
  color: #f1f5f9;
}

[data-theme="dark"] .order-accordion-card.is-expanded .order-accordion-header,
[data-theme="dark"] .user-accordion-card.is-expanded .user-accordion-header {
  background: #181c2e;
  border-bottom-color: #222638;
}

[data-theme="dark"] .order-accordion-header:hover,
[data-theme="dark"] .user-accordion-header:hover {
  background: #1a1e31;
}

[data-theme="dark"] .user-accordion-body {
  background: #151825;
  border-top-color: #222638;
}

[data-theme="dark"] .user-details-grid {
  background: #181c2e;
  border: 1px solid #262c42;
}

[data-theme="dark"] .reseller-quick-management-box {
  background: #181c2e;
  border: 1px solid #262c42;
}

[data-theme="dark"] .order-acc-chevron,
[data-theme="dark"] .user-acc-chevron,
[data-theme="dark"] .order-acc-toggle-btn,
[data-theme="dark"] .user-acc-toggle-btn {
  background: #1e2336 !important;
  color: #60a5fa !important;
  border: 1px solid #2b324a !important;
}

[data-theme="dark"] .order-acc-toggle-btn:hover,
[data-theme="dark"] .user-acc-toggle-btn:hover {
  background: #252c42 !important;
  color: #93c5fd !important;
  border-color: #3b4666 !important;
}

[data-theme="dark"] .order-acc-archive-btn {
  background: #1e2336 !important;
  color: #94a3b8 !important;
  border: 1px solid #2b324a !important;
}

[data-theme="dark"] .order-acc-archive-btn:hover {
  background: #252c42 !important;
  color: #f1f5f9 !important;
  border-color: #3b4666 !important;
}

[data-theme="dark"] .order-acc-archive-btn.is-archived {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .order-acc-archive-btn.is-archived:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  color: #fef08a !important;
}

[data-theme="dark"] .reseller-credentials-card {
  background: #121522;
  border: 1px solid #262c42;
}

[data-theme="dark"] .cred-header-mini {
  color: #f1f5f9;
}

[data-theme="dark"] .cred-row-item {
  border-bottom-color: #222638;
}

[data-theme="dark"] .cred-label {
  color: #8b96af;
}

[data-theme="dark"] .cred-value-box code {
  background: #181c2e;
  border: 1px solid #262c42;
  color: #38bdf8;
}

[data-theme="dark"] .mini-copy-btn,
[data-theme="dark"] .mini-pass-toggle-btn {
  background: #1e2336;
  border-color: #2b324a;
  color: #cbd5e1;
}

[data-theme="dark"] .mini-copy-btn:hover,
[data-theme="dark"] .mini-pass-toggle-btn:hover {
  background: #28314a;
  color: #f1f5f9;
}

[data-theme="dark"] .credentials-generated-card {
  background: #0a1c14;
  border: 1px solid #155e43;
}

[data-theme="dark"] .admin-row-top h3,
[data-theme="dark"] .admin-product-row-info h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .admin-product-summary {
  color: #8b96af;
}

[data-theme="dark"] .admin-order-card {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .admin-order-top-bar {
  background: #121522;
  border-bottom-color: #222638;
}

[data-theme="dark"] .admin-order-items-list li {
  border-bottom-color: #222638;
  color: #cbd5e1;
}

[data-theme="dark"] .admin-table th {
  background: #181c2e;
  color: #f1f5f9;
  border-color: #262c42;
}

[data-theme="dark"] .admin-table td {
  border-color: #222638;
  color: #cbd5e1;
}

/* Settings Card & Fields in Dark Mode */
[data-theme="dark"] .settings-section-card {
  background: #141724;
  border: 1px solid #222638;
}

[data-theme="dark"] .settings-section-header {
  background: #121522;
  border-bottom: 1px solid #222638;
}

[data-theme="dark"] .settings-section-header > div h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .settings-section-header > div span {
  color: #8b96af;
}

[data-theme="dark"] .settings-field > span {
  color: #cbd5e1;
}

[data-theme="dark"] .settings-field input,
[data-theme="dark"] .settings-field select,
[data-theme="dark"] .settings-field textarea {
  background: #181c2e;
  border: 1px solid #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .settings-field input:focus,
[data-theme="dark"] .settings-field select:focus,
[data-theme="dark"] .settings-field textarea:focus {
  background: #1c2136;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

[data-theme="dark"] .admin-ref-card {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .admin-ref-thumb {
  background: #121522;
}

[data-theme="dark"] .admin-ref-caption {
  color: #f1f5f9;
}

[data-theme="dark"] .ref-upload-dropzone {
  background: #161a29;
  border-color: #2b324a;
}

[data-theme="dark"] .ref-upload-dropzone:hover,
[data-theme="dark"] .ref-upload-dropzone.drag-over {
  background: #1a1f33;
  border-color: #f5a623;
}

[data-theme="dark"] .ref-dropzone-content strong {
  color: #f1f5f9;
}

[data-theme="dark"] .ref-dropzone-content small {
  color: #8b96af;
}

[data-theme="dark"] .admin-pagination-bar {
  background: #141724 !important;
  border: 1px solid #222638 !important;
}

[data-theme="dark"] .pagination-info {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-page-btn,
[data-theme="dark"] .pagination-btn {
  background: #1e2235 !important;
  border: 1px solid #2a3147 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .admin-page-btn:hover,
[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
  background: #252b42 !important;
  border-color: #3b4666 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .admin-page-btn.active,
[data-theme="dark"] .pagination-btn.active {
  background: #f59e0b !important;
  color: #0c0e15 !important;
  border-color: #f59e0b !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .pagination-dots {
  color: #64748b !important;
}

[data-theme="dark"] .btn-delete-account,
[data-theme="dark"] .action-btn-sm.btn-delete-account {
  background: #261316 !important;
  border: 1px solid #881337 !important;
  color: #f87171 !important;
}

[data-theme="dark"] .btn-delete-account:hover,
[data-theme="dark"] .action-btn-sm.btn-delete-account:hover {
  background: #881337 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-warning-outline,
[data-theme="dark"] .action-btn-sm.btn-warning-outline {
  background: #261d12 !important;
  border: 1px solid #78350f !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .btn-warning-outline:hover,
[data-theme="dark"] .action-btn-sm.btn-warning-outline:hover {
  background: #78350f !important;
  color: #ffffff !important;
}

[data-theme="dark"] .action-btn-sm {
  background: #1e2336 !important;
  border: 1px solid #2b324a !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .action-btn-sm:hover {
  background: #28314a !important;
  border-color: #3b4666 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .action-btn-sm.btn-edit {
  color: #38bdf8 !important;
}

[data-theme="dark"] .action-btn-sm.btn-delete {
  color: #f87171 !important;
}

/* Dispatch Form Textarea in Dark Mode */
[data-theme="dark"] .admin-dispatch-form textarea,
[data-theme="dark"] .admin-dispatch-section textarea {
  background: #121522 !important;
  color: #f1f5f9 !important;
  border: 1px solid #2b324a !important;
}

[data-theme="dark"] .admin-dispatch-form textarea:focus,
[data-theme="dark"] .admin-dispatch-section textarea:focus {
  background: #161a29 !important;
  border-color: #3b82f6 !important;
}

/* B2B Wholesale Configuration Box (Admin Products View) */
[data-theme="dark"] .form-b2b-box {
  background: linear-gradient(135deg, #151824 0%, #111420 100%) !important;
  border: 1.5px solid #262c42 !important;
}

[data-theme="dark"] .b2b-box-title {
  color: #f1f5f9 !important;
  border-bottom-color: #222638 !important;
}

[data-theme="dark"] .b2b-box-title svg {
  color: #38bdf8 !important;
}

[data-theme="dark"] .form-b2b-box .check-line span,
[data-theme="dark"] .form-b2b-box .check-line strong {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .form-b2b-box .check-line small {
  color: #94a3b8 !important;
}

[data-theme="dark"] .form-b2b-box .col-label {
  color: #cbd5e1 !important;
}

/* Admin Product Meta Tags */
[data-theme="dark"] .admin-product-meta-tags .meta-tag {
  background: #181c2e !important;
  color: #cbd5e1 !important;
  border: 1px solid #262c42 !important;
}

[data-theme="dark"] .admin-product-meta-tags .meta-tag.b2b-tag {
  background: #162035 !important;
  color: #38bdf8 !important;
  border-color: #223354 !important;
}

[data-theme="dark"] .empty-list-notice {
  background: #141724 !important;
  border-color: #222638 !important;
  color: #94a3b8 !important;
}

/* Reseller Tier Badges */
[data-theme="dark"] .tier-bronze {
  background: #2d1d11 !important;
  color: #f59e0b !important;
  border: 1px solid #78350f !important;
}

[data-theme="dark"] .tier-silver {
  background: #1e2436 !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
}

[data-theme="dark"] .tier-gold {
  background: #2a2210 !important;
  color: #fbbf24 !important;
  border: 1px solid #854d0e !important;
}

[data-theme="dark"] .credentials-generated-card {
  background: #0d281e !important;
  border-color: #10b981 !important;
}

/* Settings Section Icons & Helpers */
[data-theme="dark"] .settings-section-icon {
  background: #1a2236 !important;
  color: #38bdf8 !important;
  border: 1px solid #253350 !important;
}

[data-theme="dark"] .photo-item-card {
  background: #151825;
  border: 1px solid #222638;
}

[data-theme="dark"] .photo-item-controls {
  background: #121522;
  border: 1px solid #222638;
}

/* Header Buttons */
[data-theme="dark"] .theme-toggle-btn {
  background: #1b1f30;
  border: 1px solid #262c42;
  color: #cbd5e1;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #252b42;
  color: #f5a623;
}

[data-theme="dark"] .header-user-icon {
  color: #cbd5e1;
}

[data-theme="dark"] .login-button {
  background: #1b1f30;
  border: 1px solid #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .logout-menu-btn:hover {
  background: #25181a;
  color: #f87171;
}

/* Admin Forms */
[data-theme="dark"] .product-form,
[data-theme="dark"] .admin-form {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .product-form .form-group span,
[data-theme="dark"] .admin-form label {
  color: #cbd5e1;
}

[data-theme="dark"] .product-form input,
[data-theme="dark"] .product-form select,
[data-theme="dark"] .product-form textarea,
[data-theme="dark"] .admin-form input,
[data-theme="dark"] .admin-form select {
  background: #181c2e;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .product-form input:focus,
[data-theme="dark"] .product-form select:focus,
[data-theme="dark"] .product-form textarea:focus {
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

[data-theme="dark"] .admin-credentials-box {
  background: #121522;
  border-color: #262c42;
}

[data-theme="dark"] .credential-item {
  border-bottom-color: #222638;
}

/* Final Polishing Overrides */
[data-theme="dark"] .mobile-price-inputs input {
  background: #181c2e;
  border-color: #262c42;
  color: #f1f5f9;
}

[data-theme="dark"] .photo-btn-group button {
  background: #1e2336;
  border-color: #262c42;
  color: #cbd5e1;
}

[data-theme="dark"] .photo-btn-group button:hover {
  background: #28314a;
  color: #f1f5f9;
}

[data-theme="dark"] .upload-dropzone-btn {
  background: #1e2336;
  border-color: #2b324a;
  color: #f1f5f9;
}

[data-theme="dark"] .upload-dropzone-btn:hover {
  background: #28314a;
  color: #f5a623;
}

[data-theme="dark"] .tier-silver,
[data-theme="dark"] .tier-icon-silver {
  background: #1e243b;
  color: #cbd5e1;
  border-color: #262c42;
}

[data-theme="dark"] .receipt-indicator.no-receipt {
  background: #1e2336;
  color: #8b96af;
}

[data-theme="dark"] .user-avatar-circle.avatar-reseller {
  background: #0d1f18;
  color: #34d399;
}

[data-theme="dark"] .btn-view-cart {
  background: #1e2336;
  border-color: #2b324a;
  color: #f1f5f9;
}

[data-theme="dark"] .btn-view-cart:hover {
  background: #28314a;
  color: #f5a623;
}

[data-theme="dark"] .settings-page-header h2,
[data-theme="dark"] .b2b-box-title,
[data-theme="dark"] .reseller-name-row h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .metric-value {
  color: #f5a623;
}

[data-theme="dark"] .btn-open-order-details:hover {
  color: #f5a623;
}

/* ==========================================================================
   ADMIN: DISEÑO DE PÁGINA (PAGE DESIGN SETTINGS)
   ========================================================================== */

.design-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px 24px;
}

.design-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.design-toggle-card:hover {
  border-color: #cbd5e1;
}

.design-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.design-toggle-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-toggle-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

/* Switch styling */
.switch-control {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.switch-control input:checked + .switch-slider {
  background-color: #0071e3;
}

.switch-control input:checked + .switch-slider::before {
  transform: translateX(22px);
}

/* Live Preview Mockup Box */
.design-preview-container {
  padding: 16px 24px 24px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

.design-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.design-preview-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.design-preview-mockup {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.preview-device-card {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.preview-device-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.preview-mock-product {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.preview-mock-img {
  height: 60px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.preview-mock-body {
  padding: 10px;
}

.preview-mock-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.preview-mock-header-row.is-hidden {
  display: none !important;
}

.preview-mock-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px;
}

.preview-mock-price {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0071e3;
}

/* Dark Mode Overrides for Admin Design */
[data-theme="dark"] .design-toggle-card {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .design-toggle-card:hover {
  border-color: #384260;
}

[data-theme="dark"] .design-toggle-title {
  color: #f1f5f9;
}

[data-theme="dark"] .design-toggle-desc {
  color: #8b96af;
}

[data-theme="dark"] .switch-slider {
  background-color: #2b324b;
}

[data-theme="dark"] .switch-control input:checked + .switch-slider {
  background-color: #f5a623;
}

[data-theme="dark"] .design-preview-container {
  background: #10131f;
  border-top-color: #222638;
}

[data-theme="dark"] .design-preview-title {
  color: #8b96af;
}

[data-theme="dark"] .preview-device-card {
  background: #151825;
  border-color: #222638;
}

[data-theme="dark"] .preview-device-badge {
  background: #1c2033;
  color: #38bdf8;
  border-color: #262c42;
}

[data-theme="dark"] .preview-mock-product {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .preview-mock-img {
  background: linear-gradient(135deg, #1f2538 0%, #171b29 100%);
  color: #8b96af;
}

[data-theme="dark"] .preview-mock-title {
  color: #f1f5f9;
}

[data-theme="dark"] .preview-mock-price {
  color: #ffffff;
}

/* ==========================================================================
   PRODUCT CARD DESIGN SELECTOR IN ADMIN DESIGN
   ========================================================================== */

.card-design-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card-design-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.card-design-choice:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-design-choice.is-selected {
  border-color: #0071e3;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #0071e3, 0 4px 14px rgba(0, 113, 227, 0.12);
}

.card-design-choice .choice-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.card-design-choice.is-selected .choice-radio-indicator {
  border-color: #0071e3;
  background: #0071e3;
}

.card-design-choice.is-selected .choice-radio-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.card-design-choice .choice-content {
  flex: 1;
}

.card-design-choice .choice-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.card-design-choice .choice-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.card-design-choice.is-selected .choice-pill {
  background: #dbeafe;
  color: #0284c7;
}

.card-design-choice .choice-desc {
  margin: 0;
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.45;
}

/* Stock Position Selector Grid */
.stock-pos-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.pos-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pos-option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.pos-option-card.is-selected {
  border-color: #0071e3;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #0071e3;
}

.pos-option-box {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px dashed #94a3b8;
  position: relative;
  background: #f8fafc;
  flex-shrink: 0;
}

.pos-mini-preview {
  position: absolute;
  width: 16px;
  height: 7px;
  border-radius: 3px;
  background: #10b981;
}

.pos-mini-preview.pos-tr {
  top: 3px;
  right: 3px;
}

.pos-mini-preview.pos-bl {
  bottom: 3px;
  left: 3px;
}

.pos-mini-preview.pos-br {
  bottom: 3px;
  right: 3px;
}

.pos-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pos-option-info strong {
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.25;
}

.pos-option-info small {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.2;
}

/* Dark mode overrides for card design choices */
[data-theme="dark"] .card-design-choice {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .card-design-choice:hover {
  border-color: #384260;
}

[data-theme="dark"] .card-design-choice.is-selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 0 1px #38bdf8, 0 4px 14px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .card-design-choice .choice-radio-indicator {
  background: #1e2438;
  border-color: #384260;
}

[data-theme="dark"] .card-design-choice.is-selected .choice-radio-indicator {
  border-color: #38bdf8;
  background: #38bdf8;
}

[data-theme="dark"] .card-design-choice .choice-title {
  color: #f1f5f9;
}

[data-theme="dark"] .card-design-choice .choice-pill {
  background: #262c42;
  color: #94a3b8;
}

[data-theme="dark"] .card-design-choice.is-selected .choice-pill {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

[data-theme="dark"] .card-design-choice .choice-desc {
  color: #8b96af;
}

[data-theme="dark"] .pos-option-card {
  background: #181c2e;
  border-color: #262c42;
}

[data-theme="dark"] .pos-option-card:hover {
  border-color: #384260;
  background: #1e2438;
}

[data-theme="dark"] .pos-option-card.is-selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 0 1px #38bdf8;
}

[data-theme="dark"] .pos-option-box {
  background: #151825;
  border-color: #384260;
}

[data-theme="dark"] .pos-option-info strong {
  color: #f1f5f9;
}

[data-theme="dark"] .pos-option-info small {
  color: #8b96af;
}

/* ==========================================================================
   THEME SELECTOR IN ADMIN DESIGN (TEMA PREDETERMINADO)
   ========================================================================== */

.design-theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px 24px;
}

.theme-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-choice-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-choice-card.is-selected {
  border-color: #0071e3;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #0071e3, 0 4px 14px rgba(0, 113, 227, 0.12);
}

.theme-choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-choice-visual {
  height: 84px;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-preview-white {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.theme-preview-dark {
  background: #0b0d14;
  border: 1px solid #1f2438;
}

.mini-window {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.mini-window.dark-mode {
  background: #151825;
  border-color: #262c42;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.mini-header {
  height: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.light-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.dark-bar {
  background: #111420;
  border-bottom: 1px solid #222638;
}

.mini-body {
  flex: 1;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-badge {
  width: 32px;
  height: 6px;
  background: #10b981;
  border-radius: 3px;
}

.mini-line {
  width: 70%;
  height: 6px;
  background: #cbd5e1;
  border-radius: 3px;
}

.mini-line.dark-line {
  background: #ffffff;
}

.theme-choice-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.theme-choice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-choice-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

.theme-choice-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
}

.theme-radio-circle {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  position: relative;
  transition: all 0.2s ease;
}

.theme-choice-card.is-selected .theme-radio-circle {
  border-color: #0071e3;
  background: #0071e3;
}

.theme-choice-card.is-selected .theme-radio-circle::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  top: 4px;
  left: 4px;
}

/* Dark mode overrides for the selector */
[data-theme="dark"] .theme-choice-card {
  background: #151825;
  border-color: #262c42;
}

[data-theme="dark"] .theme-choice-card:hover {
  border-color: #3b4261;
}

[data-theme="dark"] .theme-choice-card.is-selected {
  border-color: #38bdf8;
  background: #192238;
  box-shadow: 0 0 0 1px #38bdf8, 0 4px 14px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .theme-choice-title {
  color: #f1f5f9;
}

[data-theme="dark"] .theme-choice-desc {
  color: #8b96af;
}

[data-theme="dark"] .theme-radio-circle {
  border-color: #384260;
  background: #151825;
}

[data-theme="dark"] .theme-choice-card.is-selected .theme-radio-circle {
  border-color: #38bdf8;
  background: #38bdf8;
}

[data-theme="dark"] .theme-choice-card.is-selected .theme-radio-circle::after {
  background: #0b0d14;
}

/* ==========================================================================
   BANNER IMAGE CUSTOMIZER IN ADMIN DESIGN (banner-image-container)
   ========================================================================== */

.banner-customizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 24px;
}

.banner-custom-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.banner-custom-box:hover {
  border-color: #cbd5e1;
}

.banner-custom-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-custom-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.banner-custom-tag.gamer-tag {
  color: #f59e0b;
}

.banner-custom-rec {
  font-size: 0.76rem;
  color: #64748b;
}

.banner-preview-wrapper {
  width: 100%;
  height: 140px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  position: relative;
}

.banner-preview-wrapper.gamer-bg {
  background: #0b0d14;
  border-color: rgba(245, 166, 35, 0.3);
}

.banner-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.banner-upload-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.banner-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 8px;
}

.banner-reset-btn {
  font-size: 0.78rem;
  padding: 7px 12px;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
}

.banner-reset-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* Dark mode overrides for banner customizer */
[data-theme="dark"] .banner-custom-box {
  background: #151825;
  border-color: #262c42;
}

[data-theme="dark"] .banner-custom-box:hover {
  border-color: #384260;
}

[data-theme="dark"] .banner-custom-tag {
  color: #f1f5f9;
}

[data-theme="dark"] .banner-custom-rec {
  color: #8b96af;
}

[data-theme="dark"] .banner-preview-wrapper {
  background: #111420;
  border-color: #2b324b;
}

[data-theme="dark"] .banner-reset-btn {
  color: #8b96af;
}

[data-theme="dark"] .banner-reset-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   BANNER VIDEO BACKGROUND
   El video llena el contenedor sin expandirlo. z-index negativo para que
   quede detrás del contenido. El degradado lo hace legible.
   ========================================================================== */

.banner-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Degradado encima del video para legibilidad del texto */
.banner-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 14, 26, 0.78) 0%,
    rgba(10, 14, 26, 0.45) 55%,
    rgba(10, 14, 26, 0.15) 100%
  );
}

.home-hero-banner .banner-text-content {
  position: relative;
  z-index: 2;
}
.home-hero-banner .banner-image-container {
  position: relative;
  z-index: 2;
}

/* Visibilidad y contraste en móvil (<= 768px) */
@media (max-width: 768px) {
  html.hide-banner-video-mobile .banner-video-bg,
  html.hide-banner-video-mobile .banner-video-overlay {
    display: none !important;
  }

  html:not(.hide-banner-video-mobile) .home-banner-wrapper.has-video-bg .banner-text-content h1,
  html:not(.hide-banner-video-mobile) .home-banner-wrapper.has-video-bg .banner-hero-desc {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }

  html:not(.hide-banner-video-mobile) .home-banner-wrapper.has-video-bg .apple-ref-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  }

  html:not(.hide-banner-video-mobile) .home-banner-wrapper.has-video-bg .gamer-toggle-btn {
    border: none !important;
    outline: none !important;
  }

  .banner-video-bg {
    object-position: center;
    opacity: 0.80;
  }

  .banner-video-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 14, 26, 0.70) 0%,
      rgba(10, 14, 26, 0.40) 65%,
      rgba(10, 14, 26, 0.20) 100%
    );
  }
}

/* Visibilidad y contraste en PC (>= 769px) */
@media (min-width: 769px) {
  html.hide-banner-video-pc .banner-video-bg,
  html.hide-banner-video-pc .banner-video-overlay {
    display: none !important;
  }

  html:not(.hide-banner-video-pc) .home-banner-wrapper.has-video-bg .banner-text-content h1,
  html:not(.hide-banner-video-pc) .home-banner-wrapper.has-video-bg .banner-hero-desc {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }

  html:not(.hide-banner-video-pc) .home-banner-wrapper.has-video-bg .apple-ref-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  }

  html:not(.hide-banner-video-pc) .home-banner-wrapper.has-video-bg .gamer-toggle-btn {
    border: none !important;
    outline: none !important;
  }
}

/* ==========================================================================
   CONTROL DE VISIBILIDAD DE IMAGEN DE BANNER (banner-image-container)
   ========================================================================== */

/* En PC: Ocultar banner-image-container si el admin lo desactivó */
@media (min-width: 769px) {
  html.hide-banner-image-pc .home-hero-banner .banner-image-container {
    display: none !important;
  }
  html.hide-banner-image-pc .home-hero-banner .banner-text-content {
    max-width: 800px;
  }
}

/* En Teléfonos: Ocultar banner-image-container si el admin lo desactivó */
@media (max-width: 768px) {
  html.hide-banner-image-mobile .home-hero-banner .banner-image-container {
    display: none !important;
  }
  html.hide-banner-image-mobile .home-hero-banner .banner-text-content {
    max-width: 100%;
  }
}

/* ==========================================================================
   ELDORADO & G2G INSPIRED PURCHASES & ORDER DETAILS
   ESTRICTAMENTE SIN BORDES (border: none !important)
   ========================================================================== */

/* Page Wrapper */
.purchases-page-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(14px, 2.5vw, 32px) 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header & Navigation */
.purchases-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.purchases-title-col h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.purchases-title-col p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

/* Tabs switcher: Mis Compras / Mi Cuenta */
.purchases-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  padding: 4px;
  border-radius: 999px;
  border: none !important;
}

[data-theme="dark"] .purchases-tabs-nav {
  background: #141722;
}

.purchases-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.purchases-tab-btn:hover {
  color: var(--ink-primary);
}

.purchases-tab-btn.active {
  background: var(--surface-card);
  color: var(--ink-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .purchases-tab-btn.active {
  background: #202538;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Filters & Search Toolbar */
.purchases-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.purchases-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
}

.purchases-search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
  z-index: 2;
}

.purchases-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--ink-primary);
  font-size: 0.84rem;
  border: none !important;
  outline: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
  box-sizing: border-box;
}

[data-theme="dark"] .purchases-search-input {
  background: #141722;
  box-shadow: none;
}

.purchases-status-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.purchases-filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

[data-theme="dark"] .purchases-filter-btn {
  background: #141722;
}

.purchases-filter-btn:hover {
  color: var(--ink-primary);
}

.purchases-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
}

/* Order List (Eldorado / G2G inspired) */
.eldorado-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.eldorado-order-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border-radius: 14px;
  padding: 14px 18px;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.15s ease;
  gap: 10px;
}

[data-theme="dark"] .eldorado-order-card {
  background: #141722;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.eldorado-order-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .eldorado-order-card:hover {
  background: #181d2c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* Card Header Line */
.eld-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.eld-order-num {
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 0.02em;
}

.eld-order-date {
  color: var(--ink-muted);
}

/* Card Body (Horizontal on PC) */
.eld-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eld-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.eld-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e2434;
}

.eld-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.eld-prod-cat {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.eld-prod-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 580px;
}

.eld-prod-plan {
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.eld-card-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.eld-price-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eld-price-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.eld-qty-val {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* Status Pills (Completely borderless) */
.eld-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: none !important;
  outline: none !important;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.eld-status-pill svg {
  flex-shrink: 0;
}

.tab-label-desktop {
  display: inline;
}

.tab-label-mobile {
  display: none;
}

.eld-status-pill.pill-delivered {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.eld-status-pill.pill-pending {
  background: rgba(245, 166, 35, 0.16);
  color: #f59e0b;
}

.eld-status-pill.pill-rejected {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

/* Mobile adjustments for purchases list & profile menu */
@media (max-width: 768px) {
  .tab-label-desktop {
    display: none !important;
  }
  .tab-label-mobile {
    display: inline !important;
  }

  .profile-menu {
    position: fixed !important;
    top: 60px !important;
    right: 12px !important;
    left: auto !important;
    width: 275px !important;
    max-width: calc(100vw - 24px) !important;
    transform-origin: top right !important;
    z-index: 10000 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  }

  [data-theme="dark"] .profile-menu {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  }

  .purchases-page-wrapper {
    padding: 16px 14px 48px;
    gap: 14px;
  }
  .purchases-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .purchases-search-wrapper {
    width: 100%;
    max-width: 100%;
    flex: none !important;
  }
  .purchases-status-filters {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 6px !important;
    padding-top: 2px !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
  }
  .purchases-status-filters::-webkit-scrollbar {
    display: none !important;
  }
  .purchases-filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .eldorado-order-card {
    padding: 12px 14px;
    gap: 8px;
  }
  .eld-card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .eld-card-right {
    justify-content: space-between;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }
  .eld-price-block {
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .eld-prod-name {
    max-width: 250px;
  }
}

/* ==========================================================================
   ORDER DETAIL PAGE (/pedido/:order_number)
   ========================================================================== */

.order-detail-page-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px clamp(14px, 2.5vw, 32px) 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Top Back & ID Bar */
.order-detail-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.order-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s ease;
  text-decoration: none;
}

.order-back-btn:hover {
  color: var(--blue-apple);
}

.order-id-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  padding: 5px 12px;
  border-radius: 999px;
  border: none !important;
}

[data-theme="dark"] .order-id-badge-wrap {
  background: #141722;
}

.order-id-label-text {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.order-id-code-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-primary);
  font-family: monospace;
}

.order-copy-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2563eb;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.order-copy-pill-btn:hover {
  opacity: 0.9;
}

/* Main Grid Layout (2 columns PC, 1 column Mobile) */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}

/* Card Base (Borderless) */
.order-detail-card {
  background: var(--surface-card);
  border-radius: 14px;
  padding: 18px 22px;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[data-theme="dark"] .order-detail-card {
  background: #141722;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* Product Header Card */
.order-product-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-product-header img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #1e2434;
  flex-shrink: 0;
}

.order-prod-header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
}

.order-prod-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
}

.order-prod-header-plan {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* Delivery / Credentials Box */
.order-delivery-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-delivery-title h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
}

.order-credentials-box {
  background: #0d1017;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  border: none !important;
}

[data-theme="light"] .order-credentials-box {
  background: #1e2330;
  color: #f8fafc;
}

.order-copy-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  width: fit-content;
  transition: opacity 0.15s ease;
}

.order-copy-all-btn:hover {
  opacity: 0.9;
}

/* Pending Banner */
.order-pending-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 166, 35, 0.12);
  color: #f59e0b;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.4;
  border: none !important;
}

/* Support Help Card */
.order-help-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-help-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.order-help-desc {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.4;
  margin: 0;
}

.order-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #0b1c11;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.order-contact-btn:hover {
  opacity: 0.9;
}

/* Summary Rows in Sidebar */
.order-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.order-summary-label {
  color: var(--ink-secondary);
}

.order-summary-val {
  color: var(--ink-primary);
  font-weight: 600;
  text-align: right;
}

.order-summary-total {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.96rem;
}

.order-summary-total .order-summary-val {
  color: #10b981;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Mobile Layout for Order Detail */
@media (max-width: 768px) {
  .order-detail-page-wrapper {
    padding: 14px 12px 48px;
    gap: 12px;
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .order-detail-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .order-prod-header-title {
    font-size: 0.96rem;
  }
}

/* ==========================================================================
   CHAT DE SOPORTE OFICIAL & REPORTE DE COMPRAS (DENUVO ECUADOR)
   (Sin transparencias pesadas / Alto rendimiento / Modo claro y oscuro)
   ========================================================================== */

/* Badges en Avatar y Menú */
.chat-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  background-color: #ef4444;
  color: #ffffff;
  margin-left: auto;
  line-height: 1;
}

.profile-unread-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ef4444;
  border: 1.5px solid var(--surface-card);
  z-index: 5;
}

/* Botón de Reportar en Detalle de Pedido */
.order-chat-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid #10b981;
  background-color: transparent;
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  margin-top: 8px;
  text-decoration: none;
}

.order-chat-report-btn:hover {
  background-color: #10b981;
  color: #ffffff;
}

[data-theme="dark"] .order-chat-report-btn {
  border-color: #10b981;
  color: #34d399;
}

[data-theme="dark"] .order-chat-report-btn:hover {
  background-color: #10b981;
  color: #0b0d14;
}

/* Shell & Wrapper Principal del Chat (Pantalla Completa 100% Adaptable) */
body.chat-active-page {
  overflow: hidden;
}

body.chat-active-page .site-footer {
  display: none !important;
}

body.chat-active-page .whatsapp-widget {
  display: none !important;
}

.chat-outer-wrapper {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: calc(100dvh - 58px);
  height: calc(100vh - 58px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.chat-auth-prompt-card {
  max-width: 480px;
  margin: 60px auto;
  padding: 36px 28px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.chat-auth-prompt-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--surface-subtle);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-auth-prompt-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
}

.chat-auth-prompt-card p {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Shell de Chat de Cliente (Sin recuadro, pantalla completa estilo WhatsApp) */
.chat-client-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-card);
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* Barra Superior del Chat */
.chat-top-bar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

.chat-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: var(--surface-subtle);
  color: var(--ink-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.chat-back-btn:hover {
  background-color: var(--surface-hover);
}

.chat-header-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.chat-header-avatar-circle.admin-avatar {
  background-color: #2563eb;
  color: #ffffff;
}

.chat-header-avatar-circle.customer {
  background-color: #6366f1;
  color: #ffffff;
}

.chat-header-avatar-circle.reseller {
  background-color: #f59e0b;
  color: #ffffff;
}

.chat-header-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
}

.chat-header-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-online-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #25d366;
  border: 2.5px solid var(--surface-card, #ffffff);
  z-index: 10;
  box-sizing: border-box;
}

[data-theme="dark"] .chat-online-badge {
  border-color: var(--surface-card, #151824);
}

.chat-online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #25d366;
  border: 2px solid var(--surface-card);
}

.chat-header-user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.chat-header-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-verified-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.chat-header-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-status {
  font-size: 0.76rem;
  color: #25d366;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

[data-theme="dark"] .chat-header-status {
  color: #8696a0;
}

.chat-header-sub-email {
  font-size: 0.74rem;
  color: var(--ink-secondary);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.chat-wa-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.chat-wa-direct-btn:hover {
  opacity: 0.9;
}

/* Barra de aviso oficial */
.chat-notice-bar {
  background-color: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 18px;
  font-size: 0.76rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Stream de Mensajes */
/* Stream de Mensajes (Fondo auténtico estilo WhatsApp) */
.chat-messages-stream {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: #0b141a;
}

:root:not([data-theme="dark"]) .chat-messages-stream {
  background-color: #efeae2;
}

.chat-stream-loading {
  text-align: center;
  color: var(--ink-secondary);
  font-size: 0.85rem;
  padding: 24px;
}

.chat-empty-greeting {
  text-align: center;
  margin: auto;
  padding: 30px 20px;
  max-width: 360px;
}

.chat-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.chat-empty-greeting h3 {
  font-size: 1.1rem;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.chat-empty-greeting p {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* Filas y Espaciado de Burbujas (Muy unidas por remitente, más separadas al cambiar) */
.chat-bubble-row {
  display: flex;
  width: 100%;
  margin-top: 2.5px;
}

.chat-bubble-row.sent {
  justify-content: flex-end;
}

.chat-bubble-row.received {
  justify-content: flex-start;
}

.chat-bubble-row.diff-sender {
  margin-top: 10px;
}

.chat-bubble-row:first-child {
  margin-top: 4px;
}

/* Burbujas de Chat - Sin ningún tipo de borde en tema claro ni oscuro */
.chat-bubble {
  max-width: 82%;
  min-width: 0;
  padding: 6px 9px 5px 9px;
  border-radius: 8px;
  border: none !important;
  display: inline-block;
  position: relative;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.38;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.chat-bubble::after {
  content: "";
  display: table;
  clear: both;
}

/* Burbuja Enviada (Sent) - Verde WhatsApp auténtico (#005c4b), CERO bordes */
.chat-bubble-row.sent .chat-bubble {
  background-color: #005c4b !important;
  color: #e9edef !important;
  border: none !important;
  border-radius: 8px;
}

/* Burbuja Recibida (Received) - Gris WhatsApp auténtico (#202c33), CERO bordes */
.chat-bubble-row.received .chat-bubble {
  background-color: #202c33 !important;
  color: #e9edef !important;
  border: none !important;
  border-radius: 8px;
}

/* Modo claro: ajuste fiel de WhatsApp sin bordes */
:root:not([data-theme="dark"]) .chat-bubble-row.sent .chat-bubble {
  background-color: #d9fdd3 !important;
  color: #111b21 !important;
  border: none !important;
}

:root:not([data-theme="dark"]) .chat-bubble-row.received .chat-bubble {
  background-color: #ffffff !important;
  color: #111b21 !important;
  border: none !important;
}

.chat-msg-text {
  display: inline;
  font-size: 0.92rem;
  line-height: 1.38;
}

/* Fotos en mensaje */
.chat-image-wrap {
  margin-bottom: 4px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
}

.chat-msg-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}

.chat-msg-image:hover {
  opacity: 0.92;
}

/* Meta: Hora y Doble Visto (Alineado a la derecha sin alargar el cuadro verticalmente) */
.chat-bubble-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  margin-top: 4px;
  position: relative;
  bottom: -2px;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.chat-bubble-meta.order-meta {
  float: none;
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.chat-bubble-row.sent .chat-bubble-meta {
  color: rgba(233, 237, 239, 0.65);
}

:root:not([data-theme="dark"]) .chat-bubble-row.sent .chat-bubble-meta {
  color: #667781;
}

.chat-bubble-row.received .chat-bubble-meta {
  color: rgba(233, 237, 239, 0.65);
}

:root:not([data-theme="dark"]) .chat-bubble-row.received .chat-bubble-meta {
  color: #667781;
}

.chat-bubble-checks {
  display: inline-flex;
  align-items: center;
  color: rgba(233, 237, 239, 0.55);
}

:root:not([data-theme="dark"]) .chat-bubble-checks {
  color: #8696a0;
}

.chat-bubble-checks.read {
  color: #53bdeb !important; /* Doble visto azul WhatsApp */
}

/* ==========================================================================
   CARD DE REPORTE DE ORDEN DE COMPRA (IDÉNTICO A LA CAPTURA DE EJEMPLO)
   ========================================================================== */
.chat-order-card {
  background-color: #071f1c !important;
  border: 1px solid #144941 !important;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 4px;
  min-width: 270px;
  max-width: 380px;
  color: #f1f5f9 !important;
}

.chat-order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-order-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.chat-order-code {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.chat-order-card-divider {
  height: 1px;
  background-color: #144941;
  margin: 9px 0 11px;
}

.chat-order-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-order-card-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background-color: #0b151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-order-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-order-card-details {
  flex: 1;
  min-width: 0;
}

.chat-order-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1.25;
  white-space: normal;
}

.chat-order-card-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.35;
}

.chat-order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-order-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.chat-order-status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #3b82f6;
  color: #60a5fa;
  background-color: rgba(59, 130, 246, 0.12);
}

.chat-order-status-pill.delivered {
  border-color: #10b981;
  color: #34d399;
  background-color: rgba(16, 185, 129, 0.12);
}

.chat-order-status-pill.rejected {
  border-color: #ef4444;
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.12);
}

.chat-order-view-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  margin-top: 8px;
  transition: opacity 0.15s ease;
}

.chat-order-view-link:hover {
  text-decoration: underline;
  opacity: 0.88;
}

/* Barra Inferior de Entrada (Input Bar) */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

.chat-attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.chat-attach-btn:hover {
  background-color: var(--surface-subtle);
  color: var(--ink-primary);
}

.chat-text-input {
  flex: 1;
  border: 1.5px solid var(--border-hairline);
  border-radius: 22px;
  padding: 10px 16px;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  resize: none;
  max-height: 120px;
  min-height: 40px;
  line-height: 1.4;
  box-sizing: border-box;
}

.chat-text-input:focus {
  border-color: #3b82f6;
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: #2563eb;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background-color: #1d4ed8;
  transform: scale(1.04);
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Vista previa de foto adjunta */
.chat-pending-photo-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: var(--surface-subtle);
  border-top: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

.chat-preview-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-preview-thumb-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-hairline);
}

.chat-preview-badge {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  font-weight: 500;
}

.chat-preview-remove-btn {
  border: none;
  background-color: transparent;
  color: #ef4444;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  padding: 4px 8px;
}

/* ==========================================================================
   PANEL ADMINISTRADOR (SPLIT VIEW & LISTA DE CONVERSACIONES)
   ========================================================================== */
.chat-admin-split {
  width: 100%;
  height: 100%;
  display: flex;
  background-color: var(--surface-card);
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.chat-sidebar {
  width: 340px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  background-color: var(--surface-card);
}

.chat-sidebar-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.chat-sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-sidebar-title-row h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
}

.chat-refresh-list-btn {
  border: none;
  background-color: var(--surface-subtle);
  color: var(--ink-secondary);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.chat-refresh-list-btn:hover {
  background-color: var(--surface-hover);
  color: var(--ink-primary);
}

.chat-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--ink-secondary);
}

.chat-search-input {
  flex: 1;
  border: none;
  background-color: transparent;
  color: var(--ink-primary);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
}

.chat-filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chat-tab-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background-color: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.chat-tab-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Lista de conversaciones */
.chat-conversations-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.chat-conv-item:hover {
  background-color: var(--surface-hover);
}

.chat-conv-item.active {
  background-color: var(--surface-subtle);
  border-left: 3px solid #2563eb;
}

.chat-conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-conv-avatar.customer {
  background-color: #6366f1;
  color: #ffffff;
}

.chat-conv-avatar.reseller {
  background-color: #f59e0b;
  color: #ffffff;
}

.chat-conv-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-conv-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-conv-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-time {
  font-size: 0.7rem;
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

.chat-conv-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.chat-conv-snippet {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chat-conv-badge {
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.chat-conv-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.chat-conv-role-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.chat-conv-role-tag.customer {
  background-color: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.chat-conv-role-tag.reseller {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.chat-conv-email {
  font-size: 0.7rem;
  color: var(--ink-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--ink-secondary);
  font-size: 0.82rem;
}

/* Panel Principal de Chat Admin */
.chat-main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-card);
  min-width: 0;
}

.chat-main-placeholder {
  margin: auto;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-tertiary);
  max-width: 320px;
}

.chat-main-placeholder h3 {
  font-size: 1.1rem;
  color: var(--ink-primary);
  margin: 12px 0 6px;
}

.chat-main-placeholder p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.admin-mobile-back {
  display: none;
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL (PANTALLA COMPLETA & INTERCAMBIO DE VISTAS)
   ========================================================================== */
@media (max-width: 768px) {
  .chat-outer-wrapper {
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: calc(100dvh - 50px);
    height: calc(100vh - 50px);
    min-height: 0;
  }

  .chat-client-shell,
  .chat-admin-split {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .admin-mobile-back {
    display: inline-flex;
  }

  .chat-admin-split.show-list .chat-main-panel {
    display: none;
  }

  .chat-admin-split.show-chat .chat-sidebar {
    display: none;
  }

  .chat-sidebar {
    width: 100%;
    border-right: none;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .chat-order-card {
    min-width: 220px;
    max-width: 100%;
  }
}

/* Imágenes circulares en avatares de chat y perfil */
.chat-header-avatar-circle img,
.profile-avatar-badge img,
.profile-avatar-circle img,
.chat-conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}






