/* =============================================
   CHART NINJAS — Global Stylesheet
   Cyberpunk / Dark Trader Aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700;800&family=Share+Tech+Mono&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-base:        #06060f;
  --bg-card:        #0c0c1e;
  --bg-card2:       #101028;
  --bg-input:       #0a0a1c;
  --border:         #1e1e42;
  --border-glow:    #3d1a78;

  --purple:         #9333ea;
  --purple-light:   #c084fc;
  --purple-glow:    #7c3aed;
  --purple-dim:     #4c1d95;
  --cyan:           #00d4ff;
  --cyan-dim:       #0891b2;
  --pink:           #f72585;
  --pink-dim:       #9d174d;
  --green:          #39d353;
  --red:            #ff4444;
  --gold:           #fbbf24;

  --text-primary:   #f0f0ff;
  --text-secondary: #9090c0;
  --text-muted:     #5555880;

  --font-heading:   'Exo 2', sans-serif;
  --font-body:      'Rajdhani', sans-serif;
  --font-mono:      'Share Tech Mono', monospace;

  --radius:         8px;
  --radius-lg:      14px;
  --transition:     0.25s ease;
  --glow-purple:    0 0 20px rgba(147, 51, 234, 0.5);
  --glow-cyan:      0 0 20px rgba(0, 212, 255, 0.4);
  --glow-pink:      0 0 20px rgba(247, 37, 133, 0.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cyan-text { color: var(--cyan); }
.purple-text { color: var(--purple-light); }
.pink-text { color: var(--pink); }
.muted { color: var(--text-secondary); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 16px; align-items: center; }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-glow));
  color: #fff;
  box-shadow: var(--glow-purple);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.7);
  transform: translateY(-2px);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
  color: var(--cyan);
}
.btn-pink {
  background: linear-gradient(135deg, var(--pink), #b5179e);
  color: #fff;
  box-shadow: var(--glow-pink);
}
.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(247, 37, 133, 0.7);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-purple);
  transform: translateY(-4px);
}
.card-glow {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(76, 29, 149, 0.3);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-purple { background: rgba(147, 51, 234, 0.2); color: var(--purple-light); border: 1px solid rgba(147, 51, 234, 0.4); }
.badge-cyan { background: rgba(0, 212, 255, 0.15); color: var(--cyan); border: 1px solid rgba(0, 212, 255, 0.3); }
.badge-pink { background: rgba(247, 37, 133, 0.15); color: var(--pink); border: 1px solid rgba(247, 37, 133, 0.3); }
.badge-green { background: rgba(57, 211, 83, 0.15); color: var(--green); border: 1px solid rgba(57, 211, 83, 0.3); }
.badge-gold { background: rgba(251, 191, 36, 0.15); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.3); }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Dividers ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 24px 0;
}

/* ── Background Effects ── */
.bg-grid {
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.bg-radial-purple {
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.3;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.logo span { color: var(--purple-light); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(147, 51, 234, 0.1);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 680px; position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--cyan);
}
.hero h1 { margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label { font-size: 0.85rem; color: var(--text-secondary); }
.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  opacity: 0.15;
  pointer-events: none;
}

/* ── Features Strip ── */
.features-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.features-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.feature-pill .icon { color: var(--cyan); font-size: 1.1rem; }

/* ── Product Cards ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.3);
  transform: translateY(-6px);
}
.product-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.2);
}
.product-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-card2), var(--border-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-card));
}
.product-body { padding: 24px; }
.product-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.product-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.product-price { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.price-current { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--purple-light); }
.price-old { font-size: 0.95rem; color: var(--text-secondary); text-decoration: line-through; }
.price-save { font-size: 0.8rem; color: var(--green); font-weight: 600; }
.product-ribbon {
  position: absolute;
  top: 16px;
  right: -8px;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.3);
}
.product-ribbon::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  border-width: 4px 8px;
  border-style: solid;
  border-color: #9d174d transparent transparent transparent;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-info .name { font-weight: 600; font-size: 0.9rem; }
.author-info .role { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.3px; }
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}
.form-input::placeholder { color: #44447a; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239090c0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0; }
.checkbox-group label { font-size: 0.88rem; color: var(--text-secondary); cursor: pointer; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
  position: relative;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.auth-header { text-align: center; margin-bottom: 36px; }
.auth-header .logo { justify-content: center; margin-bottom: 24px; }
.auth-header h2 { margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 0.95rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-secondary); }

/* ── Dashboard ── */
.dashboard-layout { display: flex; min-height: calc(100vh - 70px); padding-top: 70px; }
.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-section { margin-bottom: 8px; }
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 24px;
  margin-bottom: 8px;
  margin-top: 24px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.93rem;
  transition: all var(--transition);
  position: relative;
}
.sidebar-link:hover { color: var(--text-primary); background: rgba(147, 51, 234, 0.08); }
.sidebar-link.active {
  color: var(--purple-light);
  background: rgba(147, 51, 234, 0.12);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--purple);
  border-radius: 0 3px 3px 0;
}
.sidebar-link .icon { font-size: 1rem; }
.dashboard-main { margin-left: 260px; flex: 1; padding: 36px; min-height: calc(100vh - 70px); }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { margin-bottom: 4px; }
.dashboard-header p { color: var(--text-secondary); }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-card .stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }
.stat-card .stat-change { font-size: 0.82rem; margin-top: 4px; }
.stat-card .stat-change.up { color: var(--green); }
.stat-card .stat-change.down { color: var(--red); }

