@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --c-ink: #1A1A2E;
  --c-punch: #FF4D6D;
  --c-punch-dark: #E03558;
  --c-cream: #FFF8F0;
  --c-slate: #6B7280;
  --c-border: #E8E0D8;
  --c-surface: #FFFFFF;
  --c-success: #16A34A;
  --c-success-bg: #DCFCE7;
  --c-info: #2563EB;
  --c-info-bg: #DBEAFE;
  --c-warning: #D97706;
  --c-warning-bg: #FEF3C7;
  --c-danger-bg: #FEE2E2;
  --c-danger: #DC2626;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 32px rgba(26,26,46,0.14);
  --max-w: 480px;
  --nav-h: 64px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--c-cream);
  color: var(--c-ink);
  min-height: 100vh;
  line-height: 1.5;
}

/* ─── LAYOUT ─── */
.app-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-cream);
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--c-ink);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.app-logo span { color: var(--c-punch); }

.header-spacer { flex: 1; }

.offer-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.offer-free { background: rgba(255,255,255,0.15); color: #fff; }
.offer-pack { background: var(--c-info-bg); color: var(--c-info); }
.offer-vd   { background: var(--c-warning-bg); color: var(--c-warning); }

/* ─── BOTTOM NAV ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  background: var(--c-ink);
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  height: var(--nav-h);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  letter-spacing: 0.2px;
}
.nav-item i { font-size: 22px; }
.nav-item.active { color: var(--c-punch); }
.nav-item:hover:not(.active) { color: rgba(255,255,255,0.75); }

/* ─── PAGES ─── */
.page { display: none; flex: 1; padding-bottom: calc(var(--nav-h) + 20px); }
.page.active { display: block; }

/* ─── AUTH PAGES ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 48px;
  background: var(--c-ink);
}

.auth-logo {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 6px;
  text-align: center;
}
.auth-logo span { color: var(--c-punch); }
.auth-tagline { color: rgba(255,255,255,0.55); font-size: 14px; text-align: center; margin-bottom: 36px; }

.auth-card {
  background: var(--c-surface);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--c-slate); }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--c-cream);
  color: var(--c-ink);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus { border-color: var(--c-punch); background: #fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-full { width: 100%; }
.btn-primary {
  background: var(--c-punch);
  color: #fff;
}
.btn-primary:hover { background: var(--c-punch-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,77,109,0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--c-border);
  color: var(--c-ink);
}
.btn-ghost:hover { border-color: var(--c-ink); }

.btn-ink {
  background: var(--c-ink);
  color: #fff;
}
.btn-ink:hover { opacity: .85; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 16px 24px; font-size: 17px; font-weight: 700; }

/* ─── DIVIDER ─── */
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--c-slate);
  font-size: 13px;
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ─── OAUTH BUTTONS ─── */
.oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  color: var(--c-ink);
}
.oauth-btn:hover { border-color: var(--c-ink); background: var(--c-cream); }
.oauth-btn img { width: 18px; height: 18px; }
.oauth-full { grid-column: span 2; }

.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--c-slate); }
.auth-switch a { color: var(--c-punch); font-weight: 500; cursor: pointer; text-decoration: none; }

/* ─── SECTION ─── */
.section { padding: 20px 16px; }
.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.section-sub { font-size: 13px; color: var(--c-slate); margin-bottom: 16px; }

/* ─── CARDS ─── */
.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-body { padding: 16px 18px; }
.card + .card { margin-top: 12px; }

