/* =========================================
   BOOSTPANEL — Dark Tech SMM Dashboard
   Afro-Tech Noir Futuriste by Nelo Lab
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:          #0A0A0F;
  --surface:     #111118;
  --card:        #1C1C2E;
  --card-hover:  #22223a;
  --border:      rgba(108,99,255,.18);
  --primary:     #6C63FF;
  --primary-glow:rgba(108,99,255,.35);
  --accent:      #00D4FF;
  --accent-glow: rgba(0,212,255,.25);
  --danger:      #FF6B6B;
  --success:     #00E5A0;
  --warn:        #FFB830;
  --text:        #F8F8FF;
  --text-muted:  #8888A8;
  --text-dim:    #55556A;

  /* Platform colors */
  --ig: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  --tt: #000000;
  --tw: #1DA1F2;
  --yt: #FF0000;
  --fb: #1877F2;
  --sc: #FFFC00;
  --li: #0A66C2;
  --sp: #1DB954;
  --pi: #E60023;
  --rd: #FF4500;

  --radius:   12px;
  --radius-lg:20px;
  --radius-xl:28px;
  --shadow:   0 4px 32px rgba(0,0,0,.5);
  --shadow-lg:0 8px 64px rgba(0,0,0,.7);
  --transition:.22s cubic-bezier(.4,0,.2,1);
  --font-display:'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── SCROLLBAR ──────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── CONTAINER ──────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── UTILITIES ──────────────────────────── */
.hidden { display: none !important; }

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
  background: #7d75ff;
  box-shadow: 0 0 32px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108,99,255,.07);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-glow);
}
.btn-accent:hover {
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-icon { padding: 10px; border-radius: 10px; }

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── HERO ───────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(108,99,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,212,255,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.hero-cta .btn { padding: 13px 28px; font-size: 15px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 680px;
  margin: 0 auto;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat {
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
}
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}
.stat .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── SECTION TITLES ─────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
}
.section-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── PLATFORMS STRIP ────────────────────── */
.platforms {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.platforms-track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.platform-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.platform-pill svg { width: 22px; height: 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SERVICES ───────────────────────────── */
.services { padding: 96px 0; }

.services-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(108,99,255,.1);
}
.filter-btn svg { width: 16px; height: 16px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* Service Card */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--platform-color, var(--primary));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.service-card:hover {
  border-color: rgba(108,99,255,.35);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; }

.card-header-text h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.card-header-text span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.service-options { display: flex; flex-direction: column; gap: 12px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

.form-control {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: rgba(108,99,255,.06);
  box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}
.form-control::placeholder { color: var(--text-dim); }
select.form-control {
  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='%238888A8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
select.form-control option { background: #1C1C2E; color: var(--text); }

.qty-input-wrapper { position: relative; }
.qty-input-wrapper .form-control { padding-right: 80px; }
.qty-badge {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 3px 8px;
  pointer-events: none;
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.price-display {
  font-size: 13px;
  color: var(--text-muted);
}
.price-display strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}

/* ── DASHBOARD ──────────────────────────── */
.dashboard { padding: 80px 0; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.balance-card {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(108,99,255,.3);
}
.balance-label-top {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 16px;
}
.balance-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
}
.balance-currency {
  font-size: 20px;
  vertical-align: super;
  font-weight: 400;
  margin-right: 4px;
}
.balance-card .balance-label { font-size: 13px; opacity: .7; margin-bottom: 24px; }
.balance-card .btn { width: 100%; justify-content: center; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.balance-card .btn:hover { background: rgba(255,255,255,.25); }

.stat-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.stat-mini {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.stat-mini .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: block;
}
.stat-mini .lbl { font-size: 11px; opacity: .65; margin-top: 2px; display: block; }

/* Orders Table */
.orders-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.orders-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.orders-panel-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.orders-table-wrapper { overflow-x: auto; }
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.orders-table th {
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.orders-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text);
  vertical-align: middle;
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: rgba(255,255,255,.02); }

.order-id { font-family: monospace; color: var(--text-muted); font-size: 12px; }
.order-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.order-platform .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-badge.pending  { background: rgba(255,184,48,.12);  color: var(--warn); }
.status-badge.active   { background: rgba(0,229,160,.12);  color: var(--success); }
.status-badge.done     { background: rgba(108,99,255,.12); color: var(--primary); }
.status-badge.failed   { background: rgba(255,107,107,.12); color: var(--danger); }

.progress-bar-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 5px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; transition: width .5s ease; }
.progress-pct { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-weight: 600; }

/* ── MODAL ──────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.modal-sm { max-width: 360px; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
.modal-close:hover { background: rgba(255,107,107,.15); color: var(--danger); border-color: var(--danger); }

/* Auth modal */
.modal-logo {
  text-align: center;
  margin-bottom: 28px;
}
.modal-logo .logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.modal-logo .logo-text span { color: var(--primary); }

.tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}
.tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  font-family: var(--font-body);
}
.tab.active { background: var(--primary); color: #fff; box-shadow: 0 2px 12px var(--primary-glow); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .form-control { width: 100%; }

.input-icon-wrap { position: relative; }
.input-icon-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-dim); pointer-events: none; }
.input-icon-wrap .form-control { padding-left: 40px; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--text-dim);
  font-size: 12px;
}
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Order summary */
.order-summary-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.order-summary-row:last-child { border-bottom: none; font-weight: 700; color: var(--text); }
.order-summary-row .key { color: var(--text-muted); }
.order-summary-row .val { font-weight: 600; }
.order-summary-total { color: var(--primary); font-size: 18px; }

