/* ════════════════════════════════════════════════════════════
   b3ta.lol — styles
   1 base · 2 composants · 3 landing · 4 dashboard · 5 profil
   ════════════════════════════════════════════════════════════ */

/* ── 1. base ─────────────────────────────────────────────── */
:root {
  --bg: #07060f;
  --panel: #0f0d1f;
  --panel2: #161331;
  --line: rgba(139, 92, 246, .2);
  --line2: rgba(255, 255, 255, .08);
  --text: #eceaff;
  --muted: #9b96bf;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --good: #34d399;
  --bad: #fb7185;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--ui); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
::selection { background: rgba(139, 92, 246, .45); }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { opacity: .5; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9a5ff; font-weight: 600; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(139, 92, 246, .25); border-top-color: var(--violet); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ui-ico { flex: none; }
.brand-ico { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ── 2. composants ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: transform .15s, filter .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(99, 102, 241, .35); }
.btn-primary:not(:disabled):hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.btn-ghost:not(:disabled):hover { background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .5); }
.btn-danger { background: rgba(244, 63, 94, .15); border-color: rgba(244, 63, 94, .5); color: #fecdd3; }
.btn-danger:not(:disabled):hover { background: rgba(244, 63, 94, .3); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.icon-btn:hover:not(:disabled) { background: rgba(139, 92, 246, .18); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.danger:hover { background: rgba(244, 63, 94, .25); border-color: rgba(244, 63, 94, .6); }
.inp { width: 100%; background: #0a0818; border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.inp:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
.inp.sm { padding: 7px 11px; font-size: 13px; }
.inp.big { font-size: 18px; padding: 14px 16px; }
textarea.inp { resize: vertical; min-height: 80px; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9b96bf 50%), linear-gradient(135deg, #9b96bf 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.hint { display: block; min-height: 1.2em; font-size: 12.5px; color: var(--muted); }
.hint.good { color: var(--good); } .hint.bad { color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; background: rgba(139, 92, 246, .16); color: #cbbcff; font-size: 12px; font-weight: 600; }
.chip.big { padding: 6px 12px; font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 13px; font-weight: 600; color: #cfc8f5; }
.lbl output { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.color { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: none; }
.color::-webkit-color-swatch-wrapper { padding: 0; } .color::-webkit-color-swatch { border: 0; border-radius: 9px; } .color::-moz-color-swatch { border: 0; border-radius: 9px; }
.colorf { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #cfc8f5; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); outline-offset: 6px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); border: 2px solid #fff3; cursor: pointer; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--violet); border: 2px solid #fff3; cursor: pointer; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .knob { position: relative; width: 40px; height: 22px; flex: none; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .2s; }
.switch .knob::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .knob { background: var(--grad); }
.switch input:checked + .knob::after { transform: translateX(18px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--violet); outline-offset: 2px; }
.swl { font-size: 14px; }
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4, 3, 10, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px #000a; }
#toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; max-width: min(380px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 12px; background: #17132f; border: 1px solid var(--line); box-shadow: 0 10px 40px #0008; animation: pop .25s ease; font-size: 14px; }
.toast.err { border-color: rgba(251, 113, 133, .6); } .toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font: 700 20px var(--display); }
.logo .logo-mark { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 18px; box-shadow: 0 6px 20px rgba(99, 102, 241, .45); }
.claim-box { display: flex; align-items: center; background: #0a0818; border: 1px solid var(--line); border-radius: 14px; padding-left: 16px; font: 600 18px var(--display); color: var(--muted); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.claim-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
.claim-box .inp { border: 0; background: none; box-shadow: none !important; padding-left: 2px; color: var(--text); font-family: var(--display); }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 500px at 50% 0%, rgba(139, 92, 246, .22), transparent 70%); }
.card-lg { width: min(520px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 100px rgba(99, 102, 241, .18); }
.card-lg h1 { font-size: 32px; overflow-wrap: anywhere; }
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: 34px; margin: 28px 0 4px; } .doc h2 { font-size: 20px; margin-top: 18px; } .doc li { margin: 6px 0; color: #d6d1f5; } .doc p { color: #d6d1f5; }

/* ── 3. landing ──────────────────────────────────────────── */
.landing { background:
  radial-gradient(900px 600px at 85% -5%, rgba(59, 130, 246, .20), transparent 65%),
  radial-gradient(900px 700px at 0% 10%, rgba(139, 92, 246, .22), transparent 65%), var(--bg); }
.demo-banner { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 9px 16px; font-size: 13px; background: rgba(139, 92, 246, .16); border-bottom: 1px solid var(--line); text-align: center; }
.l-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 18px 20px; }
.hero { max-width: 1180px; margin: 0 auto; padding: 40px 20px 70px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; }
.lede { font-size: 18px; color: #c4bfe6; max-width: 52ch; }
.claim { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.claim .claim-box { flex: 1 1 240px; }
.fine { font-size: 13px; color: var(--muted); }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-frame { position: relative; width: 100%; max-width: 520px; height: 540px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(99, 102, 241, .28), 0 0 0 1px #fff1 inset; }
.hero-cap { font-size: 13px; color: var(--muted); }
.features { max-width: 1180px; margin: 0 auto; padding: 40px 20px 30px; }
.features h2 { font-size: clamp(28px, 4vw, 42px); max-width: 20ch; margin-bottom: 28px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.f-card { padding: 22px; border-radius: 18px; background: linear-gradient(160deg, rgba(139, 92, 246, .10), rgba(15, 13, 31, .9) 55%); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .2s, border-color .2s; }
.f-card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .55); }
.f-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 6px; }
.f-card h3 { font-size: 18px; } .f-card p { color: #b6b0d9; font-size: 14.5px; }
.steps { max-width: 1180px; margin: 0 auto; padding: 50px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 6px; }
.step .num { font: 700 44px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step small { color: var(--muted); font-size: 14px; }
.l-foot { max-width: 1180px; margin: 0 auto; padding: 30px 20px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line2); }
.l-foot a { text-decoration: none; } .l-foot a:hover { color: var(--text); }

/* ── 4. dashboard ────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 252px minmax(0, 1fr) 440px; min-height: 100vh; }
.dash-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; background: var(--panel); border-right: 1px solid var(--line); }
.dash-side .logo { padding: 0 8px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-tab { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: #bdb7e3; font-weight: 500; transition: background .15s, color .15s; }
.dash-tab:hover { background: rgba(139, 92, 246, .1); color: var(--text); }
.dash-tab.active { background: linear-gradient(90deg, rgba(139, 92, 246, .32), rgba(59, 130, 246, .16)); color: #fff; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .4); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.userchip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.userchip b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; } .userchip small { color: var(--muted); }
.uc-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--grad); display: grid; place-items: center; font-weight: 700; flex: none; }
.uc-av img { width: 100%; height: 100%; object-fit: cover; }
.dash-main { padding: 26px 28px 80px; display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 900px; width: 100%; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-head h1 { font-size: 28px; }
.save-status { font-size: 13px; color: var(--muted); } .save-status.ok { color: var(--good); } .save-status.err { color: var(--bad); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.panel h2 .ui-ico { color: #a78bfa; }
.panel h3 { font-size: 15px; margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.colors { display: flex; gap: 22px; flex-wrap: wrap; }
.switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 10px; }
.plat { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: #e5e0ff; transition: transform .15s, border-color .15s, box-shadow .15s, color .15s; }
.plat:hover { transform: translateY(-2px); border-color: var(--violet); color: #fff; box-shadow: 0 8px 24px rgba(139, 92, 246, .35); }
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, opacity .15s; }
.link-row.dragging { opacity: .4; } .link-row.over { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(139, 92, 246, .3); }
.grip { color: var(--muted); cursor: grab; padding: 4px 0; align-self: center; } .grip:active { cursor: grabbing; }
.lr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lr-top { display: flex; align-items: center; gap: 9px; }
.lr-act { display: flex; gap: 6px; align-items: center; align-self: center; }
.preset-row { display: flex; flex-wrap: wrap; gap: 10px; }
.preset { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel2); font-size: 14px; font-weight: 500; }
.preset:hover { border-color: var(--violet); }
.preset i { width: 22px; height: 22px; border-radius: 50%; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); position: relative; }
.mcard.wide { margin-top: 4px; } .mcard.busy { opacity: .6; pointer-events: none; }
.mcard.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(139, 92, 246, .3); border-top-color: var(--violet); animation: spin .8s linear infinite; }
.mhead { display: flex; align-items: center; gap: 8px; }
.mhead .chip { margin-left: auto; }
.mthumb { aspect-ratio: 16 / 10; width: 100%; border-radius: 12px; border: 1px dashed rgba(139, 92, 246, .45); background: #0a0818; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; padding: 0; }
.mthumb.has { border-style: solid; } .mthumb:hover { border-color: var(--violet); color: var(--text); }
.mthumb img, .mthumb video { width: 100%; height: 100%; object-fit: cover; }
.track { display: flex; align-items: center; gap: 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tpl { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.tpl .sw { display: block; height: 70px; border-radius: 10px; border: 1px solid var(--line2); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { padding: 16px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.tile small { color: var(--muted); } .tile b { font: 700 30px var(--display); font-variant-numeric: tabular-nums; }
.chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 180px; align-items: end; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.chart .col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; align-items: center; }
.chart .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart .bars i { flex: 1; max-width: 14px; min-height: 2px; border-radius: 4px 4px 0 0; }
.chart small { font-size: 10px; color: var(--muted); }
.b-views { background: var(--violet); } .b-clicks { background: var(--blue); }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 7px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.toplinks { display: flex; flex-direction: column; gap: 10px; }
.chart { margin-top: 18px; } .legend { margin-top: 8px; } .legend + h3 { margin-top: 26px; margin-bottom: 12px; }
.toplink { display: grid; grid-template-columns: 22px minmax(70px, 120px) 1fr auto; gap: 10px; align-items: center; }
.tl-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; } .tl-bar i { display: block; height: 100%; background: var(--grad); border-radius: 8px; }
.url { padding: 7px 12px; border-radius: 10px; background: #0a0818; border: 1px solid var(--line); font-size: 13.5px; }
.dash-preview { position: sticky; top: 0; height: 100vh; padding: 20px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line); background: #0a0817; }
.pv-head { display: flex; align-items: center; justify-content: space-between; } .pv-close { display: none; }
.pv-frame { position: relative; flex: 1; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 70px rgba(99, 102, 241, .22); min-height: 0; }
.pv-toggle { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40; }

/* ── 5. profil public + aperçu ───────────────────────────── */
.pf { position: relative; color: var(--text); font-family: var(--font, var(--ui)); overflow: hidden; isolation: isolate; background: #07060f; }
.pf-full { position: fixed; inset: 0; } .pf-preview { position: absolute; inset: 0; }
.pf-bg { position: absolute; inset: 0; z-index: -5; background:
  radial-gradient(900px 600px at 12% 8%, rgb(var(--accent-rgb) / .38), transparent 62%),
  radial-gradient(800px 600px at 92% 96%, rgb(var(--accent2-rgb) / .32), transparent 62%), #07060f; }
.pf-bg img, .pf-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(var(--bg-blur)); transform: scale(1.06); }
.pf-aurora { position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; opacity: .85; }
.pf-aurora i { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; animation: aur 16s ease-in-out infinite alternate; }
.pf-aurora i:nth-child(1) { left: -25%; top: -30%; background: rgb(var(--accent-rgb) / .5); }
.pf-aurora i:nth-child(2) { right: -30%; top: 10%; background: rgb(var(--accent2-rgb) / .45); animation-duration: 21s; animation-delay: -6s; }
.pf-aurora i:nth-child(3) { left: 10%; bottom: -45%; background: rgb(var(--accent-rgb) / .35); animation-duration: 26s; animation-delay: -11s; }
@keyframes aur { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14%, 10%) scale(1.15); } 100% { transform: translate(-8%, 18%) scale(.95); } }
.pf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }
.pf-dim { position: absolute; inset: 0; z-index: -2; background: rgb(5 4 12 / var(--dim)); pointer-events: none; }
.pf-stage { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 14px; padding: 28px 16px; scrollbar-width: none; }
.pf-stage::-webkit-scrollbar { display: none; }
.pf-glass { background: rgb(var(--card-rgb) / var(--card-a)); -webkit-backdrop-filter: blur(var(--card-blur)); backdrop-filter: blur(var(--card-blur)); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); }
.pf-card { position: relative; width: min(640px, 100%); padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 26px; flex: none; }
.pf-views { position: absolute; top: 14px; right: 18px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pf-views:empty { display: none; }
.pf-head { display: flex; align-items: center; gap: 20px; min-width: 0; }
.al-center .pf-head { flex-direction: column; text-align: center; gap: 14px; }
.pf-avatar { width: 104px; height: 104px; flex: none; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 40px; font-weight: 700; box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / .55), 0 0 36px rgb(var(--accent-rgb) / .3); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-circle .pf-avatar { border-radius: 50%; } .av-rounded .pf-avatar { border-radius: 26%; } .av-square .pf-avatar { border-radius: 6px; }
.pf-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: inherit; }
.al-center .pf-id { align-items: center; } .al-left .pf-id { align-items: flex-start; }
.pf-namerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.al-center .pf-namerow { justify-content: center; }
.pf-name { position: relative; display: inline-block; margin: 0; font-size: clamp(28px, 5vw, 40px); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; color: var(--text); }
.g-name .pf-name { filter: drop-shadow(0 0 12px rgb(var(--accent-rgb) / .55)); }
.ne-gradient { background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: slide 5s linear infinite; }
@keyframes slide { to { background-position: -200% 0; } }
.ne-glow { text-shadow: 0 0 8px rgb(var(--accent-rgb) / .9), 0 0 24px rgb(var(--accent-rgb) / .6); animation: glowp 3s ease-in-out infinite; }
@keyframes glowp { 50% { text-shadow: 0 0 4px rgb(var(--accent-rgb) / .6), 0 0 12px rgb(var(--accent-rgb) / .3); } }
.ne-shine { background: linear-gradient(110deg, var(--text) 38%, #fff 50%, var(--text) 62%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shine 3.2s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ne-neon { color: #fff !important; text-shadow: 0 0 4px #fff, 0 0 12px var(--accent), 0 0 28px var(--accent), 0 0 52px var(--accent2); }
.ne-glitch::before, .ne-glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.ne-glitch::before { color: var(--accent2); transform: translate(-2px, 0); animation: gl1 2.6s infinite steps(1); mix-blend-mode: screen; }
.ne-glitch::after { color: var(--accent); transform: translate(2px, 0); animation: gl2 3.1s infinite steps(1); mix-blend-mode: screen; }
@keyframes gl1 { 0%, 88%, 100% { clip-path: inset(0 0 100% 0); } 90% { clip-path: inset(10% 0 55% 0); } 94% { clip-path: inset(60% 0 8% 0); } 97% { clip-path: inset(30% 0 40% 0); } }
@keyframes gl2 { 0%, 82%, 100% { clip-path: inset(100% 0 0 0); } 85% { clip-path: inset(50% 0 20% 0); } 91% { clip-path: inset(5% 0 70% 0); } 95% { clip-path: inset(70% 0 5% 0); } }
.pf-badges { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; background: rgb(255 255 255 / .08); }
.pf-badge { display: inline-flex; color: var(--accent); } .pf-badge:nth-child(even) { color: var(--accent2); }
.g-badges .pf-badge { filter: drop-shadow(0 0 6px currentColor); }
.pf-bio { color: var(--text); opacity: .92; font-size: 15.5px; overflow-wrap: anywhere; min-height: 1.4em; }
.pf-bio.typing::after { content: '▍'; margin-left: 2px; animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.pf-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.al-left .pf-links { justify-content: flex-start; }
.pf-link { display: inline-flex; align-items: center; justify-content: center; padding: 6px; background: none; border: 0; color: var(--text); text-decoration: none; opacity: .92; transition: transform .2s, opacity .2s; }
.pf-link:hover { opacity: 1; transform: translateY(-3px) scale(1.14); color: var(--accent); }
.g-links .pf-link { filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / .65)); }
.ls-buttons .pf-links { flex-direction: column; align-items: stretch; gap: 10px; }
.ls-buttons .pf-link { justify-content: flex-start; gap: 14px; padding: 13px 18px; border-radius: calc(var(--radius) * .6); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); font-weight: 600; }
.ls-buttons .pf-link:hover { transform: translateY(-2px); background: rgb(var(--accent-rgb) / .22); border-color: rgb(var(--accent-rgb) / .6); color: var(--text); }
.pf-empty { color: var(--muted); font-size: 13px; }
.pf.has-cursor, .pf.has-cursor * { cursor: inherit !important; }
.pf-widgets { width: min(640px, 100%); display: flex; flex-wrap: wrap; gap: 14px; flex: none; }
.pf-widget { flex: 1 1 260px; min-width: 0; }
.pf-widget:empty { display: none; }
.pf-widget.pf-glass { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.pf-widget.hint { opacity: .8; }
.pf-w-av { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 700; }
.pf-w-av img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.pf-w-av.square { border-radius: 14px; }
.pf-w-av i { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid rgb(var(--card-rgb)); background: #6b7280; }
.st-online i { background: #23a55a; } .st-idle i { background: #f0b232; } .st-dnd i { background: #f23f43; }
.pf-w-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pf-w-text b, .pf-w-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-w-text small { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #6b7280; display: inline-block; } .dot.on { background: #23a55a; } .dot + .dot { margin-left: 6px; }
.pf-join { padding: 7px 14px; border-radius: 9px; background: #23a55a; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; flex: none; }
.pf-join:hover { filter: brightness(1.1); }
.pf-playerslot { width: min(640px, 100%); flex: none; } .pf-playerslot:empty { display: none; }
.pf-player { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.pf-cover { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: calc(var(--radius) * .5); background: linear-gradient(135deg, rgb(var(--accent-rgb) / .6), rgb(var(--accent2-rgb) / .6)); }
.pf-pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-pl-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-pl-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .18); }
.pf-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.pf-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; }
.pf-pl-ctl { display: flex; align-items: center; gap: 4px; }
.pf-vol { flex: none; width: 64px; margin-left: 6px; }
.pf-pbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: var(--text); }
.pf-pbtn.small { width: 30px; height: 30px; background: none; } .pf-pbtn:hover { background: rgb(var(--accent-rgb) / .4); }
.pf-mute { position: absolute; top: 16px; left: 16px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); background: rgb(0 0 0 / .35); color: var(--text); backdrop-filter: blur(8px); }
.pf-mute:hover { background: rgb(var(--accent-rgb) / .4); }
.pf-enter { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; border: 0; background: rgb(5 4 12 / .6); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); color: var(--text); font: 500 clamp(18px, 3vw, 26px) var(--font, var(--ui)); letter-spacing: .12em; text-transform: lowercase; }
.pf-enter span { animation: enterp 2.4s ease-in-out infinite; text-shadow: 0 0 18px rgb(var(--accent-rgb) / .8); }
@keyframes enterp { 50% { opacity: .35; } }
.pf-preview .pf-stage { padding: 56px 14px 20px; justify-content: flex-start; } .pf-preview .pf-card { padding: 22px 20px 18px; gap: 18px; }
.pf-preview .pf-avatar { width: 78px; height: 78px; font-size: 30px; } .pf-preview .pf-name { font-size: 28px; }
.pf-preview .pf-vol { display: none; } .pf-preview .pf-mute { top: 10px; left: 10px; width: 34px; height: 34px; }
.pf-preview .pf-widget { flex-basis: 100%; }
.hero-frame .pf-stage { justify-content: safe center; padding: 24px 14px; }
@media (prefers-reduced-motion: reduce) { .pf *, .pf *::before, .pf *::after { animation: none !important; } }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1240px) {
  .dash { grid-template-columns: 232px minmax(0, 1fr); }
  .dash-preview { position: fixed; inset: 0; z-index: 60; height: auto; width: 100%; padding: 14px; transform: translateY(100%); transition: transform .3s; border: 0; }
  .dash.show-preview .dash-preview { transform: none; }
  .pv-close { display: inline-grid; } .pv-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; } .hero-frame { height: 480px; max-width: 100%; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; flex-direction: column; gap: 12px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; } .dash-tab { padding: 9px 12px; white-space: nowrap; }
  .side-bottom { display: none; }
  .dash-main { padding: 18px 14px 90px; }
  .grid2, .grid3, .switches { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pf-card { padding: 24px 18px 20px; } .pf-player { flex-wrap: wrap; } .pf-pl-ctl { margin-left: auto; }
  .card-lg { padding: 28px 20px; } .link-row { flex-wrap: wrap; } .lr-act { width: 100%; justify-content: flex-end; }
}




/* ── B3TA brand assets ───────────────────────────────────── */
.logo { display: inline-flex; align-items: center; width: max-content; }
.logo-full-image { display: block; width: auto; height: 54px; max-width: 58px; object-fit: contain; }
.dash-side .logo { min-height: 58px; padding: 0 8px; }
.dash-side .logo-full-image { height: 54px; max-width: 54px; }
@media (max-width: 520px) {
  .l-nav .logo-full-image { height: 48px; max-width: 50px; }
}


/* ── B3TA badge tiers ────────────────────────────────────── */
.pf-badges { flex-wrap: wrap; }
.pf-badge { align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid currentColor; border-radius: 50%; background: rgb(255 255 255 / .055); transition: transform .18s ease, background .18s ease; }
.pf-badge:hover { transform: translateY(-2px) scale(1.12); background: rgb(255 255 255 / .13); }
.pf-badge.badge-special { color: #fff; background: rgb(255 255 255 / .16); box-shadow: 0 0 12px rgb(255 255 255 / .16); }
.pf-badge.badge-staff { color: #d5d5d5; }
.pf-badge.badge-legacy { color: #bdbdbd; }
.pf-badge.badge-creator { color: #ededed; }
.pf-badge.badge-milestone { color: #a9a9a9; }
.pf-badge.badge-event { color: #f4f4f4; }


/* ── B3TA badge management ─────────────────────────────────── */
.badge-admin { gap: 18px; }
.badge-admin-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:26px; border:1px solid rgba(255,255,255,.12); border-radius:20px; background: radial-gradient(ellipse at 90% 0%,rgba(170,145,255,.2),transparent 48%),linear-gradient(135deg,#17152a,#0d0c17 72%); }
.badge-admin-hero h2 { font-size:clamp(24px,4vw,34px); margin:7px 0; letter-spacing:-.04em; }
.badge-admin-stat { min-width:104px; padding:14px 18px; text-align:center; border:1px solid rgba(255,255,255,.14); border-radius:16px; background:rgba(255,255,255,.045); }
.badge-admin-stat b { display:block; font:700 28px var(--display); }
.badge-admin-stat small { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.1em; }
.badge-member-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px; margin-top:12px; max-height:340px; overflow:auto; }
.badge-member { display:flex; align-items:center; gap:10px; min-width:0; padding:10px; text-align:left; border:1px solid var(--line2); border-radius:13px; background:rgba(255,255,255,.025); transition:.18s ease; }
.badge-member:hover,.badge-member.active { border-color:rgba(190,170,255,.55); background:rgba(160,140,255,.09); }
.badge-member-avatar { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:12px; background:linear-gradient(145deg,#b9a5ff,#6555a8); color:#100d1b; font-weight:800; }
.badge-member-avatar.large { width:48px; height:48px; border-radius:15px; font-size:19px; }
.badge-member-meta { display:flex; flex:1; min-width:0; flex-direction:column; }
.badge-member-meta b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.badge-member-meta small,.badge-admin-copy small { color:var(--muted); font-size:11px; }
.badge-member-count { display:grid; place-items:center; min-width:25px; height:25px; border-radius:8px; background:rgba(255,255,255,.07); font-size:11px; }
.badge-admin-detail { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:6px 0 14px; }
.badge-selected-user { display:flex; align-items:center; gap:12px; width:100%; padding:14px; border:1px solid var(--line2); border-radius:15px; background:rgba(255,255,255,.025); }
.badge-selected-user h3 { font-size:17px; margin-bottom:3px; }
.badge-selected-user .chip { margin-left:auto; }
.badge-filter-row { display:flex; gap:7px; flex-wrap:wrap; width:100%; }
.badge-filter-row .active { border-color:rgba(190,170,255,.55); background:rgba(160,140,255,.14); }
.badge-admin-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(245px,1fr)); gap:12px; }
.badge-admin-card { --badge-a:#a1a1aa; --badge-b:#52525b; position:relative; display:flex; align-items:center; gap:12px; min-width:0; padding:14px; border:1px solid color-mix(in srgb,var(--badge-a) 32%,transparent); border-radius:16px; background:linear-gradient(145deg,color-mix(in srgb,var(--badge-a) 12%,#11101b),#101019 72%); transition:transform .2s,border-color .2s,box-shadow .2s; }
.badge-admin-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--badge-a) 70%,transparent); box-shadow:0 12px 30px color-mix(in srgb,var(--badge-a) 12%,transparent); }
.badge-admin-card.owned { box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--badge-a) 25%,transparent),0 0 22px color-mix(in srgb,var(--badge-a) 10%,transparent); }
.badge-emblem { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:14px; color:#fff; background:linear-gradient(145deg,var(--badge-a),var(--badge-b)); box-shadow:0 5px 16px color-mix(in srgb,var(--badge-a) 28%,transparent); }
.badge-admin-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:2px; }
.badge-admin-copy b { font-size:13px; }
.badge-admin-copy small { line-height:1.35; }
.badge-rarity { align-self:flex-start; margin-top:4px; color:var(--badge-a); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.tier-common { --badge-a:#a1a1aa; --badge-b:#52525b; }
.tier-rare { --badge-a:#60a5fa; --badge-b:#1d4ed8; }
.tier-epic { --badge-a:#c084fc; --badge-b:#7e22ce; }
.tier-legendary { --badge-a:#fbbf24; --badge-b:#b45309; }
.tier-mythic { --badge-a:#fb7185; --badge-b:#9f1239; }
@media(max-width:600px){.badge-admin-hero{align-items:flex-start;flex-direction:column}.badge-admin-stat{display:flex;align-items:center;gap:10px}.badge-admin-stat b{font-size:22px}}


/* ── Refined badge collection ─────────────────────────────── */
.pf-badges { display:inline-flex; align-items:center; gap:6px; padding:5px 7px; margin-left:7px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(8,8,13,.72); backdrop-filter:blur(14px); box-shadow:0 8px 28px rgba(0,0,0,.22); vertical-align:middle; }
.pf-badge { position:relative; display:inline-grid; place-items:center; width:27px; height:27px; border:1px solid currentColor; border-radius:9px; background:linear-gradient(145deg,color-mix(in srgb,currentColor 23%,transparent),rgba(255,255,255,.025)); filter:drop-shadow(0 2px 5px color-mix(in srgb,currentColor 20%,transparent)); transition:transform .2s ease,filter .2s ease; }
.pf-badge:hover { transform:translateY(-3px) rotate(-4deg) scale(1.12); filter:drop-shadow(0 4px 9px currentColor); }
.pf-badge .ui-ico { width:15px; height:15px; }
.pf-badge.badge-special { color:#f6d78b; background:linear-gradient(145deg,rgba(246,215,139,.24),rgba(122,83,27,.14)); }
.pf-badge.badge-staff { color:#d5c2ff; background:linear-gradient(145deg,rgba(173,139,255,.24),rgba(73,48,130,.14)); }
.pf-badge.badge-creator { color:#8ed9ff; background:linear-gradient(145deg,rgba(94,190,255,.22),rgba(29,91,130,.14)); }
.pf-badge.badge-legacy { color:#b7c2d5; background:linear-gradient(145deg,rgba(183,194,213,.22),rgba(69,80,101,.14)); }
.pf-badge.badge-community { color:#a8e6c2; background:linear-gradient(145deg,rgba(107,218,157,.2),rgba(34,100,69,.14)); }
.pf-badge.badge-milestone { color:#ffb88a; background:linear-gradient(145deg,rgba(255,164,112,.22),rgba(133,67,35,.14)); }
.pf-badge.badge-event { color:#ff9fc8; background:linear-gradient(145deg,rgba(255,126,181,.22),rgba(130,44,87,.14)); }
.badge-admin-hero { background:radial-gradient(ellipse at 82% 0%,rgba(255,255,255,.12),transparent 42%),linear-gradient(135deg,#202027,#101014 72%); border-color:rgba(255,255,255,.13); }
.badge-admin-hero .eyebrow { color:#c8c8d0; }
.badge-admin-card { --badge-a:#a9a9b3; --badge-b:#45454f; align-items:flex-start; min-height:170px; padding:16px; background:linear-gradient(155deg,color-mix(in srgb,var(--badge-a) 9%,#151519),#101014 75%); border-color:color-mix(in srgb,var(--badge-a) 25%,transparent); }
.badge-emblem { width:48px; height:48px; border-radius:15px; border:1px solid color-mix(in srgb,var(--badge-a) 55%,transparent); background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.34),transparent 42%),linear-gradient(145deg,var(--badge-a),var(--badge-b)); box-shadow:0 7px 20px color-mix(in srgb,var(--badge-a) 20%,transparent),inset 0 1px rgba(255,255,255,.3); }
.badge-admin-copy { gap:5px; padding-top:2px; }
.badge-admin-copy b { font-size:14px; letter-spacing:-.02em; }
.badge-admin-copy small { line-height:1.45; }
.badge-howto { display:flex; flex-direction:column; gap:3px; margin-top:5px; padding:8px 9px; border-radius:9px; background:rgba(255,255,255,.045); color:#c7c7d0; font-size:11px; line-height:1.45; }
.badge-howto b { color:#8f8f9b; font-size:9px; letter-spacing:.12em; }
.badge-rarity { padding:3px 7px; border:1px solid color-mix(in srgb,var(--badge-a) 35%,transparent); border-radius:99px; background:color-mix(in srgb,var(--badge-a) 10%,transparent); }
.tier-common { --badge-a:#b7b7c2; --badge-b:#555560; }
.tier-rare { --badge-a:#83c8ff; --badge-b:#28649c; }
.tier-epic { --badge-a:#c3a1ff; --badge-b:#6844a5; }
.tier-legendary { --badge-a:#f5d17b; --badge-b:#956321; }
.tier-mythic { --badge-a:#ff9ebd; --badge-b:#9c3d61; }
