/* =====================================================================
   Kote — thème "néon de nuit"
   Fond très sombre avec halos cyan/rose (couleurs TikTok), cartes en relief,
   accents lumineux sur ce qui compte (pièces, gains, boutons d'action).
   ===================================================================== */

:root {
  --bg: #07070c;
  --surface: #111119;
  --surface-2: #171722;
  --surface-3: #1f1f2c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f3f3f8;
  --text-2: #b9b9c8;
  --muted: #7d7d90;

  --accent: #9b5cff;       /* violet de la marque */
  --accent-light: #c9a0ff;
  --accent-2: #7aa2ff;     /* bleu secondaire */
  --sky: #38bdf8;          /* pari Express */
  --gold: #ffc93c;
  --green: #3ddc84;
  --orange: #ff9f1c;
  --red: #ff5a6e;

  --grad-brand: linear-gradient(135deg, #7c3aed 0%, #9b5cff 45%, #d16bff 100%);
  --grad-progress: linear-gradient(90deg, #6d5dfc, #b46bff);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --glow-accent: 0 6px 22px rgba(155, 92, 255, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* La barre de défilement réserve toujours sa place : plus de décalage
   horizontal quand on passe d'une page courte à une page longue. */
html { scrollbar-gutter: stable; background: var(--bg); }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, system-ui, sans-serif;
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 8% -5%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(700px 520px at 105% 10%, rgba(168, 85, 247, 0.18), transparent 70%),
    radial-gradient(800px 600px at 50% 120%, rgba(124, 58, 237, 0.14), transparent 70%);
}
a { color: var(--accent-2); }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
.wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 70px; }
.page { animation: page-in .35s var(--ease) both; }
.muted { color: var(--muted); font-size: 0.85rem; }
.gold { color: var(--gold); }

@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(-6px) scale(.98); } 100% { opacity: 1; transform: none; } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg) scale(1.08); } 40% { transform: rotate(8deg) scale(1.08); } 60% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- en-tête ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px;
  position: relative; z-index: 45; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: #100e1a; border: 1px solid rgba(155, 92, 255, .45); box-shadow: 0 0 16px rgba(124, 58, 237, .35);
}
.brand-mark img { width: 19px; height: auto; display: block; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.header-right { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 19px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.9rem; font-weight: 700;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.pill-coins { color: var(--gold); box-shadow: 0 0 0 1px rgba(255, 201, 60, .12) inset; }
.pill-coins strong { color: #fff; font-variant-numeric: tabular-nums; }
.pill-streak { color: #ffb347; }
.pill-level { padding: 0 4px; }
.coin { width: 20px; height: 20px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255, 201, 60, .35)); }
/* dans le texte, à la place du mot "pièces" : même taille que les lettres */
.coin.coin-inline { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.17em; filter: none; }

/* bouton profil (photo) en haut à droite */
.header-avatar { display: inline-flex; border-radius: 50%; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.header-avatar .avatar { width: 38px; height: 38px; font-size: 0.95rem; border: 2px solid var(--border-strong); }
.header-avatar:hover { transform: translateY(-1px); }
.header-avatar:hover .avatar, .header-avatar.active .avatar { border-color: var(--accent); box-shadow: 0 0 14px rgba(155, 92, 255, .5); }

/* badges à côté du nom, sur le profil */
.badge { position: relative; display: inline-block; vertical-align: middle; margin-inline-start: 6px; outline: none; }
.badge img { display: block; height: 26px; width: auto; filter: drop-shadow(0 2px 6px rgba(124, 58, 237, .45)); }
.badge:hover::after, .badge:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); inset-inline-start: -6px;
  width: max-content; max-width: 220px; padding: 7px 10px; border-radius: 10px; z-index: 30;
  background: #1c1b29; border: 1px solid var(--border-strong); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  font-size: 0.78rem; font-weight: 600; line-height: 1.35; white-space: normal; text-align: start;
}

/* rond "lecture" sur les miniatures */
.vc-media, .hist-thumb { position: relative; }
.play-badge {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 8, 20, .55); border: 1.5px solid rgba(255, 255, 255, .75);
  color: #fff; pointer-events: none; transition: transform .2s var(--ease), background .2s;
}
.play-badge svg { width: 18px; height: 18px; }
.vc-media:hover .play-badge, .hist-thumb:hover .play-badge { transform: scale(1.12); background: var(--accent); border-color: transparent; }
.hist-thumb .play-badge { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-width: 1px; }
.hist-thumb .play-badge svg { width: 11px; height: 11px; }

.admin-badges { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-badges li { display: flex; align-items: center; gap: 10px; }
.admin-badges li > span:first-of-type { flex: 1; }
.admin-badges img { height: 30px; width: auto; }
.admin-badges img.off { opacity: .3; filter: grayscale(1); }

.level-ring {
  --pct: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 800; color: #fff; position: relative;
  background: conic-gradient(var(--accent-2) calc(var(--pct) * 1%), rgba(255, 255, 255, .1) 0);
}
.level-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface-2); }
.level-ring { isolation: isolate; }
.level-ring::before { z-index: -1; }
.level-ring-lg { width: 48px; height: 48px; font-size: 1.05rem; }
.level-ring-lg::before { inset: 4px; }