/* ── Progress Bars ── */
.progress-bar { background: var(--border); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--purple), var(--cyan)); transition: width 0.6s ease; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-card2); }
th { padding: 14px 18px; text-align: left; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
td { padding: 14px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: rgba(147, 51, 234, 0.05); }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px; margin-bottom: 28px; }
.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.tab-btn.active {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--glow-purple);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

/* ── AI Chat Widget ── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
}
.chat-toggle {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(147, 51, 234, 0.5);
  transition: all var(--transition);
  border: none;
  color: #fff;
  position: relative;
}
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(147, 51, 234, 0.7); }
.chat-toggle .chat-badge {
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-base);
}
.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 60px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 520px;
}
.chat-window.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, var(--purple-dim), #1a0a40);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.chat-header-text .name { font-weight: 700; font-size: 0.92rem; }
.chat-header-text .status { font-size: 0.75rem; color: var(--green); }
.chat-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.1rem; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--purple), var(--purple-glow));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-suggestions { padding: 0 16px 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggestion {
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--purple-light);
  cursor: pointer;
  transition: all var(--transition);
}
.chat-suggestion:hover { background: rgba(147, 51, 234, 0.25); }
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 16px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--purple); }
.chat-send {
  width: 36px; height: 36px;
  background: var(--purple);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send:hover { background: var(--purple-light); }

/* ── Cart Drawer ── */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1500;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1499;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-icon {
  width: 52px; height: 52px;
  background: var(--bg-card2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { color: var(--purple-light); font-weight: 700; }
.cart-item-remove { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.1rem; transition: color var(--transition); align-self: flex-start; }
.cart-item-remove:hover { color: var(--red); }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--cyan); }
.toast-icon { font-size: 1.1rem; }
.toast-msg { font-size: 0.88rem; flex: 1; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Pricing ── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.popular {
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.25);
}
.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pricing-name { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); margin-bottom: 16px; }
.pricing-price { margin-bottom: 8px; }
.pricing-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; }
.pricing-period { color: var(--text-secondary); font-size: 0.9rem; }
.pricing-desc { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 28px; }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-feature { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature .check { color: var(--green); }
.pricing-feature .cross { color: var(--text-secondary); opacity: 0.5; }

/* ── FAQ / Accordion ── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.accordion-icon { color: var(--purple-light); font-size: 1.2rem; flex-shrink: 0; transition: transform var(--transition); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body-inner { padding: 0 0 20px; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.7; }

/* ── Affiliate ── */
.affiliate-steps { counter-reset: step; }
.affiliate-step { display: flex; gap: 20px; margin-bottom: 32px; }
.step-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--purple-glow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--glow-purple);
}
.step-content h4 { margin-bottom: 6px; }
.step-content p { color: var(--text-secondary); font-size: 0.92rem; }
.ref-link-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ref-link-box input { background: none; border: none; color: var(--cyan); font-family: var(--font-mono); font-size: 0.88rem; flex: 1; outline: none; }
.copy-btn { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--cyan); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: all var(--transition); white-space: nowrap; }
.copy-btn:hover { background: rgba(0,212,255,0.2); }

/* ── Footer ── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; max-width: 260px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 0.95rem;
}
.social-btn:hover { color: var(--purple-light); border-color: var(--purple); background: rgba(147, 51, 234, 0.1); }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-primary); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--purple-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-secondary); flex-wrap: wrap; gap: 12px; }

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 220px; }
  .dashboard-main { margin-left: 220px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(6, 6, 15, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  .hamburger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; padding: 20px; }
  .chat-window { width: 300px; }
  .cart-drawer { width: 100%; }
  .auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
