/* DOPE Creators : l'espace créateur (/dashboard), l'admin (/admin) et /invite-confirmed.
   L'allure du site de sortie : noir profond, SF Pro, verre, logo argenté, image étalonnée en fond.
   Une app : menu à gauche sur ordinateur, onglets en bas sur téléphone. Pas de halo, pas d'ombre qui coule.
   Pas de style inline (CSP) : le JS ne règle que des variables CSS. */

:root {
  --ink: #fff; --ink-2: rgba(255, 255, 255, .72); --ink-3: rgba(255, 255, 255, .48); --ink-4: rgba(255, 255, 255, .24);
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --bg: #08080a; --field: rgba(255, 255, 255, .06);
  --ok: #30d158; --warn: #ffb340; --bad: #ff453a; --glow: #f2b48a;
  --ease: cubic-bezier(.22, .8, .2, 1); --side: 248px; --pad: clamp(16px, 3.4vw, 40px);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: transparent; color: var(--ink); font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; -webkit-font-smoothing: antialiased; position: relative; isolation: isolate; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }

/* ---------- l'ambiance (fixe, discrète) ---------- */
.ambient { position: fixed; inset: 0 0 auto 0; height: 70vh; z-index: -1; overflow: hidden; pointer-events: none; }
.amb { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(70px) brightness(.55) saturate(1.5); opacity: .8; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.1) translate3d(-2%, -1%, 0); } to { transform: scale(1.22) translate3d(2%, 2%, 0); } }
.ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 10, .35), rgba(8, 8, 10, .75) 45%, var(--bg) 100%); }
.rays { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .35; background: conic-gradient(from 200deg at 72% -10%, transparent 0deg, rgba(255, 255, 255, .06) 12deg, transparent 22deg, rgba(255, 255, 255, .04) 34deg, transparent 46deg); }
.grain { position: absolute; inset: -50%; opacity: .12; mix-blend-mode: overlay; background: url("/grain.svg") 0 0 / 220px 220px repeat; animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .amb, .grain { animation: none; } }

