@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* ==========================================================================
   GETVIRTU (getvirtu.shop) - WINDOWS 11 & IOS 18 CLEAN WHITE & BLUE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Surfaces & Backgrounds */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-glass: rgba(255, 255, 255, 0.88);
  --bg-input: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-highlight: #eff6ff;

  /* Borders */
  --border-subtle: #e2e8f0;
  --border-active: #3b82f6;
  --border-focus: #2563eb;
  --border-light: rgba(226, 232, 240, 0.8);

  /* Primary Blue Palette (iOS 18 / Windows 11 Sapphire) */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.18);

  /* Accents */
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --cyan-400: #22d3ee;
  --rose-500: #ef4444;
  --rose-600: #dc2626;

  /* Typography / Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows (Soft, Refined Windows 11 & iOS 18 style) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 12px 32px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.15);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-normal: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(224, 231, 255, 0.35) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(241, 245, 249, 0.6) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Inputs & Form Controls */
input, select, textarea, button {
  font-family: inherit;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: var(--transition-normal);
}

.hidden {
  display: none !important;
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, #0f172a 20%, #2563eb 80%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--gold-600); }
.text-green { color: var(--emerald-600); }
.text-muted { color: var(--text-secondary); }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== NAVIGATION (FROSTED GLASS / ACRYLIC) ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.03);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition-normal);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* ==================== NAVIGATION CONNECTÉE ÉPURÉE & HORIZONTALE ==================== */
.nav-links-connected {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tab-connected {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  padding: 0 14px;
  border-radius: var(--radius-full);
  height: 36px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  line-height: 1.25;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-tab-connected .nav-tab-icon {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-tab-connected .nav-tab-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-tab-connected:hover {
  color: var(--primary-600);
  background: rgba(239, 246, 255, 0.7);
  border-color: rgba(191, 219, 254, 0.5);
}

.nav-tab-connected.active {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.nav-tab-connected.active .nav-tab-label {
  color: #2563eb;
  font-weight: 700;
}

/* Onglet Espace Admin dans la barre centrale */
.nav-tab-connected.nav-tab-admin {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

.nav-tab-connected.nav-tab-admin:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==================== SOLDE & PROFIL UTILISATEUR ==================== */
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0 12px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  white-space: nowrap !important;
}

.balance-label {
  white-space: nowrap !important;
  font-size: 12.5px;
  font-weight: 600;
  color: #3b82f6;
}

.balance-amount {
  font-weight: 800;
  color: #1d4ed8;
  white-space: nowrap !important;
}

.btn-add-balance {
  background: var(--primary-600);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  border: none;
}

.btn-add-balance:hover {
  background: var(--primary-700);
  transform: scale(1.1);
}

.user-profile-wrapper {
  position: relative;
  overflow: visible !important;
}

.btn-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0 14px 0 6px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  white-space: nowrap !important;
}

.btn-user-profile:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.user-profile-name {
  white-space: nowrap !important;
  font-size: 13px;
  font-weight: 600;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  min-width: 230px;
  max-width: min(280px, calc(100vw - 20px));
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.05);
  padding: 8px;
  z-index: 99999 !important;
  animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-menu.active {
  display: flex !important;
  flex-direction: column !important;
}

.dropdown-user-header {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: left;
  transition: var(--transition-normal);
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.dropdown-item.danger {
  color: var(--rose-600);
}

.dropdown-item.danger:hover {
  background: #fef2f2;
}

/* Badges & Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.06);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-600);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-500);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Buttons (iOS 18 / Windows 11 Fluent) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  text-decoration: none;
  border: none;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

.google-auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.google-signin-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-google {
  width: 100%;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d1d5db;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.divider-auth {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.divider-auth::before, .divider-auth::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.divider-auth span {
  padding: 0 12px;
  text-transform: uppercase;
}

/* ==================== HERO & LANDING ==================== */
.hero-section {
  padding: 135px 0 65px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 16px 0;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-actions .hero-btn {
  padding: 9px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  min-height: 40px !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.16) !important;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-actions .hero-btn:hover {
  transform: translateY(-1px);
}


.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Showcase Card */
.showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow-card-hover);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-badge {
  background: #ecfdf5;
  color: var(--emerald-600);
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.showcase-preview-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.showcase-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: var(--transition-normal);
}

.showcase-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.showcase-item:last-child {
  margin-bottom: 0;
}

.showcase-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #eff6ff;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.showcase-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-stock-badge {
  font-size: 11px;
  color: var(--emerald-600);
  font-weight: 600;
}

.showcase-stock-badge.oos {
  color: var(--rose-600);
}

.showcase-pricing-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.showcase-price-box {
  text-align: right;
}

.showcase-price-val {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary-600);
  font-size: 13.5px;
  display: block;
}

.showcase-price-sub {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.showcase-buy-btn {
  background: var(--primary-600);
  color: #ffffff;
  border: 1px solid var(--primary-600);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.showcase-buy-btn:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.showcase-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: #94a3b8;
  border-color: #94a3b8;
}

/* ==================== BALANCE CHECK CARDS & INSTRUCTIONS ==================== */
.balance-check-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.balance-check-card.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.balance-check-card.warning {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.balance-check-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald-600);
  margin-bottom: 10px;
}

.status-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.balance-comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 8px 0;
}

.balance-sub-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.balance-val-highlight {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.method-instructions-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
  color: #1e40af;
}

.network-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
}

/* ==================== DIRECT CATALOG VIEW (CONNECTED) ==================== */
.direct-catalog-wrapper {
  padding-top: 96px;
  padding-bottom: 60px;
  min-height: 80vh;
}

.catalog-welcome-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

/* ==================== SEARCH BAR WITH ANIMATED ICON ==================== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cat-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
  border-color: #cbd5e1;
  color: var(--text-primary);
  background: #f8fafc;
}

.cat-pill.active {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.search-input-wrapper {
  position: relative;
  width: 270px;
  transition: var(--transition-normal);
}

.search-input-wrapper:focus-within {
  width: 300px;
}

.search-input-wrapper input {
  padding-left: 38px;
  padding-top: 9px;
  padding-bottom: 9px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.search-input-wrapper input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon-symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  pointer-events: auto;
  font-size: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.search-input-wrapper:focus-within .search-icon-symbol {
  transform: translateY(-50%) scale(1.18) rotate(-8deg);
  color: var(--primary-600);
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-card-hover);
}

.product-card.oos {
  opacity: 0.65;
}

.product-image-box {
  width: 100%;
  height: 155px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #a7f3d0;
  color: var(--emerald-600);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.product-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-label {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--primary-600);
  margin-bottom: 4px;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  flex: 1;
}

.product-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stock-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-600);
}

.stock-tag.oos { color: var(--rose-600); }

.product-price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-600);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: -0.2px;
}

.showcase-price-box {
  display: flex;
  align-items: center;
}

.showcase-price-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-600);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: -0.2px;
}

.btn-buy-product {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: var(--transition-normal);
}

.btn-buy-product:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-buy-product:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==================== METRICS ==================== */
.metrics-section {
  padding: 30px 0 50px;
}

.metrics-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.metric-box {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  padding-right: 16px;
}

.metric-box:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-600);
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

/* ==================== BENTO ==================== */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 38px;
}

.section-tag {
  color: var(--primary-600);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: inline-block;
  background: var(--primary-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.section-heading {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-top: 8px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-card-hover);
}

.bento-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 60%, #f0f7ff 100%);
  border-color: #bfdbfe;
}

.bento-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--primary-600);
}

.bento-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.bento-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== HOW IT WORKS (COMMENT ÇA MARCHE) ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-card-hover);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary-600);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.step-title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==================== REVIEWS (AVIS CLIENTS) ==================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-card-hover);
}

.review-stars {
  color: var(--gold-500);
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary-600);
  flex-shrink: 0;
}

/* ==================== FAQ ACCORDION ==================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.active {
  border-color: var(--primary-500);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  gap: 14px;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-600);
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==================== MODALS (WINDOWS 11 / IOS 18 FROSTED SHEETS) ==================== */
.modal-backdrop, .auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active, .auth-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.modal-window, .auth-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  max-width: 480px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.modal-close-btn, .auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-normal);
}

