/* ==============================================================================
   Doller Store - Premium Digital Marketplace CSS
   Modern Dark/Light Theme with Obsidian & Electric Indigo/Cyan Accents
   ============================================================================== */

:root,
[data-theme="dark"] {
  --bg-base: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #151d30;
  --bg-card-hover: #1c2740;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --border-color: #1f2d47;
  --border-glow: rgba(99, 102, 241, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --binance-gold: #f0b90b;
  --binance-gold-glow: rgba(240, 185, 11, 0.25);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;
  --border-glow: rgba(79, 70, 229, 0.2);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.2);
  
  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.15);
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  
  --binance-gold: #d99e05;
  --binance-gold-glow: rgba(217, 158, 5, 0.2);

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* ==============================================================================
   Base Reset & Typography
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 72px; /* space for mobile bottom nav on small screens */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==============================================================================
   Header & Navigation
   ============================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 101;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-img {
  height: 38px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

/* Dynamic theme logo visibility */
[data-theme="dark"] .logo-light-theme {
  display: none !important;
}

[data-theme="dark"] .logo-dark-theme {
  display: block !important;
}

[data-theme="light"] .logo-dark-theme {
  display: none !important;
}

[data-theme="light"] .logo-light-theme {
  display: block !important;
}

.brand-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-text span {
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-box-header {
  display: none;
  flex: 1;
  max-width: 440px;
  position: relative;
}

@media (min-width: 900px) {
  .search-box-header {
    display: block;
  }
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .nav-link {
    display: flex;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn {
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

/* 1. Circular Icon Theme Buttons */
.icon-btn.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-btn.theme-toggle-btn .theme-icon-sun,
.icon-btn.theme-toggle-btn .theme-icon-moon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.icon-btn.theme-toggle-btn svg {
  display: block !important;
  margin: 0 auto !important;
  line-height: 0 !important;
  vertical-align: middle !important;
  transition: transform 0.4s ease;
}

.icon-btn.theme-toggle-btn:hover svg {
  transform: rotate(30deg);
}

/* 2. Block & Drawer Theme Toggle Buttons with text */
.btn.theme-toggle-btn,
.btn-theme-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  padding: 0.65rem 0.95rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  box-sizing: border-box !important;
}

.btn.theme-toggle-btn:hover,
.btn-theme-toggle:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.btn.theme-toggle-btn .theme-icon-sun,
.btn.theme-toggle-btn .theme-icon-moon,
.btn-theme-toggle .theme-icon-sun,
.btn-theme-toggle .theme-icon-moon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  line-height: 1.4 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.btn.theme-toggle-btn svg,
.btn-theme-toggle svg {
  display: inline-block !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  transition: transform 0.3s ease;
}

.btn.theme-toggle-btn:hover svg,
.btn-theme-toggle:hover svg {
  transform: rotate(25deg);
}

/* 3. Theme Display State Rules */
[data-theme="dark"] .icon-btn.theme-toggle-btn .theme-icon-sun {
  display: flex !important;
}
[data-theme="dark"] .icon-btn.theme-toggle-btn .theme-icon-moon {
  display: none !important;
}
[data-theme="light"] .icon-btn.theme-toggle-btn .theme-icon-sun {
  display: none !important;
}
[data-theme="light"] .icon-btn.theme-toggle-btn .theme-icon-moon {
  display: flex !important;
}

[data-theme="dark"] .btn.theme-toggle-btn .theme-icon-sun,
[data-theme="dark"] .btn-theme-toggle .theme-icon-sun {
  display: inline-flex !important;
}
[data-theme="dark"] .btn.theme-toggle-btn .theme-icon-moon,
[data-theme="dark"] .btn-theme-toggle .theme-icon-moon {
  display: none !important;
}
[data-theme="light"] .btn.theme-toggle-btn .theme-icon-sun,
[data-theme="light"] .btn-theme-toggle .theme-icon-sun {
  display: none !important;
}
[data-theme="light"] .btn.theme-toggle-btn .theme-icon-moon,
[data-theme="light"] .btn-theme-toggle .theme-icon-moon {
  display: inline-flex !important;
}

[data-theme="dark"] .bottom-nav-item.theme-toggle-btn .theme-icon-sun {
  display: flex !important;
}
[data-theme="dark"] .bottom-nav-item.theme-toggle-btn .theme-icon-moon {
  display: none !important;
}
[data-theme="light"] .bottom-nav-item.theme-toggle-btn .theme-icon-sun {
  display: none !important;
}
[data-theme="light"] .bottom-nav-item.theme-toggle-btn .theme-icon-moon {
  display: flex !important;
}

/* ==============================================================================
   Mobile Bottom Navigation Bar
   ============================================================================== */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 99;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  gap: 3px;
  flex: 1;
  padding: 6px 0;
  transition: var(--transition);
}

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

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==============================================================================
   Buttons
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.btn-binance {
  background: #f0b90b;
  color: #1e2026;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--binance-gold-glow);
}

.btn-binance:hover {
  background: #f8d33a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--binance-gold-glow);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

/* ==============================================================================
   Trust / Stats Bar
   ============================================================================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

@media (min-width: 900px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.trust-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon.cyan { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); }
.trust-icon.indigo { background: rgba(99, 102, 241, 0.12); color: var(--primary); }
.trust-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.trust-icon.gold { background: rgba(240, 185, 11, 0.12); color: var(--binance-gold); }

.trust-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==============================================================================
   Category Pills & Grid
   ============================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.section-title svg {
  color: var(--primary);
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.section-link:hover {
  text-decoration: underline;
}

.category-scroll-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==============================================================================
   Product Cards & Grid
   ============================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.25);
}

.product-card-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Stretched-link: makes the entire product-card box clickable */
.product-card-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.product-card:hover .product-card-link {
  color: var(--primary);
}

.product-thumb-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #060911;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  text-align: center;
}

.product-thumb {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  pointer-events: none;
}

.product-badge.best-deal {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
}

.product-badge.popular {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.product-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-pricing {
  display: flex;
  flex-direction: column;
}

.product-current-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-old-price {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-buy-instant {
  position: relative;
  z-index: 3;
  background: var(--primary);
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-buy-instant:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ==============================================================================
   Product Detail Page
   ============================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.product-media-column {
  position: static;
}

@media (min-width: 860px) {
  .product-detail-layout {
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    align-items: flex-start;
  }

  .product-media-column {
    position: -webkit-sticky;
    position: sticky;
    top: 84px;
    align-self: flex-start;
    z-index: 10;
  }
}

@media (min-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 460px 1fr;
    gap: 3rem;
  }
}

.product-media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-meta-section h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.product-meta-price-box {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
}

.detail-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.detail-old-price {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.variant-picker {
  margin: 1.5rem 0;
}

.variant-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.variant-picker-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.variant-count-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* 2-Column Grid Box for Product Variations */
.variant-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .variant-grid-2col {
    gap: 0.5rem;
  }
}

.variant-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  min-height: 108px;
}

.variant-box:hover:not(.box-out-of-stock) {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.variant-box.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.05) 100%);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 14px rgba(99, 102, 241, 0.22);
}

.variant-box.box-out-of-stock {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}

.variant-box-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.variant-box-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-box-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card);
  transition: all 0.2s ease;
  margin-top: 1px;
}