/* ---------- le verre : un liseré, pas d'ombre ---------- */
.card::before, .kpi::before, .row::before, .settings::before, .table-wrap::before, .item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(150deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .02) 65%, rgba(255, 255, 255, .09)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* ---------- la coquille de l'app ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px; border-right: 1px solid var(--line); background: rgba(10, 10, 12, .55); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow-y: auto; }
.side-logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; text-decoration: none; }
.side-logo svg { width: 92px; height: auto; overflow: visible; }
.side-logo small { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.nav { display: grid; gap: 2px; }
.nav-k { margin: 14px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.nav a, .nav button { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.nav svg, .tabbar svg, .ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover, .nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current="page"], .nav button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.nav b { margin-left: auto; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; background: var(--glow); color: #000; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-width: 0; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #000; background: linear-gradient(140deg, #fff, #a9a9b2); }
.me span { min-width: 0; }
.me b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { min-width: 0; padding: 26px var(--pad) 80px; }
.page { width: min(100%, 1120px); margin: 0 auto; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 26px; }
.kicker { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 5vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; background: linear-gradient(180deg, #fff 0%, #ececf0 55%, #a3a3ac 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
h2 { margin: 0 0 14px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.lede { margin: 10px 0 0; max-width: 40em; font-size: 16px; color: var(--ink-2); }
.lede b { color: #fff; font-weight: 600; }
.sec { margin-top: 34px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { margin: 0; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.note b { color: var(--ink-2); }
.note a { color: var(--ink-2); }
.muted { color: var(--ink-3); }
.muted b { color: #fff; font-weight: 600; }
.status { min-height: 1.3em; margin: 0; font-size: 13px; color: var(--ink-2); }
.status.is-bad { color: var(--bad); }
.status.is-ok { color: var(--ok); }

/* ---------- les cartes ---------- */
.card { position: relative; border-radius: 22px; padding: clamp(18px, 2.4vw, 26px); background: linear-gradient(165deg, rgba(28, 28, 32, .86), rgba(14, 14, 16, .9)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.card-glow { display: none; }
.field-k { display: block; margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.insights--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.insights > .card { margin: 0; }

/* chiffres */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 12px; }
.kpi { position: relative; padding: 16px 18px; border-radius: 18px; background: rgba(20, 20, 23, .82); }
.kpi span { display: block; font-size: 12px; color: var(--ink-3); }
.kpi b { display: block; margin-top: 6px; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.kpi--ok b { color: var(--ok); }
.money { display: block; font-family: var(--display); font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #ececf0 50%, #a3a3ac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amount { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* gains : gros chiffre + six mois */
.earn { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.earn-k { display: block; margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 130px; margin-top: 24px; }
.chart div { display: grid; grid-template-rows: 1fr auto; gap: 8px; min-height: 0; }
.chart i { display: block; align-self: end; height: calc(var(--h, 0) * 100%); min-height: 3px; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .3)); transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: var(--d, 0s); }
.chart div:last-child i { background: linear-gradient(180deg, #fff, var(--glow)); }
.chart span { font-size: 11px; color: var(--ink-3); text-align: center; }
@keyframes grow { from { transform: scaleY(0); } }
.mini-list { display: grid; gap: 8px; align-content: start; }
.mini { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(20, 20, 23, .82); box-shadow: inset 0 0 0 1px var(--line); }
.mini span { font-size: 13px; color: var(--ink-2); }
.mini b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini--ok b { color: var(--ok); }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: #fff; color: #000; font: 600 14px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .2s, opacity .2s; }
.btn:hover { background: #ececf0; }
.btn:active { transform: scale(.97); }
.btn--glass { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--glass:hover { background: rgba(255, 255, 255, .14); }
.btn--danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .5); }
.btn--danger:hover { background: rgba(255, 69, 58, .12); }
.btn--red { background: var(--bad); color: #fff; }
.btn--red:hover { background: #ff5b51; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- champs : propres, un seul liseré au focus ---------- */
.form { display: grid; gap: 14px; }
.form label, .grid-2 label, .field { display: grid; gap: 7px; min-width: 0; }
.form label > span, .grid-2 label > span, .field > span { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
input, select, textarea { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 13px; outline: 0; font: inherit; font-size: 15px; color: #fff; background: var(--field); transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .22); }
input:focus, select:focus, textarea:focus, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .09); }
input:disabled, select:disabled { opacity: .55; }
input[aria-invalid="true"] { border-color: rgba(255, 69, 58, .7); }
select { padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .7) 50%), linear-gradient(135deg, rgba(255, 255, 255, .7) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option, select optgroup { color: #fff; background: #141416; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--ink-3); }

/* les choix en pastilles (méthode de paiement, rythme) */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background .2s, box-shadow .2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.choice b { font-size: 14px; }
.choice small { font-size: 12px; color: var(--ink-3); }
.choice:hover { background: rgba(255, 255, 255, .09); }
.choice:has(input:checked) { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px #fff; }
.choice:has(input:focus-visible) { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }

/* interrupteurs */
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-size: 14px; }
.switch small { display: block; font-size: 12px; color: var(--ink-3); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .16); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }

/* ---------- lien, code, QR ---------- */
.share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.mono { margin: 0 0 16px; font: 600 clamp(15px, 2vw, 19px)/1.35 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.code { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: 12px; font: 700 22px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); }
.qr { width: 176px; height: 176px; border-radius: 22px; background: #fff; }
.qr--sm { width: 56px; height: 56px; border-radius: 10px; }

/* ---------- listes ---------- */
.rows { display: grid; gap: 8px; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 14px 18px; border-radius: 18px; background: rgba(20, 20, 23, .82); }
.row--link { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.row b { display: block; font-size: 15px; font-weight: 600; }
.row small { display: block; font-size: 13px; color: var(--ink-3); word-break: break-word; }
.row a { color: #fff; text-underline-offset: 3px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row-actions input { width: 150px; height: 34px; border-radius: 17px; font-size: 13px; padding: 0 12px; }
.row-actions select { width: auto; height: 34px; border-radius: 17px; padding: 0 32px 0 12px; font-size: 13px; }
.row-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.row-stats div { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.row-stats span { display: block; font-size: 11px; color: var(--ink-3); }
.row-stats strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.note-box { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.note-box input { flex: 1 1 260px; width: auto; height: 38px; font-size: 13px; }
.res-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.res-row input { height: 40px; font-size: 14px; }
.res-row .js-r-desc { grid-column: 1 / -1; }
.empty { margin: 0; padding: 22px; border-radius: 18px; background: rgba(20, 20, 23, .7); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: 14px; }

.feed { display: grid; gap: 8px; }
.item { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(20, 20, 23, .82); }
.item-ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.item-ic svg { width: 24px; height: 24px; }
.item b { font-size: 14px; font-weight: 600; }
.item small { grid-column: 2; font-size: 12px; color: var(--ink-3); }
.item em { grid-row: span 2; font-style: normal; font-weight: 700; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.item em small { display: block; margin-top: 4px; font-weight: 500; }

.tag { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--ink-4); white-space: nowrap; }
.tag--ok { color: #fff; background: var(--ok); box-shadow: none; }
.tag--warn { color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, .55); }
.tag--bad { color: #fff; background: var(--bad); box-shadow: none; }

/* tableaux */
.table-wrap { position: relative; overflow-x: auto; border-radius: 18px; background: rgba(20, 20, 23, .82); }
/* Le liseré ne doit pas défiler avec le tableau : il est dessiné sur le cadre lui-même. */
.table-wrap::before { display: none; }
.table-wrap { border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; padding: 14px 14px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.table td small { display: block; color: var(--ink-3); font-size: 12px; }
.table .num { text-align: right; }
[data-panel="sales"] .table .num { text-align: center; }
[data-panel="sales"] .table th, [data-panel="sales"] .table td { padding-left: 12px; padding-right: 12px; }
[data-panel="sales"] .table th:first-child, [data-panel="sales"] .table td:first-child { padding-left: 18px; }
[data-panel="sales"] .table th:last-child, [data-panel="sales"] .table td:last-child { padding-right: 18px; }
.table .empty-cell { color: var(--ink-3); white-space: normal; }
.table tr.is-off td { opacity: .5; }

/* segments, filtres */
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: #000; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.filters select { width: auto; height: 38px; border-radius: 19px; padding: 0 36px 0 14px; font-size: 13px; }

/* analytics */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.metrics--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metrics button { text-align: left; padding: 13px 15px; border: 0; border-radius: 15px; background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.metrics button span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.metrics button b { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metrics button[aria-selected="true"] { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff; }
.daily { display: flex; align-items: flex-end; gap: 3px; height: 170px; margin-top: 22px; }
.daily i { flex: 1; min-width: 2px; height: calc(var(--h, 0) * 100%); min-height: 2px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .28)); transform-origin: bottom; animation: grow .6s var(--ease) both; animation-delay: var(--d, 0s); }
.daily i.is-zero { background: rgba(255, 255, 255, .1); }
.daily i:last-child { background: linear-gradient(180deg, #fff, var(--glow)); }
.daily-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.area { position: relative; margin-top: 20px; }
.area svg { display: block; width: 100%; height: 240px; overflow: visible; }
.area .grid line { stroke: rgba(255, 255, 255, .07); }
.area .ylab, .area .xlab { fill: var(--ink-3); font-size: 11px; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.area .line { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.area .fill { fill: url(#areaFill); }
.area .dot { fill: var(--glow); stroke: #000; stroke-width: 2; opacity: 0; transition: opacity .15s; }
.area .hit { fill: transparent; cursor: crosshair; }
.area-tip { position: absolute; left: calc(var(--x, 0) * 1%); top: 0; transform: translate(-50%, -6px); padding: 6px 10px; border-radius: 10px; background: #fff; color: #000; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.area-tip small { display: block; font-weight: 500; color: rgba(0, 0, 0, .55); }
.area.is-hover .area-tip, .area.is-hover .dot { opacity: 1; }
.funnel, .split { display: grid; gap: 12px; margin-top: 6px; }
.bar-row { display: grid; gap: 6px; }
.bar-row div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.bar-row div span { color: var(--ink-2); }
.bar-row div b { font-variant-numeric: tabular-nums; }
.bar-row div small { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.bar-row > i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar-row > i::after { content: ""; display: block; height: 100%; width: calc(var(--w, 0) * 100%); border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), #fff); transition: width .8s var(--ease); }
.bar-row--ok > i::after { background: linear-gradient(90deg, #1f9d45, var(--ok)); }

/* premiers pas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.steps li { position: relative; padding: 16px 16px 16px 52px; border-radius: 18px; background: rgba(20, 20, 23, .82); box-shadow: inset 0 0 0 1px var(--line); counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .1); }
.steps li.is-done::before { content: "✓"; background: var(--ok); color: #fff; }
.steps li.is-done b { color: var(--ink-2); }
.steps b { display: block; font-size: 14px; }
.steps span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.steps em { font-style: normal; color: #fff; }

/* ressources */
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kit-item { display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); text-decoration: none; font-size: 13px; color: var(--ink-2); transition: background .2s; }
.kit-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.kit-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #000; }
.captions { display: grid; gap: 8px; }
.caption { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.caption .btn { justify-self: start; }
.faq { border-top: 1px solid var(--line); }
.faq summary { padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-3); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }

/* bandeaux */
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; font-size: 14px; color: var(--ink-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.banner::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); }
.banner--warn::before { background: var(--warn); }
.banner--ok::before { background: var(--ok); }
.banner b { color: #fff; }
.banner .btn { margin-left: auto; }
.hero-card + .banner, .banner + .banner, .hero-card ~ .strip { margin-top: 18px; }
[data-panel] > .note { margin-bottom: 14px; }

/* la zone sensible */
.danger { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 69, 58, .25); }
.danger .field-k { color: var(--bad); }
.delete { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- la porte d'entrée (connexion) ---------- */
.gate-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gate { width: min(100%, 440px); }
.gate .card { padding: clamp(26px, 5vw, 40px); text-align: center; }
.gate .side-logo { justify-content: center; padding: 0 0 26px; }
.gate h1 { font-size: clamp(34px, 6vw, 44px); }
.gate .lede { margin-left: auto; margin-right: auto; font-size: 15px; }
.gate .form { margin: 24px 0 0; text-align: left; }
.gate .js-signin { margin: 24px 0 0; }
.gate-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; font-size: 12px; color: var(--ink-3); }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- admin ---------- */
.todo { display: grid; gap: 8px; }
.todo button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #fff; font-size: 14px; text-align: left; cursor: pointer; }
.todo button:hover { background: rgba(255, 255, 255, .09); }
.todo b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--glow); color: #000; font-size: 12px; }
.todo .is-clear { color: var(--ink-3); }
.todo .is-clear b { background: var(--ok); color: #fff; }
.prog-form { display: grid; gap: 14px; margin-top: 12px; }
.settings { position: relative; display: grid; border-radius: 20px; background: rgba(20, 20, 23, .82); padding: 4px 22px 20px; }
.set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set b { display: block; font-size: 15px; }
.set small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.set .tag { justify-self: start; }
.settings .actions { margin-top: 16px; }
.audit { display: grid; gap: 0; font-size: 13px; }
.audit div { display: grid; grid-template-columns: 130px 110px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.audit time { color: var(--ink-3); }

/* ---------- téléphone ---------- */
.mtop, .tabbar { display: none; }
@media (max-width: 1100px) {
  .kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .content { padding: 0 16px calc(100px + env(safe-area-inset-bottom)); }
  .mtop { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px 18px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(8, 8, 10, .74); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid var(--line); }
  .mtop .side-logo { padding: 0; }
  .mtop .side-logo svg { width: 76px; }
  /* les onglets en bas, comme une app iPhone */
  .tabbar { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; gap: 2px; padding: 6px; border-radius: 26px; background: rgba(24, 24, 28, .84); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: inset 0 0 0 1px var(--line-2); }
  .tabbar a, .tabbar button { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border: 0; border-radius: 18px; background: transparent; color: var(--ink-3); font-size: 10px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar [aria-current="page"], .tabbar [aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
  /* l'admin : beaucoup d'onglets, une bande qui défile sous la barre du haut */
  .tabbar--scroll { position: sticky; top: calc(55px + env(safe-area-inset-top)); left: auto; right: auto; bottom: auto; z-index: 45; margin: -18px -16px 18px; padding: 8px 12px; border-radius: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; background: rgba(8, 8, 10, .74); box-shadow: none; border-bottom: 1px solid var(--line); }
  .tabbar--scroll::-webkit-scrollbar { display: none; }
  .tabbar--scroll button { flex: none; display: flex; gap: 6px; align-items: center; padding: 8px 12px; font-size: 13px; }
  .tabbar--scroll svg { width: 16px; height: 16px; }
  .tabbar--scroll b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10px; background: var(--glow); color: #000; }
  .earn, .insights, .insights--2, .grid-2, .g2, .g3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kpis, .kpis--4, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics, .metrics--5, .kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share { grid-template-columns: 1fr; justify-items: start; }
  .qr { width: 200px; height: 200px; }
  .row, .res-row { grid-template-columns: 1fr; }
  .row--link { grid-template-columns: auto minmax(0, 1fr); }
  .row--link .row-actions { grid-column: 1 / -1; }
  .row-actions { justify-content: flex-start; }
  .row-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .set { grid-template-columns: 1fr; gap: 10px; }
  .choices { grid-template-columns: 1fr; }
  .area svg { height: 200px; }
  .delete { flex-direction: column; }
  .audit div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .money { font-size: 46px; }
  .code { font-size: 19px; }
}
/* l'admin : le premier titre de chaque page prend l'allure d'un grand titre */
[data-panel] > h2:first-child, [data-panel] > .sec-head:first-child h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; background: linear-gradient(180deg, #fff 0%, #ececf0 55%, #a3a3ac 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
[data-panel] > .sec-head:first-child { margin-bottom: 18px; }
.insights { align-items: start; }
.card .field-k.sec { margin-top: 24px; }
.actions input { flex: 1 1 240px; width: auto; }

/* =========================================================================
   Couleurs pleines (demande de Théo) : vert profond, rouge sang, ambre, blanc.
   Plus de pêche : les pastilles et accents passent en blanc.
   ========================================================================= */
:root { --ok: #1fb455; --ok-2: #34d76d; --bad: #c8102e; --bad-2: #e0193a; --warn: #f0a202; --glow: #fff; }
.tag { padding: 4px 9px; border-radius: 99px; font-size: 10px; letter-spacing: .07em; box-shadow: none; color: #fff; background: rgba(255, 255, 255, .16); }
.tag--ok { background: var(--ok); color: #fff; }
.tag--bad { background: var(--bad); color: #fff; }
.tag--warn { background: var(--warn); color: #1a1200; box-shadow: none; }
.btn--danger { background: var(--bad); color: #fff; box-shadow: none; }
.btn--danger:hover { background: var(--bad-2); }
.btn--red { background: var(--bad); }
.btn--red:hover { background: var(--bad-2); }
.nav b, .todo b, .tabbar--scroll b { background: #fff; color: #000; }
.todo .is-clear b { background: var(--ok); color: #fff; }
.mini--ok b, .kpi--ok b { color: var(--ok-2); }
.switch input:checked + i { background: var(--ok); }
.steps li.is-done::before { background: var(--ok); }
.status.is-ok { color: var(--ok-2); }
.status.is-bad { color: #ff4d5e; }
input[aria-invalid="true"] { border-color: var(--bad-2); }
.danger { border-top-color: rgba(200, 16, 46, .4); }
.danger .field-k { color: #ff4d5e; }
.banner--warn::before { background: var(--warn); }
.banner--ok::before { background: var(--ok); }
.chart div:last-child i, .daily i:last-child { background: #fff; }
.area .dot { fill: #fff; }
.bar-row--ok > i::after { background: linear-gradient(90deg, #138a40, var(--ok-2)); }
.kit-item img.kit-logo { object-fit: contain; padding: 18% 10%; background: #000; }
.kit-item img.kit-icon { background: transparent; object-fit: contain; padding: 12%; border-radius: 0; }

/* =========================================================================
   Le vert anis (inspiré de Higgsfield Earn) : l'argent, ce qui est prêt, les actions clés.
   ========================================================================= */
:root { --lime: #c8f53c; --lime-2: #d9ff5c; --lime-ink: #0d1200; --ok: #c8f53c; --ok-2: #d9ff5c; }
.tag--ok { background: var(--lime); color: var(--lime-ink); }
.mini--ok b, .kpi--ok b, .lime { color: var(--lime); }
.switch input:checked + i { background: var(--lime); }
.switch input:checked + i::after { background: #0d1200; }
.steps li.is-done::before { background: var(--lime); color: var(--lime-ink); }
.todo .is-clear b { background: var(--lime); color: var(--lime-ink); }
.status.is-ok { color: var(--lime); }
.bar-row--ok > i::after { background: linear-gradient(90deg, #6f8f12, var(--lime)); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: var(--lime-2); }

/* le bandeau d'accueil : photos étalonnées qui flottent, une grille anis en perspective */
.hero-card { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 300px; padding: 40px 24px; border-radius: 26px; text-align: center; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 120%, rgba(200, 245, 60, .55), rgba(200, 245, 60, .12) 45%, transparent 70%), linear-gradient(180deg, #11140a, #0b0d06);
  box-shadow: inset 0 0 0 1px rgba(200, 245, 60, .35); }
.hero-card::before { content: ""; position: absolute; inset: 40% -20% -30%; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(200, 245, 60, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 245, 60, .35) 1px, transparent 1px); background-size: 46px 46px; transform: perspective(500px) rotateX(62deg); transform-origin: top; -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.hero-card h1 { font-size: clamp(40px, 6vw, 68px); text-transform: none; }
.hero-card .lede { margin: 12px auto 0; max-width: 34em; color: rgba(255, 255, 255, .78); }
.hero-card .actions { justify-content: center; margin-top: 20px; }
.hero-card .kicker { color: var(--lime); }
.float { position: absolute; z-index: -1; width: clamp(90px, 13vw, 170px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 18px 40px -12px rgba(0, 0, 0, .7); }
.float--1 { left: 3%; top: 26%; transform: rotate(-6deg); }
.float--2 { left: 13%; top: 8%; width: clamp(110px, 16vw, 210px); aspect-ratio: 4 / 3; transform: rotate(4deg); }
.float--3 { right: 13%; top: 10%; width: clamp(110px, 16vw, 210px); aspect-ratio: 4 / 3; transform: rotate(-3deg); }
.float--4 { right: 3%; top: 30%; transform: rotate(5deg); }
@media (max-width: 900px) { .float--1, .float--4 { display: none; } .float--2 { left: -6%; top: 4%; opacity: .55; } .float--3 { right: -6%; top: auto; bottom: 6%; opacity: .55; } .hero-card { min-height: 0; padding: 34px 18px; } }

/* une ligne de chiffres d'un seul bloc, séparés par des filets */
.strip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border-radius: 20px; overflow: hidden; background: rgba(20, 20, 23, .82); box-shadow: inset 0 0 0 1px var(--line-2); }
.strip > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; background: rgba(255, 255, 255, .04); }
.strip span { display: block; font-size: 12px; color: var(--ink-2); }
.strip b { display: block; margin: 6px 0 2px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.strip small { display: block; font-size: 12px; color: var(--ink-3); }
.strip .is-lime b { color: var(--lime); }
.strip .is-amber b { color: var(--warn); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip > div:nth-child(3) { border-left: 0; } .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* dans le menu : l'argent prêt, et l'aide */
.side-cash { display: block; padding: 14px 14px 12px; border-radius: 16px; text-decoration: none; background: radial-gradient(120% 140% at 0% 100%, rgba(200, 245, 60, .32), rgba(200, 245, 60, .06) 55%, rgba(20, 22, 12, .9)); box-shadow: inset 0 0 0 1.5px rgba(200, 245, 60, .75); }
.side-cash span { display: block; font-size: 11px; font-weight: 600; color: #fff; }
.side-cash b { display: block; margin-top: 4px; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; }
.side-help { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--ink-3); }
.side-help b { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }
.side-help a { color: var(--lime); }

/* paiements : la courbe de l'argent reçu, le solde, les virements */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
.balance b.money { background: none; color: var(--lime); -webkit-text-fill-color: var(--lime); font-size: clamp(40px, 5vw, 56px); }
.balance .list { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.balance .list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.balance .list div b { color: #fff; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--lime); background: rgba(200, 245, 60, .14); font-variant-numeric: tabular-nums; }
.done { color: var(--lime); font-size: 13px; font-weight: 600; }
.cash-chart { margin-top: 14px; }
.cash-chart svg { display: block; width: 100%; height: 200px; overflow: visible; }
.cash-chart .line { fill: none; stroke: var(--lime); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.cash-chart .fill { fill: url(#cashFill); }
.cash-chart .ylab, .cash-chart .xlab { fill: var(--ink-3); font-size: 11px; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.cash-chart .grid line { stroke: rgba(255, 255, 255, .07); }
.cash-chart .dot { fill: var(--lime); }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
/* les photos du bandeau restent sur les côtés, le texte au centre reste lisible */
.hero-card > div { position: relative; z-index: 1; max-width: 520px; }
.hero-card > div::before { content: ""; position: absolute; inset: -30px -40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 13, 6, .85), rgba(11, 13, 6, 0)); }
.float { width: clamp(70px, 8.5vw, 130px); }
.float--1 { left: 2%; top: 30%; }
.float--2 { left: 9%; top: 7%; width: clamp(90px, 11vw, 175px); }
.float--3 { right: 9%; top: 8%; width: clamp(90px, 11vw, 175px); }
.float--4 { right: 2%; top: 34%; }
@media (max-width: 1250px) { .float--1, .float--4 { display: none; } .float--2 { left: 2%; top: 14%; } .float--3 { right: 2%; top: auto; bottom: 10%; } }
@media (max-width: 900px) { .float--2, .float--3 { opacity: .45; } }
@media (max-width: 900px) { .float { display: none !important; } }

/* =========================================================================
   DOPE = blanc. Le vert anis seulement pour l'argent prêt à être payé.
   Étiquettes et boutons secondaires « teintés » : fond coloré léger, texte coloré.
   ========================================================================= */
.hero-card { background: radial-gradient(120% 90% at 50% 125%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 45%, transparent 70%), linear-gradient(180deg, #131315, #0b0b0c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.hero-card::before { background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px); }
.hero-card .kicker { color: var(--ink-3); }
.hero-card > div::before { background: radial-gradient(closest-side, rgba(11, 11, 12, .85), rgba(11, 11, 12, 0)); }
.side-help a, .note a { color: #fff; }

/* teintés */
.tag { padding: 4px 9px; border-radius: 7px; font-size: 10.5px; letter-spacing: .05em; box-shadow: none; color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .1); }
.tag--ok { background: rgba(200, 245, 60, .16); color: var(--lime); }
.tag--warn { background: rgba(240, 162, 2, .18); color: #ffc24d; }
.tag--bad { background: rgba(200, 16, 46, .24); color: #ff6b7d; }
.btn--danger, .btn--red { background: rgba(200, 16, 46, .22); color: #ff6b7d; box-shadow: none; border-radius: 12px; }
.btn--danger:hover, .btn--red:hover { background: rgba(200, 16, 46, .34); color: #ff8494; }
.btn--sm.btn--danger, .btn--sm.btn--red { border-radius: 10px; }
.btn--glass { border-radius: 12px; }
.btn--sm.btn--glass { border-radius: 10px; }
.btn--tint { background: rgba(200, 245, 60, .16); color: var(--lime); border-radius: 12px; }
.btn--tint:hover { background: rgba(200, 245, 60, .26); }
.pill { border-radius: 7px; }
.bar-row--ok > i::after { background: linear-gradient(90deg, rgba(255, 255, 255, .5), #fff); }
.switch input:checked + i { background: #fff; }
.steps li.is-done::before { background: #fff; color: #000; }
.todo .is-clear b { background: #fff; color: #000; }
.status.is-ok { color: #fff; }

/* le bandeau : une lumière fait le tour du bord (comme la carte de candidature du site) ; photos sans liseré */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--spin), transparent 0deg, transparent 220deg, rgba(255, 255, 255, .25) 270deg, rgba(255, 255, 255, .85) 318deg, #fff 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hero-card::after { animation: none; } }
.float { border-radius: 14px; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .85); }

/* analytics : la courbe (comme « Money received over time ») */
.perf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.perf-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; }
.perf-head h2 svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; }
.perf-total { margin: 18px 0 2px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.perf-total b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.perf-total span { font-size: 13px; color: var(--ink-3); }
.perf-delta { font-size: 13px; color: var(--ink-2); }
.perf { position: relative; margin-top: 10px; }
.perf svg { display: block; width: 100%; height: 230px; overflow: visible; }
.perf .grid line { stroke: rgba(255, 255, 255, .07); }
.perf .ylab, .perf .xlab { fill: var(--ink-3); font-size: 11px; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.perf .line { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.perf .fill { fill: url(#perfFill); }
.perf .dot { fill: #fff; }
.perf .hover { fill: #fff; stroke: #000; stroke-width: 2; opacity: 0; transition: opacity .15s; }
.perf .hit { fill: transparent; cursor: crosshair; }
.perf-tip { position: absolute; left: calc(var(--x, 0) * 1%); top: 0; transform: translate(-50%, -8px); padding: 6px 10px; border-radius: 10px; background: #fff; color: #000; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.perf-tip small { display: block; font-weight: 500; color: rgba(0, 0, 0, .55); }
.perf.is-hover .perf-tip, .perf.is-hover .hover { opacity: 1; }
.perf-note { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.perf-note b { color: #fff; }
.metrics--tabs { margin-top: 16px; }

/* pages simples : candidature, conditions */
.gate--wide { width: min(100%, 520px); }
.gate .form .switch { border: 0; padding: 4px 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero-ring { position: relative; }
.hero-ring::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--spin), transparent 0deg, transparent 220deg, rgba(255, 255, 255, .25) 270deg, rgba(255, 255, 255, .85) 318deg, #fff 340deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 6s linear infinite; }
.doc { width: min(100%, 760px); margin: 0 auto; padding: 40px 18px 80px; }
.doc .side-logo { padding: 0 0 34px; }
.doc h1 { margin-bottom: 8px; }
.doc h2 { margin: 34px 0 10px; font-size: 19px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc a { color: #fff; }
.doc .terms-date { font-size: 13px; color: var(--ink-3); }

/* Couleurs (revue) : le vert anis seulement pour l'argent prêt à être payé ; « payé », « OK », la courbe : blanc. */
.tag--ok { background: rgba(255, 255, 255, .14); color: #fff; }
.tag--ready { background: rgba(200, 245, 60, .16); color: var(--lime); }
.pill { color: #fff; background: rgba(255, 255, 255, .1); }
.done { color: var(--ink-2); }
.cash-chart .line { stroke: #fff; }
.cash-chart .dot { fill: #fff; }
.btn--red { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--red:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.topbar > * { min-width: 0; max-width: 100%; }

/* Téléphone : le menu « More » au-dessus des onglets */
.more-sheet { position: fixed; z-index: 61; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); display: grid; gap: 2px; min-width: 200px; padding: 6px; border-radius: 18px; background: rgba(28, 28, 32, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -10px rgba(0, 0, 0, .7); }
.more-sheet a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 15px; }
.more-sheet a:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 901px) { .more-sheet { display: none !important; } }
/* Une chose à faire, pas de l'argent : ambre teinté (facture de créateur attendue). */
.btn--amber { background: rgba(240, 162, 2, .18); color: #ffc24d; border-radius: 12px; box-shadow: none; }
.btn--amber:hover { background: rgba(240, 162, 2, .3); }
.btn--sm.btn--amber { border-radius: 10px; }
/* Paiements : la courbe et le solde à la même hauteur, sans trou sous la courbe. */
@media (min-width: 901px) {
  .pay-grid { align-items: stretch; }
  .pay-grid > .card:first-child { display: flex; flex-direction: column; }
  .pay-grid .cash-chart { flex: 1; display: flex; align-items: flex-end; }
  .cash-chart svg { height: 270px; }
}
/* Les paiements sur téléphone : une carte par paiement, boutons visibles sans faire défiler de côté. */
@media (max-width: 640px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody { display: block; width: 100%; min-width: 0; }
  .table--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { display: block; padding: 0; border: 0; white-space: normal; }
  .table--stack td:nth-child(1) { grid-column: 1 / -1; font-size: 12px; overflow-wrap: anywhere; }
  .table--stack td:nth-child(3), .table--stack td:nth-child(5) { justify-self: end; }
  .table--stack td:nth-child(6) { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
  .table--stack td.empty-cell { grid-column: 1 / -1; }
}
/* Rien de prêt à payer : pas de vert. */
.side-cash.is-empty { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.side-cash.is-empty b, .is-zero { color: #fff !important; -webkit-text-fill-color: #fff !important; }
/* Le kit : la story et le post au code du créateur, dessinés dans la page. */
button.kit-item { border: 0; font: inherit; text-align: left; cursor: pointer; }
.kit-item small { margin-top: -4px; font-size: 11px; color: var(--ink-3); }
.kit-item canvas.kit-tpl { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #000; }
.kit + .actions { margin-top: 10px; }