.modal-close-btn:hover, .auth-close:hover {
  color: var(--text-primary);
  background: #e2e8f0;
}

.modal-title {
  color: var(--text-primary);
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  transition: var(--transition-normal);
}

.auth-tab.active {
  background: #ffffff;
  color: var(--primary-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}

.error-text {
  color: var(--rose-600);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

/* Pay Summary Box */
.pay-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.pay-copy-group {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.pay-copy-group input {
  font-family: monospace;
  font-size: 12px;
  padding: 9px 12px;
  background: #ffffff;
}

.btn-copy-address {
  background: var(--primary-600);
  color: #ffffff;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-copy-address:hover { background: var(--primary-700); }

.pay-instructions {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
}

/* Payment Method Tabs & Selector (Ultra Compact & Élégant) */
.payment-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.payment-method-tab {
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 4px;
  min-height: 38px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.payment-method-tab .pm-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.payment-method-tab .pm-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.payment-method-tab:hover {
  background: #f1f5f9;
}

.payment-method-tab.active {
  background: #eff6ff;
  border-color: var(--primary-600);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

.payment-method-tab.active .pm-title {
  color: var(--primary-600);
}

.payment-method-tab.active .pm-subtitle {
  color: var(--primary-600);
  opacity: 0.85;
}

/* ==================== FENÊTRE DE RECHARGE COMPACTE SANS SCROLLBAR ==================== */
#modal-deposit.modal-backdrop {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100vw !important;
  box-sizing: border-box !important;
}

.modal-deposit-compact {
  max-width: 470px !important;
  width: 95% !important;
  margin: auto !important;
  padding: 18px 22px !important;
  max-height: calc(100vh - 40px) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
}

.modal-deposit-compact::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.modal-deposit-compact .deposit-title {
  font-size: 17px !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
}

.modal-deposit-compact .deposit-subtitle {
  font-size: 11.5px !important;
  color: var(--text-secondary) !important;
  margin-bottom: 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
}

.modal-deposit-compact .deposit-field-amount {
  margin-bottom: 6px !important;
}

.modal-deposit-compact .deposit-amount-clean-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

.modal-deposit-compact #deposit-amount-input {
  height: 34px !important;
  font-size: 13.5px !important;
  padding: 4px 10px !important;
}

.modal-deposit-compact .deposit-field-methods {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
  margin-bottom: 6px !important;
}

.deposit-methods-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 4px !important;
  width: 100% !important;
}

.deposit-methods-header-row .deposit-label {
  margin-bottom: 0 !important;
}

.pm-scroll-nav-btns {
  display: none;
  align-items: center;
  gap: 4px;
}

.pm-scroll-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
}

.pm-scroll-nav-btn:hover {
  background: #eff6ff;
  border-color: var(--primary-600);
  color: var(--primary-600);
}

.modal-deposit-compact .deposit-label {
  font-weight: 700 !important;
  font-size: 11.5px !important;
  margin-bottom: 3px !important;
  display: block !important;
  color: var(--text-primary) !important;
}

/* Grille normale pour <= 4 méthodes : 2 colonnes x 2 rangées conformes à la capture 1 */
.modal-deposit-compact .payment-method-tabs,
.payment-method-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Conteneur scrollable horizontalement pour > 4 méthodes */
.modal-deposit-compact .payment-method-tabs.scrollable,
.payment-method-tabs.scrollable {
  display: grid !important;
  grid-template-rows: repeat(2, minmax(36px, auto)) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: calc((100% - 10px) / 2.15) !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x proximity !important;
  overscroll-behavior-x: contain !important;
  padding-bottom: 5px !important;
  margin-bottom: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
  cursor: grab;
}

.modal-deposit-compact .payment-method-tabs.scrollable:active {
  cursor: grabbing;
}

.modal-deposit-compact .payment-method-tabs.scrollable::-webkit-scrollbar,
.payment-method-tabs.scrollable::-webkit-scrollbar {
  display: block !important;
  height: 4px !important;
}

.modal-deposit-compact .payment-method-tabs.scrollable::-webkit-scrollbar-track,
.payment-method-tabs.scrollable::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 4px !important;
}

.modal-deposit-compact .payment-method-tabs.scrollable::-webkit-scrollbar-thumb,
.payment-method-tabs.scrollable::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}

.modal-deposit-compact .payment-method-tabs.scrollable::-webkit-scrollbar-thumb:hover,
.payment-method-tabs.scrollable::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

.modal-deposit-compact .payment-method-tab {
  padding: 4px 6px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
  user-select: none !important;
}

.modal-deposit-compact .payment-method-tab .pm-title {
  font-size: 11px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  width: 100% !important;
  justify-content: center !important;
}

.modal-deposit-compact .payment-method-tab .pm-subtitle {
  font-size: 9px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  width: 100% !important;
  text-align: center !important;
}

.modal-deposit-compact .momo-country-wrapper {
  margin-bottom: 5px !important;
}

.modal-deposit-compact .momo-select {
  padding: 5px 10px !important;
  height: 33px !important;
  font-size: 12.5px !important;
}

.modal-deposit-compact .momo-networks-label,
.modal-deposit-compact .momo-phone-label {
  font-size: 11px !important;
  margin-bottom: 3px !important;
  font-weight: 700 !important;
}

.modal-deposit-compact .momo-networks-grid {
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.modal-deposit-compact .momo-network-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 5px 10px !important;
  min-height: 34px !important;
}

.modal-deposit-compact .momo-convert-card {
  padding: 6px 12px !important;
  margin-bottom: 6px !important;
}

.modal-deposit-compact .momo-convert-value {
  font-size: 14px !important;
}

.modal-deposit-compact .phone-input-group input {
  height: 32px !important;
  font-size: 12.5px !important;
}

.modal-deposit-compact .phone-prefix {
  height: 32px !important;
  font-size: 11.5px !important;
  padding: 0 8px !important;
}

.modal-deposit-compact .momo-phone-hint {
  font-size: 10px !important;
  margin: 2px 0 0 0 !important;
}

.modal-deposit-compact .momo-ticker-box {
  margin: 4px 0 6px 0 !important;
  padding: 3px 6px !important;
  height: 20px !important;
}

.modal-deposit-compact .momo-ticker-text {
  font-size: 9.5px !important;
}

.modal-deposit-compact #btn-submit-momo,
.modal-deposit-compact #btn-submit-trybit,
.modal-deposit-compact #btn-submit-manual {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 6px auto 0 auto !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

.pay-qr-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
  max-width: 170px;
  box-shadow: var(--shadow-sm);
}

.pay-qr-wrapper img {
  max-width: 135px;
  height: auto;
}

.qr-caption-hint {
  font-size: 11px;
  color: var(--primary-600);
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
}

.proof-dropzone-compact {
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition-normal);
}

.proof-dropzone-compact:hover {
  border-color: var(--primary-600);
  background: #eff6ff;
}

/* ==================== SASPAY MOBILE MONEY STYLES ==================== */
.momo-country-wrapper {
  margin-bottom: 12px;
}
.momo-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: var(--transition-normal);
}
.momo-select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.momo-networks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.momo-network-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}
.momo-network-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-500);
}
.momo-network-btn.active {
  border-color: var(--primary-600);
  background: var(--primary-50);
  box-shadow: 0 0 0 1px var(--primary-600);
}
.momo-network-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.momo-network-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.momo-convert-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.momo-convert-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.momo-convert-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #166534;
}
.momo-convert-value {
  font-size: 15px;
  font-weight: 800;
  color: #15803d;
}
.momo-badge-live {
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.deposit-active-flow {
  text-align: center;
  padding: 20px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 10px;
}
.pulse-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-right: none;
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
}
.phone-input-group input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  flex: 1;
}

/* ==================== ORDERS & VAULT COMPACT ==================== */
/* ==================== ORDERS & VAULT COMPACT ==================== */
#modal-orders .modal-window,
.modal-orders-compact {
  max-width: 520px !important;
  width: 95% !important;
  padding: 18px 20px 20px !important;
  border-radius: var(--radius-lg, 16px) !important;
  position: relative !important;
}

.orders-modal-header {
  text-align: center !important;
  margin-bottom: 14px !important;
  padding: 0 32px !important;
}

