/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg: #14161B;
  --bg-elevated: #1B1E26;
  --slot-bg: #1F222B;
  --slot-inset: #14161B;
  --border: #2A2E38;
  --border-strong: #3A3F4C;

  --ink: #F3F1EA;
  --ink-muted: #9498A3;
  --ink-faint: #5D616D;

  --gold: #E3A730;
  --gold-ink: #241A05;
  --teal: #3FC1C9;
  --teal-ink: #06282A;
  --danger: #E3654C;
  --danger-ink: #2B0F08;

  --tier-common: #9BA1AC;
  --tier-uncommon: #4CAF7D;
  --tier-rare: #4C9FE3;
  --tier-ultra: #E3A730;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;

  --font-display: 'Space Grotesk', ui-sans-serif, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 24px -10px rgba(0, 0, 0, .6);
  --shadow-modal: 0 20px 60px -20px rgba(0, 0, 0, .7);

  --max-width: 1180px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button, input {
  font-family: inherit;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.view { padding: 48px 0 96px; }

.view[hidden] { display: none; }

.eyebrow {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 6px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 22px;
}

.section-heading .count {
  color: var(--ink-faint);
  font-size: 14px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: rgba(20, 22, 27, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.brand .b-scan { color: var(--gold); }
.brand .b-tcg { color: var(--ink); }

.brand-mascot {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tab:hover { color: var(--ink); background: var(--bg-elevated); }

.tab.is-active {
  color: var(--bg);
  background: var(--gold);
  font-weight: 600;
}

/* ============================================================
   BUTTONS / INPUTS
   ============================================================ */
.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-elevated); }

.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--border-strong); }
.btn-danger:hover { background: rgba(227, 101, 76, .1); border-color: var(--danger); }

.btn:disabled { opacity: .5; cursor: default; }

.btn-sm { padding: 6px 12px; font-size: 13px; }

.input {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
}

.input::placeholder { color: var(--ink-faint); }

/* ============================================================
   HERO (home view)
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(227, 167, 48, .16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-fan {
  position: relative;
  height: 320px;
}

/* Fumée / brouillard animé derrière les cartes */
.hero-smoke {
  position: absolute;
  inset: -35% -22%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.smoke-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.42;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(210, 220, 240, 0.28) 38%,
    rgba(180, 195, 220, 0.1) 58%,
    transparent 72%
  );
  will-change: transform, opacity;
}

.smoke-blob.s1 {
  width: 250px;
  height: 180px;
  left: 2%;
  top: 22%;
  animation: smoke-drift-1 13s ease-in-out infinite;
}

.smoke-blob.s2 {
  width: 300px;
  height: 220px;
  left: 28%;
  top: 0%;
  opacity: 0.36;
  animation: smoke-drift-2 16s ease-in-out infinite;
}

.smoke-blob.s3 {
  width: 230px;
  height: 170px;
  left: 52%;
  top: 32%;
  opacity: 0.4;
  animation: smoke-drift-3 11s ease-in-out infinite;
}

.smoke-blob.s4 {
  width: 280px;
  height: 200px;
  left: 12%;
  top: 48%;
  opacity: 0.3;
  animation: smoke-drift-1 15s ease-in-out infinite reverse;
}

.smoke-blob.s5 {
  width: 210px;
  height: 160px;
  left: 62%;
  top: 12%;
  opacity: 0.34;
  animation: smoke-drift-2 14s ease-in-out infinite reverse;
}

@keyframes smoke-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(22px, -24px) scale(1.12); opacity: 0.52; }
  66% { transform: translate(-14px, 12px) scale(0.92); opacity: 0.32; }
}

@keyframes smoke-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.34; }
  40% { transform: translate(-24px, 18px) scale(1.1); opacity: 0.46; }
  70% { transform: translate(16px, -20px) scale(0.9); opacity: 0.28; }
}

@keyframes smoke-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.38; }
  50% { transform: translate(12px, -30px) scale(1.15); opacity: 0.5; }
}

