/* ============================================================
   BRIO SHOP — DESIGN SYSTEM
   Version: 1.0 | Sécurisé & Moderne
   ============================================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* === DESIGN TOKENS === */
:root {
  /* Colors */
  --color-bg:            #FFFFFF;
  --color-bg-soft:       #FAFAFA;
  --color-bg-muted:      #F5F3FF;
  --color-primary:       #7C3AED;
  --color-primary-dark:  #5B21B6;
  --color-primary-light: #8B5CF6;
  --color-primary-pale:  #EDE9FE;
  --color-primary-ultra: #F5F3FF;
  --color-secondary:     #1A1A2E;
  --color-text:          #111827;
  --color-text-muted:    #6B7280;
  --color-text-light:    #9CA3AF;
  --color-border:        #E5E7EB;
  --color-border-focus:  #7C3AED;
  --color-success:       #10B981;
  --color-error:         #EF4444;
  --color-warning:       #F59E0B;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  --grad-soft:     linear-gradient(135deg, #EDE9FE 0%, #F5F3FF 100%);
  --grad-hero:     linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 40%, #FFFFFF 100%);
  --grad-card:     linear-gradient(180deg, rgba(124,58,237,0) 60%, rgba(124,58,237,0.08) 100%);

  /* Typography */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;

  /* Font Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.12);
  --shadow-purple: 0 8px 32px rgba(124, 58, 237, 0.25);
  --shadow-purple-lg: 0 16px 48px rgba(124, 58, 237, 0.30);

  /* Transitions */
  --ease-fast:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast:   150ms var(--ease-fast);
  --transition-base:   250ms var(--ease-fast);
  --transition-slow:   400ms var(--ease-fast);
  --transition-spring: 400ms var(--ease-spring);

  /* Layout */
  --container-max:    1280px;
  --container-narrow: 768px;
  --header-h:         72px;
}

/* === BASE === */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

ul, ol {
  list-style: none;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

/* === GRID === */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* === FLEX UTILITIES === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  transition: box-shadow var(--transition-base), background var(--transition-base);
  pointer-events: auto;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.logo__mark {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-lg);
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: var(--shadow-purple);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
}

.logo__tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

.nav__link.active {
  color: var(--color-primary);
  background: var(--color-primary-pale);
  font-weight: 600;
}

.nav__link--badge {
  position: relative;
}

.nav__badge {
  position: absolute;
  top: 0;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1060;
  pointer-events: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.icon-btn:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  pointer-events: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  pointer-events: none;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--grad-primary);
  color: white;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 990;
}

.announcement-bar a {
  text-decoration: underline;
  opacity: 0.9;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::before {
  background: rgba(255,255,255,0.1);
}

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

/* Primary Button */
.btn--primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-purple);
}

.btn--primary:hover {
  box-shadow: var(--shadow-purple-lg);
  transform: translateY(-1px);
}

/* Outline Button */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary-pale);
  border-color: var(--color-primary-dark);
}

/* Ghost Button */
.btn--ghost {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: white;
}

/* White Button */
.btn--white {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  position: relative;
  background: var(--grad-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 20% 50%, rgba(124,58,237,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 80% 20%, rgba(139,92,246,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  padding: var(--space-24) var(--space-8) var(--space-24) calc((100vw - var(--container-max)) / 2 + var(--space-6));
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(124,58,237,0.2);
  animation: fadeInUp 0.6s var(--ease-fast) both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-secondary);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s 0.1s var(--ease-fast) both;
}

.hero__title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s 0.2s var(--ease-fast) both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s var(--ease-fast) both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  animation: fadeInUp 0.6s 0.4s var(--ease-fast) both;
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero__image {
  position: relative;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  animation: fadeIn 0.8s 0.2s var(--ease-fast) both;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-bg-muted) 0%, transparent 30%);
}

/* Floating Cards on Hero */
.hero__card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 4s ease-in-out infinite;
}

.hero__card--1 {
  bottom: 120px;
  left: 40px;
  animation-delay: 0s;
}

.hero__card--2 {
  top: 120px;
  right: 40px;
  animation-delay: 2s;
}

.hero__card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__card-title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.hero__card-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-pale);
}