.orders-modal-title {
  font-size: clamp(14px, 3.8vw, 16.5px) !important;
  font-weight: 800 !important;
  color: var(--text-primary, #0f172a) !important;
  margin: 0 auto 4px auto !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  letter-spacing: -0.2px !important;
  padding: 0 !important;
}

.orders-modal-subtitle {
  font-size: 12px !important;
  color: var(--text-secondary, #64748b) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.order-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.order-card-info {
  flex: 1;
  min-width: 0;
}

.order-info-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.3;
}

.order-info-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2.5px;
  line-height: 1.35;
}

.order-pricing-box {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  gap: 4px;
  min-width: 72px;
}

.order-amount-display {
  color: var(--primary-600);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.2;
}

.order-status-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2.5px 8px !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  border: 1px solid transparent;
  user-select: none;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box !important;
  height: 22px !important;
}

.order-status-pill.online {
  background: #ecfdf5 !important;
  color: var(--emerald-600) !important;
  border-color: #a7f3d0 !important;
}

.order-status-pill.pending {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

.order-status-pill.rejected {
  background: #fef2f2 !important;
  color: #e11d48 !important;
  border-color: #fecaca !important;
}

.order-status-icon {
  font-size: 11px !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.order-status-text {
  font-size: 11px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.vault-delivery-card {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  margin-top: 10px !important;
}

.vault-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 7px !important;
  width: 100% !important;
}

.vault-header-title {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--primary-700) !important;
  white-space: nowrap !important;
  letter-spacing: 0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
}

.vault-header-title .vault-title-icon {
  font-size: 13px !important;
  line-height: 1 !important;
}

.vault-header-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--emerald-600) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1.2 !important;
}

.vault-header-badge .badge-dot {
  font-size: 8px !important;
  color: var(--emerald-500) !important;
}

.vault-content-field {
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 36px !important;
  word-break: break-all !important;
  overflow: hidden !important;
  gap: 8px !important;
}

.vault-secret-masked {
  letter-spacing: 3px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  user-select: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1 !important;
}

.vault-secret-revealed {
  letter-spacing: normal !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  user-select: all !important;
  white-space: pre-wrap !important;
  word-break: break-all !important;
  line-height: 1.35 !important;
}

.vault-actions-row {
  display: flex !important;
  gap: 8px !important;
  margin-top: 8px !important;
  align-items: center !important;
}

.btn-vault-action {
  background: #ffffff !important;
  color: var(--primary-600, #2563eb) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.btn-vault-action:hover {
  background: #eff6ff !important;
  border-color: var(--primary-500, #3b82f6) !important;
  transform: translateY(-1px) !important;
}

.btn-vault-action:active {
  transform: translateY(0) !important;
}

.btn-vault-action.copied {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
}

/* ==================== CLEAN MINIMAL FOOTER ==================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 45px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.footer-brand .brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  margin: 0;
  width: 100%;
}

.footer-col li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.footer-col a, .footer-col span {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-col a:hover {
  color: var(--primary-600);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  gap: 12px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.footer-discreet-admin {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11.5px;
  transition: var(--transition-normal);
}

.footer-discreet-admin:hover {
  color: var(--primary-600);
}

/* ==================== FOOTER PAYMENTS GRID (SYMMETRICAL & CENTERED) ==================== */
.footer-payments-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  margin: 6px 0 10px;
}

.footer-payments-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
}

.footer-payments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.footer-pay-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 42px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  transition: var(--transition-normal);
  text-align: center;
}

.footer-pay-card:hover {
  border-color: var(--primary-300);
  background: #eff6ff;
  color: var(--primary-600);
  transform: translateY(-1px);
}

.footer-pay-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .footer-payments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 100%;
  }

  .footer-pay-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 3px;
    min-height: 52px;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    border-radius: 8px;
  }

  .footer-pay-icon {
    font-size: 14px;
  }
}

/* ==================== TOAST & ALERTS (POPUP MODERNE CENTRÉE À L'ÉCRAN) ==================== */
#toast {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 18px;
  z-index: 999999;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: min(420px, 88vw);
  text-align: center;
  pointer-events: none;
}

#toast.toast-success {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(6, 78, 59, 0.96);
  box-shadow: 0 20px 50px rgba(6, 78, 59, 0.4), 0 0 0 1px rgba(52, 211, 153, 0.2);
}

#toast.toast-error {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(136, 19, 55, 0.97);
  box-shadow: 0 20px 50px rgba(136, 19, 55, 0.4), 0 0 0 1px rgba(248, 113, 113, 0.2);
}

#toast.toast-info {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.toast-icon {
  font-size: 16px;
  line-height: 1;
}

.toast-text {
  font-size: 13px;
  line-height: 1.4;
}

@keyframes toastCenterIn {
  from { opacity: 0; transform: translate(-50%, -42%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes toastCenterOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -58%) scale(0.92); }
}

#err {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #dc2626;
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 12px;
  font-family: monospace;
  text-align: center;
}

/* ==================== ADMIN DASHBOARD (CLEAN WHITE & BLUE) ==================== */
.admin-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.admin-period-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-period-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}

.admin-period-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-period-tab.active {
  background: #eff6ff;
  color: var(--primary-600);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.admin-stat-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-600);
  margin-top: 4px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.chart-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.chart-canvas-wrapper {
  position: relative;
  height: 180px;
  width: 100%;
}

.admin-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 11px 14px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.thumb-table-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-icon-action:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-600);
}

.btn-icon-action.delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--rose-600);
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  user-select: none;
}

.status-indicator-pill.online {
  background: #ecfdf5;
  color: var(--emerald-600);
  border: 1px solid #a7f3d0;
}

.status-indicator-pill.offline {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid #e2e8f0;
}

/* ==================== BOUTONS ADMIN EN-TÊTE ÉPURÉS ==================== */
.btn-admin-shop-compact {
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-full) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 32px !important;
  box-shadow: var(--shadow-sm) !important;
  white-space: nowrap !important;
}

.btn-admin-logout-compact {
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-full) !important;
  min-height: 32px !important;
  box-shadow: var(--shadow-sm) !important;
  white-space: nowrap !important;
}

/* ==================== SÉLECTEUR STATUT DE COMMANDE & ACTIONS ==================== */
.order-status-selector-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.order-status-badge-select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 22px 0 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  border: 1px solid var(--border-subtle) !important;
  cursor: pointer;
  transition: var(--transition-normal);
  outline: none;
  line-height: 1;
  white-space: nowrap !important;
  box-sizing: border-box;
  background-position: right 6px center;
  background-repeat: no-repeat;
  background-size: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.order-status-badge-select.pending {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

.order-status-badge-select.delivered {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.order-status-badge-select.cancelled {
  background-color: #fef2f2 !important;
  border-color: #fecdd3 !important;
  color: #b91c1c !important;
}

.order-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  margin: 0 auto;
}

.order-status-selector-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.admin-table th.col-center,
.admin-table td.col-center {
  text-align: center !important;
  vertical-align: middle !important;
}

.btn-order-manage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--primary-300);
  color: var(--primary-600);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-order-manage:hover {
  background: var(--primary-50);
  border-color: var(--primary-600);
  transform: translateY(-1px);
}

.btn-order-quick-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--emerald-600);
  border: 1px solid var(--emerald-600);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-order-quick-val:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
}

.btn-order-quick-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--rose-600);
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-order-quick-cancel:hover {
  background: #fef2f2;
  border-color: #fecdd3;
}

.key-customized-dot {
  color: var(--emerald-600);
  font-size: 10px;
}


.proof-thumbnail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: var(--primary-600);
  border: 1px solid #bfdbfe;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.proof-thumbnail-btn:hover { background: #dbeafe; }

.vault-tabs-segmented {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 12px;
}

.vault-tab-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.vault-tab-btn.active {
  background: #ffffff;
  color: var(--primary-600);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ==================== NOUVELLE INTERFACE D'ACHAT (SÉLECTION QUANTITÉ & PAIEMENT) ==================== */
.purchase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.purchase-prod-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.purchase-prod-info {
  flex: 1;
  min-width: 0;
}

.purchase-prod-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.purchase-prod-cat {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-600);
  display: inline-block;
  margin-bottom: 2px;
}