/* ─── UPLOAD AREA ─── */
.upload-section { padding: 16px; }
.upload-guide {
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.guide-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.guide-text p { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.guide-text ul { font-size: 12px; color: rgba(255,255,255,0.7); padding-left: 14px; line-height: 1.7; }

.photo-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.photo-slot {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all .15s;
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.photo-slot:hover { border-color: var(--c-punch); background: rgba(255,77,109,0.04); }
.photo-slot.has-image { border: 2px solid var(--c-punch); }
.photo-slot.has-image .slot-placeholder { display: none; }
.slot-placeholder { text-align: center; pointer-events: none; }
.slot-placeholder i { font-size: 24px; color: var(--c-border); display: block; margin-bottom: 4px; }
.slot-placeholder span { font-size: 11px; color: var(--c-slate); }
.slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.photo-slot.has-image .slot-img { display: block; }
.slot-num {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background: var(--c-punch);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.photo-slot.has-image .slot-num { display: flex; }
.slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(26,26,46,0.75);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.photo-slot.has-image .slot-remove { display: flex; }

/* ─── SELECTOR CHIPS ─── */
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--c-border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  background: var(--c-surface);
  color: var(--c-ink);
  user-select: none;
}
.chip:hover { border-color: var(--c-punch); color: var(--c-punch); }
.chip.active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}
.chip i { font-size: 15px; }

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-slate);
  margin-bottom: 8px;
  display: block;
}

/* ─── GENERATE BUTTON ─── */
.generate-btn-wrap { padding: 0 16px 16px; }

/* ─── RESULT CARD (ÉTIQUETTE) ─── */
.result-section { padding: 0 16px 16px; }
.result-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

.result-header {
  background: var(--c-ink);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-header-text { flex: 1; }
.result-header-text p { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.result-header-text h3 { color: #fff; font-size: 15px; font-weight: 700; margin-top: 2px; }

/* Signature: étiquette kraft */
.etiquette {
  position: relative;
  display: inline-block;
  background: #F5E6C8;
  border: 1px solid #C8A96E;
  border-radius: 4px;
  padding: 5px 10px 5px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #7A5C2E;
  transform: rotate(-3deg);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.etiquette::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-ink);
  border: 1px solid #C8A96E;
}

.result-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }

.result-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-slate);
  margin-bottom: 5px;
}
.result-title-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
}
.result-desc-text {
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.7;
}
.result-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hashtag {
  font-size: 12px;
  color: var(--c-info);
  background: var(--c-info-bg);
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 500;
}

.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 18px 18px; }

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: var(--c-success-bg);
  color: var(--c-success);
}

/* ─── PROGRESS ─── */
.progress-wrap { margin: 10px 0; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-slate); margin-bottom: 5px; }
.progress-bar { background: var(--c-border); border-radius: 99px; height: 7px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--c-punch); transition: width .4s; }