.product-card__image-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-bg-soft);
  position: relative;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-card__badge--new {
  background: var(--color-primary);
  color: white;
}

.product-card__badge--sale {
  background: var(--color-error);
  color: white;
}

.product-card__badge--limited {
  background: var(--color-warning);
  color: white;
}

.product-card__actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-base);
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card__action-btn {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.product-card__action-btn:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-purple);
}

.product-card__action-btn svg {
  width: 16px;
  height: 16px;
}

.product-card__body {
  padding: var(--space-4);
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-1);
}

.product-card__name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}

.stars svg {
  width: 12px;
  height: 12px;
}

.rating-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.price--old {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.product-card__add {
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-purple);
  transition: all var(--transition-spring);
}

.product-card__add:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-purple-lg);
}

.product-card__add svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header--left {
  text-align: left;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-title em {
  font-style: italic;
  color: var(--color-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header--left .section-subtitle {
  margin: 0;
}

/* ============================================================
   CATEGORIES STRIP
   ============================================================ */
.categories {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-2) 0;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-pill:hover,
.category-pill.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

.category-pill__icon {
  font-size: var(--text-base);
}

/* ============================================================
   FEATURES / USP SECTION
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.feature-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-pale);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-purple);
  transition: transform var(--transition-spring);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1) rotate(-3deg);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  border-radius: var(--radius-2xl);
  background: var(--grad-primary);
  padding: var(--space-16) var(--space-12);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
}

.promo-banner::after {
  content: '';
  position: absolute;
  right: 150px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
}

.promo-banner__eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.promo-banner__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.promo-banner__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 480px;
}

/* ============================================================
   AFFILIATE SECTION (Homepage teaser)
   ============================================================ */
.affiliate-section {
  background: var(--color-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.affiliate-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.affiliate-section__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.affiliate-section__title em {
  font-style: italic;
  color: var(--color-primary-light);
}

.affiliate-section__desc {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.affiliate-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.affiliate-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.affiliate-stat__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary-light);
  display: block;
  margin-bottom: var(--space-1);
}

.affiliate-stat__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  text-align: center;
  padding: var(--space-24) var(--space-6);
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.newsletter__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
}

.input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  color: var(--color-text);
  background: white;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-20) 0 var(--space-8);
  margin-top: var(--space-24);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-base);
  color: white;
}

.footer__logo-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-sm);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================================
   CART SIDEBAR — MODERN PREMIUM REDESIGN
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 7, 34, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 440px;
  max-width: 100vw;
  background: #ffffff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.34, 1.25, 0.64, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18), 0 0 80px rgba(124, 58, 237, 0.12);
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  overflow: hidden;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border-bottom: 1px solid #f3f0ff;
}

.cart-sidebar__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-sidebar__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
}

.cart-sidebar__badge {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.cart-sidebar__close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar__close-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-sidebar__body::-webkit-scrollbar {
  width: 5px;
}

.cart-sidebar__body::-webkit-scrollbar-track {
  background: transparent;
}

.cart-sidebar__body::-webkit-scrollbar-thumb {
  background: #ddd6fe;
  border-radius: 999px;
}

/* Premium Product Card inside Cart */
.cart-item-card {
  background: #ffffff;
  border: 1px solid #f3f0ff;
  border-radius: 20px;
  padding: 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.cart-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.08);
  border-color: #ddd6fe;
}

.cart-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
}

.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item__tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cart-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.cart-item__price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #7c3aed;
  margin-top: 0.15rem;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.qty-pill-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.qty-pill-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.qty-pill-val {
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 18px;
  text-align: center;
  color: #111827;
}

.cart-item__delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item__delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.05);
}

/* Sticky Footer */
.cart-sidebar__footer {
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border-top: 1px solid #f3f0ff;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
}

.cart-perk-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 1.25rem;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cart-summary-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
}

.cart-summary-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
}

.cart-summary-val span {
  color: #7c3aed;
}

.btn-checkout-premium {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-checkout-premium:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.btn-checkout-premium:active {
  transform: translateY(0) scale(0.98);
}

/* Redesigned Empty Cart State */
.cart-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cart-empty-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid #ddd6fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.12);
  animation: emptyIconFloat 3s ease-in-out infinite;
}

