/* ===========================================
   PARTYBOX — Design System
   =========================================== */

/* ---- TOKENS ---- */
:root {
  --bg: #07070f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-section: #0c0c1a;
  --primary: #9333ea;
  --primary-light: #a855f7;
  --primary-dark: #7c3aed;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;
  --text-1: #ffffff;
  --text-2: #a1a1aa;
  --text-3: #52525b;
  --border: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(168, 85, 247, 0.5);
  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --grad-text: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 32px rgba(124, 58, 237, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --t: 0.22s ease;
  --t-slow: 0.4s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; display: block; }

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- PAGES ---- */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* ===========================================
   NAVBAR
   =========================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(7, 7, 15, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  user-select: none;
}
.logo-party { color: var(--text-1); }
.logo-box { color: var(--primary-light); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---- HAMBURGER ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  z-index: 101;
  transition: background var(--t), border-color var(--t);
}
.nav-hamburger:hover { background: var(--bg-card); border-color: rgba(255,255,255,0.15); }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
  width: 100%;
}
/* Croix quand ouvert */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); background: var(--bg-card); }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-1);
}
.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(147, 51, 234, 0.05);
}

.btn-accent {
  background: var(--accent);
  color: #1a0a00;
  font-weight: 700;
}
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ===========================================
   HERO
   =========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: blobFloat 9s ease-in-out infinite;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, transparent 70%);
  top: -250px; left: -150px;
}
.blob-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.38) 0%, transparent 70%);
  top: 80px; right: -100px;
  animation-delay: -3.5s;
}
.blob-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
  bottom: -60px; left: 35%;
  animation-delay: -5.5s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.06); }
  66% { transform: translate(-15px, 12px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(147, 51, 234, 0.28);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(42px, 7.5vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-subtitle strong { color: var(--text-1); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 14px;
}
.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-right: -9px;
  color: white;
}
.av1 { background: linear-gradient(135deg, #9333ea, #db2777); }
.av2 { background: linear-gradient(135deg, #db2777, #f59e0b); }
.av3 { background: linear-gradient(135deg, #0ea5e9, #9333ea); }

/* ===========================================
   SECTIONS
   =========================================== */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.22);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-subtitle { color: var(--text-2); font-size: 18px; }

/* ---- Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all var(--t);
}
.step-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.step-icon { font-size: 34px; margin-bottom: 16px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ---- Categories ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
}
.category-card:hover {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18);
}
.category-icon { font-size: 42px; margin-bottom: 16px; display: block; }
.category-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.category-card p { color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
.category-count {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(147, 51, 234, 0.12);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: border-color var(--t);
}
.testimonial-card:hover { border-color: rgba(147, 51, 234, 0.25); }
.stars { font-size: 17px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-3); }

/* ---- Provider CTA ---- */
.provider-cta-section { background: var(--bg-section); }
.provider-cta-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(219, 39, 119, 0.08) 100%);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.provider-cta-content { flex: 1; min-width: 280px; }
.provider-cta-content h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin: 12px 0; }
.provider-cta-content p { color: var(--text-2); margin-bottom: 24px; max-width: 440px; line-height: 1.65; }
.provider-cta-stats { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 34px; font-weight: 900; color: var(--primary-light); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* ---- Footer ---- */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-2); font-size: 14px; transition: color var(--t); }
.footer-links a:hover { color: var(--text-1); }
.footer-copy { color: var(--text-3); font-size: 13px; }

/* ===========================================
   INNER PAGE HEADER
   =========================================== */
.page-header {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(7, 7, 15, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.page-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-btn {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--t);
}
.back-btn:hover { color: var(--text-1); background: var(--bg-card); }
.page-step { color: var(--text-3); font-size: 13px; margin-left: auto; }
.page-title-inline { font-weight: 700; font-size: 16px; }

/* ---- Inner page container ---- */
.page-container {
  max-width: 600px;
  margin: 0 auto;
  padding-top: 36px;
  padding-bottom: 100px;
}
.catalog-container { max-width: 1140px; }
.page-title-area { margin-bottom: 32px; }
.page-title-area h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-title-area p { color: var(--text-2); }

/* ===========================================
   FORMS
   =========================================== */
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 15px;
  transition: all var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}
.form-input::placeholder { color: var(--text-3); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; }

.form-hint { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.form-legal { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 14px; }

/* ---- Event type selector ---- */
.event-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.event-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  min-width: 82px;
  transition: all var(--t);
}
.event-type-btn span:first-child { font-size: 26px; }
.event-type-btn:hover { border-color: rgba(147, 51, 234, 0.4); color: var(--text-1); }
.event-type-btn.selected {
  border-color: var(--primary);
  background: rgba(147, 51, 234, 0.13);
  color: var(--primary-light);
}

/* ---- Counter ---- */
.counter-input {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.counter-btn {
  width: 38px; height: 38px;
  background: rgba(147, 51, 234, 0.12);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
}
.counter-btn:hover { background: rgba(147, 51, 234, 0.28); }
.counter-value { font-size: 24px; font-weight: 800; min-width: 48px; text-align: center; }

/* ===========================================
   CATALOG
   =========================================== */
.catalog-tabs-wrapper {
  position: sticky;
  top: 53px; z-index: 40;
  background: rgba(7, 7, 15, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.catalog-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.catalog-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  transition: all var(--t);
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--text-1); background: var(--bg-card); }
.tab-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.event-info-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  justify-content: center;
  flex-wrap: wrap;
}
.separator { color: var(--text-3); }

.cart-icon-btn {
  color: var(--text-1);
  font-size: 19px;
  padding: 7px 10px;
  border-radius: var(--radius);
  transition: all var(--t);
  line-height: 1;
}
.cart-icon-btn:hover { background: var(--bg-card); }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 3px;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-top: 24px;
}
.catalog-header h2 { font-size: 22px; font-weight: 800; }
#catalog-category-count { color: var(--text-2); font-size: 14px; }

/* ---- Provider grid ---- */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  padding-bottom: 140px;
}

/* ---- Provider card ---- */
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--t);
}
.provider-card:hover {
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.provider-card.in-cart {
  border-color: var(--success);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.provider-photo {
  height: 160px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28) 0%, rgba(219, 39, 119, 0.22) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  position: relative;
}
.provider-in-cart-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--success);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.provider-body { padding: 20px; }
.provider-name { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.provider-title { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.provider-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.rating-score { font-size: 14px; font-weight: 700; color: var(--accent); }
.rating-count { font-size: 12px; color: var(--text-3); }
.provider-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.provider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.provider-price { font-size: 15px; font-weight: 700; line-height: 1.2; }
.provider-price span { font-size: 11px; color: var(--text-2); font-weight: 400; display: block; }
.provider-actions { display: flex; gap: 8px; }

/* ---- Floating cart bar ---- */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  padding: 14px 24px;
  background: rgba(10, 10, 22, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(147, 51, 234, 0.28);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-bar.visible { transform: translateY(0); }
.cart-bar-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cart-bar-info { display: flex; flex-direction: column; }
.cart-bar-info span:first-child { font-size: 12px; color: var(--text-2); }
.cart-bar-total { font-size: 22px; font-weight: 900; }

/* ===========================================
   MODAL
   =========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #0e0e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px 24px 0;
  position: relative;
  animation: slideUp 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.modal-close:hover { background: var(--bg-card-hover); color: var(--text-1); }

.modal-gallery {
  height: 190px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(219, 39, 119, 0.25) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  margin-bottom: 20px;
}
.modal-provider-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-provider-meta { color: var(--text-2); font-size: 14px; margin-bottom: 4px; }
.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 22px 0 10px;
}
.modal-desc { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.includes-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.includes-list li { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.includes-list li::before { content: "✓"; color: var(--success); font-weight: 700; }

.formula-list { display: flex; flex-direction: column; gap: 10px; }
.formula-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all var(--t);
}
.formula-item:hover { border-color: rgba(147, 51, 234, 0.4); background: rgba(147, 51, 234, 0.05); }
.formula-item.selected {
  border-color: var(--primary);
  background: rgba(147, 51, 234, 0.1);
}
.formula-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.formula-name { font-weight: 700; font-size: 15px; }
.formula-price { font-weight: 800; color: var(--primary-light); font-size: 17px; }
.formula-detail { font-size: 13px; color: var(--text-2); }

.modal-add-btn {
  position: sticky;
  bottom: 0;
  margin: 20px -24px 0;
  padding: 16px 24px 24px;
  background: rgba(14, 14, 28, 0.97);
  border-top: 1px solid var(--border);
}

/* ===========================================
   CART PAGE
   =========================================== */
.cart-event-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(147, 51, 234, 0.07);
  border: 1px solid rgba(147, 51, 234, 0.18);
  border-radius: var(--radius-lg);
}
.cart-emoji { font-size: 38px; }
.cart-event-header h1 { font-size: 19px; font-weight: 700; margin-bottom: 3px; }
.cart-event-header p { font-size: 14px; color: var(--text-2); }

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cart-item-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 15px; }
.cart-item-detail { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.cart-item-price { font-weight: 800; font-size: 16px; }
.cart-item-remove {
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--t);
}
.cart-item-remove:hover { color: var(--danger); background: rgba(239, 68, 68, 0.08); }

.add-more-btn { margin-bottom: 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.add-more-btn:hover { border-color: rgba(147, 51, 234, 0.3); }

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-total { color: var(--text-1); font-weight: 800; font-size: 19px; }

.trust-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

/* ===========================================
   PAYMENT PAGE
   =========================================== */
.form-section {
  margin-bottom: 20px;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.payment-method-btn {
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t);
}
.payment-method-btn:hover {
  border-color: var(--primary);
  background: rgba(147, 51, 234, 0.06);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 18px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
  line-height: 1.5;
}
.checkbox-label input { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.payment-total-recap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(147, 51, 234, 0.07);
  border: 1px solid rgba(147, 51, 234, 0.18);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-2);
}
.payment-total-amount { font-size: 24px; font-weight: 900; color: var(--text-1); }

/* ===========================================
   CONFIRMATION PAGE
   =========================================== */
#page-confirmation {
  display: none;
}
#page-confirmation.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 0;
}
.confirmation-wrapper { width: 100%; }
.confirmation-content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.confirmation-icon {
  font-size: 88px;
  display: block;
  margin-bottom: 22px;
  animation: bounceIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.confirmation-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.confirmation-ref {
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

.confirmation-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  padding: 11px 0;
}
.info-item:not(:last-child) { border-bottom: 1px solid var(--border); }

.next-steps {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.next-steps h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 700;
}
.next-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--text-2);
}
.next-step:not(:last-child) { border-bottom: 1px solid var(--border); }
.next-step strong { color: var(--text-1); font-weight: 600; }
.step-circle {
  width: 26px; height: 26px;
  flex-shrink: 0;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.confirmation-actions { display: flex; flex-direction: column; gap: 10px; }

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: rgba(14, 14, 28, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===========================================
   EMPTY STATE
   =========================================== */
.empty-cart {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.empty-cart-icon { font-size: 52px; margin-bottom: 16px; }
.empty-cart p { font-size: 15px; line-height: 1.6; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
  .hero-title { letter-spacing: -1.5px; }
  .form-row { grid-template-columns: 1fr; }
  .provider-cta-card { flex-direction: column; padding: 36px 28px; gap: 28px; }
  .provider-cta-stats { justify-content: center; gap: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .catalog-container { padding-top: 0; }

  /* Menu mobile */
  .nav-hamburger { display: flex; }
  .nav-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 20px;
    background: rgba(7, 7, 15, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    animation: menuSlideDown 0.22s ease;
  }
  .nav-actions.is-open { display: flex; }
  .nav-actions .btn { width: 100%; justify-content: center; }
}
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .providers-grid { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .toast-container { bottom: 80px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }
}