/* ── NOTIFICATION ───────────────────────── */
.notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: notifIn .3s cubic-bezier(.4,0,.2,1);
  max-width: 340px;
}
@keyframes notifIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.notification.success { border-color: rgba(0,229,160,.3); }
.notification.success::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.notification.error   { border-color: rgba(255,107,107,.3); }
.notification.error::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.notification.info::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── FOOTER ─────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo { display: inline-block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.5px; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { margin-top: 12px; font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-muted); }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 72px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .navbar .container { gap: 16px; }
  .nav-links { display: none; }
}

/* ── LOADING SPINNER ────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; opacity: .3; margin-bottom: 16px; }
.empty-state h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }
.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Tablette */
@media (max-width: 768px) {
    .hero-image img {
        max-width: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-image {
        padding: 10px;
    }

    .hero-image img {
        max-width: 220px;
    }
}

/* Téléphones */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }
}

/* Grandes téléphones */
@media screen and (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 15px;
    }
}

/* Tablettes */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 16px;
    }
}

/* PC portables */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    body {
        font-size: 17px;
    }
}

/* Écrans larges */
@media screen and (min-width: 1441px) {
    body {
        font-size: 18px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}
.container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 15px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}video,
iframe {
    width: 100%;
    height: auto;
    border: none;
}
.auth-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:var(--bg);
    padding:20px;
}

.auth-card{
    width:100%;
    max-width:420px;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:24px;
    padding:32px;
    box-shadow:var(--shadow);
}

.auth-logo{
    font-size:2rem;
    font-weight:800;
    text-align:center;
    color:var(--text);
    margin-bottom:30px;
}

.auth-logo span{
    color:var(--primary);
}

.auth-input{
    width:100%;
    height:56px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:14px;
    padding:0 18px;
    color:var(--text);
    font-size:16px; /* empêche le zoom mobile */
    margin-bottom:16px;
    outline:none;
}

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

.btn-auth{
    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    background:var(--primary);
    color:white;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.btn-google{
    width:100%;
    height:56px;
    margin-top:15px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--google-bg);
    color:var(--google-text);
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    cursor:pointer;
}

.btn-google img{
    width:22px;
    height:22px;
}

