/* Boost Cat — feuille de style */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f3f1fb;
  --text: #16141f;
  --muted: #6b6880;
  --border: #e8e6f0;
  --accent: #7c3aed;
  --accent-2: #db2777;
  --accent-soft: #efe9fe;
  --success: #059669;
  --success-soft: #e7f8f1;
  --warn: #b45309;
  --warn-soft: #fdf3e2;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --info: #2563eb;
  --info-soft: #e9f0fe;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 20, 31, .04), 0 8px 24px rgba(22, 20, 31, .05);
  --shadow-lg: 0 12px 40px rgba(76, 29, 149, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.break { word-break: break-all; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.xnarrow { max-width: 440px; }
main { padding-block: 32px 64px; min-height: 60vh; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 16px; }
.mt { margin-top: 24px; } .mb { margin-bottom: 24px; } .mt-s { margin-top: 10px; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- navbar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.nav-links a, .nav-right a.lnk { color: var(--muted); font-weight: 550; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover, .nav-right a.lnk:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text); background: var(--surface-2); }
.cart-btn:hover { text-decoration: none; background: var(--accent-soft); }
.cart-btn .count { position: absolute; top: -5px; right: -5px; background: var(--accent-2); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.balance-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; }
.balance-pill:hover { text-decoration: none; filter: brightness(.97); }
.dropdown { position: relative; }
.dropdown > button { background: none; border: 0; cursor: pointer; font: inherit; color: var(--muted); padding: 8px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: center; font-weight: 550; }
.dropdown > button:hover { background: var(--surface-2); color: var(--text); }
.dropdown .menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 190px; padding: 6px; z-index: 60; }
.dropdown.open .menu { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu a.cur { color: var(--accent); font-weight: 650; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.burger { display: none; background: none; border: 0; font-size: 1.3rem; padding: 8px; cursor: pointer; color: var(--text); }
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .hide-m { display: none !important; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease; text-decoration: none !important; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #9333ea 55%, var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, .28); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(124, 58, 237, .38); }
.btn-dark { background: var(--text); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-tight { padding: 16px 18px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .side { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .card { padding: 18px; } }

/* ---------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; background:
  radial-gradient(900px 380px at 85% -10%, rgba(219, 39, 119, .16), transparent 60%),
  radial-gradient(800px 420px at 0% 0%, rgba(124, 58, 237, .18), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.badge-pill i { color: var(--success); font-size: .6rem; }
.hero-visual { position: relative; }
.hero-visual .card { padding: 18px; }
.stat-float { display: flex; align-items: center; gap: 14px; }
.stat-float + .stat-float { margin-top: 12px; }
.stat-float .num { font-weight: 800; font-size: 1.15rem; }
.trend { margin-left: auto; color: var(--success); font-weight: 700; font-size: .9rem; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* ---------- platform icons */
.pf { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; font-size: 1.25rem; flex-shrink: 0; background: #6b7280; }
.pf-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
.pf-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.pf-tiktok { background: #111; }
.pf-youtube { background: #ff0033; }
.pf-x-twitter { background: #000; }
.pf-facebook { background: #1877f2; }
.pf-twitch { background: #9146ff; }
.pf-spotify { background: #1db954; }
.pf-telegram { background: #229ed9; }
.pf-discord { background: #5865f2; }
.pf-snapchat { background: #fffc00; color: #111; }
.pf-linkedin { background: #0a66c2; }
.pf-pinterest { background: #e60023; }
.pf-soundcloud { background: #ff5500; }
.pf-threads { background: #000; }
.pf-reddit { background: #ff4500; }
.pf-kick { background: #53fc18; color: #111; }
.pf-globe { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.platform { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.platform:hover { border-color: #d7cdfb; transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.platform b { display: block; }

/* ---------- features / steps */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }
.step { position: relative; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }

/* ---------- services */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; }
.chip:hover { text-decoration: none; border-color: #cfc3f8; }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input[type=search] { padding-left: 40px; }
.group-title { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; }
.group-title h2 { margin: 0; font-size: 1.2rem; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.svc { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.svc:hover { border-color: #d7cdfb; box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.svc h3 { font-size: 1rem; margin: 0; font-weight: 650; }
.svc .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.svc .meta span { background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.svc .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 1.15rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty i { font-size: 2.2rem; color: #cfc8e6; margin-bottom: 12px; display: block; }

/* ---------- forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem !important; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 15px !important; }

/* ---------- alerts / badges */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 550; display: flex; gap: 10px; align-items: flex-start; }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-info { background: var(--info-soft); color: var(--info); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.b-pending, .b-queued, .b-open { background: var(--warn-soft); color: var(--warn); }
.b-processing, .b-in_progress, .b-review, .b-answered { background: var(--info-soft); color: var(--info); }
.b-completed, .b-success { background: var(--success-soft); color: var(--success); }
.b-partial { background: #fef3c7; color: #92400e; }
.b-canceled, .b-error, .b-failed, .b-rejected { background: var(--danger-soft); color: var(--danger); }
.b-closed { background: #eef0f3; color: #6b7280; }

/* ---------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .92rem; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #fbfaff; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfbff; }
td.num, th.num { text-align: right; white-space: nowrap; }
.trunc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- cart / pay */
.cart-item { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info b { display: block; }
.cart-item .info .link { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-line.total { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
.summary-line.missing { color: var(--accent-2); font-weight: 700; }
.shops { display: grid; gap: 14px; }
.shop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.shop-logo { font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.shop-logo .dot { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; }
.dot-k { background: #f6a10b; } .dot-e { background: #6d28d9; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.gift { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 750; background: var(--surface); transition: all .12s; }
.gift small { font-weight: 500; color: var(--muted); font-size: .7rem; }
.gift:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.gift.suggest { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.pay-status { margin-top: 16px; padding: 16px; border-radius: 12px; display: flex; gap: 12px; align-items: flex-start; }
.pay-status.wait { background: var(--info-soft); color: var(--info); }
.pay-status.ok { background: var(--success-soft); color: var(--success); }
.pay-status.ko { background: var(--danger-soft); color: var(--danger); }
.pay-status.rv { background: var(--warn-soft); color: var(--warn); }
.spinner { width: 20px; height: 20px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tickets */
.msg { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.msg.staff { background: var(--accent-soft); border-color: #ddd2fb; }
.msg .who { font-weight: 700; font-size: .88rem; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.msg .body { white-space: pre-wrap; word-wrap: break-word; }

/* ---------- auth */
.auth-card { max-width: 430px; margin: 24px auto; }
.auth-card h1 { font-size: 1.6rem; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); }

/* ---------- footer */
footer.site { border-top: 1px solid var(--border); background: var(--surface); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer.site .container { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ================= ADMIN ================= */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin aside { background: #14121d; color: #c9c5da; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin aside .brand { color: #fff; margin: 0 8px 22px; }
.admin aside a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #c9c5da; font-weight: 550; font-size: .92rem; }
.admin aside a i { width: 18px; text-align: center; opacity: .8; }
.admin aside a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.admin aside a.active { background: rgba(124, 58, 237, .25); color: #fff; }
.admin aside .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #6f6a86; margin: 18px 12px 6px; }
.admin aside .cnt { margin-left: auto; background: var(--accent-2); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.admin .content { padding: 28px 32px 60px; min-width: 0; }
.admin .content h1 { font-size: 1.6rem; }
.kpi .label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #9ca3af; }
.status-dot.ok { background: var(--success); } .status-dot.bad { background: var(--danger); } .status-dot.warn { background: #f59e0b; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-top h1 { margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 160px; padding: 8px 12px; }
.inline-form { display: inline; }
.logline { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.lvl-warn { color: var(--warn); } .lvl-error { color: var(--danger); }
.admin-burger { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin aside { position: static; height: auto; display: none; }
  .admin aside.open { display: block; }
  .admin-burger { display: inline-flex; margin-bottom: 14px; }
  .admin .content { padding: 18px 16px 50px; }
}