.purchase-unit-price-line {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.purchase-unit-price-line strong {
  color: var(--primary-600);
}

.purchase-balance-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  color: #1e3a8a;
}

.purchase-qty-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.qty-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.btn-qty-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.btn-qty-step:hover:not(:disabled) {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-300);
}

.btn-qty-step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-display-value {
  width: 38px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
}

.purchase-calc-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.calc-row.total-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.total-amount-large {
  font-size: 20px;
  color: var(--primary-600);
  font-weight: 800;
  font-family: var(--font-display);
}

.optional-contact-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.optional-contact-box label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.optional-contact-box input {
  padding: 8px 12px;
  font-size: 12.5px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.optional-contact-box input:focus {
  background: #ffffff;
}

.btn-pay-now {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: var(--transition-normal);
}

.btn-pay-now:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-pay-now:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Écran de confirmation après paiement */
.purchase-success-box {
  text-align: center;
  padding: 16px 10px;
}

.success-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--emerald-600);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.order-recap-mini {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
  text-align: left;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-recap-mini div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== SECTIONS RICHES DU CATALOGUE CONNECTÉ ==================== */
.client-extra-section {
  margin-top: 48px;
}

.client-section-header {
  margin-bottom: 24px;
}

.client-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-100);
  margin-bottom: 8px;
}

.client-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.client-section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.client-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.client-perk-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.client-perk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.client-perk-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.client-perk-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.client-perk-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.client-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.client-guide-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
}

.client-guide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.client-guide-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.client-guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.client-guide-steps strong {
  color: var(--text-primary);
}

.client-vip-card {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0284c7 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-vip-contact {
  background: #ffffff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-vip-contact:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-vip-contact.outline {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-vip-contact.outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

.client-vip-badge-box {
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  text-align: center;
  flex-shrink: 0;
}

.vip-status-dot-pulse {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  margin: 0 auto 6px;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.client-system-status-bar {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-top: 32px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-meta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #166534;
  flex-wrap: wrap;
}

/* ==========================================================================
   GETVIRTU - ARCHITECTURE RESPONSIVE MULTI-ÉCRANS (DESKTOP, TABLETTE, MOBILE)
   Conforme aux directives ergonomiques iOS 18 & Windows 11 Fluent
   ========================================================================== */

/* 1. Global Touch & Text Protection */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

/* 2. TABLETTE (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .hero-trust-row {
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.featured {
    grid-column: span 1;
  }
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .client-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-guides-grid {
    grid-template-columns: 1fr;
  }
  .client-vip-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* 3. TABLETTE PORTRAIT & GRANDS MOBILES (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header & Navigation mobile épurée et ultra-fine */
  .navbar {
    height: 48px;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
    overflow: visible !important;
  }
  .navbar .nav-inner {
    height: 48px;
    padding: 0 12px;
    gap: 8px;
    justify-content: space-between;
    overflow: visible !important;
  }
  .nav-links {
    display: none;
  }
  .brand-link {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.3px;
    gap: 6px;
    flex-shrink: 0;
  }
  .brand-icon-box {
    width: 25px;
    height: 25px;
    font-size: 12px;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow: visible !important;
  }
  .nav-actions .btn-sm {
    padding: 0 9px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    height: 28px !important;
    min-height: 28px !important;
    line-height: 28px !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
  }
  .btn-nav-auth {
    white-space: nowrap !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
  }
  .btn-nav-login {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
  }
  .btn-nav-register {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
  }

  .balance-pill {
    height: 26px;
    padding: 2px 7px 2px 9px;
    border-radius: var(--radius-full);
    font-size: 11px;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  }
  .balance-label {
    display: none;
  }
  .balance-amount {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-600);
  }
  .btn-add-balance {
    width: 17px;
    height: 17px;
    font-size: 10px;
    font-weight: 800;
    margin-left: 2px;
  }
  .nav-orders-btn {
    width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border-radius: 50%;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
  }
  .nav-orders-btn span:last-child {
    display: none;
  }
  .user-profile-wrapper {
    position: relative;
    overflow: visible !important;
  }
  .btn-user-profile {
    padding: 0;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
  }
  .user-avatar-circle {
    width: 26px;
    height: 26px;
    font-size: 11px;
    font-weight: 800;
  }
  .btn-user-profile span:not(.user-avatar-circle) {
    display: none;
  }
  .user-dropdown-menu {
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    max-width: calc(100vw - 20px);
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 88px 0 36px;
  }
  .hero-title {
    font-size: clamp(24px, 5.5vw, 30px);
    line-height: 1.22;
    letter-spacing: -0.4px;
    margin: 12px 0;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 480px;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 22px;
  }
  .hero-actions .hero-btn {
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    min-height: 40px !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  /* Badges de confiance */
  .hero-trust-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
  }
  .trust-item {
    font-size: 11.5px;
    justify-content: center;
  }

  /* Showcase Card du Hero (100% Responsive Mobile Sans Débordement) */
  .hero-section {
    overflow: hidden !important;
  }
  .hero-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  .showcase-card {
    padding: 12px 10px !important;
    border-radius: var(--radius-md);
    margin: 12px auto 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .showcase-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .showcase-badge {
    flex-shrink: 0 !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }
  .showcase-preview-box {
    padding: 6px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .showcase-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 7px 8px !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .showcase-item-info {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }
  .showcase-thumb {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 7px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
  }
  .showcase-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    max-width: 120px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }
  .showcase-stock-badge {
    font-size: 10px !important;
    display: block !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
  }
  .showcase-pricing-action {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }
  .showcase-price-box {
    text-align: right !important;
  }
  .showcase-price-val {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: var(--primary-600) !important;
  }
  .showcase-buy-btn {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    min-height: 28px !important;
    height: 28px !important;
    line-height: 1 !important;
    border-radius: var(--radius-sm) !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  /* Section Métriques */
  .metrics-section {
    padding: 24px 0;
  }
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
  }
  .metric-box {
    border-right: none;
    border-bottom: none;
    padding: 10px 8px;
    text-align: center;
  }
  .metric-num {
    font-size: 21px;
    font-weight: 800;
  }
  .metric-label {
    font-size: 11px;
    margin-top: 2px;
  }

  /* Section Catalogue */
  .section {
    padding: 40px 0;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .section-tag {
    font-size: 11px;
    padding: 3px 10px;
  }
  .section-heading {
    font-size: 22px;
    margin-top: 6px;
  }
  .section-subheading {
    font-size: 13px;
    margin-top: 4px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
  }
  .cat-filters {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 4px;
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .cat-filters::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    flex-shrink: 0;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    min-height: 32px;
    border-radius: var(--radius-full);
  }
  .search-input-wrapper {
    width: 100%;
  }
  .search-input-wrapper input {
    width: 100%;
    font-size: 13.5px;
    padding: 9px 12px 9px 36px;
    border-radius: var(--radius-sm);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card {
    border-radius: var(--radius-md);
  }
  .product-image-box {
    height: 160px;
  }
  .product-body {
    padding: 14px;
  }
  .product-name {
    font-size: 15px;
  }
  .product-desc {
    font-size: 12.5px;
    margin-bottom: 12px;
  }
  .btn-buy-product {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
  }

  /* Bento Features */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bento-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .bento-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-bottom: 10px;
  }
  .bento-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .bento-text {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Étapes / Comment ça marche */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
    margin-bottom: 8px;
  }
  .step-title {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .step-desc {
    font-size: 12.5px;
  }

  /* Engagements & Avis */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .review-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }
  .review-card h4 {
    font-size: 15px;
  }
  .review-quote {
    font-size: 12.5px;
  }

  /* FAQ */
  .faq-container {
    gap: 8px;
  }
  .faq-question {
    padding: 12px 14px;
    font-size: 13.5px;
  }
  .faq-answer {
    padding: 0 14px 12px;
    font-size: 12.5px;
  }

  /* Footer */
  .footer {
    padding: 26px 0 16px;
  }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    text-align: center !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 2px;
  }
  .footer-brand p {
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }
  .footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-col h5 {
    font-size: 12px !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }
  .footer-col ul {
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .footer-col li {
    justify-content: center !important;
    text-align: center !important;
  }
  .footer-col a, .footer-col span {
    font-size: 12px !important;
    text-align: center !important;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 11px;
    padding-top: 14px;
  }
}

/* 4. MOBILES STANDARDS (max-width: 540px) */
@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 290px;
    margin: 0 auto 20px auto;
    gap: 10px;
  }
  .hero-actions .hero-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: var(--radius-full) !important;
  }

  .hero-trust-row {
    max-width: 320px;
  }

  /* Modale moderne compacte & centrée (max-w-sm / 90% largeur mobile, bords arrondis) */
  .modal-backdrop, .auth-overlay {
    padding: 14px 10px !important;
    align-items: center !important;
    justify-content: center !important;
    display: none;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
  }
  .modal-backdrop.active, .auth-overlay.active {
    display: flex !important;
  }
  .modal-window, .auth-card, .google-modal-card {
    width: 90% !important;
    max-width: 380px !important;
    margin: auto !important;
    border-radius: 20px !important;
    max-height: 86vh !important;
    overflow-y: auto !important;
    padding: 20px 16px 20px !important;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.3) !important;
    position: relative !important;
    scrollbar-width: thin;
  }
  .modal-close-btn, .auth-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 25 !important;
    transition: all 0.15s ease !important;
  }
  .modal-close-btn:hover, .auth-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }
  .modal-title {
    padding-right: 36px !important;
  }

  .btn-google {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
  }
  .divider-auth {
    margin: 12px 0;
    font-size: 11.5px;
  }
  .auth-tabs {
    margin-bottom: 12px;
  }
  .auth-tab {
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .field {
    margin-bottom: 10px;
  }
  .field label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .field input {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 38px;
    border-radius: var(--radius-sm);
  }

  #btn-login-submit,
  #btn-register-submit {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
  }
}

