/* ===== Thème tz — sombre / violet ===== */
:root {
  --bg: #0a0a0d;
  --bg-elev: #111116;
  --bg-card: #14141b;
  --border: #23232d;
  --border-strong: #2f2f3c;
  --text: #f4f4f6;
  --text-muted: #a1a1ad;
  --text-dim: #6e6e7a;
  --accent: #8b5cf6;
  --accent-hover: #7c4dff;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-border: rgba(139, 92, 246, 0.45);
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Barre du haut ===== */
.topbar { height: 10px; background: linear-gradient(90deg, #3b2f1f, #4a3a24, #3b2f1f); }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav__left { display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo__icon {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--accent-border), 0 0 14px rgba(139, 92, 246, 0.35);
}

.nav__links { display: flex; gap: 28px; list-style: none; }
.nav__links a { color: var(--text-muted); font-size: 0.95rem; transition: color .15s; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }

.nav__right { display: flex; align-items: center; gap: 12px; }

.nav__burger { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[hidden] { display: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--bg-elev); border-color: var(--border); color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn--outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { background: var(--bg-elev); }
.btn--danger { background: transparent; border-color: rgba(239,68,68,.4); color: #f87171; }
.btn--danger:hover { background: rgba(239,68,68,.08); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ===== Badge / pills ===== */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: #a78bfa; font-size: 0.85rem; font-weight: 500;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-elev); color: var(--text-muted); font-size: 0.9rem;
}

/* ===== Hero ===== */
.hero { position: relative; text-align: center; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(139,92,246,.18), transparent 70%);
}
.hero > .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.045em; max-width: 820px;
}
.text-accent { color: var(--accent); }

.hero__lead { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; }
.hero__lead strong { color: var(--text); }

.notice {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 14px 24px; max-width: 580px; font-size: 0.88rem; color: var(--text-muted);
}
.notice strong { color: var(--text); }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.82rem;
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 12px; width: 100%; max-width: 650px;
}
.stat { text-align: center; padding: 0 12px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.stat__label { color: var(--text-dim); font-size: 0.8rem; }

/* ===== Sections ===== */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section__head { text-align: center; margin-bottom: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.section__sub { color: var(--text-muted); max-width: 560px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 1.2rem; margin-bottom: 16px;
}
.card__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.card__text { color: var(--text-muted); font-size: 0.92rem; }

.cta {
  text-align: center; background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(139,92,246,.03));
  border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 56px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}

/* ===== Footer ===== */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-dim); font-size: 0.85rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--text); }