.hero-fan .fan-card {
  position: absolute;
  width: 150px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-strong);
  background: var(--slot-bg);
  transition: transform .35s ease;
  z-index: 1;
}

.hero-fan .fan-card:hover { transform: translateY(-8px) !important; }

.hero-fan .fan-card img { width: 100%; display: block; }

.hero-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-faint);
  font-size: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0 8px;
  border-top: 1px solid var(--border);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature .f-icon {
  width: 30px;
  height: 30px;
  color: var(--teal);
  margin-bottom: 4px;
}

.feature h3 { font-size: 15px; }
.feature p { font-size: 14px; color: var(--ink-muted); }

/* ============================================================
   COLLECTIONS (series -> sets)
   ============================================================ */
.series-block { margin-bottom: 44px; }

.series-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.series-header img { height: 22px; width: auto; }
.series-header h2 { font-size: 18px; }
.series-header .count { color: var(--ink-faint); font-size: 13px; }

.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.set-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}

.set-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.set-tile .set-logo-wrap {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-tile .set-logo-wrap img { max-height: 54px; max-width: 100%; object-fit: contain; }

.set-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--slot-bg);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.set-tile .set-name { font-size: 15px; font-weight: 600; }
.set-tile .set-meta { font-size: 13px; color: var(--ink-muted); }

/* ============================================================
   BINDER GRID (cards within a set / search results)
   ============================================================ */
.set-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.set-header img.set-logo { height: 46px; width: auto; }

.set-header .set-title h1 { font-size: 24px; }
.set-header .set-title p { color: var(--ink-muted); font-size: 14px; margin-top: 2px; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 28px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px;
}

.progress-label { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }

.binder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.binder-slot {
  position: relative;
  background: var(--slot-inset);
  border-radius: var(--radius);
  padding: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}

.binder-slot:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.binder-slot .pocket {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--slot-bg);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
  aspect-ratio: 245 / 337;
  display: flex;
  align-items: center;
  justify-content: center;
}

.binder-slot img { width: 100%; height: 100%; object-fit: contain; }

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 245 / 337;
  background: var(--slot-bg);
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.binder-slot .slot-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 6px;
  text-align: center;
}

.binder-slot.is-owned .pocket {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 2px var(--teal);
}

.owned-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--teal-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--bg);
}

.owned-qty {
  position: absolute;
  bottom: 22px;
  right: 8px;
  background: var(--teal);
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

/* ============================================================
   RARITY CHIP
   ============================================================ */
.rarity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}

.rarity-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--tier-common);
}

.rarity-chip[data-tier="uncommon"] .dot { background: var(--tier-uncommon); }
.rarity-chip[data-tier="rare"] .dot { background: var(--tier-rare); }
.rarity-chip[data-tier="ultra"] .dot { background: var(--tier-ultra); }

.rarity-chip.holo-shine .dot {
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--gold));
  background-size: 200% 100%;
  animation: shine 2.4s linear infinite;
}

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

/* ============================================================
   MODAL (card detail)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  padding: 28px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.modal-body .modal-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.modal-body .modal-img img {
  width: 100%;
  display: block;
}

.modal-name { font-size: 22px; margin-bottom: 4px; }
.modal-set { color: var(--ink-muted); font-size: 14px; margin-bottom: 14px; }

.modal-prices {
  display: flex;
  gap: 16px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.price-block {
  background: var(--slot-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 120px;
}

.price-block .p-label { font-size: 12px; color: var(--ink-faint); }
.price-block .p-value { font-size: 18px; font-weight: 700; font-family: var(--font-display); }

.modal-status { font-size: 13px; color: var(--ink-muted); margin: 10px 0; }

.price-breakdown { margin: 14px 0; }

.trend-svg { width: 100%; height: 56px; display: block; }

.price-variant-block { margin-bottom: 12px; }
.price-variant-block:last-child { margin-bottom: 0; }

.price-variant-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.price-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
}

.price-mini-grid > div {
  background: var(--slot-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pm-label { font-size: 10px; color: var(--ink-faint); }
.pm-value { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-market { color: var(--gold); }

.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }

.variant-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--slot-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.variant-label { font-size: 13px; font-weight: 500; }

.variant-price { font-size: 12px; color: var(--gold); margin-top: 2px; }

.variant-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  width: 100%;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
}

.stepper button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
}

.stepper span { min-width: 16px; text-align: center; font-weight: 600; }

/* ============================================================
   SEARCH VIEW
   ============================================================ */