/* 5. TRÈS PETITS SMARTPHONES (max-width: 375px) */
@media (max-width: 375px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .navbar .nav-inner {
    height: 52px;
    padding: 0 8px !important;
    gap: 4px !important;
  }
  .brand-link {
    font-size: 13.5px !important;
    gap: 5px !important;
  }
  .brand-icon-box {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }
  .nav-actions {
    gap: 4px !important;
  }
  .nav-actions .btn-sm, .btn-nav-auth {
    padding: 0 6px !important;
    font-size: 10.5px !important;
    min-height: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
  }
  .auth-bolt-icon {
    display: none !important;
  }

  .pill-badge {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 10.5px !important;
    padding: 4px 8px !important;
    line-height: 1.3 !important;
  }

  .hero-title {
    font-size: 20px !important;
    line-height: 1.28 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-align: center !important;
    max-width: 330px !important;
    margin: 8px auto 12px auto !important;
    padding: 0 2px !important;
  }
  .hero-desc {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 0 auto 16px auto !important;
    text-align: center !important;
    max-width: 310px !important;
    padding: 0 2px !important;
  }

  .hero-actions .hero-btn {
    max-width: 250px !important;
    font-size: 12px !important;
    min-height: 38px !important;
    padding: 8px 14px !important;
  }

  .hero-trust-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
    max-width: 300px;
    margin: 0 auto;
  }
  .trust-item {
    font-size: 10px !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  /* Carte Boutique en Direct sur très petits écrans (375px et moins) */
  .showcase-card {
    padding: 10px 8px !important;
  }
  .showcase-item {
    padding: 6px 6px !important;
    gap: 5px !important;
  }
  .showcase-item-info {
    gap: 6px !important;
  }
  .showcase-thumb {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  .showcase-title {
    font-size: 11px !important;
    max-width: 105px !important;
  }
  .showcase-stock-badge {
    font-size: 9.5px !important;
  }
  .showcase-pricing-action {
    gap: 4px !important;
  }
  .showcase-price-val {
    font-size: 11.5px !important;
  }
  .showcase-buy-btn {
    padding: 3px 6px !important;
    font-size: 10px !important;
    min-height: 26px !important;
    height: 26px !important;
  }

  .metrics-container {
    padding: 12px 8px;
    gap: 8px;
  }
  .metric-num {
    font-size: 18px;
  }
  .metric-label {
    font-size: 10px;
  }

  .auth-card, .google-modal-card {
    padding: 18px 12px 20px !important;
  }
  .btn-google {
    font-size: 12.5px;
    min-height: 38px;
    padding: 8px 10px;
  }
  .field input {
    font-size: 12.5px;
    padding: 7px 10px;
    min-height: 36px;
  }
  #btn-login-submit,
  #btn-register-submit {
    font-size: 12.5px;
    min-height: 38px;
  }
}

/* 6. ULTRA-PETITS SMARTPHONES (<= 340px / 320px) */
@media (max-width: 340px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar .nav-inner {
    height: 52px;
  }
  .brand-link span {
    font-size: 15px;
  }
  .brand-icon-box {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .nav-actions {
    gap: 4px;
  }
  .nav-actions .btn-sm {
    padding: 4px 7px;
    font-size: 10.5px;
    min-height: 28px;
  }
  .hero-title {
    font-size: 21px;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .hero-actions .hero-btn {
    max-width: 230px !important;
    font-size: 12px !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
  }
  .hero-trust-row {
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 240px;
  }
  .trust-item {
    font-size: 10px;
  }
  .auth-card, .google-modal-card {
    padding: 16px 10px 18px !important;
  }
  .btn-google {
    font-size: 12px;
    min-height: 36px;
    padding: 7px 8px;
  }
  .btn-google svg {
    width: 16px;
    height: 16px;
  }
  .field input {
    font-size: 12px;
    padding: 6px 8px;
    min-height: 34px;
  }
  #btn-login-submit,
  #btn-register-submit {
    font-size: 12px;
    min-height: 36px;
    padding: 7px 10px;
  }
}

/* ==================== TRYBIT CRYPTO UI STYLING ==================== */
.trybit-deposit-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.trybit-deposit-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.trybit-crypto-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.btn-purchase-tab {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}
.btn-purchase-tab:hover {
  border-color: var(--primary-400);
  color: var(--text-primary);
}
.btn-purchase-tab.active {
  border-color: var(--primary-600);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-600);
  box-shadow: 0 0 0 1px var(--primary-600);
}

/* ==================== SELECTEUR DE CRYPTO MODERNE (FINTECH CARDS) ==================== */
.crypto-cards-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  padding: 3px 2px 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.crypto-cards-container::-webkit-scrollbar {
  width: 5px;
}

.crypto-cards-container::-webkit-scrollbar-track {
  background: transparent;
}

.crypto-cards-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.crypto-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.crypto-card-item:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateY(-1px);
}

.crypto-card-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.crypto-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.crypto-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.crypto-card-item.active .crypto-card-icon {
  background: #dbeafe;
}

.crypto-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.crypto-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.crypto-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crypto-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.crypto-card-sub {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.crypto-card-indicator {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-card-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.crypto-card-item.active .crypto-card-radio-circle {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 3.5px #ffffff;
}

/* ==================== RESPONSIVE ADMIN STATS GRID & TABS ==================== */
@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .admin-period-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 12px 0 16px;
  }

  .admin-period-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 6px;
    padding: 4px;
  }

  .admin-period-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-period-tab {
    flex: 1 0 auto;
    min-width: 65px;
    text-align: center;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .admin-nav-tabs-bar {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 6px;
    padding: 4px 6px;
  }

  .admin-nav-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .admin-nav-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
  }

  .charts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ==================== GLOBAL FINITIONS & ZERO HORIZONTAL SCROLL ==================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

#landing-view, #connected-view, .admin-layout {
  overflow-x: hidden;
  max-width: 100%;
}

/* Assurer que la barre de navigation et le menu déroulant profil ne soient JAMAIS tronqués */
.navbar,
.navbar .container,
.nav-inner,
.nav-actions,
.user-profile-wrapper {
  overflow: visible !important;
}

.table-responsive, .admin-table-container, .admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==================== BOUTONS INTERACTIFS & ANIMATIONS CALL TO ACTION ==================== */

/* 1. Alerte de solde insuffisant et bouton d'action rapide stylé */
.insufficient-balance-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.insufficient-balance-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-600);
}

