:root {
  --bg: #0c0e13;
  --bg2: #12151d;
  --card: #171b26;
  --card-hover: #1d2230;
  --line: #262c3b;
  --txt: #eef1f8;
  --muted: #8b93a7;
  --accent: #7c5cff;
  --accent2: #14f1c6;
  --green: #2fd97b;
  --red: #ff6b6b;
  --gold: #ffd166;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Header ---------- */
#header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,14,19,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  max-width: 1280px; margin: 0 auto; padding: 12px 18px 8px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.logo span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.searchbox {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.search-ico { color: var(--muted); flex-shrink: 0; }
#search {
  flex: 1; background: none; border: none; outline: none;
  color: var(--txt); font-size: 16px; font-family: inherit; min-width: 0;
}
#search::placeholder { color: var(--muted); }
#search::-webkit-search-cancel-button { display: none; }
.clear-btn { background: var(--line); border: none; color: var(--muted); border-radius: 50%; width: 22px; height: 22px; font-size: 11px; flex-shrink: 0; }
.scan-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #08101c; border: none; border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 800;
  margin-right: -8px;
}
.scan-btn:hover { filter: brightness(1.12); }

.topnav { display: flex; align-items: center; gap: 6px; }
.navlink, .pill {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--muted); background: none; border: 1.5px solid transparent;
  white-space: nowrap;
}
.navlink:hover, .pill:hover { color: var(--txt); background: var(--card); }
.navlink.active { color: var(--txt); background: var(--card); border-color: var(--line); }
.premium-link { color: var(--gold); }
.pill { border-color: var(--line); color: var(--txt); }
.lang-select { background: var(--card); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 118px; }
.lang-select:focus { outline: none; border-color: var(--accent); }
.count {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center;
}