.search-bar-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 480px;
}

/* ============================================================
   MY COLLECTION
   ============================================================ */
.collection-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.stat-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-tile .s-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.stat-tile .s-label { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

.showcase-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-callout-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.showcase-callout-desc { font-size: 13px; color: var(--ink-muted); }

.showcase-link-row {
  display: flex;
  gap: 8px;
}

.showcase-link-row .input {
  font-size: 13px;
  color: var(--ink-muted);
}

.showcase-star {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 22, 27, .75);
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-price {
  text-align: center;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.showcase-star.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(227, 167, 48, .15);
}

.collection-group { margin-bottom: 32px; }

.collection-group .cg-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.collection-group .cg-head h3 { font-size: 15px; }

.collection-group .cg-head .progress-bar { max-width: 160px; }

/* ============================================================
   EMPTY / LOADING STATES
   ============================================================ */
.empty-state, .loading-state, .error-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.error-state { color: var(--danger); border-color: rgba(227, 101, 76, .4); }

.skeleton {
  background: linear-gradient(100deg, var(--bg-elevated) 30%, var(--slot-bg) 50%, var(--bg-elevated) 70%);
  background-size: 200% 100%;
  animation: pulse 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes pulse {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.skeleton-tile { aspect-ratio: 245/337; }

/* ============================================================
   SCANNER (caméra + OCR)
   ============================================================ */
.scan-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
  margin-bottom: 12px;
}

.scan-camera-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}

#scan-video, #scan-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#scan-upload-label {
  display: block;
}

.scan-guide {
  position: absolute;
  inset: 8% 26%;
  border: 2px dashed rgba(255, 255, 255, .55);
  border-radius: 14px;
  pointer-events: none;
}

.scan-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 720px) {
  .scan-layout { grid-template-columns: 1fr; }
  .scan-camera-wrap { aspect-ratio: 3 / 4; }
  .scan-guide { inset: 10% 8%; }
}

.scan-debug {
  margin-top: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.scan-debug summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-muted);
}

.scan-debug pre {
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  max-height: 200px;
  overflow-y: auto;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 0.7fr 1fr 0.8fr;
  gap: 10px;
  padding: 12px 16px;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.admin-row:last-child { border-bottom: none; }

.admin-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-head {
  background: var(--bg-elevated);
  color: var(--ink-faint);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .03em;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

@media (max-width: 640px) {
  .admin-row { grid-template-columns: 1.6fr 1fr 0.5fr 0.6fr; }
  .admin-row > *:nth-child(4) { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   COMPTE (connexion / inscription / mot de passe)
   ============================================================ */
.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-card h1 { font-size: 22px; margin-bottom: 18px; }

.auth-lead { color: var(--ink-muted); font-size: 14px; margin-bottom: 18px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.auth-hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin: -8px 0 14px;
}

.auth-error {
  font-size: 13px;
  color: var(--danger);
  background: rgba(227, 101, 76, .1);
  border: 1px solid rgba(227, 101, 76, .3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.auth-status {
  font-size: 13px;
  color: var(--teal);
  margin-top: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-links {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

.auth-links a { color: var(--teal); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--ink-faint);
  font-size: 13px;
}

footer a { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-fan { height: 220px; order: -1; }
  .feature-row { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-body .modal-img { max-width: 200px; margin: 0 auto; }
  .collection-stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .topbar { padding: 12px 16px; }
  .brand-mascot { height: 32px; width: 32px; }
  .set-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .binder-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .hero-fan .fan-card { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