.btn-quick-recharge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-600), #1d4ed8);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-quick-recharge:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.45);
}

.btn-quick-recharge:active {
  transform: translateY(0) scale(0.97);
}

.recharge-badge-spark {
  display: inline-block;
  animation: sparkPulse 2s infinite ease-in-out;
}

@keyframes sparkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(8deg); }
}

/* 2. Effet Visuel Incitatif Flash / Shimmer / Pulse (Balayage lumineux dynamique régulier) */
@keyframes sweepShimmer {
  0% {
    transform: translateX(-150%) skewX(-25deg);
  }
  30%, 100% {
    transform: translateX(350%) skewX(-25deg);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.65), 0 0 0 6px rgba(37, 99, 235, 0);
  }
}

.btn-cta-shimmer {
  position: relative !important;
  overflow: hidden !important;
  animation: glowPulse 2.8s infinite ease-in-out !important;
}

.btn-cta-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  transform: translateX(-150%) skewX(-25deg);
  animation: sweepShimmer 2.8s infinite ease-in-out !important;
  pointer-events: none;
  z-index: 2;
}

/* ==================== ADAPTATIONS RESPONSIVES AVANCÉES (PETITS ÉCRANS & 360-390px) ==================== */

/* Bannière d'accueil Espace Client - Décalée pour être 100% visible sous le header fixe */
.direct-catalog-wrapper {
  padding-top: 88px;
  padding-bottom: 48px;
}

.catalog-welcome-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.catalog-welcome-info {
  flex: 1;
  min-width: 0;
}

.catalog-welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.vip-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  /* Décalage mobile impératif pour laisser l'en-tête et le badge Espace Client 100% distincts */
  .direct-catalog-wrapper {
    padding-top: 76px !important;
    padding-bottom: 36px !important;
  }

  /* Bannière Bienvenue */
  .catalog-welcome-banner {
    padding: 18px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-top: 4px;
  }
  .catalog-welcome-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .catalog-welcome-info h1 {
    font-size: 19px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    word-break: break-word;
  }
  .catalog-welcome-info p {
    text-align: center !important;
    font-size: 13px !important;
  }
  .catalog-welcome-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .catalog-welcome-actions button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 38px !important;
    font-size: 12.5px !important;
  }

  /* Carte VIP */
  .client-vip-card {
    padding: 20px 16px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .client-vip-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .client-vip-content h3 {
    font-size: 17px !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  .client-vip-content p {
    text-align: center !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }
  .vip-actions-row {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .btn-vip-contact {
    width: 100% !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    padding: 9px 14px !important;
  }
  .client-vip-badge-box {
    width: 100% !important;
    max-width: 260px !important;
    margin: 4px auto 0 !important;
    padding: 12px 16px !important;
  }

  /* Barre d'état du système */
  .client-system-status-bar {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 14px !important;
  }
  .status-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .status-meta-group {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 5px !important;
  }
  .status-sep {
    display: none !important;
  }
  .status-item {
    font-size: 11.5px !important;
    text-align: center !important;
  }

  /* Grille Avantages & Guides */
  .client-perks-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .client-guides-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ==================== OPTIMISATION COMPACTE MODALE DE RECHARGE ==================== */
.deposit-amount-row-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.deposit-amount-clean-label {
  margin-bottom: 0 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  color: var(--text-primary);
}

.deposit-min-badge-compact {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--primary-600) !important;
  background: var(--primary-50) !important;
  border: 1px solid var(--primary-200) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}

/* TICKER DÉFILANT CONTINU (CSS MARQUEE EFFECT) SASPAY TRUST BADGE */
.momo-ticker-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  height: 28px;
  box-sizing: border-box;
}

.momo-ticker-icon {
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1;
  z-index: 2;
  background: #f0fdf4;
}

.momo-ticker-track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
  display: flex;
}

.momo-ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: momoMarquee 22s linear infinite;
  font-size: 11px;
  font-weight: 600;
  color: #166534;
  will-change: transform;
}

.momo-ticker-box:hover .momo-ticker-text {
  animation-play-state: paused;
}

@keyframes momoMarquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* BADGE RUPTURE DE STOCK AUTOMATIQUE & BOUTON DÉSACTIVÉ */
.badge-stock-out {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fecdd3;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.btn-buy-disabled {
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .modal-deposit-compact {
    width: 92% !important;
    max-width: 380px !important;
    margin: auto !important;
    padding: 10px 13px !important;
    max-height: 98vh !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .modal-deposit-compact::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .modal-deposit-compact h2.modal-title,
  .modal-deposit-compact .deposit-title {
    font-size: 15.5px !important;
    margin-bottom: 1px !important;
    line-height: 1.2 !important;
  }
  .modal-deposit-compact p,
  .modal-deposit-compact .deposit-subtitle {
    font-size: 10.5px !important;
    margin-bottom: 5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .deposit-amount-row-clean {
    margin-bottom: 2px !important;
  }
  .deposit-amount-clean-label {
    font-size: 11px !important;
  }
  .deposit-min-badge-compact {
    font-size: 9.5px !important;
    padding: 1px 5px !important;
  }
  #deposit-amount-input {
    height: 30px !important;
    font-size: 12.5px !important;
    padding: 2px 8px !important;
  }
  .modal-deposit-compact .payment-method-tabs,
  .payment-method-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .modal-deposit-compact .payment-method-tabs.scrollable,
  .payment-method-tabs.scrollable {
    grid-auto-columns: calc((100% - 8px) / 2.15) !important;
    gap: 4px !important;
    padding-bottom: 4px !important;
    margin-bottom: 3px !important;
  }
  .payment-method-tab {
    min-height: 34px !important;
    padding: 3px 4px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .payment-method-tab .pm-title {
    font-size: 10px !important;
    gap: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .payment-method-tab .pm-subtitle {
    font-size: 8.5px !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
  }
  .momo-country-wrapper {
    margin-bottom: 3px !important;
  }
  .momo-networks-label,
  .momo-phone-label {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }
  .momo-select {
    padding: 5px 8px !important;
    min-height: 38px !important;
    height: auto !important;
    font-size: 16px !important;
  }
  .momo-networks-grid {
    margin-bottom: 3px !important;
    gap: 4px !important;
  }
  .momo-network-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 4px 6px !important;
  }
  .momo-network-title {
    font-size: 11px !important;
  }
  .momo-convert-card {
    padding: 4px 7px !important;
    margin-bottom: 3px !important;
  }
  .momo-convert-value {
    font-size: 12.5px !important;
  }
  .phone-input-group input {
    min-height: 38px !important;
    height: auto !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 16px !important;
  }
  .phone-prefix {
    padding: 0 6px !important;
    font-size: 11px !important;
  }
  .momo-phone-hint {
    font-size: 9px !important;
    margin: 1px 0 0 0 !important;
  }
  .momo-ticker-box {
    height: 19px !important;
    padding: 1px 5px !important;
    margin: 2px 0 4px !important;
  }
  .momo-ticker-text {
    font-size: 9px !important;
  }
  #btn-submit-momo, #btn-submit-trybit, #btn-submit-manual {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 6px 8px !important;
    font-size: 12.5px !important;
    height: 36px !important;
    margin: 4px auto 0 auto !important;
    box-sizing: border-box !important;
  }
  .crypto-ticker-box {
    height: 19px !important;
    padding: 1px 5px !important;
    margin: 2px 0 4px !important;
  }
  .crypto-ticker-text {
    font-size: 9px !important;
  }
  .crypto-cards-container.compact-crypto-list {
    max-height: 115px !important;
  }
  .trybit-header-title {
    font-size: 11.5px !important;
  }
  .modal-purchase-compact {
    max-width: 385px !important;
    width: 94% !important;
    padding: 11px 13px !important;
    max-height: 92vh !important;
  }
  .purchase-top-grid {
    gap: 5px !important;
    margin-bottom: 5px !important;
  }
  .purchase-prod-box {
    padding: 4px 7px !important;
  }
  .purchase-prod-thumb-compact {
    width: 34px !important;
    height: 34px !important;
  }
  .purchase-prod-title-compact {
    font-size: 11.5px !important;
  }
  .purchase-balance-box {
    padding: 3px 5px !important;
  }
  .purchase-balance-value {
    font-size: 14px !important;
  }
  .purchase-qty-card-compact {
    padding: 4px 7px !important;
    margin-bottom: 4px !important;
  }
  .purchase-calc-box-compact {
    padding: 4px 7px !important;
    margin-bottom: 5px !important;
  }
  .purchase-method-tabs-compact {
    gap: 3px !important;
    margin-bottom: 5px !important;
  }
  .insufficient-balance-alert-centered {
    padding: 5px 8px !important;
    margin-bottom: 5px !important;
  }
  .optional-contact-box-compact {
    padding: 4px 7px !important;
    margin-bottom: 5px !important;
  }
  .btn-purchase-action-single-line,
  .btn-recharge-bottom-compact,
  .btn-pay-now {
    max-width: 290px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    height: 38px !important;
  }
}

/* ==================== SUBTLE LIGHT-SWEEP ANIMATION (PAYMENT BUTTONS) ==================== */
@keyframes paymentLightSweep {
  0% {
    transform: translateX(-140%) skewX(-20deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  38% {
    transform: translateX(260%) skewX(-20deg);
    opacity: 1;
  }
  44% {
    transform: translateX(260%) skewX(-20deg);
    opacity: 0;
  }
  100% {
    transform: translateX(-140%) skewX(-20deg);
    opacity: 0;
  }
}

.btn-light-sweep,
.btn-buy-product:not(:disabled):not(.btn-buy-disabled),
.showcase-buy-btn:not(:disabled),
.btn-pay-now:not(:disabled),
.btn-recharge-bottom-compact:not(:disabled),
.btn-quick-recharge-centered,
#btn-submit-trybit:not(:disabled),
#btn-submit-momo:not(:disabled),
.btn-cta-shimmer,
.btn-shimmer-flash {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

.btn-light-sweep::after,
.btn-buy-product:not(:disabled):not(.btn-buy-disabled)::after,
.showcase-buy-btn:not(:disabled)::after,
.btn-pay-now:not(:disabled)::after,
.btn-recharge-bottom-compact:not(:disabled)::after,
.btn-quick-recharge-centered::after,
#btn-submit-trybit:not(:disabled)::after,
#btn-submit-momo:not(:disabled)::after,
.btn-cta-shimmer::after,
.btn-shimmer-flash::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 45% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 25%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.12) 75%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  transform: translateX(-140%) skewX(-20deg) !important;
  animation: paymentLightSweep 3.6s ease-in-out infinite !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* ==================== PASSERELLE CRYPTO INSTANTANÉE COMPACTE & MARQUEE ==================== */
.trybit-header-single-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 0;
}

.trybit-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.trybit-header-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.trybit-header-pill {
  font-size: 10.5px !important;
  padding: 2px 8px !important;
  white-space: nowrap !important;
}

.crypto-cards-container.compact-crypto-list {
  max-height: 135px !important;
  gap: 5px !important;
  padding: 2px !important;
}

.crypto-cards-container.compact-crypto-list .crypto-card-item {
  padding: 5px 10px !important;
  border-radius: 9px !important;
  gap: 8px !important;
}

.crypto-cards-container.compact-crypto-list .crypto-card-icon {
  width: 26px !important;
  height: 26px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}

.crypto-cards-container.compact-crypto-list .crypto-card-name {
  font-size: 11.5px !important;
}

.crypto-cards-container.compact-crypto-list .crypto-card-sub {
  font-size: 10px !important;
}

.crypto-cards-container.compact-crypto-list .crypto-card-radio-circle {
  width: 15px !important;
  height: 15px !important;
}

/* MARQUEE TICKER POUR CRYPTO (TRYBIT) */
.crypto-ticker-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  height: 26px;
  box-sizing: border-box;
  margin: 6px 0 10px 0;
}

.crypto-ticker-icon {
  font-size: 11px;
  flex-shrink: 0;
  line-height: 1;
  z-index: 2;
  background: #f0fdf4;
}

.crypto-ticker-track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
  display: flex;
}

.crypto-ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: momoMarquee 20s linear infinite;
  font-size: 11px;
  font-weight: 600;
  color: #166534;
  will-change: transform;
}