.variant-box-check svg {
  display: none;
  stroke: #ffffff;
  stroke-width: 3;
}

.variant-box.active .variant-box-check {
  border-color: var(--primary);
  background: var(--primary);
}

.variant-box.active .variant-box-check svg {
  display: block;
}

.variant-box-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.15rem 0;
}

.variant-box-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.variant-box.active .variant-box-price {
  color: var(--primary);
}

.variant-box-old-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.variant-box-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-color);
  margin-top: auto;
}

.variant-box-stock {
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.variant-box-stock.stock-in {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.variant-box-stock.stock-auto {
  color: var(--binance-gold);
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.25);
}

.variant-box-stock.stock-out {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.stock-dot.dot-green {
  background: var(--success);
  box-shadow: 0 0 5px var(--success);
}

.stock-dot.dot-red {
  background: var(--danger);
}

.variant-box-req-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

/* Fallback for legacy pill styles */
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.variant-pill {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.variant-pill.active, .variant-pill:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.features-list {
  list-style: none;
  margin: 1.5rem 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.features-list li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.product-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.trust-badge-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-product-buy {
  flex: 2;
  min-width: 220px;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn-product-ask {
  flex: 1;
  min-width: 160px;
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ==============================================================================
   One Unified Product Details Box (2 Sections: 30% Benefits / 70% Description)
   ============================================================================== */
.product-unified-box,
.product-full-details-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .product-unified-box.split-30-70,
  .product-full-details-container.split-30-70 {
    display: grid;
    grid-template-columns: 3fr 7fr; /* 30% Left Benefits : 70% Right Description */
    align-items: stretch;
    gap: 0;
  }
}

.unified-box-section,
.product-detail-box {
  padding: 1.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 900px) {
  .unified-box-section.section-benefits,
  .product-detail-box.product-features-side {
    padding: 2.25rem 2rem;
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    background: rgba(17, 24, 39, 0.25);
  }

  [data-theme="light"] .unified-box-section.section-benefits,
  [data-theme="light"] .product-detail-box.product-features-side {
    background: rgba(241, 245, 249, 0.45);
  }

  .unified-box-section.section-description,
  .product-detail-box.product-description-side {
    padding: 2.25rem 2.5rem;
  }
}

@media (max-width: 899px) {
  .unified-box-section.section-benefits,
  .product-detail-box.product-features-side {
    border-bottom: 1px solid var(--border-color);
    border-right: none;
    padding: 1.5rem 1.25rem;
  }

  .unified-box-section.section-description,
  .product-detail-box.product-description-side {
    padding: 1.5rem 1.25rem;
  }
}

.product-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.product-box-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-box-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.product-box-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.features-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-item-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  transition: var(--transition);
}

.feature-item-row:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.feature-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.product-description-prose {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.96rem;
  white-space: pre-line;
  word-break: break-word;
}

/* ==============================================================================
   Checkout & Binance Payment Portal
   ============================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr 420px;
  }
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.925rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.payment-method-card {
  border: 2px solid var(--binance-gold);
  background: rgba(240, 185, 11, 0.05);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 1rem;
}

.payment-method-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.binance-pay-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 500px;
  margin: 2rem auto;
}

.qr-wrapper {
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.qr-wrapper img {
  width: 220px;
  height: 220px;
}

/* ==============================================================================
   Order Status Tracker
   ============================================================================== */
.order-tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 720px;
  margin: 2.5rem auto;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2.5rem 0 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 80px;
}

.step-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.timeline-step.completed .step-node {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.timeline-step.current .step-node {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.step-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step.completed .step-title,
.timeline-step.current .step-title {
  color: var(--text-primary);
}

.license-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed var(--success);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  position: relative;
}

.license-code {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--success);
  word-break: break-all;
  font-weight: 700;
}

/* ==============================================================================
   Admin Dashboard Styles
/* ==============================================================================
   Admin Dashboard & Mobile Responsive Styles
   ============================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.925rem;
  margin-bottom: 0.35rem;
  transition: var(--transition);
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: var(--primary);
  color: #ffffff;
}

.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-width: 0; /* Prevents overflow with tables/grids */
}

/* Mobile Header, Drawer & Quick Pill Nav Elements (Hidden on Desktop) */
.admin-mobile-header {
  display: none;
}

.admin-mobile-drawer {
  display: none;
}

.admin-drawer-overlay {
  display: none;
}

.admin-quick-scroll-nav {
  display: none;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th, .table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Category Layout Helper */
.admin-category-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ==============================================================================
   Admin Responsive Breakpoint (Tablet & Phone <= 900px)
   ============================================================================== */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
    min-height: 100vh;
  }

  .admin-sidebar {
    display: none !important;
  }

  /* Sticky Top Bar on Mobile */
  .admin-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: -1rem -1rem 0 -1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  /* Off-Canvas Sliding Drawer */
  .admin-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .admin-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 1.25rem;
  }

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

  .admin-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
  }

  .admin-drawer-profile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
  }

  .admin-drawer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .admin-drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
  }

  .admin-main {
    padding: 1rem 1rem 3rem;
  }

  /* Horizontal Quick Nav Pills */
  .admin-quick-scroll-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.25rem !important;
    margin-bottom: 1.35rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.5rem !important;
    scrollbar-width: none;
  }

  .admin-quick-scroll-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
  }

  .admin-quick-pill:hover,
  .admin-quick-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
  }

  .admin-category-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ==============================================================================
   Admin Smaller Screen Phone Optimization (<= 600px)
   ============================================================================== */