/* ===== Authentification ===== */
.auth { flex: 1; display: grid; place-items: center; padding: 56px 20px; position: relative; }
.auth::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 360px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(139,92,246,.14), transparent 70%);
}
.auth__card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px;
}
.auth__title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; text-align: center; }
.auth__sub { color: var(--text-muted); text-align: center; font-size: 0.92rem; margin: 6px 0 24px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.tab { background: none; border: 0; color: var(--text-muted); padding: 9px; border-radius: 7px; font-weight: 600; font-size: 0.92rem; }
.tab.is-active { background: var(--accent); color: #fff; }

.form { display: none; flex-direction: column; gap: 16px; }
.form.is-active { display: flex; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.field input {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 11px 14px; color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--text-dim); }
.field__hint { color: var(--text-dim); font-size: 0.78rem; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.form__row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.form__row a { color: #a78bfa; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { accent-color: var(--accent); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.alert { display: none; padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; }
.alert.is-visible { display: block; }
.alert--error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.alert--success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); color: #86efac; }

/* ===== Profil ===== */
.profile { flex: 1; padding: 48px 0 72px; }
.profile__layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.container--wide { max-width: 1440px; }

.sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.sidebar__user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar__link { padding: 10px 12px; border-radius: 8px; color: var(--text-muted); font-size: 0.92rem; background: none; border: 0; text-align: left; }
.sidebar__link:hover { background: var(--bg-elev); color: var(--text); }
.sidebar__link.is-active { background: var(--accent-soft); color: #c4b5fd; }
.sidebar__link { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sidebar__link > span { flex-shrink: 0; }
.sidebar__link[hidden] { display: none; }
.sidebar__lock { margin-left: auto; font-size: 0.75rem; opacity: .7; }
.sidebar__label { margin: 14px 12px 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.sidebar__label[hidden] { display: none; }

/* ===== Outils VIP (floutés sans accès) ===== */
.vip-gate { position: relative; border-radius: var(--radius-lg); }
.vip-gate__content { display: flex; flex-direction: column; gap: 20px; }
.vip-gate.is-locked .vip-gate__content { filter: blur(7px); pointer-events: none; user-select: none; }
.vip-gate__lock { display: none; }
.vip-gate.is-locked .vip-gate__lock {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px;
  background: radial-gradient(ellipse at center, rgba(10,10,13,.75), rgba(10,10,13,.35) 70%);
}
.vip-gate__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: var(--accent-soft); border: 1px solid var(--accent-border); box-shadow: 0 0 30px rgba(139,92,246,.35); }
.vip-gate__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.vip-gate__text { color: var(--text-muted); max-width: 380px; font-size: 0.92rem; }
.soon { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-border); color: #c4b5fd; font-size: 0.9rem; }
.mock-list { display: flex; flex-direction: column; gap: 10px; }
.mock-item { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.mock-item__meta { color: var(--text-dim); font-size: 0.8rem; }
.mock-item > :last-child { margin-left: auto; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
  display: grid; place-items: center; font-weight: 800; color: #fff;
}
.avatar--lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 2.2rem; }
.avatar--xs { width: 22px; height: 22px; font-size: 0.7rem; }
.avatar--photo { background-size: cover; background-position: center; }
/* Recadrage de la photo de profil */
.crop { position: relative; width: min(300px, 100%); aspect-ratio: 1; align-self: center; overflow: hidden; border-radius: var(--radius); background: #000; cursor: grab; touch-action: none; user-select: none; }
.crop.is-dragging { cursor: grabbing; }
.crop img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop__mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.8); pointer-events: none; }
.crop__zoom { display: flex; align-items: center; gap: 10px; }
.crop__zoom input { flex: 1; accent-color: var(--accent); }
.avatar-edit { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.avatar-edit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.avatar-edit__actions .field__hint { flex-basis: 100%; }

.panel { display: none; flex-direction: column; gap: 20px; }
.panel.is-active { display: flex; }
.panel__card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.panel__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }

.profile__header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile__name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.profile__meta { color: var(--text-muted); font-size: 0.9rem; }
.account-head { display: flex; flex-direction: column; gap: 18px; }
.account-head__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.account-head__plan { margin-top: 6px; color: var(--text-muted); font-size: 0.9rem; }
.account-head__plan strong { color: var(--text); }
.account-head__link { margin-left: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 600; color: #a78bfa; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.account-head__link[hidden] { display: none; }
[data-buy-vip][aria-disabled="true"] { opacity: .7; pointer-events: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--accent-soft); border: 1px solid var(--accent-border); color: #c4b5fd; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.info__label { color: var(--text-dim); font-size: 0.8rem; }
.info__value { font-weight: 700; font-size: 1.1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
.form-grid--listing { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* ===== Panel admin ===== */
.admin__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin__title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.admin__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.kpi__label { color: var(--text-muted); font-size: 0.85rem; }
.kpi__value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.kpi__note { color: var(--text-dim); font-size: 0.78rem; }
.kpi--accent { border-color: var(--accent-border); background: linear-gradient(135deg, rgba(139,92,246,.14), var(--bg-card)); }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { color: #86efac; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); }
.status--warn { color: #fca5a5; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; color: var(--text-dim); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.empty { color: var(--text-dim); font-size: 0.9rem; padding: 12px 0; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; }
.modal__box { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal__title { font-size: 1.2rem; font-weight: 800; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal__box--wide { max-width: 680px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal__head { display: flex; align-items: center; gap: 14px; }
.modal__close { margin-left: auto; background: none; border: 1px solid var(--border-strong); color: var(--text-muted); border-radius: 8px; width: 34px; height: 34px; }
.modal__close:hover { color: var(--text); }
.modal__section { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-top: 6px; }
.modal .info-grid { grid-template-columns: repeat(2, 1fr); }
.info__value--sm { font-size: 0.92rem; font-weight: 600; word-break: break-all; }
.info__sub { color: var(--text-dim); font-size: 0.78rem; }

.role-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.role-row__title { font-weight: 700; }
.role-row__desc { color: var(--text-muted); font-size: 0.85rem; }
.vip-left { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; vertical-align: middle; color: #86efac; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); }
.vip-left.is-low { color: #fcd34d; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.45); }
.vip-left[hidden] { display: none; }
.role-row__actions { display: flex; gap: 8px; align-items: center; }
.select { background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 0.9rem; }

.table tr.is-clickable { cursor: pointer; transition: background .15s; }
.table tr.is-clickable:hover { background: var(--bg-elev); }
.client-delete { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(239,68,68,.4); background: rgba(239,68,68,.1); color: #f87171; cursor: pointer; transition: background .15s, color .15s; }
.client-delete:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.client-delete:disabled { opacity: .5; cursor: wait; }
.btn--danger-solid { background: var(--danger); color: #fff; }
.btn--danger-solid:hover { background: #dc2626; }

/* ===== Vinted Multicompte ===== */
.multi { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.multi[hidden] { display: none; }
.multi__side { display: flex; flex-direction: column; gap: 10px; }
.multi__total { color: var(--text-muted); font-size: 0.85rem; }
.multi__accounts { display: flex; flex-direction: column; gap: 8px; }
.multi__account { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.multi__account:hover { border-color: var(--border-strong); }
.multi__account.is-active { border-color: var(--accent-border); background: var(--accent-soft); }
.multi__account strong, .multi__account .mock-item__meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi__add { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; padding: 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.multi__add[hidden] { display: none; }
.multi__main { min-width: 0; }
.multi__detail { display: flex; flex-direction: column; gap: 18px; }
.multi__detail[hidden] { display: none; }
.multi__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.multi__name { font-size: 1.3rem; font-weight: 800; overflow-wrap: anywhere; }
.multi__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.multi__actions [hidden] { display: none; }
.multi__creds { display: flex; flex-direction: column; gap: 8px; }
.multi__cred { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.multi__cred-label { width: 120px; color: var(--text-dim); font-size: 0.82rem; }
.multi__cred-value { flex: 1; min-width: 140px; font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; overflow-wrap: anywhere; }
.multi__cred .btn { padding: 6px 12px; font-size: 0.82rem; }
.multi__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.multi__kpis .kpi__value { font-size: 1.5rem; }
.multi__block { display: flex; flex-direction: column; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.multi__item-form { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; }
.multi__notes { min-height: 110px; resize: vertical; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 8px; padding: 11px 14px; color: var(--text); font: inherit; font-size: 0.92rem; }
.multi__notes:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===== IA Détection ===== */
.detect { display: flex; flex-direction: column; gap: 16px; }
.detect[hidden], .detect [hidden] { display: none; }
.detect__drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 20px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.detect__drop:hover, .detect__drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.detect__drop-icon { font-size: 2rem; }
.detect__previews { display: flex; gap: 10px; flex-wrap: wrap; }
.detect__previews:empty { display: none; }
.detect__preview { position: relative; width: 110px; height: 110px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.detect__preview img { width: 100%; height: 100%; object-fit: cover; }
.detect__remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 0.75rem; }
.detect__result { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.detect__verdict { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; }
.detect__verdict strong { font-size: 1.15rem; }
.detect__verdict--ok { color: #86efac; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); }
.detect__verdict--bad { color: #fca5a5; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); }
.detect__verdict--unknown { color: #fcd34d; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); }
.detect__bar { flex-basis: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.detect__bar span { display: block; height: 100%; background: currentColor; border-radius: inherit; }
.detect__clues { display: flex; flex-direction: column; gap: 8px; }
.detect__clue { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.detect__tips { padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; }

/* ===== Description Vinted IA ===== */
.desc__options { display: grid; grid-template-columns: 200px 200px 1fr; gap: 16px; align-items: start; }
.desc__field { display: flex; flex-direction: column; gap: 8px; }
.desc__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.desc__head .btn { padding: 6px 12px; font-size: 0.82rem; }
.desc__text { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 0.92rem; }
.desc__price { padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-border); }

/* ===== Barre de progression (outils IA) ===== */
.progress { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--accent-border); border-radius: var(--radius); background: var(--accent-soft); }
.progress[hidden] { display: none; }
.progress__head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; color: #c4b5fd; }
.progress__track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress__track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent) 0%, #c084fc 50%, var(--accent) 100%); background-size: 200% 100%; transition: width .2s linear; animation: progress-shine 1.6s linear infinite; }
.progress.is-done .progress__track span { background: #22c55e; animation: none; }
.progress.is-done .progress__head { color: #86efac; }
@keyframes progress-shine { from { background-position: 200% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .progress__track span { animation: none; transition: none; } }

/* ===== Limites IA (fiche client) ===== */
[data-quota-row] { margin-bottom: 10px; }
[data-quota-row] > div:first-child { flex: 1; min-width: 200px; }
.quota-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; max-width: 260px; }
.quota-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.quota-bar span.is-full { background: #ef4444; }
.quota-input { width: 80px; text-align: center; }
.quota-step { padding: 8px 10px; }
.quota-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.quota-info { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Compteur des outils IA (vu par le membre) ===== */
.quota-card { min-width: 230px; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border: 1px solid var(--accent-border); border-radius: var(--radius); background: var(--accent-soft); }
.quota-card[hidden] { display: none; }
.quota-card__head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: #c4b5fd; }
.quota-card__head strong { color: var(--text); font-size: 1rem; }
.quota-card__note { font-size: 0.75rem; color: var(--text-dim); }
.quota-bar--wide { max-width: none; margin-top: 0; }
.quota-card.is-low { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.08); }
.quota-card.is-low .quota-bar span { background: #f59e0b; }
.quota-card.is-empty { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08); }
.quota-card.is-empty .quota-bar span { background: #ef4444; }
.quota-card.is-empty .quota-card__note { color: #fca5a5; }
.sidebar__count { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-align: center; background: var(--accent-soft); border: 1px solid var(--accent-border); color: #c4b5fd; }
.sidebar__count[hidden] { display: none; }
.sidebar__count.is-empty { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); color: #fca5a5; }
.chat-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; }

/* ===== Chat VIP ===== */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat[hidden], .chat [hidden] { display: none; }
.chat__messages { height: min(60vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.chat__day { align-self: center; font-size: 0.75rem; color: var(--text-dim); text-transform: capitalize; padding: 2px 10px; border-radius: 999px; background: var(--bg-elev); }
.chat__msg { max-width: min(78%, 520px); align-self: flex-start; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--bg-elev); border: 1px solid var(--border); }
.chat__msg--mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); border-color: var(--accent-border); }
.chat__head { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.chat__head .tag { padding: 1px 8px; font-size: 0.68rem; }
.chat__time { color: var(--text-dim); font-size: 0.72rem; }
.chat__delete { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.08); color: #f87171; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: background .15s, border-color .15s, color .15s; }
.chat__delete:hover { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.7); color: #fca5a5; }
.chat__edit { margin-left: auto; color: #c4b5fd; background: var(--accent-soft); border-color: var(--accent-border); }
.chat__edit:hover { color: #fff; background: rgba(139,92,246,.3); border-color: var(--accent); }
.chat__edit + .chat__delete { margin-left: 0; }
.chat__edited { font-size: 0.7rem; color: var(--text-dim); font-style: italic; align-self: flex-end; }
.chat__editbox { display: flex; flex-direction: column; gap: 8px; min-width: min(420px, 70vw); }
.chat__editactions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.chat__editactions .field__hint { margin-right: auto; }
.chat__editactions .btn { padding: 6px 12px; font-size: 0.82rem; }
.chat__text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.93rem; line-height: 1.45; }
.chat__img img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; object-fit: cover; }
.chat__preview { position: relative; width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.chat__preview img { width: 100%; height: 100%; object-fit: cover; }
.chat__form { display: flex; gap: 8px; align-items: flex-end; }
.chat__photo { cursor: pointer; padding: 10px 12px; }
.chat__input { flex: 1; resize: none; min-height: 44px; max-height: 140px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 14px; color: var(--text); font: inherit; font-size: 0.93rem; }
.chat__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===== Interrupteur (panel admin) ===== */
.toggle-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.switch { position: relative; flex-shrink: 0; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__slider { position: absolute; inset: 0; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border-strong); transition: background .2s, border-color .2s; pointer-events: none; }
.switch__slider::before { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-muted); transition: transform .2s, background .2s; }
.switch input:checked + .switch__slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__slider::before { transform: translateX(22px); background: #fff; }
.switch input:focus-visible + .switch__slider { box-shadow: 0 0 0 3px var(--accent-soft); }
.sidebar__off { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 0.68rem; background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text-dim); }
.sidebar__off[hidden] { display: none; }

/* ===== Mes commandes ===== */
.orders { display: flex; flex-direction: column; gap: 14px; }
.order { display: flex; flex-direction: column; gap: 12px; }
.order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order__price { font-size: 1.1rem; }
.order__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order__actions .field__hint { margin-right: auto; }
.order__secret { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; padding: 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--accent-border); }
.order__secret.is-hidden { filter: blur(6px); user-select: none; }

/* ===== Page d'accueil : avantages, étapes, tarifs, FAQ ===== */
.card__perks { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.card__perks li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }
.step__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; align-items: stretch; }
.pricing--single { grid-template-columns: minmax(0, 420px); }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; }
.price-card--vip { border-color: var(--accent); background: linear-gradient(160deg, rgba(139,92,246,.16), var(--bg-card) 55%); box-shadow: 0 0 40px rgba(139,92,246,.18); }
.price-card__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--accent); white-space: nowrap; }
.price-card__name { font-size: 1.2rem; font-weight: 800; }
.price-card__price { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.price-card__price span { font-size: 1rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price-card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: 0.93rem; }
.price-card__list .is-off { color: var(--text-dim); }
.price-card__note { font-size: 0.78rem; color: var(--text-dim); text-align: center; }
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq details[open] { border-color: var(--accent-border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--text-muted); padding-bottom: 18px; font-size: 0.93rem; }
.faq a { color: #a78bfa; }

/* ===== Réponse client IA Vinted : messagerie ===== */
.inbox { display: flex; flex-direction: column; gap: 14px; }
.inbox[hidden], .inbox [hidden] { display: none !important; }
.inbox__accounts { display: flex; gap: 8px; flex-wrap: wrap; }
.inbox__account { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font: inherit; font-size: 0.88rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.inbox__account:hover { color: var(--text); border-color: var(--border-strong); }
.inbox__account.is-active { color: #fff; background: var(--accent-soft); border-color: var(--accent); }
.inbox__noaccount { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.inbox__box { display: grid; grid-template-columns: 300px 1fr; height: min(68vh, 620px); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.inbox__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.inbox__listhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.inbox__iconbtn { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--text); font-size: 1rem; cursor: pointer; }
.inbox__iconbtn:hover { border-color: var(--accent); color: #c4b5fd; }
.inbox__newform { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.inbox__newactions { display: flex; justify-content: flex-end; gap: 8px; }
.inbox__newactions .btn { padding: 6px 12px; font-size: 0.82rem; }
.inbox__convs { flex: 1; overflow-y: auto; }
.inbox__convitem { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; text-align: left; font: inherit; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.inbox__convitem:hover { background: var(--bg-elev); }
.inbox__convitem.is-active { background: var(--accent-soft); }
.inbox__convbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inbox__convtop { display: flex; justify-content: space-between; gap: 8px; }
.inbox__convtop strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__time { flex-shrink: 0; font-size: 0.75rem; color: var(--text-dim); }
.inbox__preview { font-size: 0.86rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__article { font-size: 0.75rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__empty { padding: 20px 16px; color: var(--text-dim); font-size: 0.88rem; text-align: center; }
.inbox__thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.inbox__placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-dim); }
.inbox__placeholder-icon { font-size: 2.4rem; opacity: .6; }
.inbox__conv { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.inbox__threadhead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.inbox__threadtitle { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inbox__threadtitle strong { color: #c4b5fd; }
.inbox__back { display: none; }
.inbox__messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.inbox__stamp { align-self: center; font-size: 0.72rem; color: var(--text-dim); margin: 8px 0 2px; }
.inbox__row { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.inbox__row--me { align-self: flex-end; }
.inbox__bubble { padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--bg-elev); border: 1px solid var(--border-strong); font-size: 0.93rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox__row--me .inbox__bubble { border-radius: 14px 14px 4px 14px; background: var(--accent); border-color: var(--accent); color: #fff; }
.inbox__composer { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-card); }
.inbox__who { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.inbox__who button { padding: 4px 12px; border-radius: 999px; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.inbox__who button.is-active { background: var(--accent-soft); color: #c4b5fd; }
.inbox__inputwrap { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border-strong); }
.inbox__inputwrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inbox__input { flex: 1; resize: none; min-height: 22px; max-height: 120px; padding: 6px 0; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 0.93rem; }
.inbox__send { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.inbox__send:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 720px) {
  .inbox__box { grid-template-columns: 1fr; height: 70vh; }
  .inbox__box .inbox__list { border-right: 0; }
  .inbox__box.is-reading .inbox__list { display: none; }
  .inbox__box:not(.is-reading) .inbox__thread { display: none; }
  .inbox__back { display: grid; }
}

/* ===== Notifications Discord (panel admin) ===== */
.discord-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.discord-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.discord-actions .btn { padding: 8px 14px; font-size: 0.85rem; }
@media (max-width: 720px) { .discord-form { grid-template-columns: 1fr; } }

/* ===== Tickets ===== */
.ticket-new { display: flex; flex-direction: column; gap: 14px; }
.ticket-new[hidden], .ticket[hidden], .ticket [hidden] { display: none; }
.ticket { display: flex; flex-direction: column; gap: 14px; }
.ticket__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ticket__status { padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #fcd34d; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.4); }
.ticket__status.is-answered { color: #86efac; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); }
.ticket__status.is-closed { color: var(--text-dim); background: var(--bg-elev); border-color: var(--border-strong); }
.ticket__messages { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.ticket__author { font-size: 0.72rem; font-weight: 700; opacity: .8; margin-bottom: 3px; }
.ticket__reply { display: flex; flex-direction: column; gap: 10px; }
.ticket__actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ticket__closed { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ticket__tag { flex-shrink: 0; padding: 1px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; color: #86efac; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); }
.ticket__tag.is-waiting { color: #fcd34d; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.4); }
.ticket__tag.is-closed { color: var(--text-dim); background: var(--bg-elev); border-color: var(--border-strong); }
.inbox__convitem.is-closed { opacity: .6; }
.ticket__toggle { padding: 6px 12px; font-size: 0.82rem; }
.ticket__closednote { padding: 12px 16px; border-top: 1px solid var(--border); }
#panel-tickets-admin [hidden] { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .multi { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: minmax(0, 420px); }
  .multi__kpis { grid-template-columns: 1fr 1fr; }
  .multi__item-form { grid-template-columns: 1fr 1fr; }
  .desc__options { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .profile__layout { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .admin__grid { grid-template-columns: 1fr 1fr; }
  .admin__cols { grid-template-columns: 1fr; }
  .form-grid--listing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px; }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 12px 0; }
  .nav__burger { display: block; }
  .nav__right .btn--ghost { display: none; }
  .grid, .form-grid, .info-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* Note des comptes Vinted : 5 étoiles dorées et brillantes, remplies selon la note (--fill) */
.stars {
  position: relative; display: inline-block; vertical-align: -1px;
  font-family: "Segoe UI Symbol", "Arial", sans-serif; font-size: 1.05em; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(90deg, #ffd23f 0, #ffb800 var(--fill), rgba(255,255,255,.16) var(--fill));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 3px rgba(255, 196, 0, .55)) drop-shadow(0 0 7px rgba(255, 170, 0, .3));
}

/* ===== Acheter Compte Vinted : bandeau de stock + cartes ===== */
.stock {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.35); color: #86efac; font-weight: 600; font-size: 0.92rem;
}
.stock[hidden] { display: none; }
.stock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: stock-pulse 1.8s infinite; flex: none; }
.stock--empty { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.stock--empty .stock__dot { background: var(--danger); animation: none; }
@keyframes stock-pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.shop__card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.10), rgba(20, 20, 27, 0) 55%), var(--bg-elev);
  border: 1px solid var(--border-strong); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.shop__card:hover { transform: translateY(-2px); border-color: var(--accent-border); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.18); }
.shop__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shop__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #09b1ba, #067a80); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(9, 177, 186, 0.35);
}
.shop__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop__name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop__chip { align-self: flex-start; font-size: 0.72rem; font-weight: 600; color: #86efac; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); padding: 2px 8px; border-radius: 999px; }
.shop__rating { color: var(--text-muted); font-size: 0.88rem; }
.shop__desc { margin: 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }
.shop__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.shop__price { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.shop__secure { font-size: 0.74rem; color: var(--text-dim); }
.shop__empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.shop__empty-icon { font-size: 2rem; }

/* Inscription : étape du code reçu par e-mail */
.code-sent { margin: 0 0 4px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.code-sent strong { color: var(--text); word-break: break-all; }
.code-input { text-align: center; font-size: 1.6rem !important; font-weight: 700; letter-spacing: 0.5em; font-variant-numeric: tabular-nums; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 0.88rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: var(--text-dim); cursor: default; text-decoration: none; }
.link-btn[hidden] { display: none; }

/* Fiche client : nouveau mot de passe */
.pw-admin { flex-wrap: wrap; }
.pw-admin[hidden] { display: none; }
.pw-admin__field { position: relative; }
.pw-admin__field .select { width: 210px; padding-right: 36px; }
.pw-admin__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; opacity: .7; font-size: 0.95rem; }
.pw-admin__eye:hover { opacity: 1; }

/* Fiche client : historique des transactions */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tx--vip { border-left-color: #eab308; }
.tx--renewal { border-left-color: #22c55e; }
.tx--listing { border-left-color: #09b1ba; }
.tx__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tx__title { display: flex; align-items: center; gap: 8px; }
.tx__icon { font-size: 1.05rem; }
.tx__amount { font-size: 1.05rem; }
.tx__lines { white-space: pre-line; color: var(--text-muted); font-size: 0.84rem; line-height: 1.6; word-break: break-all; }
.tx__proof { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px dashed var(--border-strong); }
.tx__step { font-size: 0.82rem; color: var(--text-dim); }
.tx__step.is-ok { color: #86efac; }
.tx__ids { display: grid; gap: 4px; padding: 8px 10px; border-radius: 8px; background: var(--bg-elev); border: 1px solid var(--border); }
.tx__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.82rem; }
.tx__id-label { color: var(--text-muted); min-width: 150px; }
.tx__id code { font-size: 0.8rem; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 6px; cursor: copy; word-break: break-all; }
.tx__id code:hover { border-color: var(--accent-border); }
.tx__id code.is-copied { border-color: var(--success); color: #86efac; }
.tx__id-none { color: var(--text-dim); font-size: 0.8rem; font-style: italic; }
/* Tickets admin : les boutons passent à la ligne plutôt que d'écraser le sujet */
[data-tadmin-conv] .inbox__threadhead { flex-wrap: wrap; row-gap: 8px; }
[data-tadmin-conv] .inbox__threadtitle { flex: 1 1 160px; min-width: 0; }
.ticket__toggle[hidden] { display: none; }

/* Niche Finder / Radar Finder (aperçu) */
.radar { display: flex; flex-direction: column; gap: 12px; }
.radar__search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.radar__placeholder { flex: 1; color: var(--text-dim); font-size: 0.9rem; }
.radar__list { display: flex; flex-direction: column; gap: 8px; }
.radar__item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.radar__chip { font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text-muted); white-space: nowrap; }
.radar__chip--hot { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); }
.radar__chip--up { color: #86efac; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.35); }
.radar__bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--bg-elev); overflow: hidden; }
.radar__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff70f5); }

/* Niche Finder : outil réel */
.niche { display: flex; flex-direction: column; gap: 14px; }
.niche[hidden] { display: none; }
.radar__search--live input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 0.92rem; }
.radar__search--live .niche__budget { flex: 0 0 120px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-elev); }
@media (max-width: 640px) { .radar__search--live { flex-wrap: wrap; } .radar__search--live .niche__budget { flex: 1 1 100%; } }
.niche__favs { display: flex; flex-wrap: wrap; gap: 8px; }
.niche__favs[hidden] { display: none; }
.niche__fav { display: inline-flex; align-items: stretch; border: 1px solid var(--accent-border); background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.niche__favrun { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px 6px 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 0.84rem; cursor: pointer; }
.niche__favrun:hover { color: #c4b5fd; }
.niche__favdel { background: none; border: 0; color: var(--text-dim); padding: 0 10px; cursor: pointer; }
.niche__favdel:hover { color: var(--danger); }
.niche__spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.niche__spark i { display: block; width: 4px; border-radius: 2px; background: linear-gradient(180deg, #ff70f5, var(--accent)); }
.niche__result { display: flex; flex-direction: column; gap: 12px; }
.niche__result[hidden] { display: none; }
.niche__resulthead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.niche__summary { margin: 0; color: var(--text-muted); line-height: 1.6; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.niche__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.niche__card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(139, 92, 246, 0.08), transparent 55%), var(--bg); border: 1px solid var(--border-strong); }
.niche__cardhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.niche__score { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 80% 100%), conic-gradient(#ff70f5 calc(var(--score) * 1%), var(--border-strong) 0); }
.niche__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.niche__stat { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 8px; background: var(--bg-elev); border: 1px solid var(--border); }
.niche__stat span { font-size: 0.7rem; color: var(--text-dim); }
.niche__stat strong { font-size: 0.86rem; }
.niche__stat.is-good strong { color: #86efac; }
.niche__stat.is-bad strong { color: #fca5a5; }
.niche__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.niche__tip { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.niche__keys { font-size: 0.78rem; color: var(--text-dim); }
.niche__history { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.niche__history summary { padding: 12px 14px; cursor: pointer; font-weight: 600; }
.niche__historylist { display: flex; flex-direction: column; border-top: 1px solid var(--border); max-height: 320px; overflow: auto; }
.niche__hrow { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--border); }
.niche__hrow:last-child { border-bottom: 0; }
.niche__hopen { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 14px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; }
.niche__hopen:hover strong { color: #c4b5fd; }
.niche__hopen .mock-item__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Radar du jour */
.radar-day { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 112, 245, 0.35);
  background: linear-gradient(160deg, rgba(255, 112, 245, 0.08), rgba(139, 92, 246, 0.05) 50%, transparent), var(--bg-elev); }
.radar-day__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.radar-day__head .select[hidden] { display: none; }
.radar-day__title { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.radar-day__live { font-size: 0.72rem; font-weight: 600; color: #ff70f5; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 112, 245, 0.4); background: rgba(255, 112, 245, 0.1); }
.radar-day__body { display: flex; flex-direction: column; gap: 12px; }
.radar-day__sources summary { cursor: pointer; font-size: 0.85rem; color: var(--text-muted); }
.radar-day__sources ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; }
.radar-day__sources a { color: #c4b5fd; word-break: break-word; }
.niche__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.niche__links .btn { padding: 6px 12px; font-size: 0.82rem; }
.radar-day[hidden] { display: none; }
.radar-day__title { flex-wrap: wrap; }
.radar-day__timer { font-variant-numeric: tabular-nums; }
.radar-day__timer[hidden] { display: none; }
/* Compte à rebours calé à droite du titre */
.radar-day__head .radar-day__title { flex: 1; }
.radar-day__timer { margin-left: auto; }
.sidebar__count--radar { color: #ff70f5; background: rgba(255, 112, 245, 0.1); border-color: rgba(255, 112, 245, 0.4); font-variant-numeric: tabular-nums; }

/* Niche Finder aux couleurs du Radar Finder (cadre rose) */
.niche { padding: 16px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 112, 245, 0.35);
  background: linear-gradient(160deg, rgba(255, 112, 245, 0.08), rgba(139, 92, 246, 0.05) 50%, transparent), var(--bg-elev); }
.niche .radar__search--live { border-color: rgba(255, 112, 245, 0.3); }
.niche .radar__search--live:focus-within { border-color: rgba(255, 112, 245, 0.6); box-shadow: 0 0 0 3px rgba(255, 112, 245, 0.12); }
.niche__fav { border-color: rgba(255, 112, 245, 0.4); background: rgba(255, 112, 245, 0.1); }
.niche__favrun:hover { color: #ff70f5; }
.niche__history { border-color: rgba(255, 112, 245, 0.25); }
.niche__hopen:hover strong { color: #ff70f5; }
.sidebar__count[data-quota-badge="niche"] { color: #ff70f5; background: rgba(255, 112, 245, 0.1); border-color: rgba(255, 112, 245, 0.4); }
.sidebar__count[data-quota-badge="niche"].is-empty { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); color: #fca5a5; }

/* ===== Retouche photo IA ===== */
.studio { display: flex; flex-direction: column; gap: 14px; }
.studio[hidden] { display: none; }
.studio__layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .studio__layout { grid-template-columns: 1fr; } }
.studio__left { display: flex; flex-direction: column; gap: 12px; }
.studio__drop { position: relative; display: grid; place-items: center; min-height: 220px; border: 2px dashed var(--accent-border); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.08), transparent 60%), var(--bg); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.studio__drop:hover, .studio__drop.is-over { border-color: var(--accent); background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), transparent 60%), var(--bg); }
.studio__drop img { width: 100%; height: 260px; object-fit: contain; display: block; }
.studio__drop img[hidden], .studio__dropinner[hidden] { display: none; }
.studio__dropinner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; }
.studio__dropicon { font-size: 2.2rem; }
.studio__step { font-weight: 600; font-size: 0.9rem; }
.studio__swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.studio__bg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text-muted); font: inherit; font-size: 0.75rem; cursor: pointer; transition: border-color .15s, color .15s; }
.studio__bg:hover { border-color: var(--accent-border); color: var(--text); }
.studio__bg.is-active { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.studio__swatch { width: 38px; height: 38px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); display: inline-block; }
.studio--mock .studio__swatches { grid-template-columns: repeat(6, auto); justify-content: center; }
.studio__go { padding: 12px; font-size: 1rem; }
.studio__right { display: flex; flex-direction: column; gap: 12px; }
.studio__compare { --split: 50%; position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 520px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: #0d0d10; border: 1px solid var(--border-strong); user-select: none; }
.studio__compare[hidden] { display: none; }
.studio__compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.studio__compare > img { object-fit: contain; background: #0d0d10; }
.studio__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.studio__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); }
.studio__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.studio__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.studio__tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgba(0, 0, 0, 0.65); color: #fff; pointer-events: none; }
.studio__tag--after { left: auto; right: 12px; background: var(--accent); }
.studio__compare.is-loading::after { content: "⏳"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; background: rgba(0, 0, 0, 0.35); }
.studio__compare--mock { max-width: 360px; background: linear-gradient(90deg, #6d6257 0 50%, #e4e4e8 50% 100%); }
.studio__placeholder { aspect-ratio: 4 / 5; width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.12), transparent 70%), var(--bg); }
.studio__placeholder[hidden] { display: none; }
.studio__placeholder > span:first-child { font-size: 2.6rem; }
.studio__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.studio__actions[hidden] { display: none; }

/* Retouche photo : sélecteur de fonds avec aperçus */
.studio__bgs { display: flex; flex-direction: column; gap: 10px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.studio__bggroupname { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.studio__bggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 1100px) { .studio__bggrid { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 640px) { .studio__bggrid { grid-template-columns: repeat(4, 1fr); } }
.studio__bg { padding: 4px 4px 6px; gap: 4px; font-size: 0.68rem; line-height: 1.2; }
.studio__bgimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; background: var(--bg-elev); }
.studio--mock .studio__swatches { grid-template-columns: repeat(8, auto); }

/* Retouche photo : présentation + contrôle de fidélité */
.studio__presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.studio__preset { padding: 9px 6px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text-muted); font: inherit; font-size: 0.8rem; cursor: pointer; }
.studio__preset:hover { border-color: var(--accent-border); color: var(--text); }
.studio__preset.is-active { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.studio__check { max-width: 520px; margin: 0 auto; width: 100%; padding: 10px 14px; border-radius: var(--radius); font-size: 0.86rem; line-height: 1.5; }
.studio__check[hidden] { display: none; }
.studio__check.is-ok { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.35); color: #86efac; }
.studio__check.is-warn { background: rgba(234, 179, 8, 0.08); border: 1px solid rgba(234, 179, 8, 0.4); color: #fde047; }
.studio__saved { margin: 0; text-align: center; font-size: 0.78rem; color: var(--text-dim); }
.studio__saved[hidden] { display: none; }
.studio__bggrid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .studio__bggrid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 640px) { .studio__bggrid { grid-template-columns: repeat(3, 1fr); } }

/* Retouche photo : avant-dernière retouche */
.studio__prev { display: flex; gap: 12px; align-items: center; max-width: 520px; width: 100%; margin: 0 auto; padding: 10px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--bg); }
.studio__prev[hidden] { display: none; }
.studio__prev img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-elev); }
.studio__previnfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.studio__prevbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.studio__prevbtns .btn { padding: 6px 12px; font-size: 0.8rem; }
/* Bulle « Acheter Compte Vinted » : même rose que le compte à rebours du Radar Finder */
.sidebar__count.chat-badge[data-listings-badge] { color: #ff70f5; background: rgba(255, 112, 245, 0.1); border: 1px solid rgba(255, 112, 245, 0.4); box-shadow: none; }

/* Recharge payante d'un outil IA */
.quota-card__refill { margin-top: 4px; padding: 7px 12px; font-size: 0.8rem; }
.quota-card__refill[hidden] { display: none; }
.tx--refill { border-left-color: #a855f7; }

/* Utilisation IA : sections, crédits par compte et cartes par outil */
.ai-section { margin: 28px 0 12px; font-size: 1.05rem; font-weight: 700; }
.ai-section--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-section--row h3 { margin: 0; font-size: 1.05rem; }
.ai-group { margin: 16px 0 10px; font-size: 0.85rem; font-weight: 600; color: #c4b5fd; }
.ai-group span { font-weight: 400; color: var(--text-dim); }
.ai-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); }
.ai-tab { padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--text-dim); font: inherit; font-size: 0.82rem; cursor: pointer; }
.ai-tab:hover { color: var(--text); }
.ai-tab.is-active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-border); }
.ai-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ai-tool { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.ai-tool__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-tool__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ai-tool__nums div:first-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 6px; }
.ai-tool__nums div:first-child b { font-size: 1.6rem; }
.ai-tool__nums div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-tool__nums b { font-size: 1rem; white-space: nowrap; }
.ai-tool__nums span { font-size: 0.72rem; color: var(--text-dim); }
.ai-badge { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; color: #c4b5fd; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.ai-badge--openrouter { color: #ff70f5; background: rgba(255,112,245,.1); border-color: rgba(255,112,245,.4); }
.ai-credit { display: flex; flex-direction: column; gap: 10px; }
.ai-credit__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ai-credit__value { font-size: 1.8rem; font-weight: 800; }
.ai-credit.is-low .ai-credit__value { color: #fbbf24; }
.ai-credit.is-low .quota-bar span { background: #f59e0b; }
.ai-credit__form { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-credit__form .select { flex: 1; min-width: 160px; }
.ai-link { color: #a78bfa; }
.ai-filter { width: auto; padding: 6px 10px; font-size: 0.82rem; }

/* Panel admin : catégories en onglets */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 4px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.admin-tab { padding: 9px 16px; border: 0; border-radius: var(--radius); background: none; color: var(--text-dim); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.admin-tab.is-active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-border); }
.admin-section { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.admin-section[hidden] { display: none; }
.admin-section .admin__grid, .admin-section .admin__cols { margin: 0; }
@media (max-width: 640px) { .admin-tab { flex: 1 1 auto; padding: 8px 10px; font-size: 0.82rem; } }

/* Réponse client IA : réglages, prix, réponse prévue */
.inbox__ai { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; padding: 16px; border: 1px solid var(--accent-border); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(139,92,246,.1), var(--bg-card)); }
.inbox__ai[hidden] { display: none; }
.inbox__aihead { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.inbox__aigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inbox__aifield { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inbox__ailabel { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.inbox__ailabel strong { color: #ff70f5; }
.inbox__range { width: 100%; accent-color: #ff70f5; cursor: pointer; }
.inbox__range:disabled { opacity: .4; cursor: not-allowed; }
.inbox__rangescale { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-dim); }
.inbox__discount { display: flex; gap: 6px; }
.inbox__discount input { flex: 1; min-width: 0; }
.inbox__discount select { width: 70px; }
.inbox__aisaved { min-height: 1em; font-size: 0.75rem; color: #86efac; }
.inbox__price { flex: none; margin-left: auto; padding: 5px 10px; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-soft); color: var(--text); font: inherit; font-size: 0.78rem; cursor: pointer; }
.inbox__price.is-empty { border-style: dashed; color: var(--text-dim); background: none; }
.inbox__pending { padding: 6px 14px; font-size: 0.78rem; color: #ff70f5; text-align: center; }
.inbox__pending[hidden] { display: none; }
.inbox__aitag { display: block; margin-top: 4px; font-size: 0.65rem; opacity: .75; }
.inbox__composerbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inbox__aibtn { padding: 5px 12px; border: 1px solid rgba(255,112,245,.4); border-radius: 999px; background: rgba(255,112,245,.1); color: #ff70f5; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.inbox__aibtn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 760px) { .inbox__aigrid { grid-template-columns: 1fr; } }

/* Fenêtre du site : au-dessus des autres fenêtres (fiche client…), avec des champs à remplir */
.modal[data-ask-modal] { z-index: 120; }
.ask__fields { display: flex; flex-direction: column; gap: 12px; }
.ask__fields[hidden] { display: none; }
.ask__fields .field { display: flex; flex-direction: column; gap: 6px; }

/* Aperçu flouté des outils VIP : la vraie interface, coupée en douceur, cadenas en haut */
.vip-gate.is-locked .vip-gate__content { max-height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.vip-gate.is-locked .vip-gate__lock { justify-content: flex-start; padding-top: 140px; }
span.studio__bgimg { display: block; aspect-ratio: 4 / 5; border-radius: 6px; }

/* Le navigateur peut peindre une image nette avant d'appliquer le flou (au 1er affichage d'un gros onglet) :
   le contenu flouté apparaît donc en fondu depuis l'invisible, pour que cette image ne se voie jamais */
@keyframes vip-gate-in { from { opacity: 0; } to { opacity: 1; } }
.panel.is-active .vip-gate.is-locked .vip-gate__content { animation: vip-gate-in .35s ease-out both; }

/* ===== Accueil : les outils en grille illustrée ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: radial-gradient(120% 80% at 50% 0%, rgba(139,92,246,.10), transparent 60%), var(--bg-card); overflow: hidden; transition: border-color .2s, transform .2s; }
.tool:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.tool--wide { grid-column: span 2; }
.tool__top { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tool__num { font-size: 0.68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.tool__num b { color: #ff70f5; }
.tool__name { display: flex; align-items: center; gap: 12px; }
.tool__name h3 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.tool__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-border); font-size: 1.1rem; flex: none; }
.tool__status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #86efac; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.3); }
.tool__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: tool-blink 1.8s infinite; }
.tool__art { position: relative; flex: 1; min-height: 190px; display: flex; align-items: center; justify-content: center; }
.tool__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.tool__foot p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.tool__foot a { flex: none; font-size: 0.82rem; font-weight: 600; color: #c4b5fd; white-space: nowrap; }
.tool__foot a:hover { color: #ff70f5; }
@keyframes tool-blink { 50% { opacity: .35; } }
@keyframes tool-in { 0%, 8% { opacity: 0; transform: translateY(8px); } 18%, 100% { opacity: 1; transform: none; } }

/* Multicompte : comptes reliés à un seul tableau de bord + activité */
.multi-art { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; width: 100%; }
.multi-art__left { display: flex; flex-direction: column; align-items: center; }
.multi-art__accounts { display: flex; justify-content: space-around; width: 100%; }
.multi-art__accounts span, .multi-art__msg > span, .chat-art__msg > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.multi-art__lines { width: 100%; height: 56px; }
.multi-art__lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .7; animation: multi-flow 1.4s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes multi-flow { to { stroke-dashoffset: -22; } }
.multi-art__hub { padding: 9px 16px; border-radius: 12px; font-size: 0.82rem; font-weight: 700; background: var(--accent-soft); border: 1px solid var(--accent-border); box-shadow: 0 0 30px rgba(139,92,246,.35); }
.multi-art__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 18px; }
.multi-art__stats div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.multi-art__stats b { font-size: 1rem; }
.multi-art__stats span { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.multi-art__inbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.multi-art__inboxhead { display: flex; justify-content: space-between; align-items: center; font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.multi-art__inboxhead i { width: 7px; height: 7px; border-radius: 50%; background: #ff70f5; box-shadow: 0 0 8px #ff70f5; animation: tool-blink 1.4s infinite; }
.multi-art__msg { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); font-size: 0.8rem; animation: tool-in 6s var(--d) infinite both; }
.multi-art__msg > span { width: 30px; height: 30px; border-radius: 9px; font-size: 0.8rem; }
.multi-art__msg small { display: block; font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

/* Retouche photo : avant / après avec curseur qui glisse */
.photo-art { position: relative; width: 100%; max-width: 280px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); }
.photo-art__side { position: absolute; inset: 0; display: grid; place-items: center; }
.photo-art__side svg { width: 72%; }
.photo-art__side--before { background: radial-gradient(circle at 30% 20%, #6b6158, #3a332e 75%); }
.photo-art__side--after { background: radial-gradient(circle at 50% 30%, #fbfbfd, #d9dae1 85%); clip-path: inset(0 0 0 var(--pos, 50%)); animation: photo-slide 5s ease-in-out infinite alternate; }
.photo-art__creased { fill: #b9ad9c; transform: rotate(-7deg) scale(.95); transform-origin: center; }
.photo-art__wrinkle { fill: none; stroke: rgba(0,0,0,.28); stroke-width: 3; stroke-linecap: round; }
.photo-art__clean { fill: #f3ede2; filter: drop-shadow(0 10px 12px rgba(0,0,0,.22)); }
.photo-art__rib { fill: none; stroke: rgba(0,0,0,.12); stroke-width: 3; }
.photo-art__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.4); animation: photo-slide 5s ease-in-out infinite alternate; }
.photo-art__handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; color: #111; font-size: 0.8rem; font-weight: 800; }
.photo-art__tag { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; }
.photo-art__tag--after { left: auto; right: 10px; background: rgba(139,92,246,.85); }
@property --pos { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@keyframes photo-slide { from { --pos: 22%; } to { --pos: 78%; } }

/* Radar : tendances + balayage */
.radar-art { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; width: 100%; }
.radar-art__list { display: flex; flex-direction: column; gap: 8px; }
.radar-art__list div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: 0.78rem; animation: tool-in 5s var(--d) infinite both; }
.radar-art__list b { color: #86efac; }
.radar-art__scope { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,112,245,.35); background: repeating-radial-gradient(circle, transparent 0 18px, rgba(255,112,245,.14) 18px 19px); overflow: hidden; }
.radar-art__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,112,245,.55), transparent 70deg); animation: radar-spin 3s linear infinite; }
.radar-art__scope > span { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; }
.radar-art__scope b { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; border-radius: 50%; background: #ff70f5; box-shadow: 0 0 10px #ff70f5; animation: radar-blip 3s var(--d) infinite; }
@keyframes radar-spin { to { transform: rotate(360deg); } }
@keyframes radar-blip { 0%, 100% { opacity: .15; transform: scale(.7); } 20% { opacity: 1; transform: scale(1.2); } }

/* Réponse client : négociation */
.reply-art { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.reply-art__bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 0.8rem; }
.reply-art__bubble--buyer { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.reply-art__bubble--me { align-self: flex-end; background: linear-gradient(135deg, var(--accent), #a855f7); color: #fff; border-bottom-right-radius: 4px; animation: tool-in 5s 1.6s infinite both; }
.reply-art__bubble small { display: block; margin-top: 3px; font-size: 0.62rem; opacity: .8; }
.reply-art__wait { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: #ff70f5; }
.reply-art__wait i { width: 5px; height: 5px; border-radius: 50%; background: #ff70f5; animation: tool-blink 1s infinite; }
.reply-art__wait i:nth-child(2) { animation-delay: .2s; } .reply-art__wait i:nth-child(3) { animation-delay: .4s; margin-right: 4px; }
.reply-art__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.reply-art__chips span { padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; color: #ff70f5; background: rgba(255,112,245,.1); border: 1px solid rgba(255,112,245,.35); }

/* Description : saisie → annonce */
.desc-art { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.desc-art__input { padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--accent-border); font-size: 0.8rem; color: var(--text-muted); }
.desc-art__input i { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #ff70f5; animation: tool-blink .9s steps(1) infinite; }
.desc-art__out { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); animation: tool-in 5s .6s infinite both; }
.desc-art__out > b { font-size: 0.82rem; }
.desc-art__line { display: block; width: var(--w); height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); }
.desc-art__tags { font-size: 0.72rem; color: #c4b5fd; }
.desc-art__price { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.desc-art__price b { color: #86efac; }

/* Détection : étiquette scannée + verdict */
.detect-art { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.detect-art__tag { position: relative; display: flex; flex-direction: column; gap: 7px; width: 70%; padding: 14px; border-radius: 10px; background: #efe9de; overflow: hidden; }
.detect-art__logo { align-self: center; padding: 2px 10px; border: 2px solid #1b1b22; border-radius: 4px; font-size: 0.72rem; font-weight: 900; letter-spacing: .2em; color: #1b1b22; }
.detect-art__row { display: block; width: 100%; height: 5px; border-radius: 3px; background: rgba(0,0,0,.18); }
.detect-art__scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(139,92,246,.45), transparent); border-bottom: 2px solid #8b5cf6; animation: detect-scan 2.4s ease-in-out infinite alternate; }
@keyframes detect-scan { from { top: -30%; } to { top: 100%; } }
.detect-art__verdict { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; width: 80%; padding: 9px 12px; border-radius: 10px; font-size: 0.8rem; color: #86efac; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.3); }
.detect-art__bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.detect-art__bar i { display: block; width: 92%; height: 100%; background: var(--success); animation: detect-fill 2.4s ease-out infinite alternate; }
@keyframes detect-fill { from { width: 10%; } to { width: 92%; } }

/* Chat VIP */
.chat-art { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.chat-art__msg { display: flex; align-items: flex-end; gap: 8px; animation: tool-in 5s var(--d) infinite both; }
.chat-art__msg > span { width: 28px; height: 28px; border-radius: 50%; font-size: 0.75rem; }
.chat-art__msg p { margin: 0; padding: 8px 12px; border-radius: 14px; border-bottom-left-radius: 4px; font-size: 0.8rem; background: var(--bg); border: 1px solid var(--border); }
.chat-art__msg--me { justify-content: flex-end; }
.chat-art__msg--me p { background: var(--accent-soft); border-color: var(--accent-border); border-radius: 14px; border-bottom-right-radius: 4px; }

/* Comptes Vinted */
.shop-art { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.shop-art__card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.shop-art__card > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #09b1ba, #067a80); }
.shop-art__card div { flex: 1; display: flex; flex-direction: column; font-size: 0.8rem; }
.shop-art__card i { font-style: normal; font-size: 0.75rem; color: #fbbf24; text-shadow: 0 0 6px rgba(251,191,36,.6); }
.shop-art__card strong { font-size: 0.9rem; color: #86efac; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tool--wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .multi-art { grid-template-columns: 1fr; }
  .tool__foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tool *, .tool *::before { animation: none !important; }
}
/* Ajustements des cartes étroites */
.tool__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
.radar-art { grid-template-columns: 1fr 96px; }
.radar-art__list div { white-space: nowrap; }
.radar-art__list span { overflow: hidden; text-overflow: ellipsis; }
.radar-art__list b { flex: none; }

/* ===== Accueil : Multicompte (5 comptes → 1 tableau de bord + messagerie unifiée) ===== */
.mc { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; width: 100%; align-self: stretch; }
.mc__left { display: flex; flex-direction: column; align-items: center; }
.mc__accounts { display: flex; justify-content: space-between; width: 100%; padding: 0 4px; }
.mc__acc { position: relative; }
.mc__acc b, .mc__v { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 1.25rem; font-weight: 900; font-style: italic; color: #fff; background: linear-gradient(145deg, #0fb5be, #087d84); box-shadow: 0 6px 18px rgba(9,177,186,.25); }
.mc__acc i { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg-card); box-shadow: 0 0 8px var(--success); }
.mc__lines { width: 100%; height: 64px; margin-top: 6px; }
.mc__lines path { fill: none; stroke: #a78bfa; stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .75; vector-effect: non-scaling-stroke; animation: multi-flow 1.2s linear infinite; }
.mc__hub { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-size: 0.74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; background: var(--accent-soft); border: 1px solid var(--accent-border); box-shadow: 0 0 34px rgba(139,92,246,.35); }
.mc__hub span { font-size: 0.95rem; }
.mc__stats { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; align-self: flex-start; }
.mc__stats div { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.mc__stats b { font-size: 1.05rem; color: #c4b5fd; }
.mc__stats span { font-size: 0.6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.mc__inbox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.mc__inboxhead { display: flex; justify-content: space-between; align-items: center; font-size: 0.66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.mc__inboxhead i { width: 7px; height: 7px; border-radius: 50%; background: #ff70f5; box-shadow: 0 0 8px #ff70f5; animation: tool-blink 1.4s infinite; }
.mc__feed { position: relative; display: flex; flex-direction: column; gap: 10px; }
.mc__msg { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border-strong); font-size: 0.78rem; font-weight: 600; animation: mc-cycle 6s var(--d) infinite; }
.mc__msg .mc__v { width: 24px; height: 24px; border-radius: 6px; font-size: 0.8rem; box-shadow: none; flex: none; }
.mc__msg small { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.mc__msg em { font-style: normal; color: #86efac; }
/* Chaque message s'avance un instant (mis en avant), puis s'efface et revient */
@keyframes mc-cycle {
  0%, 100% { opacity: 1; transform: none; box-shadow: none; }
  12% { transform: translateX(-6px) scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.35); border-color: var(--accent-border); }
  25% { transform: none; box-shadow: none; }
  62% { opacity: 1; }
  72% { opacity: .2; }
  84% { opacity: 1; }
}

/* ===== Accueil : Radar Finder (tendances + grand radar) ===== */
.rd { position: relative; width: 100%; min-height: 250px; align-self: stretch; overflow: hidden; }
.rd__rows { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.rd__row { display: flex; justify-content: space-between; gap: 10px; width: 92%; padding: 10px 12px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; background: rgba(20,20,27,.92); border: 1px solid var(--border-strong); white-space: nowrap; animation: rd-fade 6s var(--d) infinite; }
.rd__row span { overflow: hidden; text-overflow: ellipsis; }
.rd__row b { flex: none; color: #ff70f5; }
.rd__row--shift { margin-left: 8%; }
@keyframes rd-fade { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 60% { opacity: .25; } 75% { opacity: 1; } }
.rd__scope { position: absolute; right: -36px; bottom: -40px; width: 230px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,112,245,.35); background: repeating-radial-gradient(circle, transparent 0 28px, rgba(255,112,245,.16) 28px 29px); }
.rd__scope::before, .rd__scope::after { content: ""; position: absolute; background: rgba(255,112,245,.14); }
.rd__scope::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.rd__scope::after { top: 50%; left: 0; right: 0; height: 1px; }
.rd__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,112,245,.6), rgba(255,112,245,.12) 50deg, transparent 80deg); animation: radar-spin 3.2s linear infinite; }
.rd__scope b { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; border-radius: 50%; background: #ff70f5; box-shadow: 0 0 10px #ff70f5; animation: radar-blip 3.2s var(--d) infinite; }
.rd__core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.12); }
@media (max-width: 640px) {
  .mc { grid-template-columns: 1fr; }
  .mc__stats { align-self: center; }
}
/* Radar : lignes en haut, radar dans le coin bas-droit */
.rd { min-height: 270px; }
.rd__row { width: 86%; }
.rd__row--shift { margin-left: 6%; }
.rd__scope { width: 175px; right: -28px; bottom: -34px; }
/* Radar : étiquettes à gauche qui bougent, radar entier et bien visible à droite */
.rd { min-height: 300px; }
.rd__rows { width: 64%; gap: 10px; }
.rd__row { width: 100%; padding: 8px 12px; border-radius: 999px; font-size: 0.74rem; animation: rd-move 6s var(--d) infinite ease-in-out; }
.rd__row--shift { margin-left: 0; }
.rd__row:nth-child(1) { --dx: 0px; }
.rd__row:nth-child(2) { --dx: 6px; }
.rd__row:nth-child(3) { --dx: 2px; }
/* Chaque étiquette glisse un peu, s'efface puis revient, à tour de rôle */
@keyframes rd-move {
  0%, 100% { opacity: 1; transform: translateX(var(--dx)); }
  25% { opacity: 1; transform: translateX(calc(var(--dx) + 8px)); }
  45% { opacity: .25; transform: translateX(calc(var(--dx) - 4px)); }
  65% { opacity: 1; transform: translateX(var(--dx)); }
}
.rd__scope { z-index: 2; width: 165px; right: 4px; bottom: auto; top: 78px; }
@media (max-width: 640px) {
  .rd__rows { width: 100%; }
  .rd { min-height: 340px; }
  .rd__scope { top: auto; bottom: 0; right: 50%; margin-right: -82px; }
}
/* Cartes larges : radar, détection et boutique */
.tool--wide .rd { min-height: 250px; }
.tool--wide .rd__rows { width: 52%; padding-top: 18px; }
.tool--wide .rd__scope { width: 210px; right: 36px; top: 50%; margin-top: -105px; }
.tool--wide .detect-art { flex-direction: row; justify-content: center; gap: 28px; }
.tool--wide .detect-art__tag { width: 42%; }
.tool--wide .detect-art__verdict { width: 38%; }
.tool--wide .shop-art { flex-direction: row; }
.tool--wide .shop-art__card { flex: 1; }
@media (max-width: 640px) {
  .tool--wide .rd__rows { width: 100%; }
  .tool--wide .rd { min-height: 380px; }
  .tool--wide .rd__scope { top: auto; bottom: 0; margin-top: 0; right: 50%; margin-right: -105px; }
  .tool--wide .detect-art, .tool--wide .shop-art { flex-direction: column; }
  .tool--wide .detect-art__tag, .tool--wide .detect-art__verdict { width: 80%; }
}
/* Radar : les étiquettes changent au hasard (fondu géré par main.js), le léger glissement continue */
@keyframes rd-move {
  0%, 100% { transform: translateX(var(--dx)); }
  50% { transform: translateX(calc(var(--dx) + 8px)); }
}
.rd__row { transition: opacity .4s, filter .4s; }
.rd__row.is-swapping { opacity: 0; filter: blur(3px); }
/* Multicompte : les messages changent au hasard (fondu géré par main.js) ; chacun s'avance à tour de rôle */
@keyframes mc-cycle {
  0%, 100% { transform: none; box-shadow: none; }
  12% { transform: translateX(-6px) scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.35); border-color: var(--accent-border); }
  25% { transform: none; box-shadow: none; }
}
.mc__msg { transition: opacity .45s, filter .45s; }
.mc__msg.is-swapping { opacity: 0; filter: blur(3px); }
/* Retouche photo : vraies photos avant / après (même cadrage 4:3) */
.photo-art { max-width: none; aspect-ratio: 4 / 3; }
.photo-art__side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-art__side--before, .photo-art__side--after { background: none; }
/* Retouche photo : cadrage carré (doudoune sur cintre entière) */
.photo-art { aspect-ratio: 1 / 1; }
/* Détection : verdict en rose, comme le radar */
.detect-art__verdict { color: #ff70f5; background: rgba(255,112,245,.08); border-color: rgba(255,112,245,.35); }
.detect-art__bar i { background: #ff70f5; box-shadow: 0 0 10px rgba(255,112,245,.6); }
/* Chat VIP : ma bulle en rose */
.chat-art__msg--me p { background: rgba(255,112,245,.1); border-color: rgba(255,112,245,.4); color: #ffd6fb; }
/* Multicompte en rose : lignes, contour du tableau de bord et des messages */
.mc__lines path { stroke: #ff70f5; }
.mc__hub { color: #ffc2f9; background: rgba(255,112,245,.1); border-color: rgba(255,112,245,.45); box-shadow: 0 0 34px rgba(255,112,245,.3); }
.mc__msg { border-color: rgba(255,112,245,.22); }
@keyframes mc-cycle {
  0%, 100% { transform: none; box-shadow: none; }
  12% { transform: translateX(-6px) scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 16px rgba(255,112,245,.25); border-color: rgba(255,112,245,.6); }
  25% { transform: none; box-shadow: none; }
}
/* Multicompte : contour des messages en violet (comme le contour des cartes) */
.mc__msg { border-color: rgba(139,92,246,.35); }
@keyframes mc-cycle {
  0%, 100% { transform: none; box-shadow: none; }
  12% { transform: translateX(-6px) scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 16px rgba(139,92,246,.3); border-color: var(--accent-border); }
  25% { transform: none; box-shadow: none; }
}
/* Multicompte : contour des messages remis comme à l'origine */
.mc__msg { border-color: var(--border-strong); }
@keyframes mc-cycle {
  0%, 100% { transform: none; box-shadow: none; }
  12% { transform: translateX(-6px) scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.35); border-color: var(--accent-border); }
  25% { transform: none; box-shadow: none; }
}
/* ===== Accueil : animations calquées sur la référence (logos qui flottent, messages et tendances qui apparaissent à tour de rôle) ===== */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes pop {
  0% { opacity: 0; transform: scale(.7) translateY(6px); }
  10% { opacity: 1; transform: none; }
  75% { opacity: 1; }
  90%, 100% { opacity: 0; transform: scale(.9) translateY(-4px); }
}
@keyframes slide-in {
  0% { opacity: 0; transform: translateX(-10px); }
  12% { opacity: 1; transform: none; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(6px); }
}
@keyframes blip {
  0% { transform: scale(.4); opacity: 0; }
  15% { opacity: .9; }
  60%, 100% { transform: scale(2.6); opacity: 0; }
}
.mc__acc { animation: float-y 4s ease-in-out infinite; }
.mc__acc:nth-child(2) { animation-delay: .35s; }
.mc__acc:nth-child(3) { animation-delay: .7s; }
.mc__acc:nth-child(4) { animation-delay: 1.05s; }
.mc__acc:nth-child(5) { animation-delay: 1.4s; }
.mc__lines path { stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
.mc__lines path:nth-child(2) { animation-delay: .2s; }
.mc__lines path:nth-child(3) { animation-delay: .4s; }
.mc__lines path:nth-child(4) { animation-delay: .6s; }
.mc__lines path:nth-child(5) { animation-delay: .8s; }
.mc__msg { transition: none; animation: pop 4.5s ease-out infinite both; }
.mc__msg:nth-child(2) { animation-delay: 1.1s; }
.mc__msg:nth-child(3) { animation-delay: 2.2s; }
.mc__msg:nth-child(4) { animation-delay: 3.3s; }
.rd__row { transition: none; animation: slide-in 4.5s ease-out infinite both; }
.rd__row:nth-child(2) { animation-delay: .9s; }
.rd__row:nth-child(3) { animation-delay: 1.8s; }
.rd__sweep { background: conic-gradient(from 0deg, transparent 0deg, transparent 290deg, rgba(255,112,245,.55) 360deg); animation: radar-spin 3.2s linear infinite; }
.rd__scope b { width: 6px; height: 6px; margin: -3px 0 0 -3px; animation: none; box-shadow: none; }
.rd__scope b::before { content: ""; position: absolute; left: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,112,245,.5); animation: blip 3.2s ease-out var(--d) infinite both; }
@media (prefers-reduced-motion: reduce) {
  .mc__acc, .mc__lines path, .mc__msg, .rd__row, .rd__sweep, .rd__scope b::before { animation: none; }
}
/* Accueil : bulles d'état des outils en rose */
.tool__status { color: #ffc2f9; background: rgba(255,112,245,.08); border-color: rgba(255,112,245,.35); }
.tool__status i { background: #ff70f5; box-shadow: 0 0 8px #ff70f5; }
/* Accueil : « TZ Dashboard » mis en avant dans le titre des outils */
.section__brand { display: block; background: linear-gradient(90deg, #a78bfa, #ff70f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