.crypto-ticker-box:hover .crypto-ticker-text {
  animation-play-state: paused;
}

/* ==================== MODALE ACHAT ULTRA-COMPACTE (SANS SCROLLBAR) ==================== */
.modal-purchase-compact {
  max-width: 420px !important;
  width: 94% !important;
  padding: 12px 15px 12px !important;
  border-radius: 18px !important;
  max-height: 94vh !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #e2e8f0 transparent !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25) !important;
}

@media (min-height: 700px) {
  .modal-purchase-compact {
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }
}

@media (max-height: 560px) {
  .modal-purchase-compact {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
  }
}

.purchase-modal-header-compact {
  margin-bottom: 5px !important;
}

.purchase-modal-title-compact {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: var(--text-primary);
  line-height: 1.2 !important;
}

.purchase-delivery-notice-line {
  font-size: 10.5px !important;
  color: var(--text-secondary) !important;
  margin: 2px 0 0 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

/* BADGE SOLDE COMPACT EN LIGNE */
.purchase-balance-compact-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.purchase-balance-compact-inline .balance-tag {
  color: #1e40af;
  font-weight: 600;
}

.purchase-balance-compact-inline .balance-val {
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
}

/* FICHE PRODUIT COMPACTE */
.purchase-prod-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-width: 0;
  width: 100%;
}

.purchase-prod-thumb-compact {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.purchase-prod-info-compact {
  flex: 1;
  min-width: 0;
}

.purchase-prod-cat-compact {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-600);
  display: block;
  line-height: 1.1;
}

.purchase-prod-title-compact {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.purchase-unit-price-compact {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.purchase-unit-price-compact strong {
  color: var(--primary-600);
}

/* CARTES COMPACTES : QUANTITÉ & CALCUL TOTAL */
.purchase-qty-card-compact {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 4px 8px;
  margin-bottom: 5px;
}

.purchase-calc-box-compact {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.calc-row-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 1px;
}

.calc-row-compact.total-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 3px;
  margin-top: 3px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.total-amount-compact {
  font-size: 15px;
  color: var(--primary-600);
  font-weight: 800;
}

/* SÉLECTION DU MOYEN DE RÈGLEMENT */
.purchase-method-tabs-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.purchase-method-tab-compact {
  padding: 5px 3px !important;
  font-size: 10.5px !important;
  border-radius: 6px !important;
  white-space: nowrap;
  text-align: center;
  min-height: 31px !important;
}

/* PANNEAU MÉTHODE DE PAIEMENT COMPACT */
.purchase-method-panel-compact {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 6px 8px;
  margin-bottom: 7px;
}

/* LISTE CRYPTO COMPACTE DANS LA MODALE ACHAT */
.modal-purchase-compact .crypto-cards-container {
  max-height: 108px !important;
  gap: 4px !important;
  padding: 1px !important;
}

.modal-purchase-compact .crypto-card-item {
  padding: 4px 8px !important;
  border-radius: 7px !important;
  gap: 6px !important;
  min-height: 30px !important;
}

.modal-purchase-compact .crypto-card-icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 11.5px !important;
  border-radius: 5px !important;
}

.modal-purchase-compact .crypto-card-name {
  font-size: 11px !important;
  font-weight: 700 !important;
}

.modal-purchase-compact .crypto-card-badge {
  font-size: 8.5px !important;
  padding: 1px 4px !important;
}

.modal-purchase-compact .crypto-card-sub {
  font-size: 9px !important;
}

.modal-purchase-compact .crypto-card-radio-circle {
  width: 14px !important;
  height: 14px !important;
}

/* ALERTE SOLDE INSUFFISANT CENTRÉE */
.insufficient-balance-alert-centered {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 7px;
  padding: 6px 10px;
  margin-bottom: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.insufficient-balance-alert-centered .insufficient-balance-text {
  font-size: 11px;
  font-weight: 700;
  color: #e11d48;
}

.btn-quick-recharge-centered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  margin: 0 auto;
}

/* CONTACT OPTIONNEL EN UNE SEULE LIGNE */
.optional-contact-box-compact {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 5px 8px;
  margin-bottom: 6px;
}

.optional-contact-label-oneline {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 2px !important;
}

.optional-contact-input-compact {
  width: 100%;
  padding: 4px 7px !important;
  font-size: 11px !important;
  height: 28px !important;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  box-sizing: border-box;
}

/* BOUTONS D'ACTION SUR UNE SEULE LIGNE PROPRE */
.btn-purchase-action-single-line,
.btn-recharge-bottom-compact,
.modal-purchase-compact .btn-pay-now {
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  height: 40px !important;
  border-radius: var(--radius-md) !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

.btn-purchase-action-single-line span,
.btn-recharge-bottom-compact span,
.modal-purchase-compact .btn-pay-now span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ==================== TABLE DES TICKETS DE SUPPORT CLIENT & MESSAGES ==================== */
.admin-tickets-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.admin-tickets-table th {
  white-space: nowrap;
}

.admin-tickets-table td {
  vertical-align: top;
  padding: 14px 12px;
  box-sizing: border-box;
}

.admin-ticket-subject-cell {
  width: 190px;
  max-width: 190px;
  box-sizing: border-box;
  vertical-align: top;
  padding-right: 8px !important;
}

.admin-ticket-subject-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  max-width: 100% !important;
  width: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  padding: 0 8px !important;
  height: 24px !important;
  border-radius: 5px !important;
  margin-top: 1px !important;
}

.admin-ticket-msg-cell {
  width: 280px;
  min-width: 240px;
  max-width: 280px;
  box-sizing: border-box;
  vertical-align: top;
  padding-left: 8px !important;
}

.admin-ticket-msg-box {
  width: 100%;
  min-width: 220px;
  max-width: 280px;
  height: 86px;
  min-height: 86px;
  max-height: 86px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.admin-ticket-msg-box::-webkit-scrollbar {
  width: 6px;
}
.admin-ticket-msg-box::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
  border-radius: 4px;
}
.admin-ticket-msg-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.admin-ticket-msg-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==================== BOUTON COMPACT & MODERNE : AJOUTER UNE CLÉ ==================== */
.btn-admin-add-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.5);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.22);
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 34px;
  box-sizing: border-box;
}