/* ---------- Chips licences ---------- */
.chips-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 18px 10px;
  max-width: 1280px; margin: 0 auto; scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: all .12s;
}
.chip:hover { color: var(--txt); border-color: #3a4157; }
.chip.on { background: linear-gradient(90deg, rgba(124,92,255,.25), rgba(20,241,198,.12)); border-color: var(--accent); color: var(--txt); }

/* ---------- Filtres ---------- */
.filters-row {
  display: flex; align-items: center; gap: 12px;
  max-width: 1280px; margin: 0 auto; padding: 0 18px 10px;
}
.seg { display: flex; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: none; color: var(--muted); padding: 7px 14px; font-size: 13px; font-weight: 600; }
.seg button.on { background: var(--accent); color: #fff; }
#sort {
  background: var(--card); color: var(--txt); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 7px 10px; font-family: inherit; font-size: 13px;
}

/* ---------- Main ---------- */
#main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 18px; }
.section-title { font-size: 20px; font-weight: 700; margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title small { color: var(--muted); font-weight: 500; font-size: 13px; }

.hero { text-align: center; padding: 34px 10px 26px; }
.hero h1 { font-size: clamp(26px, 4.5vw, 44px); font-weight: 800; line-height: 1.15; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.hero-scan {
  margin-top: 20px; padding: 14px 30px; border: none; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #08101c; font-size: 16px; font-weight: 800;
  box-shadow: 0 10px 34px rgba(124,92,255,.35);
  transition: transform .13s, filter .13s;
}
.hero-scan:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ---------- Grille résultats ---------- */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.tile {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .13s, border-color .13s, background .13s;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--card-hover); }
.tile .imgwrap { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, #1e2433, #12151d); padding: 8px; }
.tile img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.tile .noimg { color: var(--muted); font-size: 34px; }
.tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tile-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-set { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 800; color: var(--green); }
.tile-price small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.tile-price.na { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.rarity-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  color: var(--gold); font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; max-width: 70%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-btn {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.55); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; font-size: 14px;
  opacity: 0; transition: opacity .12s;
}
.tile:hover .fav-btn, .fav-btn.faved { opacity: 1; }
.fav-btn.faved { color: var(--red); }

.load-more {
  display: block; margin: 22px auto; padding: 11px 28px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--txt); font-size: 14px; font-weight: 600;
}
.load-more:hover { border-color: var(--accent); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
.empty .big { font-size: 40px; margin-bottom: 12px; }

/* ---------- Skeletons ---------- */
@keyframes pulse { 50% { opacity: .45; } }
.sk { background: var(--card); border-radius: var(--radius); animation: pulse 1.3s ease-in-out infinite; }
.sk-tile { height: 260px; }

/* ---------- Fiche carte (overlay) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,6,10,.72); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 4vh 14px 40px;
}
.sheet {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 20px;
  max-width: 980px; width: 100%; position: relative; box-shadow: var(--shadow);
}
.close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: var(--card); border: 1px solid var(--line); color: var(--txt);
  width: 36px; height: 36px; border-radius: 50%; font-size: 14px;
}
.detail { display: grid; grid-template-columns: 380px 1fr; gap: 0; }
.detail-img {
  padding: 28px; display: flex; align-items: flex-start; justify-content: center;
  background: radial-gradient(circle at 50% 20%, #1c2231, transparent);
}
.detail-img img { width: 100%; max-width: 340px; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.detail-info { padding: 28px 28px 24px 4px; min-width: 0; }
.detail-game { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.detail-name { font-size: 24px; font-weight: 800; line-height: 1.2; padding-right: 40px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.meta-chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--muted); font-weight: 600; }
.meta-chip b { color: var(--txt); }

.price-hero {
  background: linear-gradient(135deg, rgba(47,217,123,.12), rgba(20,241,198,.05));
  border: 1.5px solid rgba(47,217,123,.35); border-radius: 16px;
  padding: 16px 20px; margin-bottom: 14px;
}
.price-hero .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.price-hero .value { font-size: 34px; font-weight: 800; color: var(--green); line-height: 1.1; }
.price-hero .value small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.price-hero .range { font-size: 13px; color: var(--muted); margin-top: 4px; }

.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.variant {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 14px; font-size: 13px;
}
.variant .vname { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.variant .vprice { font-weight: 700; font-size: 15px; }

.subhead { font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: var(--txt); display:flex; align-items:center; gap:8px; }
.subhead .live { background: rgba(47,217,123,.15); color: var(--green); font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }

.sales { display: flex; flex-direction: column; gap: 5px; max-height: 240px; overflow-y: auto; }
.sale {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 10px; padding: 8px 12px; font-size: 13px;
}
.sale .sdate { color: var(--muted); width: 82px; flex-shrink: 0; }
.sale .scond { color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale .svariant { color: var(--gold); font-size: 11.5px; }
.sale .sprice { font-weight: 700; color: var(--green); margin-left: auto; }
.sales-note { color: var(--muted); font-size: 12px; margin-top: 6px; }

.buy-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.buy-link {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 10px; font-size: 13.5px; font-weight: 600; text-align: center;
  transition: border-color .12s, transform .12s;
}
.buy-link:hover { border-color: var(--accent2); transform: translateY(-1px); }
.buy-link.primary { background: linear-gradient(90deg, var(--accent), #5a3fe0); border-color: transparent; color: #fff; }

.actions-row { display: flex; gap: 8px; margin: 16px 0 4px; flex-wrap: wrap; }
.act-btn {
  flex: 1; min-width: 150px; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--line); background: var(--card); color: var(--txt);
}
.act-btn:hover { border-color: var(--accent); }
.act-btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); border: none; color: #08101c; }
.act-btn.faved { color: var(--red); border-color: rgba(255,107,107,.4); }

.others-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.others-scroll .tile { width: 140px; flex-shrink: 0; }

/* ---------- Collection / Favoris ---------- */
.summary-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(20,241,198,.06));
  border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 18px;
}
.summary-bar .stat .lbl { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.summary-bar .stat .val { font-size: 26px; font-weight: 800; }
.summary-bar .stat .val.green { color: var(--green); }
.summary-bar .grow { flex: 1; }
.spark { height: 42px; }

.coll-list { display: flex; flex-direction: column; gap: 8px; }
.coll-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px;
}
.coll-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; background: var(--bg2); cursor: pointer; }
.coll-item .ci-name { font-weight: 600; font-size: 14px; cursor: pointer; }
.coll-item .ci-name:hover { color: var(--accent2); }
.coll-item .ci-set { font-size: 11.5px; color: var(--muted); }
.coll-item .ci-main { flex: 1; min-width: 0; }
.qty-ctl { display: flex; align-items: center; gap: 6px; }
.qty-ctl button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--txt); font-weight: 700; }
.qty-ctl span { min-width: 22px; text-align: center; font-weight: 700; }
.ci-price { font-weight: 700; color: var(--green); width: 110px; text-align: right; }
.ci-total { font-weight: 800; width: 110px; text-align: right; }
.ci-del { background: none; border: none; color: var(--muted); font-size: 15px; padding: 6px; }
.ci-del:hover { color: var(--red); }
.export-btn { margin-top: 14px; }