.notif { position: relative; }
.notif-bell {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; padding: 0;
  transition: color .2s, background .2s;
}
.notif-bell:hover, .notif-bell[aria-expanded=true] { color: #fff; background: var(--surface-3); }
.notif-bell:has(.notif-badge) svg { animation: wiggle 1.2s ease 0.4s 2; transform-origin: 50% 10%; }
.notif-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg); box-shadow: 0 0 10px rgba(155, 92, 255, .6);
}
.notif-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 50;
  width: min(370px, calc(100vw - 32px)); max-height: min(500px, 72vh); overflow-y: auto;
  background: rgba(20, 20, 30, .99); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: pop-in .18s var(--ease);
}
.notif-title { padding: 14px 16px 10px; font-weight: 800; }
.notif-item { display: flex; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--border); }
.notif-item.unread { background: linear-gradient(90deg, rgba(155, 92, 255, .10), transparent 70%); }
.notif-item .avatar { width: 34px; height: 34px; font-size: 0.9rem; }
.notif-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
}
.notif-icon.won { background: rgba(61, 220, 132, .15); color: var(--green); }
.notif-icon.lost { background: rgba(255, 90, 110, .14); color: var(--red); }
.notif-icon.cancelled { background: var(--surface-3); color: var(--text-2); }
.notif-icon.level { background: rgba(122, 162, 255, .13); color: var(--accent-2); }
.notif-body { min-width: 0; flex: 1; }
.notif-body p { margin: 0; font-size: 0.88rem; line-height: 1.4; overflow-wrap: anywhere; }
.notif-body a { color: inherit; text-decoration: none; }
.notif-body a:hover { text-decoration: underline; }
.notif-body .muted { font-size: 0.78rem; }
.notif-time { display: block; margin-top: 3px; font-size: 0.72rem; color: var(--muted); }
.notif-actions { display: flex; gap: 6px; margin-top: 8px; }
.notif-actions .button-primary, .notif-actions .button-secondary { padding: 5px 12px; font-size: 0.8rem; }
.notif-empty { padding: 8px 16px 18px; margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- barre de navigation ---------- */
.main-nav {
  /* marge du haut : le « + » dépasse de ~22 px au-dessus de la barre (voir .nav-plus-circle) */
  display: flex; gap: 4px; margin: 30px 0 20px; padding: 5px;
  background: rgba(15, 15, 22, .96);
  border: 1px solid var(--border); border-radius: 18px; position: sticky; top: 30px; z-index: 40;
}
.main-nav a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; border-radius: 13px; color: var(--text-2); text-decoration: none;
  font-weight: 700; font-size: 0.9rem; transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.main-nav a.active { color: #fff; background: var(--grad-brand); box-shadow: var(--glow-accent); }
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- messages ---------- */
/* flottants en haut de l'écran, au-dessus de tout */
.flashes {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90;
  width: min(520px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.flash {
  padding: 12px 16px; border-radius: 14px; animation: pop-in .3s var(--ease); pointer-events: auto; cursor: pointer;
  background: #10241a; border: 1px solid rgba(61, 220, 132, .4); box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  transition: opacity .3s, transform .3s;
}
.flash.leaving { opacity: 0; transform: translateY(-8px); }
.flash p { margin: 0; }
.flash-error { background: #2a1219; border-color: rgba(255, 90, 110, .45); }
.flash-reward {
  font-weight: 800; font-size: 1.05rem; text-align: center; color: #fff;
  background: var(--grad-brand); border-color: transparent; box-shadow: 0 12px 34px rgba(0, 0, 0, .55), var(--glow-accent);
}
.error {
  background: rgba(255, 90, 110, .09); border: 1px solid rgba(255, 90, 110, .35);
  padding: 12px 15px; border-radius: 12px; margin-top: 14px;
}

/* ---------- boutons ---------- */
.button-primary, .hero-form button, .proposition button, .auth-form button, .settings-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 0.9rem; letter-spacing: .01em;
  box-shadow: var(--glow-accent); transition: transform .12s var(--ease), box-shadow .2s, filter .2s;
}
.button-primary:hover, .hero-form button:hover, .proposition button:hover, .auth-form button:hover,
.settings-form button:hover { filter: brightness(1.08); box-shadow: 0 8px 28px rgba(155, 92, 255, .45); }
.button-primary:active, .hero-form button:active, .proposition button:active, .auth-form button:active,
.settings-form button:active { transform: scale(.97); }
.settings-form button[type=submit]:disabled, .settings-form button[type=submit]:disabled:hover {
  background: var(--surface-3); color: var(--muted); box-shadow: none; filter: none; cursor: not-allowed; transform: none;
}

.button-secondary, .settings-form .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); color: var(--text);
  text-decoration: none; font-weight: 700; font-size: 0.86rem; cursor: pointer; white-space: nowrap;
  box-shadow: none; transition: background .2s, border-color .2s;
}
.button-secondary:hover, .settings-form .button-secondary:hover { background: rgba(255, 255, 255, .08); filter: none; box-shadow: none; }
.button-secondary:disabled { opacity: .4; cursor: not-allowed; }
.button-danger-outline, .settings-form .button-danger-outline { border-color: rgba(255, 90, 110, .45); color: var(--red); }
.button-danger-outline:hover { background: rgba(255, 90, 110, .1) !important; }
.danger-text { color: var(--red) !important; }
.settings-form .button-danger { background: linear-gradient(135deg, #e5243f, #b3163a); box-shadow: 0 6px 20px rgba(229, 36, 63, .35); }
.link-danger {
  background: none !important; border: none; padding: 0 !important; color: var(--red) !important;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: underline; box-shadow: none !important;
}

/* ---------- champs ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select {
  font: inherit; color: var(--text); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 13px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: rgba(155, 92, 255, .7); box-shadow: 0 0 0 3px rgba(155, 92, 255, .18); }
input::placeholder { color: #5f5f72; }
input:disabled { opacity: .5; }

/* ---------- cartes ---------- */
.settings-card, .video-tile, .stat, .profile-card, .auth-card, .proposition, .daily-card, .hero, .empty {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.settings-card { padding: 18px 20px; }
.settings-card h2 { margin: 0 0 12px; font-size: 1.08rem; font-weight: 800; display: flex; align-items: center; }
.settings-card p { margin: 4px 0 10px; }
.page > .settings-card ~ .settings-card { margin-top: 14px; }
.count {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 10px;
  background: var(--surface-3); color: var(--text-2); font-size: 0.76rem; font-weight: 700;
}

/* ---------- accueil : bonus du jour ---------- */
.daily-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px;
  border-color: rgba(255, 201, 60, .35); animation: pop-in .4s var(--ease);
  background: radial-gradient(400px 120px at 0% 0%, rgba(255, 201, 60, .16), transparent 70%),
              linear-gradient(180deg, var(--surface-2), var(--surface));
}
.daily-gift { font-size: 2rem; animation: wiggle 1.4s ease .5s infinite; }
.daily-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.daily-text strong { font-size: 1.02rem; }
.daily-text span { font-size: 0.82rem; color: var(--text-2); }
.daily-claim { background: linear-gradient(135deg, #ffc93c, #ff9f1c) !important; color: #1a1200 !important;
  box-shadow: 0 6px 22px rgba(255, 170, 40, .4) !important; }
.daily-done { margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- accueil : zone d'analyse ---------- */
.hero { padding: 20px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 92, 255, .22), transparent 70%); pointer-events: none;
}
.hero-title { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; }
.hero-sub { margin: 0 0 14px; color: var(--text-2); font-size: 0.88rem; }
.hero-form { display: flex; gap: 8px; position: relative; z-index: 1; }
.hero-form input { flex: 1; min-width: 0; padding: 12px 14px; }
.hero-form button { padding: 0 20px; font-size: 0.95rem; }

/* ---------- accueil : cartes vidéo ---------- */
.bets-section { margin-top: 30px; }
.bets-section h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; }
.empty { padding: 20px; margin: 0; text-align: center; color: var(--muted); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.video-tile { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s var(--ease), border-color .2s; }
.video-tile { transform: none; }
.ico { width: 15px; height: 15px; flex-shrink: 0; vertical-align: -2px; }

.vc-head { display: flex; gap: 13px; padding: 13px; }
.vc-media {
  position: relative; display: block; flex-shrink: 0; width: 86px; aspect-ratio: 3 / 4; border-radius: 12px;
  background: #0b0b10; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--border-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: border-color .2s, box-shadow .2s;
}
.vc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-media:hover { border-color: var(--accent); box-shadow: 0 6px 22px rgba(155, 92, 255, .35); }
.vc-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #5c5c70; font-size: 0.66rem; font-weight: 700; text-align: center; line-height: 1.25;
  background: radial-gradient(circle at 15% 10%, rgba(122, 162, 255, .16), transparent 55%),
              radial-gradient(circle at 90% 95%, rgba(155, 92, 255, .2), transparent 55%), #101016;
}
.vc-placeholder .ico {
  width: 26px; height: 26px; color: #4a4a58;
  filter: drop-shadow(1.5px 1.5px 0 rgba(155, 92, 255, .5)) drop-shadow(-1.5px -1.5px 0 rgba(122, 162, 255, .45));
}
.vc-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.vc-title {
  margin: 0; font-size: 0.98rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vc-author {
  align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent-light); font-size: 0.86rem; font-weight: 700; text-decoration: none;
}
.vc-author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-author:hover .vc-author-name { text-decoration: underline; }
.verified { display: inline-flex; flex-shrink: 0; }
.verified .ico { width: 14px; height: 14px; }
.vc-followers { font-size: 0.75rem; color: var(--muted); margin-top: -3px; }
.vc-stats { display: flex; flex-wrap: wrap; gap: 4px 13px; font-size: 0.83rem; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.vc-stats span { display: inline-flex; align-items: center; gap: 4px; }
.vc-stats span:nth-child(1) .ico { color: var(--accent-2); }
.vc-stats span:nth-child(2) .ico { color: var(--accent); }
.vc-stats span:nth-child(3) .ico { color: #c9c9d6; }
.vc-stats span:nth-child(4) .ico { color: var(--gold); }
.vc-updated { margin: auto 0 0; font-size: 0.72rem; color: var(--muted); }

/* étiquettes de pari : couleur selon le niveau de risque */
.chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 20px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap;
}
.chip-safe    { background: rgba(61, 220, 132, .13);  color: #5ef0a0; border-color: rgba(61, 220, 132, .38); }
.chip-medium  { background: rgba(255, 159, 28, .13);  color: #ffb857; border-color: rgba(255, 159, 28, .4); }
.chip-risky   { background: rgba(255, 90, 110, .13);  color: #ff7d8d; border-color: rgba(255, 90, 110, .42); }
.chip-express { background: rgba(56, 189, 248, .15); color: #7dd3fc; border-color: rgba(56, 189, 248, .45); }
.chip-neutral { background: var(--surface-3); color: var(--text-2); }

/* un pari dans une carte */
.bets { display: flex; flex-direction: column; gap: 8px; padding: 0 13px 13px; }
.bet { background: rgba(0, 0, 0, .28); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.bet-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bet-target { font-size: 0.92rem; color: var(--text-2); }
.bet-target strong { color: #fff; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.result { margin-inline-start: auto; font-weight: 800; font-size: 0.83rem; padding: 3px 10px; border-radius: 20px; }
.result-won { background: rgba(61, 220, 132, .15); color: var(--green); box-shadow: 0 0 14px rgba(61, 220, 132, .2); }
.result-lost { background: rgba(255, 90, 110, .13); color: var(--red); }
.result-cancelled { background: var(--surface-3); color: var(--text-2); }
.bet-won { border-color: rgba(61, 220, 132, .3); }
.bet-lost, .bet-cancelled { opacity: .78; }

.progress { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 10px 0 8px; }
.progress span {
  display: block; height: 100%; border-radius: 4px; background: var(--grad-progress);
  box-shadow: 0 0 10px rgba(155, 92, 255, .45); transition: width .8s var(--ease);
}
.progress.reached span { background: linear-gradient(90deg, #2fcf77, #7dffb4); box-shadow: 0 0 10px rgba(61, 220, 132, .5); }
.bet-lost .progress span { background: #5a2e36; box-shadow: none; }

.bet-status {
  display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-2);
}
.bet-status strong { color: #fff; }
.bet-status .ok { color: var(--green); font-weight: 800; }
.bet-deadline { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bet-money {
  display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, .09); font-size: 0.8rem; color: var(--muted);
}
.bet-money strong { color: var(--text); }
.bet-money .gold { color: var(--gold); }

/* analyse d'une vidéo : prévision + propositions */
.analysis { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; animation: pop-in .35s var(--ease); }
.forecast {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin: 0 13px 13px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(122, 162, 255, .07), rgba(155, 92, 255, .07)); border: 1px solid var(--border);
}
.forecast-main { display: flex; flex-direction: column; }
.forecast-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.forecast-value { font-size: 1.3rem; font-weight: 800; }
.forecast-range { font-size: 0.78rem; color: var(--text-2); }
.perf-badge { font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 20px; }
.perf-up { background: rgba(255, 159, 28, .15); color: #ffb857; box-shadow: 0 0 16px rgba(255, 159, 28, .2); }
.perf-down, .perf-flat { background: var(--surface-3); color: var(--text-2); }

.propositions { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.proposition {
  padding: 14px; display: flex; flex-direction: column; gap: 7px; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s;
}
.proposition::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--border-strong); }
.proposition:hover { border-color: var(--border-strong); }
.prop-safe::before { background: var(--green); box-shadow: 0 0 14px var(--green); }
.prop-medium::before { background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.prop-risky::before { background: var(--red); box-shadow: 0 0 14px var(--red); }
.prop-express::before { background: var(--sky); box-shadow: 0 0 14px var(--sky); }
.prop-express { background: radial-gradient(260px 120px at 100% 0%, rgba(56, 189, 248, .15), transparent 70%),
                             linear-gradient(180deg, var(--surface-2), var(--surface)); }
.prop-header { display: flex; align-items: center; gap: 8px; }
.prop-header .prop-odds { margin-inline-start: auto; }
.prop-time { font-size: 0.85rem; font-weight: 800; color: var(--text-2); white-space: nowrap; }
.prop-time.is-quick { color: #7dd3fc; }
.prop-odds { color: var(--gold); font-weight: 900; font-size: 1.1rem; text-shadow: 0 0 12px rgba(255, 201, 60, .35); }
.proposition p { margin: 0; }
.prop-target { font-size: 0.95rem; }
.prop-target strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.proposition input[type=number] { width: 100%; padding: 9px 11px; }

/* pari perso : bouton très visible, puis carte avec objectif + durée */
.chip-custom { background: linear-gradient(90deg, rgba(155, 92, 255, .22), rgba(255, 92, 200, .22)); color: #e6c8ff; border-color: rgba(201, 160, 255, .55); }
.prop-custom::before { background: linear-gradient(90deg, var(--accent), #ff5cc8); box-shadow: 0 0 14px var(--accent); }
.prop-custom { grid-column: 1 / -1; animation: pop-in .35s var(--ease);
               background: radial-gradient(320px 140px at 100% 0%, rgba(155, 92, 255, .18), transparent 70%),
                           linear-gradient(180deg, var(--surface-2), var(--surface)); }
.prop-custom.is-invalid .prop-odds { color: var(--muted); text-shadow: none; }
.custom-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.custom-field { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; font-weight: 700; color: var(--text-2); }
.custom-field:first-child { flex: 1 1 200px; }
.custom-input { position: relative; display: block; }
.custom-input input { width: 100%; padding: 10px 52px 10px 12px; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.custom-input em { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 0.85rem; pointer-events: none; }
.custom-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.custom-now { font-size: 0.74rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.custom-field select { padding: 10px 12px; font-size: 1rem; font-weight: 800; min-width: 110px; }
.custom-hint { flex-basis: 100%; margin: 0; font-size: 0.82rem; color: var(--text-2); }
.custom-hint.is-bad { color: #ff7d8d; }

.custom-cta {
  position: relative; overflow: hidden; width: 100%; margin-top: 12px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 16px; cursor: pointer;
  text-align: start; color: #fff; font: inherit;
  background: linear-gradient(110deg, var(--accent) 0%, #ff5cc8 55%, #ffb857 100%);
  box-shadow: 0 8px 28px rgba(155, 92, 255, .45), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  animation: custom-pulse 2.4s ease-in-out infinite;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.custom-cta::after { /* reflet qui passe sur le bouton */
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-120%) skewX(-18deg); animation: custom-shine 3.2s ease-in-out infinite;
}
.custom-cta:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 12px 36px rgba(255, 92, 200, .5); }
.custom-cta:active { transform: scale(.98); }
.custom-cta-icon { font-size: 1.6rem; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6)); }
.custom-cta-text { display: flex; flex-direction: column; flex: 1; }
.custom-cta-text strong { font-size: 1.12rem; font-weight: 900; letter-spacing: .01em; }
.custom-cta-text small { font-size: 0.8rem; opacity: .9; }
.custom-cta-arrow { font-size: 1.3rem; font-weight: 900; transition: transform .2s; }
.custom-cta:hover .custom-cta-arrow { transform: translateX(4px); }
@keyframes custom-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(155, 92, 255, .45), 0 0 0 0 rgba(255, 92, 200, .45); }
  50% { box-shadow: 0 8px 28px rgba(155, 92, 255, .45), 0 0 0 8px rgba(255, 92, 200, 0); }
}
@keyframes custom-shine { 0%, 55% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .custom-cta, .custom-cta::after { animation: none; } }

/* ---------- avatars ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--avatar-bg, var(--accent)); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-md { width: 72px; height: 72px; font-size: 1.8rem; }
.avatar-lg { width: 108px; height: 108px; font-size: 2.7rem; border: 4px solid var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ---------- profil ---------- */
.profile-card { overflow: hidden; }
.profile-banner { height: 130px; position: relative; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); }
.profile-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 18px; margin-top: -54px; position: relative; }
.profile-head .button-secondary, .profile-head .inline-form, .profile-head .people-actions { margin-bottom: 6px; }
.profile-names { padding: 10px 18px 18px; }
.display-name { margin: 0; font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; }
.handle { margin: 1px 0 10px; color: var(--muted); font-size: 0.95rem; }
.profile-names .muted { margin: 0; }
.profile-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.profile-level-text { display: flex; flex-direction: column; min-width: 150px; flex: 1; }
.profile-level-text strong { font-size: 1rem; }
.profile-level-text span { font-size: 0.8rem; color: var(--text-2); }
.xp-bar { height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; max-width: 260px; }
.xp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), #c9b8ff); box-shadow: 0 0 10px rgba(122, 162, 255, .5); }
.friend-badge { padding: 7px 14px; border-radius: 12px; background: rgba(61, 220, 132, .15); color: var(--green); font-weight: 800; font-size: 0.88rem; margin-bottom: 6px; }
.private-badge { display: inline-block; margin-inline-start: 8px; padding: 1px 9px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); font-size: 0.75rem; }
.private-notice { margin-top: 14px; text-align: center; padding: 30px 18px; }
.private-notice p { margin: 4px 0; }
.private-icon { font-size: 1.9rem; }
.closed-requests { margin-bottom: 10px; font-size: 0.82rem; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat-wide { grid-column: 1 / -1; }
.name-streak {
  display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 2px 10px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 800; background: rgba(255, 159, 28, .15); color: #ffb857;
}
.lb-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lb-controls .sub-tabs { margin-bottom: 0; }
.segmented { display: flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.segmented a {
  padding: 6px 13px; border-radius: 9px; font-size: 0.85rem; font-weight: 700; color: var(--text-2);
  text-decoration: none; transition: background .2s, color .2s;
}
.segmented a:hover { color: #fff; }
.segmented a.active { background: var(--accent); color: #fff; }
.stat { padding: 15px; display: flex; flex-direction: column; gap: 3px; }
.stat-value { font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-value.gold { color: var(--gold); text-shadow: 0 0 16px rgba(255, 201, 60, .3); }
.stat-value.pos { color: var(--green); }
.stat-value.neg { color: var(--red); }
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* ---------- pop-ups ---------- */
.modal {
  width: min(430px, calc(100vw - 32px)); padding: 22px; border-radius: 20px;
  border: 1px solid var(--border-strong); background: linear-gradient(180deg, #1a1a26, #12121a); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.modal[open] { animation: pop-in .22s var(--ease); }
.modal::backdrop { background: rgba(3, 3, 8, .78); }
.modal h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; }
.modal-danger { border-color: rgba(255, 90, 110, .45); }
.modal-danger h3 { color: var(--red); }
.modal .flash { margin: 4px 0; cursor: default; box-shadow: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.modal-actions button { margin-top: 0; align-self: auto; }
.modal-wide { width: min(490px, calc(100vw - 32px)); }
.modal-profile { padding: 0; overflow: hidden auto; }
.modal-profile .profile-card { border-radius: 0; border: none; box-shadow: none; }
.modal-profile .stats-grid, .modal-profile .private-notice { margin: 12px 16px 0; }
.modal-profile .modal-actions { padding: 0 16px 16px; }
.preview-loading { padding: 40px 20px; text-align: center; }

.edit-block { padding: 14px 0; }
.edit-block + .edit-block { border-top: 1px solid var(--border); }
.edit-block input[type=text] { width: 100%; }
.edit-block .muted { margin: 6px 0 0; }
.edit-block h4 { margin: 0 0 10px; font-size: 0.95rem; }
.edit-block .toggle + .muted a { color: var(--accent-2); }
.avatar-edit { display: flex; gap: 16px; align-items: center; }
.avatar-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.avatar-actions .muted { margin: 0; font-size: 0.78rem; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.file-button { cursor: pointer; }
.banner-preview { height: 46px; border-radius: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.swatch, .settings-form .swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; margin: 0;
  padding: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--border-strong); transition: transform .15s;
}
.swatch:hover { transform: scale(1.12); filter: none; }
.swatch.selected, .settings-form .swatch.selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.swatch-custom {
  position: relative; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 90deg, #ff5a6e, #ffc93c, #3ddc84, #38bdf8, #9b5cff, #d16bff, #ff5a6e);
}
.swatch-custom svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); pointer-events: none; }
/* sélecteur natif invisible (sinon Safari/Chrome dessinent leur petit carré de couleur) */
.swatch-custom input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent;
}
.swatch-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-custom input::-webkit-color-swatch { border: 0; }

/* drapeau rond du pays */
.flag { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; vertical-align: -2px; margin-inline-start: 6px;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); flex-shrink: 0; }
.flag-lg { width: 20px; height: 20px; vertical-align: -3px; }
.country-field { display: flex; align-items: center; gap: 10px; }
.country-field .flag { margin: 0; }
.country-field select { flex: 1; min-width: 0; }

/* ---------- formulaires des paramètres ---------- */
.settings { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 90px; }
.settings-nav a { padding: 9px 13px; border-radius: 11px; color: var(--text-2); text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.settings-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.settings-nav a.active { background: var(--surface-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.settings-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.settings-form { display: flex; flex-direction: column; gap: 6px; }
.settings-form label { font-size: 0.84rem; color: var(--text-2); margin-top: 4px; }
.settings-form .muted { margin: 0; }
.settings-form fieldset { border: none; padding: 0; margin: 10px 0 0; }
.settings-form legend { font-size: 0.84rem; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.settings-form label.radio { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 0.92rem; margin: 4px 0; }
.settings-form label.radio input { accent-color: var(--accent); }
.settings-form > button[type=submit] { align-self: flex-start; margin-top: 10px; }

.settings-rows { list-style: none; margin: 0; padding: 0; }
.settings-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); }
.settings-rows li:first-child { border-top: none; padding-top: 4px; }
.settings-rows li:last-child { padding-bottom: 0; }
.settings-rows li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.row-value { font-size: 0.95rem; overflow-wrap: anywhere; }
.row-value.muted { font-size: 0.85rem; }
.row-note { font-size: 0.76rem; color: var(--muted); }

.settings-form label.toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--text); font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { position: relative; flex-shrink: 0; width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .2s; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + .toggle-track { background: var(--grad-brand); border-color: transparent; box-shadow: 0 0 12px rgba(155, 92, 255, .4); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.toggle input:disabled + .toggle-track { opacity: .45; }
.toggle input:disabled ~ .toggle-label { color: var(--muted); }
.settings-form label.toggle:has(input:disabled) { cursor: not-allowed; }
.privacy-option { padding: 13px 0; border-top: 1px solid var(--border); margin: 0; }
.privacy-option:first-child { border-top: none; padding-top: 2px; }
.privacy-option .muted { margin: 6px 0 0 52px !important; }
fieldset.privacy-option { border: none; border-top: 1px solid var(--border); padding: 13px 0 0; }
fieldset.privacy-option .muted { margin-inline-start: 0 !important; }
fieldset.privacy-option legend { float: left; width: 100%; margin-bottom: 6px; }
fieldset.privacy-option legend + * { clear: both; }

/* ---------- connexion / inscription ---------- */
.auth-wrap { max-width: 430px; }
.auth-wrap .topbar { justify-content: center; margin: 30px 0 22px; }
.auth-wrap .brand-name { font-size: 1.6rem; }
.auth-card { padding: 24px; }
.auth-card h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; }
.auth-form { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.auth-form label { font-size: 0.84rem; color: var(--text-2); margin-top: 6px; }
.auth-form button { margin-top: 14px; padding: 12px 16px; font-size: 0.98rem; }
.auth-form .muted { margin: 0; font-size: 0.78rem; }

/* ---------- amis ---------- */
.friend-search { margin: 0; }
.at-input {
  display: flex; align-items: center; gap: 4px; border: 1px solid var(--border-strong); border-radius: 14px;
  background: rgba(0, 0, 0, .35); padding-left: 13px; transition: border-color .2s, box-shadow .2s;
}
.at-input:focus-within { border-color: rgba(155, 92, 255, .7); box-shadow: 0 0 0 3px rgba(155, 92, 255, .18); }
.at-input svg { color: var(--muted); flex-shrink: 0; }
.at-input input { flex: 1; min-width: 0; border: none !important; background: transparent !important; box-shadow: none !important; padding: 12px 12px 12px 6px; }
.at-input input[type=search]::-webkit-search-cancel-button { filter: invert(.7); }
.search-hint { margin: 10px 2px 0; }
.search-results:not(:empty) { margin-top: 10px; }
.relation-tag { padding: 3px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.relation-friends { background: rgba(61, 220, 132, .15); color: var(--green); }
.relation-incoming { background: rgba(155, 92, 255, .15); color: var(--accent-light); }

.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.people li:first-child { border-top: none; padding-top: 2px; }
.people-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-link { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.user-link:hover .user-link-name { text-decoration: underline; }
.user-link-names { display: flex; flex-direction: column; min-width: 0; }
.user-link-name { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-link-handle { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- classement ---------- */
.sub-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.sub-tabs a {
  padding: 8px 15px; border-radius: 20px; border: 1px solid var(--border-strong); white-space: nowrap;
  color: var(--text-2); text-decoration: none; font-size: 0.87rem; font-weight: 700; background: var(--surface);
}
.sub-tabs a:hover { color: #fff; }
.sub-tabs a.active { background: #fff; border-color: #fff; color: #0b0b12; }
.leaderboard { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: rank; }
.leaderboard li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; transition: background .2s; }
.leaderboard li + li { margin-top: 2px; }
.leaderboard li:hover { background: rgba(255, 255, 255, .03); }
.leaderboard li:nth-child(1) { background: linear-gradient(90deg, rgba(255, 201, 60, .13), transparent 70%); }
.leaderboard li:nth-child(2) { background: linear-gradient(90deg, rgba(207, 216, 220, .09), transparent 70%); }
.leaderboard li:nth-child(3) { background: linear-gradient(90deg, rgba(224, 163, 110, .1), transparent 70%); }
.leaderboard li.me { background: linear-gradient(90deg, rgba(155, 92, 255, .16), transparent 80%); box-shadow: inset 3px 0 0 var(--accent); }
.leaderboard .user-link { flex: 1; }
.lb-rank { width: 32px; flex-shrink: 0; text-align: center; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-rank.rank-1 { color: var(--gold); font-size: 1.15rem; text-shadow: 0 0 12px rgba(255, 201, 60, .6); }
.lb-rank.rank-2 { color: #dfe6ea; font-size: 1.08rem; }
.lb-rank.rank-3 { color: #e8ad7a; font-size: 1.04rem; }
.lb-cell { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.lb-value { font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-value.gold { color: var(--gold); }
.lb-sub { font-size: 0.74rem; color: var(--muted); }
.leaderboard li.lb-gap { justify-content: center; color: #4a4a58; padding: 0; background: none; }
.lb-note { margin-top: 14px !important; }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .wrap { padding-top: 12px; }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .pill { height: 34px; padding: 0 9px; font-size: 0.82rem; }
  .pill-level { padding: 0 3px; }
  .level-ring { width: 26px; height: 26px; font-size: 0.72rem; }
  .notif-bell { width: 34px; height: 34px; }
  .header-avatar .avatar { width: 34px; height: 34px; }
  .coin { width: 17px; height: 17px; }
  .header-right { gap: 5px; }
  .main-nav { gap: 2px; padding: 4px; border-radius: 16px; }
  .main-nav a { flex-direction: column; gap: 2px; padding: 7px 2px; font-size: 0.66rem; border-radius: 12px; }
  .nav-ico { width: 20px; height: 20px; }
  .hero { padding: 16px; }
  .hero-title { font-size: 1.15rem; }
  .hero-form { flex-direction: column; }
  .hero-form button { padding: 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; gap: 12px; }
  .settings-nav { flex-direction: row; position: static; overflow-x: auto; }
  .settings-nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-banner { height: 100px; }
  .avatar-lg { width: 90px; height: 90px; font-size: 2.2rem; }
  .profile-head { margin-top: -46px; }
  .people-actions .button-secondary, .people-actions .button-primary { padding: 6px 10px; font-size: 0.8rem; }
  .daily-card { flex-wrap: wrap; }
  .daily-card form { width: 100%; }
  .daily-claim { width: 100%; }
}
@media (max-width: 370px) {
  .brand-name { display: none; }   /* trop étroit : le logo K seul */
}
@media (max-width: 420px) {
  .search-results .relation-tag { display: none; }
}

/* ---------- nouveaux joueurs : "Commence à miser ici !" ---------- */
.starter-wrap { position: relative; margin-top: 30px; }
.starter-wrap .hero { position: relative; z-index: 1; border-color: rgba(61, 220, 132, .55);
  box-shadow: 0 0 0 1px rgba(61, 220, 132, .25), 0 0 34px rgba(61, 220, 132, .18), var(--shadow-card); }
.starter-rays {
  position: absolute; inset: -34px -10px; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(61, 220, 132, .7) 0deg 1.6deg, transparent 1.6deg 12deg);
  -webkit-mask: radial-gradient(ellipse at center, transparent 58%, #000 64%, transparent 82%);
  mask: radial-gradient(ellipse at center, transparent 58%, #000 64%, transparent 82%);
}
.starter-tip {
  position: relative; z-index: 2; width: max-content; margin: 0 auto 12px; padding: 7px 16px; border-radius: 20px;
  background: linear-gradient(135deg, #2fcf77, #7dffb4); color: #06210f; font-weight: 900; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(61, 220, 132, .35);
}
.starter-tip::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px;
  background: #5ae99a; transform: rotate(45deg); border-radius: 2px;
}

/* ---------- historique : une ligne résumée par pari ---------- */
.history-list {
  list-style: none; margin: 0; padding: 6px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
}
.hist-row { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; }
.hist-row + .hist-row { border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; }
.hist-row:hover { background: rgba(255, 255, 255, .03); }
.hist-thumb {
  flex-shrink: 0; width: 38px; height: 50px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: #101016; border: 1px solid var(--border); color: #4a4a58;
}
.hist-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hist-thumb .ico { width: 18px; height: 18px; }
.hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hist-line1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hist-target { font-size: .88rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-target strong { color: var(--text); }
.hist-line2 { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row .result { margin-inline-start: 0; flex-shrink: 0; }
.hist-lost, .hist-cancelled { opacity: .8; }
.history-more { margin: 8px 4px 0; }

/* ---------- bouton "actualiser les stats" ---------- */
.vc-updated-row { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.vc-updated-row .vc-updated { margin: 0; }
.refresh-btn {
  position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0 !important;
  border-radius: 50%; border: 1px solid rgba(61, 220, 132, .45) !important; background: rgba(61, 220, 132, .12) !important;
  color: var(--green); cursor: pointer; box-shadow: none !important; overflow: visible !important;
  transition: background .2s, transform .3s var(--bounce, ease);
}
.refresh-btn svg { width: 14px; height: 14px; }
.refresh-btn:hover { background: rgba(61, 220, 132, .22) !important; }
.refresh-btn.spinning svg { animation: spin .8s linear infinite; }
.refresh-btn.cooling { border-color: var(--border-strong) !important; background: var(--surface-3) !important; color: var(--muted); cursor: help; }
/* info-bulle au survol quand il faut patienter */
.refresh-btn.cooling:hover::after, .refresh-btn.show-tip::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 220px; padding: 7px 10px; border-radius: 10px; z-index: 30;
  background: #1f1f2c; border: 1px solid var(--border-strong); color: var(--text); font-size: .76rem; font-weight: 600;
  line-height: 1.35; white-space: normal; text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}
.video-tile.refreshed { animation: refreshed 1s ease; }
@keyframes refreshed { 30% { border-color: rgba(61, 220, 132, .7); } }

/* ---------- parrainage ---------- */
.referral-hint { margin: 2px 0 4px !important; font-size: .78rem !important; }
.referral-card { background: radial-gradient(420px 160px at 100% 0%, rgba(155, 92, 255, .18), transparent 70%),
                             linear-gradient(180deg, var(--surface-2), var(--surface)); }
.referral-code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 10px; padding: 14px 16px; border-radius: 14px;
  background: rgba(0, 0, 0, .35); border: 1px dashed rgba(155, 92, 255, .6);
}
.referral-code {
  font-size: 1.9rem; font-weight: 900; letter-spacing: .22em; font-variant-numeric: tabular-nums;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.referral-link-row { display: flex; gap: 8px; }
.referral-link-row input { flex: 1; min-width: 0; font-size: .82rem; color: var(--text-2); }
.referral-progress { margin-top: 16px; }
.referral-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.referral-slots { display: flex; gap: 8px; }
.referral-slots span {
  flex: 1; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--muted);
}
.referral-slots span.done {
  background: rgba(61, 220, 132, .15); border-color: rgba(61, 220, 132, .45); color: var(--green);
}
[data-copy].copied { background: rgba(61, 220, 132, .2) !important; color: var(--green) !important; box-shadow: none !important; }
@media (max-width: 600px) {
  .referral-code { font-size: 1.5rem; }
  .referral-link-row { flex-direction: column; }
}

/* ---------- panel admin ---------- */
.pill-admin { color: #ffd98a; gap: 5px; }
.pill-admin span { font-size: .8rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.admin-tabs { margin-bottom: 16px; }
.admin h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.admin .settings-card + .settings-card, .admin section + section { margin-top: 14px; }
.admin-unlock { max-width: 420px; margin: 30px auto; }

.admin-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-kpis .stat-value { font-size: 1.35rem; }
.admin-kpis .stat-label { line-height: 1.3; }
.admin-charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.admin-charts .settings-card { margin: 0 !important; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 110px; }
.chart svg rect:hover { opacity: .75; }
.chart-max { position: absolute; top: -26px; right: 0; font-size: .72rem; color: var(--muted); }
.chart-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.admin-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-bars li { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 8px; }
.admin-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.admin-bar span { display: block; height: 100%; background: var(--grad-progress); }

.admin-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { text-align: start; font-size: .74rem; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.admin-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td .muted { display: block; font-size: .74rem; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover td { background: rgba(255, 255, 255, .03); }
.admin-table a { color: var(--text); font-weight: 600; }
.admin-table .result { margin: 0; }
.admin-table form { margin: 0; }
.admin-table .button-secondary { padding: 5px 10px; font-size: .78rem; }
.nowrap { white-space: nowrap; }
.sort-link { color: var(--muted) !important; text-decoration: none; }
.sort-link.active, .sort-link:hover { color: var(--text) !important; }

.admin-search { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-search input[type=search] { flex: 1; min-width: 0; }
.admin-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }

.admin-user-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.admin-user-head p { margin: 4px 0; }
.admin-balance { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.admin-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-actions .settings-card { margin: 0 !important; }
.admin-actions .settings-form input { width: 100%; }
.admin-btn-row { display: flex; gap: 8px; }
.admin-btn-row button { flex: 1; }

@media (max-width: 700px) {
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-charts, .admin-actions { grid-template-columns: 1fr; }
  .admin-user-head { flex-direction: column; }
  .pill-admin span { display: none; }
}

/* ---------- langues ---------- */
/* menu des langues des pages connexion / inscription */
.lang-picker { position: relative; width: max-content; margin: 0 auto 12px; z-index: 5; }
.lang-picker summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 7px 14px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-size: 0.88rem; font-weight: 700;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:hover, .lang-picker[open] summary { color: #fff; border-color: var(--border-strong); }
.lang-picker ul {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); margin: 0; padding: 6px; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 2px; width: max-content;
  background: rgba(20, 20, 30, .99); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: pop-in .18s var(--ease);
}
.lang-picker a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 0.88rem; }
.lang-picker a:hover { background: var(--surface-3); color: #fff; }
.lang-picker a.active { background: var(--accent); color: #fff; }

/* arabe (droite à gauche) : les chiffres, @pseudos et liens restent lisibles */
[dir=rtl] .vc-author, [dir=rtl] .user-link-handle, [dir=rtl] .referral-code, [dir=rtl] .referral-link-row input { direction: ltr; unicode-bidi: isolate; }

/* champ piège anti-robot de l'inscription : hors écran, jamais visible */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- mobile : pas de défilement horizontal ---------- */
/* Filet de sécurité : rien (décor, animation, texte flottant) ne peut élargir la page.
   "clip" (et non "hidden") ne crée pas de zone de défilement : le menu collant marche toujours. */
html, body { overflow-x: clip; max-width: 100%; }
/* Sur téléphone, un champ en police < 16 px fait zoomer la page quand on le touche (iPhone) :
   la page restait zoomée et on pouvait la faire glisser de gauche à droite. */
@media (pointer: coarse), (max-width: 600px) {
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select,
  .referral-link-row input { font-size: 16px; }
}

/* Barre du haut sur téléphone : logo + « Kote.click », admin, pièces, cloche et photo doivent
   tenir sur la largeur. La série 🔥 et le niveau restent visibles sur le profil (et la série
   sur l'accueil), on les retire donc de la barre. */
@media (max-width: 500px) {
  .header-right .pill-streak, .header-right .pill-level { display: none; }
  .topbar { gap: 8px; }
  .header-right { flex-shrink: 0; }
  .brand { min-width: 0; }
}

/* à côté de "En cours" : ce que rapporteraient tous les paris en cours s'ils passaient */
.potential-gain {
  margin-inline-start: auto; padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-2); background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .25); white-space: nowrap;
}
.potential-gain strong { color: var(--gold); font-weight: 800; }

/* ---------- onglets sur téléphone : une ligne qui défile au doigt ---------- */
/* Les onglets gardent leur taille (texte entier, jamais coupé) au lieu de rétrécir pour tenir
   dans la largeur ; la ligne se fait glisser, sans barre de défilement visible. */
.sub-tabs a, .settings-nav a { flex-shrink: 0; white-space: nowrap; }
.sub-tabs, .settings-nav { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sub-tabs::-webkit-scrollbar, .settings-nav::-webkit-scrollbar { display: none; }
@media (max-width: 600px) {
  .settings-nav { gap: 4px; margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; }
  .settings-nav a { padding: 10px 14px; text-align: start; }
  .sub-tabs { margin-inline: -16px; padding-inline: 16px; scroll-padding: 0 16px; }
}
@media (max-width: 600px) {
  /* marge après le dernier onglet (le padding de fin est ignoré dans une ligne qui défile) */
  .settings-nav::after, .sub-tabs::after { content: ""; flex: 0 0 4px; }
}

/* ---------- croix pour retirer l'analyse d'une vidéo ---------- */
.closable { position: relative; }
.close-x {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 32px; height: 32px; padding: 0;
  border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(10, 10, 18, .75); color: var(--text-2);
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s;
}
.close-x:hover { color: #fff; background: var(--surface-3); }
.error.closable { padding-inline-end: 50px; }
.analysis .video-tile { padding-top: 14px; }

/* ---------- onglets de l'accueil : Mes paris / Tendances ---------- */
.home-tabs {
  display: flex; gap: 6px; margin: 22px 0 4px; padding: 4px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.home-tabs button {
  flex: 1; padding: 11px 10px; border: none; border-radius: 12px; background: transparent; color: var(--text-2);
  font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: background .2s, color .2s;
}
.home-tabs button:hover { color: #fff; }
.home-tabs button.active { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-accent); }
.trending-empty { text-align: center; padding: 34px 20px; margin-top: 6px; }
.trending-empty p { margin: 4px 0; }
.trending-emoji { font-size: 2.2rem; }

/* ---------- pari gagné : gros bouton vert "Récupérer" ---------- */
.claim-form { margin-top: 12px; }
.claim-button {
  width: 100%; padding: 14px 16px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #1fbf63, #3ddc84 55%, #7dffb4); color: #06210f;
  font: inherit; font-size: 1.05rem; font-weight: 900; letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(61, 220, 132, .35); animation: claim-pulse 1.8s ease-in-out infinite;
}
.claim-button:hover { filter: brightness(1.06); }
.claim-button .coin-inline { vertical-align: -0.2em; }
@keyframes claim-pulse { 50% { box-shadow: 0 8px 34px rgba(61, 220, 132, .6); transform: translateY(-1px); } }
.bet-won { border-color: rgba(61, 220, 132, .45); }
.xp-bet { color: var(--accent-2); font-weight: 700; }
.notif-claim { display: inline-block; margin-top: 4px; color: var(--green) !important; font-weight: 700; font-size: .8rem; }

/* ---------- compte à rebours du bonus du jour ---------- */
.daily-countdown { display: inline-block; margin-top: 4px; }
.daily-countdown .countdown-time { color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.daily-countdown.ready { color: var(--green); font-weight: 800; }

/* ---------- connexion : rester connecté ---------- */
.remember { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; font-size: .9rem; cursor: pointer; flex-wrap: wrap; }
.remember input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.remember .muted { font-size: .78rem; }

/* ---------- récompenses du jour : deux blocs en haut de l'accueil ---------- */
/* blocs compacts : icône + montant, puis bouton ou compte à rebours */
.reward-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.reward-block {
  display: flex; flex-direction: column; gap: 6px; padding: 9px 11px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); min-width: 0;
}
.reward-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.reward-icon { font-size: 1.05rem; line-height: 1; }
.reward-amount { font-size: 0.98rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reward-amount .coin-inline { width: 15px; height: 15px; }
.reward-flames { margin-inline-start: auto; font-size: 0.78rem; font-weight: 800; color: var(--orange); }
.reward-claim { width: 100%; padding: 6px 8px; font-size: 0.82rem; border-radius: 9px; }
.reward-claim-fire { background: linear-gradient(135deg, #ff7a18, #ffb347); box-shadow: none; color: #2a1200; }
.reward-wait { font-size: 0.74rem; color: var(--muted); line-height: 1.25; }
.reward-wait .countdown-time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.reward-block.is-ready { border-color: rgba(155, 92, 255, .5); }
.reward-streak.is-ready { border-color: rgba(255, 140, 40, .5); }
/* déjà pris / pas encore dispo : grisé */
.reward-block.is-done { opacity: .6; filter: grayscale(.85); }

/* ---------- tendances (onglet de l'accueil + page d'une tendance) ---------- */
.trending-intro { margin: 14px 2px 10px; font-size: 0.9rem; }
.sub-tabs button {
  padding: 8px 15px; border-radius: 20px; border: 1px solid var(--border-strong); white-space: nowrap; flex-shrink: 0;
  color: var(--text-2); font: inherit; font-size: 0.87rem; font-weight: 700; background: var(--surface); cursor: pointer;
}
.sub-tabs button:hover { color: #fff; }
.sub-tabs button.active { background: #fff; border-color: #fff; color: #0b0b12; }
.trend-filters[hidden], .trend-card[hidden] { display: none; }

.trend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.trend-card {
  display: flex; gap: 13px; padding: 12px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-card); min-width: 0;
  animation: trend-in .35s var(--ease) both; transition: transform .2s var(--ease), border-color .2s;
}
.trend-card:hover { border-color: var(--border-strong); }
.trend-card-explode { border-color: rgba(255, 159, 28, .35); box-shadow: var(--shadow-card), 0 0 22px rgba(255, 159, 28, .1); }
@keyframes trend-in { from { opacity: 0; transform: translateY(6px); } }

.trend-media {
  position: relative; display: block; flex-shrink: 0; width: 92px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: #0b0b10; border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s;
}
.trend-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trend-media:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }
.trend-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.trend-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.trend-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 0.72rem;
  font-weight: 800; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent;
}
.trend-explode { background: rgba(255, 159, 28, .15); color: #ffb857; border-color: rgba(255, 159, 28, .4); }
.trend-rising  { background: rgba(61, 220, 132, .13); color: #5ef0a0; border-color: rgba(61, 220, 132, .38); }
.trend-stable  { background: var(--surface-3); color: var(--text-2); }
.trend-slowing { background: rgba(255, 90, 110, .12); color: #ff7d8d; border-color: rgba(255, 90, 110, .35); }
.trend-left { font-size: 0.74rem; color: var(--muted); font-weight: 700; white-space: nowrap; margin-inline-start: auto; }
.trend-left.is-soon { color: var(--orange); }
.trend-author {
  align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent-light); font-size: 0.9rem; font-weight: 800; text-decoration: none;
}
.trend-author:hover .vc-author-name { text-decoration: underline; }
.trend-title {
  margin: 0; font-size: 0.84rem; color: var(--text-2); line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trend-numbers { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.trend-views { display: inline-flex; align-items: center; gap: 5px; font-size: 1.05rem; }
.trend-views .ico { color: var(--accent-2); }
.trend-rate { color: var(--green); font-weight: 800; font-size: 0.86rem; }
.trend-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 0.78rem; color: var(--text-2); }
.trend-live { display: inline-flex; align-items: center; gap: 6px; color: #5ef0a0; font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(61, 220, 132, .7); animation: live-dot 2s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .35; transform: scale(.8); } }
.trend-bet { margin-top: auto; padding-top: 4px; }
.trend-bet .button-primary { width: 100%; padding: 9px 14px; }
@media (prefers-reduced-motion: reduce) {
  .trend-card, .live-dot { animation: none; }
}
@media (max-width: 600px) {
  .trend-list { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .trend-media { width: 78px; }
}

.back-link { display: inline-block; margin: 2px 0 12px; color: var(--accent-light); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.trend-detail h1.vc-title { font-size: 1.1rem; }
.trend-stats { margin-top: 12px; }
.trend-chart-card { margin-top: 14px; }
.trend-chart { display: block; width: 100%; height: 180px; }
.trend-chart-axis { display: flex; justify-content: space-between; font-size: 0.75rem; margin-top: 6px; }
.trend-cta { margin-top: 16px; text-align: center; }
.trend-cta .trend-bet .button-primary { width: 100%; max-width: 420px; padding: 13px 18px; font-size: 1rem; }
@media (max-width: 500px) {
  .trend-stats { grid-template-columns: repeat(2, 1fr); }
}

/* pastille rouge "du nouveau" sur l'onglet Tendances */
.home-tabs button { position: relative; }
.tab-dot {
  position: absolute; top: 7px; inset-inline-end: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px var(--surface), 0 0 10px rgba(255, 90, 110, .7);
}
.tab-dot[hidden] { display: none; }

/* analyse : paris supplémentaires derrière "Voir plus de paris" */
.proposition[hidden] { display: none; }
.props-more { display: block; width: 100%; margin-top: 12px; }

/* analyse allégée : mise rapide (Max), gain calculé en direct */
.analysis-perf { padding: 0 13px 13px; }
.stake-row { display: flex; gap: 6px; }
.stake-row input[type=number] { flex: 1; min-width: 0; }
.proposition .stake-max {
  flex-shrink: 0; width: auto; box-shadow: none; font-size: 0.9rem; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 201, 60, .45);
  background: rgba(255, 201, 60, .1); color: var(--gold); font: inherit; font-weight: 900; cursor: pointer;
}
.proposition .stake-max:hover { background: rgba(255, 201, 60, .2); transform: none; box-shadow: none; }
.proposition .stake-max::after { display: none; }
.prop-gain { font-size: 0.82rem; color: var(--text-2); min-height: 1.3em; }
.prop-gain strong { color: var(--green); }
.gain-xp { color: var(--accent-light); font-weight: 700; }
.prop-gain [hidden] { display: none; }

/* mobile : le panneau des notifications s'aligne sur le bord droit de l'écran, juste sous la cloche */
@media (max-width: 600px) {
  .topbar { position: relative; }
  .notif { position: static; }
  .notif-panel { inset-inline-end: 0; top: 100%; margin-top: 8px; width: min(370px, 100%); }
}

/* pop-up de gain : "Y aller" / "Non merci" */
.celebrate-go { text-decoration: none; }
.celebrate-no {
  display: block; margin: 10px auto 0; padding: 6px 12px; border: none; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 0.85rem; text-decoration: underline;
}
.celebrate-no:hover { color: var(--text-2); }
/* pari mis en avant après "Y aller" */
.bet-highlight { animation: bet-highlight 2.4s ease; }
@keyframes bet-highlight {
  0%, 60% { box-shadow: 0 0 0 2px var(--green), 0 0 24px rgba(61, 220, 132, .45); }
  100% { box-shadow: none; }
}

/* page d'un pari (depuis l'historique) */
.bet-summary { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bet-summary .prop-target { margin: 0; }
.bet-verdict { margin: 0; }
.bet-timeline { margin-top: 14px; }
.bet-timeline p { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0; font-size: 0.9rem; }
.chart-goal { color: var(--gold); }
.hist-open { color: inherit; text-decoration: none; min-width: 0; }
.hist-row:hover .hist-target { text-decoration: underline; }

/* ---------- analyse : paris à cocher + un seul bouton Parier ---------- */
.slip-note { margin: 0 2px 10px; font-size: 0.86rem; color: var(--text-2); }
.slip-note.is-full { color: var(--orange); font-weight: 700; }
.bet-slip .proposition { gap: 8px; cursor: default; }
.prop-pick { display: flex; flex-direction: column; gap: 7px; cursor: pointer; }
.pick-box { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong);
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.proposition.is-picked { border-color: var(--accent); box-shadow: var(--shadow-card), 0 0 0 1px var(--accent), var(--glow-accent); }
/* le rond se remplit de violet (sans coche) */
.pick-check { box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .2s var(--ease), border-color .2s; }
.proposition.is-picked .pick-check { border-color: var(--accent); box-shadow: inset 0 0 0 10px var(--accent); }
.pick-box:focus-visible + .prop-header .pick-check { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.proposition.is-locked { opacity: .45; }
.proposition.is-locked .prop-pick { cursor: not-allowed; }
.prop-stake { display: flex; flex-direction: column; gap: 6px; }
.prop-stake[hidden] { display: none; }
.prop-xp { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--accent-light); }
.slip-bar {
  position: sticky; bottom: 12px; z-index: 5; margin-top: 14px;
  padding: 8px; border-radius: 16px; background: rgba(12, 12, 18, .96); border: 1px solid var(--border);

}
.slip-submit { width: 100%; padding: 13px 18px; font-size: 1.02rem; }
.slip-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.4); }
.slip-total[hidden] { display: none; }
.slip-total { display: inline-flex; align-items: center; gap: 4px; }
.user-link-name-row { display: flex; align-items: center; min-width: 0; }

/* onglets Classement | Amis (liens, même look que ceux de l'accueil) */
.social-tabs { margin: 0 0 16px; }
.social-tabs a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px;
  border-radius: 12px; color: var(--text-2); text-decoration: none; font-weight: 800; font-size: 0.95rem;
  transition: background .2s, color .2s;
}
.social-tabs a:hover { color: #fff; }
.social-tabs a.active { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-accent); }
.tab-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 0.7rem; display: inline-grid; place-items: center;
}

/* ---------- onglet Niveau ---------- */
.level-hero { display: flex; align-items: center; gap: 18px; }
.level-ring-xl { width: 84px; height: 84px; font-size: 1.9rem; flex-shrink: 0; }
.level-ring-xl::before { inset: 6px; }
.level-hero-info { min-width: 0; flex: 1; }
.level-hero-kicker { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.level-hero-title { margin: 2px 0 8px; font-size: 1.4rem; }
.level-xp-bar { max-width: none; height: 9px; border-radius: 5px; }
.level-hero .muted { margin: 8px 0 0; font-size: 0.85rem; }
.level-next { margin: 8px 0 0; font-size: 0.88rem; }
.page > .settings-card + .settings-card { margin-top: 14px; }
.xp-rules { list-style: none; margin: 0 0 8px; padding: 0; }
.xp-rules li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.xp-rules li:last-child { border-bottom: 0; }
.xp-rules strong { color: var(--accent-light); text-align: end; max-width: 55%; }
.level-tiers { list-style: none; margin: 0; padding: 0; }
.level-tiers li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.level-tiers li.is-current { background: linear-gradient(90deg, rgba(155, 92, 255, .16), transparent 80%); }
.level-tiers .level-ring.is-locked { opacity: .45; }
.tier-name { flex: 1; font-weight: 700; }
.level-tiers li:not(.is-current):not(.is-done) .tier-name { color: var(--muted); }
.tier-you { margin-inline-start: 6px; padding: 1px 8px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 0.7rem; }
.tier-xp { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .level-hero { gap: 14px; }
  .level-ring-xl { width: 66px; height: 66px; font-size: 1.5rem; }
}

/* pièce à côté des montants des pop-ups */
.celebrate-amount { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.celebrate-coin { width: .8em; height: .8em; filter: drop-shadow(0 0 10px rgba(255, 201, 60, .5)); }

/* onglet Tendances : phrase + bouton Actualiser */
.trending-head { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 14px 2px 10px; }
.trending-head .trending-intro { margin: 0; }
.trends-refresh { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 8px 13px; font-size: 0.85rem; }
.trends-refresh.is-loading svg { animation: spin .8s linear infinite; }

/* mise : boutons − / + autour du champ */
.proposition .stake-step {
  flex-shrink: 0; width: 38px; padding: 0; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-3); color: var(--text); font: inherit; font-size: 1.2rem; font-weight: 800; box-shadow: none;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.proposition .stake-step:hover { background: var(--surface-2); box-shadow: none; transform: none; filter: none; }
.proposition .stake-step:active { transform: scale(.94); }
.proposition .stake-step::after { display: none; }
.stake-row input[type=number] { text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stake-row input[type=number]::-webkit-inner-spin-button, .stake-row input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* mise : champ pleine largeur, 4 boutons égaux dessous (retirer · − · + · Max) */
.stake-input { width: 100%; text-align: center; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums;
               -moz-appearance: textfield; appearance: textfield; }
.stake-input::-webkit-inner-spin-button, .stake-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stake-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.proposition .stake-step, .proposition .stake-max { width: auto; height: 40px; padding: 0; display: grid; place-items: center; }
.proposition .stake-clear { color: var(--text-2); }
.proposition .stake-clear:hover { color: #fff; }

/* champ du lien TikTok : bouton « Coller » dans le champ */
.url-field { position: relative; flex: 1; min-width: 0; display: flex; }
.url-field input { flex: 1; min-width: 0; padding-inline-end: 104px; }
.hero-form .paste-btn {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 9px;
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text); box-shadow: none;
  font-size: 0.82rem; font-weight: 800;
}
.hero-form .paste-btn:hover { background: var(--surface-2); filter: none; box-shadow: none; transform: translateY(-50%); }
.hero-form .paste-btn:active { transform: translateY(-50%) scale(.96); }
.hero-form .paste-btn::after { display: none; }
.paste-hint { margin: 8px 2px 0; font-size: 0.85rem; position: relative; z-index: 1; }
@media (max-width: 600px) {
  .url-field { width: 100%; }
}

/* une ligne de pari / une carte qui se replie après « Récupérer » */
.collapsing { transition: height .4s var(--ease), opacity .3s, margin .4s var(--ease), padding .4s var(--ease);
              opacity: 0; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }

/* XP bien visible : badge sur les cartes à cocher, ligne sur les paris, historique */
.xp-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 20px;
  background: rgba(155, 92, 255, .14); border: 1px solid rgba(155, 92, 255, .35); color: var(--accent-light);
  font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.bet-xp { margin: 6px 0 0; font-size: 0.78rem; font-weight: 700; color: var(--accent-light); }
.hist-result { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.hist-xp { font-size: 0.72rem; font-weight: 700; color: var(--accent-light); white-space: nowrap; }

/* notifications : glisser pour masquer (le doigt ne fait pas défiler la page) */
.flashes .flash { touch-action: none; user-select: none; -webkit-user-select: none; }
.flash.swiped { transition: transform .25s var(--ease), opacity .25s; }
.hero-form.no-paste .url-field input { padding-inline-end: 14px; }

/* page Niveau : prochains niveaux et leur récompense */
.level-tiers li.is-next { background: linear-gradient(90deg, rgba(155, 92, 255, .16), transparent 80%); }
.level-tiers li.is-next .level-ring { opacity: 1; }
.tier-reward { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- « + » au centre de la barre : parier sur un nouveau TikTok ---------- */
.main-nav a.nav-plus { position: relative; background: none; box-shadow: none; }
.nav-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 45;
  padding: 7px 11px; border-radius: 11px; background: #fff; color: #0b0b12; font-weight: 800; font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); white-space: nowrap; animation: pop-in .3s var(--ease);
}
.nav-tip::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -6px;
  border: 6px solid transparent; border-bottom-color: #fff;
}
.nav-tip[hidden] { display: none; }
.modal-link-sub { margin: -4px 0 10px; font-size: 0.88rem; }
.modal-link { width: min(520px, calc(100vw - 32px)); }
.modal-link .hero-form { margin-top: 4px; }
.modal-link .analyzing { margin-top: 14px; }
/* la barre « Parier » de l'analyse passe au-dessus du bouton rond */
.slip-bar { margin-inline-end: 0; }

/* profil : historique des paris (liste simple, pas cliquable) */
.profile-history { margin-top: 14px; }
.profile-history h3 { margin: 0 0 8px; font-size: 1.05rem; }
.history-plain .hist-row { cursor: default; }
.history-plain .hist-row:hover .hist-target { text-decoration: none; }

/* état vide « Aucun pari en cours » : tout le bloc est cliquable */
.empty-cta {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; cursor: pointer;
  font: inherit; color: var(--text-2); border: 1px dashed var(--border-strong);
}
.empty-cta strong { color: var(--text); }
.empty-cta span { color: var(--accent-light); font-weight: 700; }
.empty-cta:hover { border-color: var(--accent); }
/* croix de fermeture en haut à droite des fenêtres */
.modal { position: relative; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; }
.modal-link h3 { padding-inline-end: 40px; }
.modal > h3:first-of-type { padding-inline-end: 40px; }

/* page Niveau : récompense du niveau suivant au bout de la barre */
.level-goal { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.level-goal-next { font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.level-goal-reward {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px;
  background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .35); color: #5ef0a0;
  font-weight: 900; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.level-remaining { margin: 8px 0 0; font-size: 0.9rem; font-weight: 700; }
.level-remaining .muted { font-weight: 400; }

/* ---------- pied de page ---------- */
.site-footer {
  margin-top: 40px; padding: 22px 4px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
  text-align: center; font-size: 0.8rem; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.footer-links a, .footer-copy a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover, .footer-copy a:hover { color: #fff; text-decoration: underline; }
.footer-note, .footer-copy { margin: 4px 0; }
/* Paramètres → Contact / retour */
.contact-card p { margin: 0 0 12px; }
.contact-mail { display: inline-flex; text-decoration: none; }
.legal-page h2 { margin-top: 0; }

/* pages légales : texte long, lisible */
.legal-page { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal-page h1 { margin: 0 0 6px; font-size: 1.5rem; }
.legal-page h2 { margin: 22px 0 6px; font-size: 1.05rem; }
.legal-page p { margin: 0 0 8px; }
.legal-page ul { margin: 0 0 8px; padding-inline-start: 20px; }
.legal-page li { margin: 4px 0; }
.legal-page a { color: var(--accent-light); }
.legal-updated { margin-top: 24px !important; font-size: 0.82rem; }

/* codes par e-mail, case CGU */
.code-input { text-align: center; font-size: 1.5rem !important; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.verify-actions { margin-top: 10px; }
.verify-actions button { width: 100%; }
.verify-change { margin-top: 12px; font-size: 0.9rem; color: var(--text-2); }
.verify-change summary { cursor: pointer; }
.verify-change form { margin-top: 8px; }
.accept-terms { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--text-2); line-height: 1.4; cursor: pointer; }
.accept-terms input { margin-top: 3px; flex-shrink: 0; width: auto; }
.accept-terms a { color: var(--accent-light); }

/* ---------- mode visite ---------- */
.header-login { padding: 9px 16px; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.visitor-hero { text-align: center; padding: 26px 20px; margin-bottom: 18px; }
.visitor-hero h1 { margin: 0 0 8px; font-size: 1.45rem; }
.visitor-hero .muted { margin: 0 0 16px; }
.auth-choice { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.auth-choice a { text-decoration: none; padding: 11px 20px; flex: 1; min-width: 140px; text-align: center; justify-content: center; }
.visitor-trends-title { font-size: 1.1rem; margin: 6px 2px 12px; }
.modal-auth { width: min(420px, calc(100vw - 32px)); text-align: center; }
.modal-auth .muted { margin: 0 0 16px; }

/* signalement d'un profil */
.report-link { text-align: center; margin: 14px 0 0; }
.link-button { background: none; border: none; padding: 4px; color: var(--muted); font: inherit; font-size: 0.82rem;
               text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--text-2); }
.report-reasons { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.report-reasons label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.report-reasons input { width: auto; }
#dialog-report textarea { width: 100%; }
.admin-toggle { font-size: 0.8rem; font-weight: 400; margin-inline-start: auto; }

/* pop-ups de bienvenue / parrainage / écran d'accueil */
.modal-promo { width: min(400px, calc(100vw - 32px)); text-align: center; }
.modal-promo h3 { padding-inline-end: 0 !important; }
.promo-emoji { font-size: 2.6rem; margin: 4px 0 6px; }
.promo-icon { border-radius: 16px; margin: 6px auto 8px; display: block; }
.modal-promo p { margin: 0 0 10px; }
.invite-link { display: flex; gap: 6px; margin: 6px 0 8px; }
.invite-link input { flex: 1; min-width: 0; font-size: 0.85rem; }
.invite-link button { flex-shrink: 0; }
/* pages d'erreur */
.error-page { text-align: center; padding: 34px 20px; max-width: 480px; margin: 20px auto; }
.error-code { font-size: 3.4rem; font-weight: 900; margin: 0; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin: 4px 0 8px; font-size: 1.4rem; }
.error-page .muted { margin: 0 0 18px; }
.error-page .button-primary { text-decoration: none; display: inline-flex; }