.btn-admin-add-key:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.32);
  transform: translateY(-1px);
}

.btn-admin-add-key:active {
  transform: translateY(0);
}

.btn-admin-add-key:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ==================== GLOBAL MOBILE ANTI-AUTO-ZOOM & VIRTUAL KEYBOARD UX ==================== */
/* Prevents iOS Safari & mobile browsers from zooming in on input focus and staying zoomed in,
   while preserving 100% manual pinch-to-zoom accessibility and desktop styling. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media screen and (max-width: 768px), (hover: none) and (pointer: coarse) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  html body textarea,
  html body select,
  .modal-window input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  .modal-window textarea,
  .modal-window select,
  .search-box input,
  #landing-search,
  #connected-search,
  #deposit-amount-input,
  .modal-deposit-compact #deposit-amount-input,
  #momo-phone-input,
  #momo-otp-input,
  #momo-country-select,
  #purchase-qty-input,
  #purchase-contact-input,
  .optional-contact-input-compact,
  .order-status-badge-select {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .optional-contact-input-compact {
    min-height: 38px !important;
    height: auto !important;
    padding: 6px 10px !important;
  }

  .modal-backdrop {
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden !important;
  }
}

@supports (-webkit-touch-callout: none) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  html body textarea,
  html body select,
  .modal-deposit-compact #deposit-amount-input {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }
}

/* ==================== ULTRA-FAST TACTILE BUTTON RESPONSE (ZERO TAP DELAY) ==================== */
button,
[role="button"],
a.btn-primary,
a.btn-secondary,
a.brand-link,
.nav-link,
.nav-tab-connected,
.dropdown-item,
.cat-pill,
.auth-tab,
.faq-question,
.payment-method-tab,
.momo-network-btn,
.crypto-card-item,
.btn-qty-step,
.btn-vault-action,
.btn-copy-address,
.pm-scroll-nav-btn,
.btn-vip-contact {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button:active:not(:disabled),
a.btn-primary:active,
a.btn-secondary:active,
.cat-pill:active,
.payment-method-tab:active,
.momo-network-btn:active,
.crypto-card-item:active,
.btn-qty-step:active:not(:disabled),
.btn-vault-action:active,
.btn-copy-address:active {
  transform: scale(0.97);
  transition: transform 0.06s ease-out;
}

button:disabled {
  cursor: not-allowed;
}





/* ==================== FICHE PRODUIT DÉTAILLÉE, PROMOTIONS & ACTIONS DES CARTES ==================== */
.product-open-details { cursor: pointer; }
.product-name-link {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; line-height: inherit; cursor: pointer;
}
.product-name-link:hover, .product-name-link:focus-visible { color: var(--primary-600); }
.product-desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-group { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.product-compare-price { font-size: 12px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }
.product-promo-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--rose-600); color: #ffffff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2px;
  padding: 3px 8px; border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.product-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.btn-product-details {
  background: #ffffff; border: 1px solid var(--border-subtle); color: var(--text-primary);
  font-weight: 600; font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm);
  transition: var(--transition-normal); white-space: nowrap;
}
.btn-product-details:hover { border-color: var(--primary-200); color: var(--primary-600); background: var(--primary-50); }

#modal-product .modal-window.modal-product-details { max-width: 560px; padding: 0; overflow-x: hidden; }
#modal-product .modal-close-btn { z-index: 3; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12); }
.pd-media { position: relative; aspect-ratio: 800 / 440; background: #f8fafc; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-head { padding: 18px 22px 0; }
.pd-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.3; color: var(--text-primary); margin: 3px 0 10px; }
.pd-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pd-price-row .product-price-group { justify-content: flex-start; }
.pd-fcfa { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pd-summary { padding: 14px 22px 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
.pd-section { margin: 14px 22px 0; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.pd-section-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 9px; }
.pd-icon { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-icon-features { background: var(--primary-50); color: var(--primary-600); }
.pd-icon-benefits { background: #ecfdf5; color: var(--emerald-600); }
.pd-icon-notices { background: #fef3c7; color: var(--gold-600); }
.pd-icon-delivery { background: #f1f5f9; color: var(--text-secondary); }
.pd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-list li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }
.pd-list li::before {
  content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 5px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.pd-list-features li::before { color: var(--primary-600); }
.pd-list-benefits li::before { color: var(--emerald-600); }
.pd-list-notices li::before { border: 0; transform: none; width: 6px; height: 6px; top: 8px; left: 6px; border-radius: 50%; background: var(--gold-600); }
.pd-section-notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 12px 14px; }
.pd-delivery-text { font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.pd-actions {
  position: sticky; bottom: 0; z-index: 2; margin-top: 12px; padding: 16px 22px 18px;
  background: linear-gradient(to top, #ffffff 72%, rgba(255, 255, 255, 0));
}
.pd-actions .btn-buy-product { font-size: 14px; padding: 12px; }

@media (max-width: 640px) {
  #modal-product.modal-backdrop { padding: 0 !important; align-items: flex-end !important; }
  #modal-product .modal-window.modal-product-details {
    width: 100% !important; max-width: 100% !important; margin: 0 !important;
    padding: 0 !important; max-height: 92vh !important; border-radius: 18px 18px 0 0 !important;
  }
  .pd-head, .pd-summary { padding-left: 16px; padding-right: 16px; }
  .pd-section { margin-left: 16px; margin-right: 16px; }
  .pd-actions { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .pd-title { font-size: 17px; }
}

/* ==================== BOUTON « ACHETER » VERS UN LIEN EXTERNE (WhatsApp, autre plateforme) ==================== */
a.btn-buy-product,
a.showcase-buy-btn {
  line-height: normal; /* même hauteur que les boutons « Acheter » du site */
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
a.btn-buy-product:hover, a.btn-buy-product:focus, a.btn-buy-product:visited { color: #ffffff; text-decoration: none; }
a.btn-buy-product:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
a.showcase-buy-btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
a.showcase-buy-btn:hover, a.showcase-buy-btn:focus, a.showcase-buy-btn:visited { color: #ffffff; text-decoration: none; }
.pd-external-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.4; text-align: center; color: var(--text-muted); }