@keyframes emptyIconFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.cart-empty-icon {
  font-size: 3.2rem;
}

.cart-empty-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.5rem;
}

.cart-empty-desc {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 2rem;
}

.cart-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 320px;
}

.btn-empty-formations {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
  transition: all 0.2s ease;
}

.btn-empty-formations:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
}

.btn-empty-shop {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  color: #7c3aed;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-empty-shop:hover {
  background: #ede9fe;
  border-color: #7c3aed;
  transform: translateY(-2px);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 280px;
  max-width: 360px;
  animation: toastIn 0.4s var(--ease-spring) both;
  border: 1px solid var(--color-border);
}

.toast.removing {
  animation: toastOut 0.3s var(--ease-fast) both;
}

.toast__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast__icon--success { background: #D1FAE5; color: var(--color-success); }
.toast__icon--error { background: #FEE2E2; color: var(--color-error); }
.toast__icon--info { background: var(--color-primary-pale); color: var(--color-primary); }

.toast__icon svg { width: 18px; height: 18px; }

.toast__body { flex: 1; }

.toast__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.toast__message {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   BADGES & CHIPS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge--primary { background: var(--color-primary-pale); color: var(--color-primary); }
.badge--success { background: #D1FAE5; color: var(--color-success); }
.badge--error { background: #FEE2E2; color: var(--color-error); }
.badge--warning { background: #FEF3C7; color: var(--color-warning); }

/* ============================================================
   AFFILIATE DASHBOARD PREVIEW CARD
   ============================================================ */
.affiliate-dashboard-preview {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  z-index: 1;
}

.aff-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.aff-preview__title {
  color: white;
  font-weight: 700;
  font-size: var(--text-base);
}

.aff-preview__badge {
  background: rgba(124,58,237,0.3);
  color: var(--color-primary-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.aff-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.aff-metric {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.aff-metric__val {
  display: block;
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
}

.aff-metric__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

.aff-graph {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.aff-bar {
  flex: 1;
  background: rgba(124,58,237,0.4);
  border-radius: 4px 4px 0 0;
  transition: background var(--transition-fast);
}

.aff-bar:hover {
  background: var(--color-primary);
}

.aff-link-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aff-link-box__url {
  font-size: var(--text-xs);
  color: var(--color-primary-light);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.aff-link-box__copy {
  font-size: var(--text-xs);
  background: var(--color-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.aff-link-box__copy:hover {
  background: var(--color-primary-dark);
}

/* ============================================================
   SECURITY NOTICE (Dev environment)
   ============================================================ */
.dev-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FEF3C7;
  border-top: 2px solid var(--color-warning);
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  z-index: 9999;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #92400E;
}

.dev-notice__dot {
  width: 8px;
  height: 8px;
  background: var(--color-warning);
  border-radius: var(--radius-full);
  animation: pulse 1.5s infinite;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-fast), transform 0.7s var(--ease-fast);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding: calc(var(--header-h) + var(--space-12)) var(--space-6) var(--space-12);
  }

  .hero__image {
    min-height: 400px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .affiliate-section {
    grid-template-columns: 1fr;
    padding: var(--space-12) var(--space-8);
  }

  .promo-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav, .header__actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .affiliate-stats {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    width: 100%;
  }

  .trust-bar {
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   FORMATIONS SECTION — DARK NEON THEME
   ============================================================ */
.formations-section {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a0a2e 40%, #0d0d1a 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
}

.formations-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(124,58,237,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 80% 70%, rgba(139,92,246,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 50% 10%, rgba(167,139,250,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.formations-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), transparent);
}

.formations-section .section-eyebrow {
  color: #a78bfa;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.formations-section .section-title {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.formations-section .section-title em {
  font-style: italic;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.formations-section .section-desc {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Formation Cards Grid */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.formations-section {
  background: linear-gradient(180deg, #FAF9FE 0%, #F5F2FF 100%) !important;
  padding: 6rem 0;
  position: relative;
}

.formation-card {
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.08), 0 10px 20px -5px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.formation-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.02) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.formation-card:hover {
  transform: translateY(-6px);
  border-color: #c4b5fd;
  box-shadow: 0 30px 70px -12px rgba(124, 58, 237, 0.2), 0 12px 28px -4px rgba(0, 0, 0, 0.05);
}

.formation-card:hover::before {
  opacity: 1;
}

.formation-card--featured {
  border: 2px solid #7c3aed;
  box-shadow: 0 25px 60px -10px rgba(124, 58, 237, 0.22);
}

.formation-card--featured::after {
  content: 'BEST SELLER';
  position: absolute;
  top: 1.25rem;
  right: -2.5rem;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 0.35rem 3rem;
  transform: rotate(35deg);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.formation-card--coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.formation-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}

.formation-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.formation-card__title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
}

.formation-card__description {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.formation-card__features {
  list-style: none;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.formation-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #374151;
}

.formation-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f0ff;
}

.formation-card__price {
  display: flex;
  flex-direction: column;
}

.formation-card__amount {
  font-size: 2.1rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
}

.formation-card__amount--neon {
  color: #7c3aed;
}

.formation-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.25rem;
}

.btn--neon {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 25px -4px rgba(124, 58, 237, 0.45);
  font-weight: 800;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn--neon:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px -4px rgba(124, 58, 237, 0.65);
  color: #ffffff;
}

.btn--neon:hover {
  box-shadow: 0 0 35px rgba(124,58,237,0.7), 0 8px 32px rgba(124,58,237,0.4);
  transform: translateY(-2px);
}

.btn--neon-outline {
  background: transparent;
  color: #a78bfa;
  border: 1.5px solid rgba(124,58,237,0.5);
}

.btn--neon-outline:hover {
  background: rgba(124,58,237,0.15);
  border-color: #a78bfa;
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
}

/* Section separator — gradient transition */
.section-separator {
  position: relative;
  height: 120px;
  background: linear-gradient(180deg, #0d0d1a 0%, #ffffff 100%);
  overflow: hidden;
}

.section-separator--reverse {
  background: linear-gradient(180deg, #ffffff 0%, #0d0d1a 100%);
}

.section-separator__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.section-separator__line {
  height: 1px;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5));
}

.section-separator__line--right {
  background: linear-gradient(90deg, rgba(124,58,237,0.5), transparent);
}

.section-separator__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7c3aed;
  background: white;
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.3);
}

/* ============================================================
   TESTIMONIALS / SOCIAL PROOF
   ============================================================ */
.testimonials-section {
  background: var(--color-bg-soft);
  padding: var(--space-24) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
  border-color: rgba(124,58,237,0.2);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(124,58,237,0.1);
  line-height: 1;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-card__stars span {
  color: #f59e0b;
  font-size: 1rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.testimonial-card__verified {
  font-size: 0.7rem;
  color: var(--color-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.cta-appel {
  background: var(--grad-primary);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-appel::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-appel__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-appel__sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ============================================================
   HOLOGRAPHIC AFFILIATE CARD
   ============================================================ */
.holographic-card {
  width: 100%;
  max-width: 420px;
  height: 240px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e, #2d1155, #1a0a2e);
  border: 1px solid rgba(167,139,250,0.3);
  box-shadow: 0 20px 60px rgba(124,58,237,0.4), 0 0 80px rgba(124,58,237,0.15);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  cursor: pointer;
  margin: 0 auto 2rem;
}

.holographic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0) 0%,
    rgba(167,139,250,0.1) 25%,
    rgba(124,58,237,0.15) 50%,
    rgba(167,139,250,0.1) 75%,
    rgba(255,255,255,0) 100%
  );
  animation: holoPulse 4s ease infinite;
}

.holographic-card:hover {
  transform: perspective(600px) rotateY(-5deg) rotateX(3deg);
}

@keyframes holoPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.holo-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.04) 50%,
    transparent 70%
  );
  animation: holoShimmer 3s linear infinite;
}

@keyframes holoShimmer {
  0% { transform: translateX(-100%) rotate(0deg); }
  100% { transform: translateX(200%) rotate(0deg); }
}

.holo-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(167,139,250,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

.holographic-card__content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.holographic-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.holographic-card__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.holographic-card__logo-mark {
  width: 36px;
  height: 36px;
  background: rgba(167,139,250,0.2);
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #c4b5fd;
}

.holographic-card__logo-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
}

.holographic-card__logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.holographic-card__grade {
  background: rgba(167,139,250,0.2);
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.holographic-card__middle {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.holographic-card__balance-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
}

.holographic-card__balance {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.holographic-card__balance-currency {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.holographic-card__commission {
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.holographic-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.holographic-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

.holographic-card__code {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
  font-family: monospace;
}

.holographic-card__stats {
  display: flex;
  gap: 1.5rem;
}

.holographic-card__stat {
  text-align: right;
}

.holographic-card__stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: #a78bfa;
  display: block;
}

.holographic-card__stat-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grade Badges */
.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.grade-badge--debutant {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
}

.grade-badge--manager {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fcd34d;
}

.grade-badge--mastermind {
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(167,139,250,0.5);
  color: #c4b5fd;
}

/* Grade Progress */
.grade-progress {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.grade-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width 1s ease;
}

/* Affiliate Dashboard Dark */
.aff-dash-dark {
  background: linear-gradient(135deg, #0d0d1a, #1a0a2e);
  min-height: 100vh;
  padding-top: var(--header-h);
  color: white;
}

.aff-dash-dark .header {
  background: rgba(13,13,26,0.95);
  border-bottom: 1px solid rgba(124,58,237,0.2);
}

.aff-dash-dark .header.scrolled {
  background: rgba(13,13,26,0.99);
}

.aff-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.aff-kpi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.aff-kpi-card:hover {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
}

.aff-kpi-card__label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.aff-kpi-card__value {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.aff-kpi-card__value--purple {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aff-kpi-card__value--green {
  color: #6ee7b7;
}

.aff-kpi-card__sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.4rem;
}

/* Withdraw Button */
.btn--withdraw {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 0 20px rgba(16,185,129,0.3);
  font-weight: 700;
}

.btn--withdraw:hover {
  box-shadow: 0 0 35px rgba(16,185,129,0.5);
  transform: translateY(-2px);
}

.btn--withdraw:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Grade Steps */
.grade-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.grade-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.grade-step--active {
  border-color: rgba(124,58,237,0.6);
  background: rgba(124,58,237,0.1);
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
}

.grade-step--active::before {
  content: '✓ ACTUEL';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 800;
  color: #a78bfa;
  letter-spacing: 1px;
}

.grade-step__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.grade-step__name {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.35rem;
}

.grade-step__cond {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.grade-step__commission {
  font-size: 1.5rem;
  font-weight: 900;
  color: #a78bfa;
}

.grade-step__comm-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sales Table Dark */
.dark-table-container {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  overflow: hidden;
}

.dark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dark-table th {
  background: rgba(124,58,237,0.15);
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(124,58,237,0.2);
}

.dark-table td {
  padding: 1rem 1.5rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dark-table tr:last-child td {
  border-bottom: none;
}

.dark-table tr:hover td {
  background: rgba(124,58,237,0.05);
}

.dark-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.dark-badge--success { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.dark-badge--pending { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }

/* ============================================================
   SCRATCH CARD — GIVEAWAY
   ============================================================ */
.giveaway-page {
  background: linear-gradient(135deg, #0d0d1a, #1a0a2e, #0d0d1a);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.giveaway-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 600px at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.giveaway-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.giveaway-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
}

.giveaway-header__title span {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.giveaway-header__sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
}

.scratch-cards-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.scratch-card {
  position: relative;
  width: 220px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.2);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s;
}

.scratch-card:hover:not(.scratch-card--revealed) {
  transform: translateY(-8px) scale(1.02);
}

.scratch-card__back {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0a2e, #2d1155);
  border: 1px solid rgba(124,58,237,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.scratch-card__back-icon {
  font-size: 3.5rem;
  animation: scratchFloat 2s ease-in-out infinite;
}

@keyframes scratchFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.scratch-card__back-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

.scratch-card__back-cta {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
  animation: scratchPulse 2s ease infinite;
}

@keyframes scratchPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.5); }
  50% { box-shadow: 0 0 35px rgba(124,58,237,0.8); }
}

.scratch-card__front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scratch-card--revealed .scratch-card__front {
  opacity: 1;
  transform: scale(1);
}

.scratch-card--revealed .scratch-card__back {
  opacity: 0;
  pointer-events: none;
}

.scratch-card--winner .scratch-card__front {
  background: linear-gradient(135deg, #10b981, #065f46);
}

.scratch-card--loser .scratch-card__front {
  background: linear-gradient(135deg, #1a0a2e, #2d1155);
}

.scratch-card__reward-icon {
  font-size: 3rem;
}

.scratch-card__reward-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  text-align: center;
}

.scratch-card__reward-code {
  background: rgba(255,255,255,0.15);
  border: 1px dashed rgba(255,255,255,0.4);
  color: white;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  letter-spacing: 2px;
  cursor: pointer;
}

.scratch-card__reward-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.scratch-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
}

/* Confetti burst */
@keyframes confettiFly {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-200px) rotate(720deg); opacity: 0; }
}

.confetti-particle {
  position: fixed;
  pointer-events: none;
  animation: confettiFly 1.5s ease-out forwards;
  border-radius: 2px;
}

.giveaway-notice {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-align: center;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   LOGIN / AUTH PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0d0d1a;
}

.auth-page__left {
  background: linear-gradient(135deg, #1a0a2e, #2d1155, #1a0a2e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.auth-page__left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 500px at 50% 50%, rgba(124,58,237,0.2) 0%, transparent 70%);
}

.auth-visual__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.auth-visual__title em {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-visual__sub {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.auth-visual__perks {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.auth-visual__perk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.auth-visual__perk-icon {
  width: 36px;
  height: 36px;
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-page__right {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-container .logo {
  margin-bottom: 2rem;
}

.auth-form__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.auth-form__sub {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.auth-tabs {
  display: flex;
  background: var(--color-bg-soft);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  background: none;
}

.auth-tab.active {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: white;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 1.5rem;
}

.auth-google-btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.auth-google-btn svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-divider__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-divider__text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

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

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

.form-group .input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--color-text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group .input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.form-group .input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-group .input-error {
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 0.35rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input {
  padding-right: 3rem;
}

.input-wrapper .input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

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

/* ============================================================
   ORDER TRACKING PAGE
   ============================================================ */
.tracking-page {
  background: var(--color-bg-soft);
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}

.tracking-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.tracking-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.tracking-hero__sub {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.tracking-search-box {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  border: 1px solid var(--color-border);
}

.tracking-search-box__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.tracking-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.tracking-result {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.tracking-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.tracking-result__order {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.tracking-result__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.tracking-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tracking-status-badge--shipped {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.2);
}

.tracking-status-badge--delivered {
  background: rgba(16,185,129,0.1);
  color: var(--color-success);
  border: 1px solid rgba(16,185,129,0.2);
}

.tracking-status-badge--processing {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.2);
}

/* Timeline */
.tracking-timeline {
  position: relative;
  padding-left: 2rem;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-step {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step__dot {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: all 0.3s;
}

.timeline-step--done .timeline-step__dot {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
}

.timeline-step--current .timeline-step__dot {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}

.timeline-step--current .timeline-step__dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.timeline-step__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.timeline-step--pending .timeline-step__title {
  color: var(--color-text-muted);
}

.timeline-step__date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.timeline-step__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-page {
  min-height: 100vh;
  background: #f8f9fb;
}

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: #1a0a2e;
  padding: 2rem 0;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar__logo {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.admin-sidebar__logo .logo__name {
  color: white;
}

.admin-sidebar__logo .logo__tagline {
  color: rgba(167,139,250,0.8);
}

.admin-nav {
  padding: 0 0.75rem;
}

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem;
  border-radius: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.admin-nav__item:hover,
.admin-nav__item.active {
  background: rgba(124,58,237,0.2);
  color: #c4b5fd;
}

.admin-nav__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-main {
  margin-left: 260px;
  padding: 2.5rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.admin-header__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a0a2e;
}

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

.admin-kpi-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.admin-kpi-card__label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.admin-kpi-card__value {
  font-size: 2rem;
  font-weight: 900;
  color: #1a0a2e;
}

.admin-kpi-card__value--purple { color: #7c3aed; }
.admin-kpi-card__value--green { color: #10b981; }

.admin-panel {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 2rem;
}

.admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.admin-panel__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a0a2e;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.85rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
  padding: 1rem 1.5rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #f9fafb;
}

.edit-balance-input {
  width: 100px;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7c3aed;
  outline: none;
  transition: border-color 0.2s;
}

.edit-balance-input:focus {
  border-color: #7c3aed;
}

.btn--admin-save {
  background: #7c3aed;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--admin-save:hover {
  background: #5b21b6;
}

/* ============================================================
   CHATBOX WIDGET
   ============================================================ */
.chatbox-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.chatbox-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
  transition: all 0.3s;
  position: relative;
  animation: chatPulse 3s ease infinite;
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(124,58,237,0.5); }
  50% { box-shadow: 0 8px 48px rgba(124,58,237,0.8); }
}

.chatbox-toggle:hover {
  transform: scale(1.1);
}

.chatbox-toggle svg {
  width: 26px;
  height: 26px;
  color: white;
}

.chatbox-notification {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbox-window {
  width: 360px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbox-window--hidden {
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  pointer-events: none;
}

.chatbox-header {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.chatbox-header__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbox-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  position: relative;
}

.chatbox-header__avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #7c3aed;
}

.chatbox-header__name {
  font-weight: 700;
  font-size: 0.9rem;
}

.chatbox-header__status {
  font-size: 0.72rem;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chatbox-header__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.chatbox-header__close:hover {
  color: white;
}

.chatbox-header__close svg {
  width: 20px;
  height: 20px;
}

.chatbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chatbox-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbox-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbox-messages::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.2);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: msgFadeIn 0.3s ease;
}

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

.chat-msg--agent {
  align-self: flex-start;
}

.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-msg__bubble {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.chat-msg--agent .chat-msg__bubble {
  background: #f3f4f6;
  color: #374151;
  border-bottom-left-radius: 4px;
}

.chat-msg--user .chat-msg__bubble {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg__time {
  font-size: 0.68rem;
  color: #9ca3af;
  margin-top: 0.25rem;
  display: block;
}

.chatbox-quick-replies {
  padding: 0 1.25rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-quick-reply {
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chat-quick-reply:hover {
  background: var(--color-primary);
  color: white;
}

.chatbox-input-area {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chatbox-input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 100px;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.chatbox-input:focus {
  border-color: var(--color-primary);
}

.chatbox-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chatbox-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

.chatbox-send svg {
  width: 18px;
  height: 18px;
  color: white;
}

/* ============================================================
   PAYMENT ICONS
   ============================================================ */
.payment-methods {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.payment-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

/* ============================================================
   GLOW EFFECTS (DARK SECTIONS)
   ============================================================ */
.glow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #a78bfa;
  border-radius: 50%;
  box-shadow: 0 0 10px #a78bfa, 0 0 20px rgba(167,139,250,0.5);
  animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px #a78bfa, 0 0 20px rgba(167,139,250,0.5); }
  50% { box-shadow: 0 0 20px #a78bfa, 0 0 40px rgba(167,139,250,0.8); }
}

/* Floating particles background */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(167,139,250,0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100%) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* ============================================================
   RESPONSIVE — NEW COMPONENTS
   ============================================================ */
@media (max-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-page__left {
    display: none;
  }

  .grade-steps {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    width: 80px;
    overflow: visible;
  }

  .admin-sidebar .admin-nav__item span { display: none; }
  .admin-sidebar .admin-sidebar__logo .logo__text { display: none; }

  .admin-main {
    margin-left: 80px;
  }
}

@media (max-width: 768px) {
  .formations-grid {
    grid-template-columns: 1fr;
  }

  .tracking-search-form {
    grid-template-columns: 1fr;
  }

  .scratch-cards-container {
    flex-direction: column;
    align-items: center;
  }

  .chatbox-window {
    width: calc(100vw - 2rem);
    right: 0;
  }

  .grade-steps {
    grid-template-columns: 1fr;
  }

  .cta-appel {
    flex-direction: column;
    text-align: center;
  }

  .holographic-card {
    height: 200px;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .holographic-card {
    height: 190px;
  }

  .holographic-card__balance {
    font-size: 2rem;
  }
}