@media (max-width:480px){
    .auth-card{
        padding:22px;
        border-radius:18px;
    }

    .auth-logo{
        font-size:1.7rem;
    }
}
.auth-page{
    background:var(--bg);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.auth-card{
    width:100%;
    max-width:420px;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:24px;
    padding:35px;
    box-shadow:
        0 15px 40px rgba(0,0,0,.35);
}

.auth-logo{
    text-align:center;
    font-size:2rem;
    font-weight:800;
    color:var(--text);
    margin-bottom:20px;
}

.auth-logo span{
    color:var(--primary);
}

.auth-title{
    text-align:center;
    color:var(--text);
    margin-bottom:8px;
}

.auth-subtitle{
    text-align:center;
    color:var(--text-muted);
    margin-bottom:25px;
}

.form-group{
    margin-bottom:15px;
}

.auth-input{
    width:100%;
    height:56px;
    padding:0 18px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:14px;
    color:var(--text);
    font-size:16px;
    outline:none;
}

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

.btn-login{
    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    background:var(--primary);
    color:white;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.separator{
    display:flex;
    justify-content:center;
    margin:20px 0;
    color:var(--text-muted);
}

.btn-google{
    width:100%;
    height:56px;
    background:white;
    color:#202124;
    border:none;
    border-radius:14px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.btn-google img{
    width:22px;
    height:22px;
}

@media(max-width:480px){

    .auth-card{
        padding:22px;
        border-radius:18px;
    }

    .auth-logo{
        font-size:1.7rem;
    }

}
.auth-links{
    display:flex;
    justify-content:flex-end;
    margin:10px 0 20px;
}

.forgot-link{
    color:var(--primary);
    text-decoration:none;
    font-size:14px;
}

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

.checkbox-group{
    margin:20px 0;
}

.checkbox-label{
    display:flex;
    gap:10px;
    align-items:flex-start;
    color:var(--text-muted);
    font-size:14px;
    line-height:1.5;
}

.checkbox-label input{
    width:18px;
    height:18px;
    margin-top:2px;
}

.checkbox-label a{
    color:var(--primary);
    text-decoration:none;
}

.checkbox-label a:hover{
    text-decoration:underline;
}

.bottom-link{
    text-align:center;
    margin-top:25px;
    color:var(--text-muted);
}

.bottom-link a{
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
}

.bottom-link a:hover{
    text-decoration:underline;
}
.legal-page{
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    padding:40px 20px;
}

.legal-container{
    max-width:900px;
    margin:auto;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:20px;
    padding:40px;
}

.legal-container h1{
    margin-bottom:20px;
}

.legal-container h2{
    margin-top:30px;
    margin-bottom:15px;
    color:var(--primary);
}

.legal-container p,
.legal-container li{
    color:var(--text-muted);
    line-height:1.8;
}

.legal-container a{
    color:var(--primary);
    text-decoration:none;
}

.legal-container ul{
    padding-left:20px;
}

@media(max-width:768px){
    .legal-container{
        padding:25px;
    }
}
.dashboard-grid{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:24px;
}

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

.orders-table-wrapper{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.orders-table{
    min-width:700px;
    width:100%;
}
.profile-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:20px;
    padding:25px;
    margin-bottom:30px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
}

.profile-left{
    display:flex;
    align-items:center;
    gap:20px;
}

.profile-avatar{
    position:relative;
}

.profile-avatar img{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid var(--primary);
}

.edit-photo{
    position:absolute;
    right:-5px;
    bottom:-5px;

    width:30px;
    height:30px;

    border-radius:50%;
    background:var(--primary);

    display:flex;
    justify-content:center;
    align-items:center;

    cursor:pointer;
    color:white;
    font-size:14px;
}

.profile-info h3{
    margin:0;
    color:var(--text);
}

.profile-info p{
    margin:5px 0;
    color:var(--text-muted);
}

.user-id{
    font-size:13px;
    color:var(--accent);
    word-break:break-all;
}

.joined-date{
    color:var(--text-muted);
}

@media(max-width:768px){

    .profile-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .profile-left{
        flex-direction:column;
        align-items:flex-start;
    }

}