/* ===== Avenox Parrainage ===== */
:root {
  --bg: #0a0f1c;
  --bg-2: #0d1424;
  --surface: #111a2e;
  --surface-2: #172138;
  --border: #1f2a44;
  --border-2: #2a3756;
  --text: #e6eaf3;
  --muted: #8b97b2;
  --faint: #5f6b88;
  --primary: #4f8cff;
  --primary-2: #3b74e6;
  --primary-soft: rgba(79, 140, 255, .14);
  --violet: #7c5cff;
  --green: #22c55e;
  --green-text: #4ade80;
  --green-soft: rgba(34, 197, 94, .13);
  --amber: #f5a524;
  --amber-text: #fbbf24;
  --amber-soft: rgba(245, 165, 36, .13);
  --red: #ef4444;
  --red-text: #f87171;
  --red-soft: rgba(239, 68, 68, .13);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-accent { color: var(--primary); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.green { color: var(--green-text); }
.blue { color: var(--primary); }
.amber { color: var(--amber-text); }
.red { color: var(--red-text); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
  color: var(--text); background: var(--surface-2); text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: transparent; border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-green { background: var(--green); color: #052e14; }
.btn-green:hover { background: #1fb456; }
.btn-danger { background: var(--red-soft); color: var(--red-text); border-color: rgba(239, 68, 68, .3); }
.btn-danger:hover { background: rgba(239, 68, 68, .22); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled, fieldset:disabled .btn { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: transparent; color: var(--text); cursor: pointer; }

/* ----- Formulaires ----- */
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=file] { width: 100%; color: var(--muted); font: inherit; font-size: 14px; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
textarea { resize: vertical; min-height: 90px; }
.input-sm { padding: 8px 10px !important; font-size: 14px !important; }
.input-xs { width: 80px !important; }
.input-s { width: 130px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 16px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
.input-row { display: flex; gap: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form.grow { flex: 1; min-width: 240px; }
.inline-form.grow input[type=text] { flex: 1; min-width: 140px; width: auto; }

/* ----- Cartes & grilles ----- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin: 0 0 18px; }
.block-title { font-size: 15px; margin: 24px 0 12px; color: var(--text); }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.offers-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty-inline { margin: 0; }
.link-card { color: inherit; text-decoration: none !important; transition: border-color .15s; }
.link-card:hover { border-color: var(--border-2); }

.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.02em; }
.stat-sub { font-size: 13px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.badge-green { background: var(--green-soft); color: var(--green-text); }
.badge-amber { background: var(--amber-soft); color: var(--amber-text); }
.badge-red { background: var(--red-soft); color: var(--red-text); }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-gray { background: var(--surface-2); color: var(--muted); }
.tag { display: inline-block; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }

.flashes { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; margin-bottom: 16px; }
.flashes .flash { margin: 0; }
.flash-success { background: var(--green-soft); border-color: rgba(34, 197, 94, .3); color: #bbf7d0; }
.flash-error { background: var(--red-soft); border-color: rgba(239, 68, 68, .3); color: #fecaca; }
.flash-info { background: var(--primary-soft); border-color: rgba(79, 140, 255, .3); color: #cfe0ff; }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--violet)); border-radius: inherit; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 2px; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--primary-soft); color: var(--primary); border-color: rgba(79, 140, 255, .35); }

/* ----- Tableaux ----- */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-banned td { opacity: .6; }
.cell-offer { display: flex; align-items: center; gap: 10px; }

/* ----- Marque ----- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; text-decoration: none !important; }
.brand-text small { display: block; font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 1px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--violet)); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark .ic { width: 19px; height: 19px; }

/* ----- Layout application ----- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex: none; background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 2px 8px 22px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font: inherit; font-weight: 500; text-decoration: none !important;
  background: none; border: 0; cursor: pointer; width: 100%; text-align: left;
}
.nav a:hover, .nav-btn:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); }
.nav a.active .ic { color: var(--primary); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 20px 12px 6px; font-weight: 700; }
.nav .count { margin-left: auto; background: var(--amber); color: #2a1a00; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.side-balance { margin-top: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.side-balance .side-points { font-size: 22px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.side-balance .btn { margin-top: 12px; }
.sidebar form { margin-top: 4px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(10, 15, 28, .86); backdrop-filter: blur(10px); z-index: 20;
}
.page-title { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.content { padding: 28px; width: 100%; max-width: 1240px; }
.menu-btn { display: none; }
.sidebar-backdrop { display: none; }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.intro { margin-bottom: 20px; max-width: 760px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 18px; margin: 0; }
.section-head.no-mt { margin-top: 0; }
.section-head.no-mt p { margin: 0; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  body.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow); }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; }
  .content { padding: 20px 16px; }
  .card { padding: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
}

/* ----- Cartes d'offres ----- */
.offer-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .15s, transform .15s; }
.offer-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.offer-card.is-done { opacity: .72; }
.offer-card .btn { margin-top: auto; }
.offer-head { display: flex; align-items: center; gap: 12px; }
.offer-head .badge { margin-left: auto; }
.offer-head-text { min-width: 0; }
.offer-partner { font-weight: 700; }
.offer-title { font-size: 16px; margin: 0; }
.offer-desc { margin: 0; font-size: 14px; }
.logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; border: 1px solid var(--border); }
.logo-letter { display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, #2a3a63, #1b2643); }
.logo-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }
.reward-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.reward { border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; }
.reward strong { font-size: 16px; }
.reward span { font-size: 12px; color: var(--muted); }
.reward-green { background: var(--green-soft); } .reward-green strong { color: var(--green-text); }
.reward-blue { background: var(--primary-soft); } .reward-blue strong { color: var(--primary); }

/* ----- Détail d'offre ----- */
.offer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.offer-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.offer-hero-title { font-size: 22px; margin: 4px 0 0; }
.reward-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.reward-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.reward-big { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.prose { white-space: pre-line; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.action-card { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.action-step { display: flex; gap: 12px; align-items: flex-start; }
.action-step > div, .action-step > fieldset { flex: 1; min-width: 0; }
.action-step strong { display: block; margin-bottom: 4px; }
.action-step p { margin: 0 0 12px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: grid; place-items: center; flex: none; }
.step-num.sm { width: 28px; height: 28px; font-size: 14px; }
.state { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); }
.state .ic { width: 22px; height: 22px; margin-top: 1px; }
.state-green { background: var(--green-soft); color: #bbf7d0; } .state-green .ic { color: var(--green-text); }
.state-amber { background: var(--amber-soft); color: #fde68a; } .state-amber .ic { color: var(--amber-text); }
.state-red { background: var(--red-soft); color: #fecaca; } .state-red .ic { color: var(--red-text); }
.action-card > p { margin: 0; }

/* ----- Tableau de bord ----- */
.progress-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.progress-text { flex: 1; min-width: 220px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.activity li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity li:first-child { padding-top: 0; }
.activity-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.activity-dot.green { background: var(--green); } .activity-dot.red { background: var(--red); }

/* ----- Retraits / profil ----- */
.withdraw-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.balance-banner { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(79, 140, 255, .18), rgba(124, 92, 255, .14)); border: 1px solid rgba(79, 140, 255, .25); margin-bottom: 20px; }
.balance-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.balance-eur { font-size: 18px; font-weight: 700; color: var(--green-text); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method-option { margin: 0; cursor: pointer; }
.method-option input { position: absolute; opacity: 0; pointer-events: none; }
.method-option span { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-2); font-size: 14px; font-weight: 500; height: 100%; }
.method-option input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: #fff; }
.method-option input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }
.note { background: var(--surface-2); padding: 6px 8px; border-radius: 6px; word-break: break-all; }
.profile-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.info-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.info-list > div { display: flex; justify-content: space-between; gap: 16px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; text-align: right; word-break: break-word; }
.info-list.compact { gap: 8px; font-size: 14px; margin: 14px 0; }
.info-list.compact > div { justify-content: flex-start; }
.info-list.compact dt { width: 90px; flex: none; }
.info-list.compact dd { text-align: left; }

/* ----- Parrainage ----- */
.ref-card h2 { font-size: 20px; margin: 10px 0 4px; }
.ref-icon { width: 26px; height: 26px; color: var(--primary); }
.ref-link-row { display: flex; gap: 10px; margin: 18px 0 20px; }
.ref-link-row input { flex: 1; min-width: 0; width: auto; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.ref-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) {
  .ref-link-row { flex-direction: column; }
  .ref-rewards { grid-template-columns: 1fr; }
}

/* ----- Admin ----- */
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.proof-text { font-family: ui-monospace, Consolas, monospace; background: var(--bg-2); padding: 2px 8px; border-radius: 6px; }
.proof-thumb { display: inline-block; margin-bottom: 14px; }
.proof-thumb img { max-height: 220px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border); }
.form-card { max-width: 860px; }
.form-card .block-title:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.field.checks { padding-top: 26px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 18px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 200px; width: auto; }

@media (max-width: 1000px) {
  .offer-layout, .withdraw-layout { grid-template-columns: 1fr; }
  .action-card { position: static; }
}
@media (max-width: 560px) {
  .reward-boxes, .method-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .field.checks { padding-top: 0; }
  .stat-value { font-size: 24px; }
  .chip { padding: 6px 10px; font-size: 13px; }
}

/* ----- Pages publiques ----- */
body.public { background: radial-gradient(1200px 600px at 75% -10%, rgba(79, 140, 255, .16), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(124, 92, 255, .12), transparent 60%), var(--bg); background-repeat: no-repeat; }
.pub-nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 15, 28, .7); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 42, 68, .6); }
.pub-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.pub-links { display: flex; gap: 8px; }
.pub-main { padding-top: 24px; min-height: 60vh; }
.hero { padding: 40px 0 60px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-text); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.grad { background: linear-gradient(90deg, var(--primary), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 580px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ic { color: var(--green-text); width: 16px; height: 16px; }
.hero-card { display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.example-rows { display: flex; flex-direction: column; gap: 2px; }
.example-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border-2); }
.example-row.total { border-bottom: 0; font-size: 17px; }
.example-row.total strong { font-size: 22px; }
.section { padding: 40px 0; }
.section-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.section-sub { margin-bottom: 22px; }
.section .section-title + .steps-grid, .section .section-title + .methods, .section .section-title + .faq { margin-top: 22px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step-card h3 { font-size: 17px; margin: 14px 0 6px; }
.step-card p { margin: 0; font-size: 14px; }
.methods { display: flex; flex-wrap: wrap; gap: 10px; }
.method-chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.method-chip .ic { color: var(--primary); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 16px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(79, 140, 255, .18), rgba(124, 92, 255, .14)); border-color: rgba(79, 140, 255, .28); padding: 32px; }
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0; }
.pub-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0; }
.pub-footer-inner { display: flex; flex-direction: column; gap: 14px; }
.brand-sm { font-size: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: var(--muted); }
.pub-footer p { margin: 0; }
.auth { display: flex; justify-content: center; padding: 30px 16px 60px; }
.auth-card { width: 100%; max-width: 430px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-card > p.muted { margin-bottom: 22px; }
.auth-switch { text-align: center; margin: 18px 0 0; font-size: 14px; }
.error-code { font-size: 56px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.prose-page h1 { font-size: 32px; }
.prose-page h2 { font-size: 18px; margin-top: 28px; }
.prose-page p { color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 16px 0 30px; }
}
@media (max-width: 420px) {
  .pub-links .btn-ghost { display: none; }
  .brand-text small { display: none; }
}