.watch-target { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.watch-target input {
  width: 74px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--txt); padding: 5px 8px; font-family: inherit; font-size: 12.5px;
}
.target-hit { background: rgba(47,217,123,.15); color: var(--green); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* ---------- Mon compte ---------- */
.profile-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 18px 22px; margin-bottom: 10px;
}
.avatar {
  width: 62px; height: 62px; border-radius: 50%; font-size: 30px;
  background: linear-gradient(135deg, rgba(124,92,255,.3), rgba(20,241,198,.15));
  border: 2px solid var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.profile-main { flex: 1; min-width: 180px; }
.pseudo-input {
  background: none; border: none; border-bottom: 1.5px dashed var(--line);
  color: var(--txt); font-family: inherit; font-size: 20px; font-weight: 800;
  padding: 2px 0; width: 100%; max-width: 280px;
}
.pseudo-input:focus { outline: none; border-bottom-color: var(--accent); }
.profile-since { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.backup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.avatar-opt {
  width: 44px; height: 44px; border-radius: 50%; font-size: 21px;
  background: var(--card); border: 1.5px solid var(--line); cursor: pointer;
}
.avatar-opt.on, .avatar-opt:hover { border-color: var(--accent2); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 6px; }
.acct-tile {
  display: block; text-align: left; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 16px; padding: 18px;
  cursor: pointer; transition: transform .13s, border-color .13s; font-family: inherit;
}
.acct-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.acct-tile.primary { background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(20,241,198,.08)); border-color: var(--accent); }
.at-title { font-size: 16px; font-weight: 800; color: var(--txt); }
.at-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

/* ---------- Valeur ---------- */
.panel-like { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.summary-bar .stat .val.red { color: var(--red); }
.pct-badge.static { position: static; flex-shrink: 0; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.bar-row .b-label { width: 170px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .b-track { flex: 1; height: 10px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.bar-row .b-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; }
.bar-row .b-num { width: 90px; text-align: right; font-weight: 700; font-size: 12.5px; }
.ci-main .b-track { height: 7px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.ci-main .b-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ---------- Scanner : boutons, candidats, feedback, caméra ---------- */
.scan-menu {
  position: fixed; z-index: 250; min-width: 220px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.scan-menu button {
  background: none; border: none; color: var(--txt);
  font-family: inherit; font-size: 14.5px; font-weight: 600; text-align: left;
  padding: 12px 14px; border-radius: 9px; cursor: pointer;
}
.scan-menu button:hover { background: var(--card-hover); }
.scan-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.scan-src {
  padding: 13px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
  border: 1.5px solid var(--line); background: var(--card); color: var(--txt); cursor: pointer;
}
.scan-src:hover { border-color: var(--accent2); }
.scan-src.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); border: none; color: #08101c; }
#scan-video { width: 100%; border-radius: 14px; margin-bottom: 10px; }
.scan-cand { position: relative; }
.scan-actions { display: flex; gap: 6px; margin-top: 6px; }
.scan-act {
  flex: 1; padding: 8px 6px; border-radius: 10px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--line); background: var(--card); color: var(--txt); cursor: pointer;
}
.scan-act.add { border-color: rgba(47,217,123,.5); color: var(--green); }
.scan-act.add:hover { background: rgba(47,217,123,.12); }
.scan-act.done { background: rgba(47,217,123,.18); border-color: var(--green); }
.scan-act:hover { border-color: var(--accent2); }
.fb-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg2); border-radius: 12px; padding: 10px 14px; margin-top: 14px; font-size: 13px;
}
.fb-bar .grow { flex: 1; }
.fb-btn { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--txt); font-size: 13px; font-weight: 700; cursor: pointer; }
.fb-btn:hover { border-color: var(--accent); }
.unsupported-box {
  text-align: center; padding: 24px 18px; margin-top: 8px;
  background: linear-gradient(160deg, rgba(255,209,102,.1), transparent);
  border: 1.5px solid rgba(255,209,102,.4); border-radius: 16px;
}
.unsupported-ico { font-size: 40px; margin-bottom: 8px; }
.unsupported-box p { color: var(--txt); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.unsupported-box .buy-links { max-width: 380px; margin: 0 auto; }

/* ---------- KOTA Pro / Mode Rachat ---------- */
.pro-hero { text-align: center; padding: 26px 10px 10px; max-width: 640px; margin: 0 auto; }
.pro-badge { display: inline-block; background: rgba(255,209,102,.14); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.pro-hero h1 { font-size: clamp(24px, 5vw, 38px); font-weight: 800; line-height: 1.18; }
.pro-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro-hero p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.pro-ctas { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 20px auto 0; }
.pro-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.pro-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 780px; margin: 26px auto; }
.pro-benefit { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.pro-benefit .pb-ico { font-size: 30px; margin-bottom: 6px; }
.pro-benefit b { font-size: 15px; }
.pro-benefit p { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.pro-pricing { max-width: 420px; margin: 10px auto 30px; text-align: center; background: linear-gradient(160deg, rgba(124,92,255,.16), rgba(20,241,198,.05)); border: 1.5px solid var(--accent); border-radius: 22px; padding: 26px; }
.pp-flash { color: var(--gold); font-weight: 800; font-size: 13px; }
.pp-price { font-size: 44px; font-weight: 800; margin-top: 8px; }
.pp-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pp-after { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.demo-banner { background: linear-gradient(90deg, var(--gold), #ffab4c); color: #08101c; font-weight: 700; font-size: 13.5px; padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; }
.bb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bb-head .pseudo-input { flex: 1; min-width: 150px; }
.bb-status { display: flex; gap: 6px; }
.bb-totalbar { position: sticky; top: 118px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1.5px solid var(--accent); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.bb-totalbar small { color: var(--muted); font-size: 12px; }
.bb-offer { font-size: 30px; font-weight: 800; color: var(--green); line-height: 1.1; }
.bb-scanbtn { width: auto; padding: 14px 22px; font-size: 15px; flex-shrink: 0; }
.bb-search { position: relative; margin-bottom: 12px; }
.bb-search input { width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; color: var(--txt); font-family: inherit; font-size: 15px; padding: 13px 14px; }
.bb-search input:focus { outline: none; border-color: var(--accent); }
.bb-q-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; margin-top: 4px; max-height: 320px; overflow-y: auto; box-shadow: var(--shadow); }
.bb-q-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 13.5px; border-bottom: 1px solid rgba(38,44,59,.5); }
.bb-q-row:hover { background: var(--card-hover); }
.bb-q-row img { width: 34px; height: 34px; object-fit: contain; }
.bb-q-row .bqr-name { font-weight: 600; }
.bb-q-row .bqr-set { color: var(--muted); font-size: 11.5px; }
.bb-cond { background: var(--bg2); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 6px; font-family: inherit; font-size: 12.5px; }
.bb-pct-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.bb-pct-row input[type=range] { width: 100%; accent-color: var(--accent); height: 30px; }
.bb-recap .br-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid rgba(38,44,59,.5); }
.bb-recap .br-line.big { font-size: 16px; }
.bb-recap .br-line.big b { font-size: 24px; }
.bb-recap .green { color: var(--green); }
.bb-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.bb-badge.open { background: rgba(47,217,123,.15); color: var(--green); }
.bb-badge.paused { background: rgba(255,209,102,.15); color: var(--gold); }
.bb-badge.closed { background: rgba(139,147,167,.15); color: var(--muted); }
.est-value { font-size: 34px; font-weight: 800; color: var(--green); margin-top: 6px; }
.est-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 860px) {
  .bb-totalbar { top: 108px; }
  .bb-offer { font-size: 24px; }
}

/* ---------- Contact & Sources ---------- */
.page-narrow { max-width: 640px; margin: 10px auto; }
.page-narrow h2 { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.page-narrow p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; }
.page-narrow p b { color: var(--txt); }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  color: var(--txt); font-family: inherit; font-size: 14px; padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--accent2); }

/* ---------- Premium ---------- */
.premium-page { max-width: 560px; margin: 30px auto; text-align: center; }
.premium-card {
  background: linear-gradient(160deg, rgba(124,92,255,.16), rgba(20,241,198,.05));
  border: 1.5px solid var(--accent); border-radius: 22px; padding: 36px 30px;
}
.premium-card h2 { font-size: 28px; font-weight: 800; }
.premium-card .pprice { font-size: 42px; font-weight: 800; margin: 14px 0 2px; }
.premium-card .pprice small { font-size: 15px; color: var(--muted); font-weight: 500; }
.premium-feats { list-style: none; margin: 20px 0 26px; text-align: left; display: inline-block; }
.premium-feats li { padding: 6px 0; font-size: 15px; }
.premium-feats li::before { content: '✓  '; color: var(--green); font-weight: 800; }
.pay-btn {
  width: 100%; padding: 15px; border-radius: 14px; border: none;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #08101c; font-size: 16px; font-weight: 800;
}
.pay-btn:hover { filter: brightness(1.1); }
.pay-note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* ---------- Scanner ---------- */
.scan-sheet { max-width: 640px; }
.scan-body { padding: 28px; }
.scan-body h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.scan-hint { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; line-height: 1.5; }
.scan-drop {
  border: 2px dashed var(--accent); border-radius: 16px;
  padding: 38px 20px; text-align: center; cursor: pointer;
  background: rgba(124,92,255,.06); transition: background .15s;
  font-size: 15px;
}
.scan-drop:hover { background: rgba(124,92,255,.14); }
.scan-drop-ico { font-size: 40px; margin-bottom: 8px; }
.scan-preview { display: flex; gap: 16px; align-items: center; margin-top: 4px; }
.scan-preview img { width: 120px; border-radius: 10px; box-shadow: var(--shadow); }
.scan-status { flex: 1; }
#scan-msg { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.scan-bar { height: 8px; background: var(--card); border-radius: 999px; overflow: hidden; }
#scan-progress { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
#scan-results { margin-top: 18px; }
#scan-results .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

/* ---------- Nouvelles ---------- */
.news-section { margin-bottom: 30px; }
.release-card {
  width: 200px; flex-shrink: 0; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .13s, border-color .13s;
}
.release-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.release-card .imgwrap { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 10px; background: radial-gradient(circle at 50% 30%, #1e2433, #12151d); }
.release-card img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.release-card .rc-body { padding: 10px 12px 12px; }
.release-card .rc-game { font-size: 11px; color: var(--muted); font-weight: 700; }
.release-card .rc-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.release-card .rc-date { font-size: 11.5px; font-weight: 700; }
.release-card .rc-date.soon { color: var(--gold); }
.release-card .rc-date.out { color: var(--green); }
.pct-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: rgba(47,217,123,.2); color: var(--green);
}
.pct-badge.down { background: rgba(255,107,107,.18); color: var(--red); }
.article-list { display: flex; flex-direction: column; gap: 8px; }
.article-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; transition: border-color .12s;
}
.article-item:hover { border-color: var(--accent2); }
.article-item .a-src {
  flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--accent2);
  background: rgba(20,241,198,.1); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.article-item .a-title { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.article-item .a-date { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.news-empty { color: var(--muted); font-size: 13.5px; padding: 14px 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1.5px solid var(--accent); color: var(--txt);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  z-index: 200; box-shadow: var(--shadow);
}

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 16px; border-top: 1px solid var(--line); margin-top: 30px; }
footer a { color: var(--accent2); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .searchbox { order: 3; flex-basis: 100%; }
  .navtxt { display: none; }
  .scan-txt { display: none; }
  .scan-btn { padding: 7px 11px; }
  .detail { grid-template-columns: 1fr; }
  .detail-info { padding: 0 22px 24px; }
  .detail-img { padding: 22px 22px 10px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .ci-price { display: none; }
}