/* ─── STAT GRID ─── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.stat-label { font-size: 11px; color: var(--c-slate); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--c-ink); letter-spacing: -0.5px; }
.stat-sub { font-size: 11px; color: var(--c-slate); margin-top: 2px; }

/* ─── LISTINGS ─── */
.listing-item {
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow .15s;
}
.listing-item:hover { box-shadow: var(--shadow); }
.listing-item + .listing-item { margin-top: 8px; }
.listing-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-thumb i { font-size: 22px; color: var(--c-border); }
.listing-info { flex: 1; min-width: 0; }
.listing-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-meta { font-size: 12px; color: var(--c-slate); margin-top: 2px; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.badge-vinted { background: var(--c-success-bg); color: var(--c-success); }
.badge-ebay   { background: var(--c-info-bg); color: var(--c-info); }
.badge-lbc    { background: var(--c-warning-bg); color: var(--c-warning); }

/* ─── PROFILE ─── */
.profile-hero {
  background: var(--c-ink);
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-punch);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-info p { color: rgba(255,255,255,0.6); font-size: 13px; }
.profile-info h2 { color: #fff; font-size: 18px; font-weight: 700; }

.referral-box {
  background: linear-gradient(135deg, var(--c-ink) 0%, #2D1B4E 100%);
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  margin-bottom: 12px;
}
.referral-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.referral-box p { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.referral-link-row {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.referral-link-row code { flex: 1; font-size: 12px; color: rgba(255,255,255,0.9); font-family: monospace; }

/* ─── PRICING ─── */
.pricing-grid { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.pricing-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-card.featured { border-color: var(--c-punch); }
.pricing-header { padding: 18px 20px 14px; border-bottom: 1px solid var(--c-border); }
.pricing-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-punch);
  margin-bottom: 6px;
}
.pricing-name { font-size: 20px; font-weight: 700; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.pricing-amount { font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.pricing-period { font-size: 13px; color: var(--c-slate); }
.pricing-sub { font-size: 12px; color: var(--c-slate); margin-top: 3px; }
.pricing-body { padding: 14px 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.feature-list li i { font-size: 17px; color: var(--c-punch); flex-shrink: 0; }
.pricing-footer { padding: 0 20px 18px; }

/* ─── ADMIN ─── */
.admin-page { background: var(--c-cream); min-height: 100vh; padding-bottom: 40px; }
.admin-header {
  background: var(--c-ink);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-header h1 { font-size: 18px; font-weight: 700; color: #fff; }
.admin-content { padding: 20px 16px; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (min-width: 640px) { .admin-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.kpi-label { font-size: 11px; color: var(--c-slate); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.kpi-sub { font-size: 11px; color: var(--c-slate); margin-top: 2px; }

.admin-table-wrap { background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-border); overflow: hidden; }
.admin-table-header { padding: 14px 16px; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: 10px; }
.admin-table-header h3 { font-size: 15px; font-weight: 700; flex: 1; }
.admin-search { padding: 7px 12px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; outline: none; background: var(--c-cream); color: var(--c-ink); width: 160px; }
.admin-search:focus { border-color: var(--c-punch); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
thead th { padding: 10px 14px; text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--c-slate); background: var(--c-cream); border-bottom: 1px solid var(--c-border); }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--c-cream); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.user-av-1 { background: var(--c-info-bg); color: var(--c-info); }
.user-av-2 { background: var(--c-warning-bg); color: var(--c-warning); }
.user-av-3 { background: var(--c-success-bg); color: var(--c-success); }
.user-av-4 { background: var(--c-danger-bg); color: var(--c-danger); }
.user-av-5 { background: #EDE9FE; color: #7C3AED; }
.user-name { font-size: 13px; font-weight: 500; }
.user-email { font-size: 11px; color: var(--c-slate); }
.offer-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.tag-free { background: #F3F4F6; color: var(--c-slate); }
.tag-pack { background: var(--c-info-bg); color: var(--c-info); }
.tag-vd   { background: var(--c-warning-bg); color: var(--c-warning); }

/* ─── TABS ─── */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  padding: 0 16px;
  background: var(--c-surface);
  overflow-x: auto;
  gap: 0;
}
.tab-btn {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-slate);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.tab-btn.active { color: var(--c-ink); border-bottom-color: var(--c-punch); }
.tab-btn:hover:not(.active) { color: var(--c-ink); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── LOADER ─── */
.loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.65);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.loader-overlay.active { display: flex; }
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--c-punch);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: #fff; font-size: 15px; font-weight: 500; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all .25s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--c-slate);
}
.empty-state i { font-size: 48px; color: var(--c-border); margin-bottom: 12px; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.6);
  z-index: 500;
  padding: 20px;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--c-surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: var(--max-w);
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUpModal .25s ease;
}
@media (min-width: 500px) { .modal { border-radius: 20px; margin-bottom: 20px; } }
@keyframes slideUpModal { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.modal-title { font-size: 18px; font-weight: 700; flex: 1; }
.modal-close { width: 32px; height: 32px; border: none; background: var(--c-cream); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* ─── PWA INSTALL ─── */
.pwa-banner {
  background: var(--c-ink);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.pwa-banner .spacer { flex: 1; }
.pwa-dismiss { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 18px; }

/* ─── UTILS ─── */
.text-center { text-align: center; }
.text-punch { color: var(--c-punch); }
.text-slate { color: var(--c-slate); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.separator { height: 1px; background: var(--c-border); margin: 16px 0; }
.hidden { display: none !important; }

/* ─── SCROLL ─── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 99px; }

/* ─── FOCUS ─── */
:focus-visible { outline: 2px solid var(--c-punch); outline-offset: 2px; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