@media (max-width: 600px) {
  .admin-mobile-header {
    margin: -0.75rem -0.75rem 0 -0.75rem;
    height: 52px;
    padding: 0 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  }

  .admin-quick-scroll-nav {
    margin-top: 1.15rem !important;
    margin-bottom: 1.25rem !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.45rem !important;
    gap: 0.45rem !important;
  }

  .admin-main {
    padding: 0.75rem 0.75rem 2.5rem;
  }

  .form-card {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
  }

  /* Automatically collapse any multi-column form grids inside admin-main */
  .admin-main form [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Stats 2x2 Grid on Phone */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .stat-card {
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-md);
  }

  .stat-card .stat-value {
    font-size: 1.25rem;
  }

  .stat-card > div:last-child {
    width: 36px !important;
    height: 36px !important;
  }

  .stat-card > div:last-child svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Page headers & titles */
  .admin-main h1 {
    font-size: 1.35rem !important;
  }

  /* Compact touch-friendly tables on phones */
  .table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
  }

  .table th, .table td {
    padding: 0.6rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .table th {
    font-size: 0.68rem;
  }

  /* Compact button strips on phones */
  .admin-main form[method="GET"] {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-main form[method="GET"] input[type="text"] {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .admin-main .btn {
    font-size: 0.825rem;
  }

  /* Variant card adjustments on phone */
  .variant-card {
    padding: 0.85rem 0.75rem !important;
  }

  .variant-card-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-toggle-autodeliv {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
  }

  .req-toggles-container {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .btn-toggle-req {
    width: 100% !important;
    justify-content: center;
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
  }

  .image-upload-wrapper {
    padding: 1rem 0.75rem !important;
  }

  .image-upload-preview {
    width: 90px !important;
    height: 90px !important;
    margin-bottom: 0.65rem !important;
  }

  /* Modals on Phone */
  .modal-backdrop {
    padding: 0.5rem !important;
  }

  .modal-backdrop .form-card {
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.1rem 0.85rem !important;
  }

  .btn-save-product,
  .btn-save-settings {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 360px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Image Upload Component */
.image-upload-wrapper {
  background: var(--bg-surface);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  cursor: pointer;
}
.image-upload-wrapper:hover, .image-upload-wrapper.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}
.image-upload-preview {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 1px solid var(--border-color);
  background: #060911;
}

/* Variant Cards in Admin */
.variant-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  transition: border-color 0.2s ease;
}
.variant-card.default-variant {
  border-color: var(--primary);
}
.variant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Dynamic Requirement Toggle Buttons */
.req-toggles-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.btn-toggle-req {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.btn-toggle-req:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.btn-toggle-req.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--success);
  color: var(--success);
}
.btn-toggle-autodeliv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.btn-toggle-autodeliv.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Checkout Variant Selector */
.checkout-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.checkout-variant-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkout-variant-btn:hover {
  border-color: var(--primary);
}
.checkout-variant-btn.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 1px var(--primary);
}

/* ==============================================================================
   Footer
   ============================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==============================================================================
   Badges, Modals, Alerts & Utilities
   ============================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-primary { background: rgba(99, 102, 241, 0.15); color: var(--primary); }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid var(--success); color: var(--success); }
.alert-danger { background: rgba(239, 68, 68, 0.12); border: 1px solid var(--danger); color: var(--danger); }
.alert-warning { background: rgba(245, 158, 11, 0.12); border: 1px solid var(--warning); color: var(--warning); }
.alert-info { background: rgba(6, 182, 212, 0.12); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); }

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==============================================================================
   Mobile Drawer & Navigation Overlay
   ============================================================================== */
.mobile-menu-btn {
  display: flex;
}

@media (min-width: 900px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 320px);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.drawer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.drawer-link:hover, .drawer-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

/* ==============================================================================
   UI Optimization for Smaller Phones (< 480px)
   ============================================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .announcement-bar {
    font-size: 0.725rem;
    padding: 4px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-wrapper {
    height: 58px;
    gap: 0.5rem;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .brand-img {
    height: 32px;
    max-width: 155px;
  }

  .brand-badge {
    width: 32px;
    height: 32px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  /* Hero adjustments */
  .hero {
    padding: 1.75rem 0 1.25rem;
  }

  .hero-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.85rem;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
  }

  /* Trust Highlights Grid */
  .trust-bar {
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
  }

  .trust-item {
    padding: 0.65rem 0.5rem;
    gap: 0.5rem;
  }

  .trust-icon {
    width: 34px;
    height: 34px;
  }

  .trust-icon svg {
    width: 18px;
    height: 18px;
  }

  .trust-text h4 {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .trust-text p {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .section-title svg {
    width: 20px;
    height: 20px;
  }

  /* Category pills */
  .category-scroll-container {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
  }

  .category-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Product Cards & Grid on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 2.5rem;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-thumb-wrapper {
    aspect-ratio: 1 / 1;
    padding: 0;
    background: #080c14;
    overflow: hidden;
    display: block;
    width: 100%;
    text-align: center;
  }

  .product-thumb {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .product-badge {
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .product-content {
    padding: 0.65rem 0.6rem 0.6rem;
  }

  .product-category-name {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }

  .product-name {
    font-size: 0.825rem;
    line-height: 1.25;
    min-height: 2.1em;
    margin-bottom: 0.35rem;
  }

  .product-tagline {
    display: none; /* Hide tagline on compact phones for cleaner symmetry */
  }

  .product-footer {
    padding-top: 0.45rem;
    gap: 0.35rem;
  }

  .product-current-price {
    font-size: 0.95rem;
  }

  .product-old-price {
    font-size: 0.7rem;
  }

  .btn-buy-instant {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 6px;
  }

  .btn-buy-instant svg {
    width: 12px;
    height: 12px;
  }

  /* Product Detail Page */
  .product-detail-layout {
    padding: 1.25rem 0;
    gap: 1.5rem;
  }

  .product-media-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  .product-media-card img {
    max-height: 190px;
  }

  .product-meta-section h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .product-meta-price-box {
    padding: 0.85rem 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .detail-price {
    font-size: 1.5rem;
  }

  .detail-old-price {
    font-size: 0.95rem;
  }

  .variant-options {
    gap: 0.5rem;
  }

  .variant-pill {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  .product-trust-badges {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .trust-badge-item {
    padding: 0.75rem;
  }

  .product-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .btn-product-buy {
    width: 100%;
    min-width: 0;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    justify-content: center;
  }

  .btn-product-ask {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    justify-content: center;
  }

  /* Checkout Form */
  .checkout-grid {
    padding: 1.25rem 0;
    gap: 1.5rem;
  }

  .form-card {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 0.65rem 0.85rem;
  }

  .payment-method-card {
    padding: 0.85rem;
  }

  .payment-method-info {
    gap: 0.65rem;
  }

  .payment-method-info svg {
    width: 24px;
    height: 24px;
  }

  /* Binance Checkout Box */
  .binance-pay-box {
    padding: 1.75rem 0.85rem;
    margin: 1rem auto;
  }

  .qr-wrapper img {
    width: 170px;
    height: 170px;
  }

  /* Order Tracker */
  .order-tracker-card {
    padding: 1.25rem 0.85rem;
  }

  .timeline {
    margin: 1.5rem 0 1.25rem;
  }

  .timeline::before {
    left: 20px;
    right: 20px;
    top: 15px;
  }

  .timeline-step {
    width: 65px;
  }

  .step-node {
    width: 30px;
    height: 30px;
  }

  .step-node svg {
    width: 14px;
    height: 14px;
  }

  .step-title {
    font-size: 0.68rem;
  }

  /* Mobile Bottom Navigation Bar Safe Area */
  .bottom-nav {
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Mobile Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }
}

/* Medium-small phones (<= 420px) */
@media (max-width: 420px) {
  .trust-bar {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* Extra small devices (e.g. iPhone SE / small folds <= 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .product-thumb-wrapper {
    aspect-ratio: 1 / 1;
    padding: 0;
  }
  .product-tagline {
    display: -webkit-box;
  }
  .trust-bar {
    grid-template-columns: 1fr;
  }
  .nav-actions {
    gap: 0.25rem;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }
  .brand-text {
    font-size: 1.05rem;
  }
  .brand-badge {
    width: 28px;
    height: 28px;
  }
}

/* ==============================================================================
   Admin Drag-and-Drop Product Ordering & Section Badges
   ============================================================================== */
.draggable-product-row {
  cursor: default;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.draggable-product-row.is-dragging {
  opacity: 0.35;
  background: rgba(99, 102, 241, 0.12) !important;
  outline: 2px dashed var(--primary);
}
.drag-handle-cell {
  cursor: grab !important;
  user-select: none;
  touch-action: none;
  transition: color 0.15s ease;
}
.drag-handle-cell:active {
  cursor: grabbing !important;
}
.drag-handle-cell:hover {
  color: var(--primary) !important;
}

.btn-quick-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.btn-quick-badge:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.btn-quick-badge.flash.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.btn-quick-badge.best.active {
  background: rgba(240, 185, 11, 0.15);
  color: var(--binance-gold);
  border-color: rgba(240, 185, 11, 0.5);
}

.admin-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #030712;
  border: 1px solid var(--success);
  color: #F8FAFC;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  animation: slideToastIn 0.3s ease;
}
@keyframes slideToastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==============================================================================
   Admin User & Customer Management Styles
   ============================================================================== */
.user-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.status-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}
.status-dot-indicator.active {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.status-dot-indicator.suspended {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}

.badge-order-completed {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.badge-created-via {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-created-via.auto {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.badge-created-via.manual {
  background: rgba(240, 185, 11, 0.12);
  color: var(--binance-gold);
  border: 1px solid rgba(240, 185, 11, 0.25);
}

.user-quick-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: var(--transition);
}
.user-quick-contact:hover {
  color: var(--primary);
}

/* ==============================================================================
   PWA Android Install Modal & Bottom Sheet
   ============================================================================== */
.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.pwa-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.pwa-install-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-card, #151A23);
  border: 1px solid var(--border-color, #232936);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pwa-install-modal.active {
  transform: translate(-50%, 0);
}

.pwa-drag-handle {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 0 auto 1.25rem;
}

.pwa-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--text-secondary, #94A3B8);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pwa-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pwa-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pwa-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
  background: #0B0E14;
}

.pwa-app-meta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #FFFFFF);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pwa-app-meta p {
  font-size: 0.82rem;
  color: var(--text-secondary, #94A3B8);
  margin: 0 0 0.35rem;
}

.pwa-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 100px;
}

.pwa-benefits-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color, #232936);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pwa-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-primary, #FFFFFF);
}

.pwa-benefit-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary, #4F46E5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pwa-btn-install {
  width: 100%;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.pwa-btn-install:active {
  transform: scale(0.98);
}

.pwa-btn-dismiss {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary, #94A3B8);
  padding: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
}

.pwa-btn-dismiss:hover {
  color: var(--text-primary, #FFFFFF);
}

.pwa-fallback-tip {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.25);
  border-radius: 10px;
  color: var(--binance-gold, #F0B90B);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .pwa-install-modal {
    bottom: 2rem;
    left: 2rem;
    transform: translateY(120%);
    border-radius: 20px;
    border-bottom: 1px solid var(--border-color, #232936);
    max-width: 400px;
  }
  .pwa-install-modal.active {
    transform: translateY(0);
  }
}

