/* RaPay creator dashboard. Brand: #F5AD27 orange, #000 black, #FFF white, #FFD400 yellow. */
:root {
  --bg: #000000; --panel: #0f0e0c; --card: #151411; --card-2: #1c1a16; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #ffffff; --muted: #a8a49c; --gold: #f5ad27; --yellow: #ffd400; --gold-soft: rgba(245,173,39,.13); --green: #3ddc84; --red: #ff6b6b;
  --r: 18px; --side: 260px;
  --font: "Google Sans", "Noto Sans Georgian", system-ui, sans-serif;
  --display: "Montserrat", "Google Sans", "Noto Sans Georgian", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.mt { margin-top: 22px; }

/* ---------- Layout ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; gap: 8px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--panel); border-right: 1px solid var(--line); }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 20px; font: italic 900 22px "Montserrat", sans-serif; }
.side__nav { display: grid; gap: 4px; }
.side__nav a, .side__back { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #d8d4cc; font-weight: 600; transition: background .2s, color .2s; }
.side__nav a:hover, .side__back:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side__nav a[aria-current="page"] { background: var(--gold-soft); color: var(--yellow); box-shadow: inset 3px 0 0 var(--gold); }
.side__nav svg, .side__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side__back { margin-top: auto; color: var(--muted); }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; margin-left: var(--side); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 24px; background: rgba(0,0,0,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: #000; }
.top__menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); place-items: center; }
.top__menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.lang button { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #000; }

.main { margin-left: var(--side); padding: 32px max(24px, env(safe-area-inset-right, 0px)) 80px 32px; max-width: calc(1240px + var(--side)); }
.view { display: grid; gap: 22px; animation: fadein .35s ease; }
.view[hidden], [hidden] { display: none !important; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.loading { display: none; }
body.is-loading .loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(245,173,39,.2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.head h1 { font-size: clamp(24px, 3vw, 34px); }
.head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
.card h2 { font-size: 18px; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.card__head p { font-size: 13.5px; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid2--even { grid-template-columns: 1fr 1fr; }
.grid2--design { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.col { display: grid; gap: 22px; min-width: 0; }
.card--tall { position: sticky; top: 88px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(245,173,39,.16), transparent 70%); }
.stat__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.stat__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.lari { font-style: normal; font-weight: 800; font-size: 20px; }
.stat__label { display: block; color: var(--muted); font-size: 13.5px; }
.stat__num { display: block; font-family: var(--display); font-size: 28px; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.stat__hint { display: block; color: var(--muted); font-size: 12.5px; }
.chip { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.up { background: rgba(61,220,132,.12); color: var(--green); }

.copyrow { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.copyrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px ui-monospace, "Cascadia Code", Consolas, monospace; color: #e8e4dc; }
.copyrow code.secret:not(.is-shown) { filter: blur(6px); user-select: none; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: transform .2s, box-shadow .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(120deg, var(--gold), var(--yellow)); color: #000; box-shadow: 0 8px 22px rgba(245,173,39,.25); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn--danger { color: var(--red); }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.row-start { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.saved { color: var(--green); font-size: 14px; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #000; border: 1px solid var(--line); width: fit-content; max-width: 100%; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; }
.seg button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg--big { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; }
.seg--big button { padding: 12px; border-radius: 12px; font-size: 15px; }
.seg--big button[aria-selected="true"] { background: var(--gold-soft); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(245,173,39,.35); }

label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
input:not([type]), input[type="text"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--text); transition: border-color .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.note { color: var(--muted); font-size: 13.5px; text-align: center; }
.warn { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(245,173,39,.08); border: 1px solid rgba(245,173,39,.25); color: #f3d9a4; font-size: 13.5px; }
.fields { display: grid; gap: 4px; }
.fields input, .fields textarea { margin-bottom: 12px; }
.form-grid { display: grid; gap: 22px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-count { position: relative; }
.input-count .count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.prefix { display: flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line-2); background: #000; overflow: hidden; }
.prefix span { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font-size: 14px; background: rgba(255,255,255,.03); border-right: 1px solid var(--line); white-space: nowrap; }
.prefix input { border: 0; border-radius: 0; min-width: 0; }
.prefix:focus-within { border-color: var(--gold); }

.avatar-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--card-2) center / cover no-repeat; border: 2px solid rgba(245,173,39,.4); display: grid; place-items: center; font: 800 34px var(--display); color: var(--gold); }
.avatar-row h3 { font-size: 16px; margin-bottom: 10px; }
.upload { position: relative; overflow: hidden; margin: 0; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--muted); font-weight: 600; }
.toggle__track { width: 40px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: background .2s; }
.toggle__dot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle[aria-checked="true"] .toggle__track { background: var(--gold); }
.toggle[aria-checked="true"] .toggle__dot { transform: translateX(18px); }
.toggle[aria-checked="true"] .toggle__on, .toggle[aria-checked="false"] .toggle__off { color: var(--text); }

.colorpick { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; }
.colorpick input[type="color"] { width: 100%; height: 44px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; cursor: pointer; }

/* ---------- Empty states, goals ---------- */
.empty { text-align: center; padding: 28px 12px; display: grid; justify-items: center; gap: 10px; }
.empty__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 6px; }
.empty__ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 44ch; }
.empty .row-start { justify-content: center; }
.steps { display: grid; gap: 10px; width: 100%; max-width: 460px; margin: 8px auto 0; text-align: left; }
.steps li { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #000; border: 1px solid var(--line); font-weight: 600; }
.steps li b { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--display); }
.steps ul { padding: 0; margin: 0; }

.goal { padding: 18px; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.goal + .goal { margin-top: 12px; }
.goal__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.goal h3 { font-size: 16px; }
.goal p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.goal__nums { display: flex; justify-content: space-between; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.goal__nums strong { font: 800 22px var(--display); }
.goal__nums span { color: var(--muted); align-self: flex-end; }
.bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--yellow)); min-width: 4px; }
.goal-form { display: grid; gap: 4px; }

.dlist { width: 100%; border-collapse: collapse; }
.dlist th, .dlist td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dlist th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- Chart ---------- */
.chart { height: 220px; }
.chart svg { width: 100%; height: 100%; }
.chart .axis { stroke: rgba(255,255,255,.12); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }

/* ---------- QR ---------- */
.qr-card { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.qr-card__code { padding: 14px; border-radius: 20px; background: #000; border: 1px solid var(--line); }
.qr-card__code canvas { display: block; width: 200px; height: 200px; border-radius: 12px; }
.qr-card__body h2 { margin-bottom: 6px; }
.qr-card__body .f2 { margin-top: 18px; }

/* ---------- Stream ---------- */
.howto { margin: 14px 0 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.howto li { list-style: none; counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: #d8d4cc; }
.howto li::before { content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: 13px; }

.ranges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0; }
.ranges > div:first-child { flex: 1 1 240px; }
.ranges__list { display: flex; gap: 8px; flex-wrap: wrap; }
.ranges__list button { border: 1px solid var(--line-2); background: #000; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.ranges__list button[aria-pressed="true"] { border-color: var(--gold); color: var(--yellow); background: var(--gold-soft); }

.controls { display: grid; gap: 18px; margin-top: 18px; }
.ctl label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ctl label output { color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.ctl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctl-type { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: #000; }
.stepper button { width: 36px; height: 40px; border: 0; background: none; font-size: 18px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.boldbtn { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; font-weight: 800; }
.boldbtn[aria-pressed="true"] { border-color: var(--gold); color: var(--yellow); }
.ctl-type input[type="color"], .ctl input[type="color"] { width: 100%; height: 42px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; }
.media { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.media img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #111; }
.media .row-start { margin: 0; }

.preview-card { position: sticky; top: 88px; }
.stage-preview { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(245,173,39,.25), transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,212,0,.12), transparent 45%),
    repeating-linear-gradient(45deg, #121110 0 14px, #0b0a09 14px 28px); border: 1px solid var(--line); }
.alertbox { position: absolute; inset: 6%; border-radius: 16px; transition: opacity .4s ease, transform .4s ease; }
.alertbox.is-off { opacity: 0; transform: scale(.92); }
.alertbox.is-pop { animation: alertin .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes alertin { from { opacity: 0; transform: scale(.8) translateY(10px); } to { opacity: 1; transform: none; } }
.alertbox img { position: absolute; transform: translate(-50%, -50%); object-fit: contain; }
.a-name, .a-msg { position: absolute; left: 6%; right: 6%; transform: translateY(-50%); text-align: center; font-family: var(--display); line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.7); overflow-wrap: anywhere; }

/* ---------- Wall ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.wcard { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.wcard__who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wcard__who .avatar { width: 38px; height: 38px; font-size: 15px; border-width: 1px; }
.wcard__box { padding: 18px; border-radius: 14px; background: #000; min-height: 170px; display: flex; flex-direction: column; }
.wcard__box h3 { font-size: 16px; }
.wcard__box p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.wcard__box .goal__nums { margin-top: auto; padding-top: 18px; }
.wcard__foot { display: flex; align-items: center; gap: 8px; }
.vote { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; font-weight: 700; font-variant-numeric: tabular-nums; }
.vote[aria-pressed="true"] { border-color: var(--gold); color: var(--yellow); }
.vote svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.wcard__foot .btn { margin-left: auto; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; padding: 12px 18px; border-radius: 12px; background: var(--card-2); border: 1px solid rgba(245,173,39,.4); color: var(--yellow); font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid2, .grid2--design { grid-template-columns: 1fr; }
  .card--tall, .preview-card { position: static; }
}
@media (max-width: 900px) {
  .side { transform: translateX(-105%); transition: transform .3s ease; box-shadow: 20px 0 50px rgba(0,0,0,.6); }
  body.menu-open .side { transform: none; }
  .top, .main { margin-left: 0; }
  .top__menu { display: grid; }
  .main { padding: 22px max(16px, env(safe-area-inset-right, 0px)) 70px max(16px, env(safe-area-inset-left, 0px)); }
  .top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .stats { grid-template-columns: 1fr; }
  .grid2--even, .f2, .ctl2 { grid-template-columns: 1fr; }
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .qr-card .row-start { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.test-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.test-grid__wide { grid-column: 1 / -1; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); vertical-align: middle; }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }

/* checkbox rows (sound / read-aloud) */
.chk { display: flex; align-items: center; gap: 10px; margin: 4px 0; cursor: pointer; font-weight: 600; }
.chk input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
#t-snd-wrap select { flex: 1; min-width: 0; }

/* goal widget */
.gw-ctl { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.gw-ctl input[type=color] { width: 100%; height: 44px; padding: 4px; }
@media (max-width: 700px) { .gw-ctl { grid-template-columns: 1fr 1fr; } }
.gw-prev { --gc: #f5ad27; padding: 16px 20px; border-radius: 16px; margin-bottom: 14px; background: repeating-conic-gradient(#1a1a1a 0 25%, #121212 0 50%) 0 0 / 20px 20px; font-family: "Montserrat", sans-serif; }
.gw-prev.is-bg { box-shadow: inset 0 0 0 999px rgba(0,0,0,.55); }
.gw-top { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.gw-pp { color: var(--gc); }
.gw-bar { height: 22px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.gw-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gc), #ffd400); transition: width .6s; }
.gw-nums { margin-top: 8px; font-weight: 800; font-size: 14px; opacity: .9; }

/* widgets / media / stats */
.gw-ctl--5 { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.gw-ctl--4 { grid-template-columns: auto auto 1fr 1fr; }
@media (max-width: 800px) { .gw-ctl--5, .gw-ctl--4 { grid-template-columns: 1fr 1fr; } }
.wg-prev { height: 300px; border-radius: 16px; overflow: hidden; margin-bottom: 14px; background: repeating-conic-gradient(#1a1a1a 0 25%, #121212 0 50%) 0 0 / 20px 20px; }
.wg-prev.is-ticker { height: 90px; }
.wg-prev iframe { width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; } /* same scheme as the overlay page, so the iframe stays see-through */
.stats--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .stats--5 { grid-template-columns: repeat(2, 1fr); } }
.bars { display: flex; align-items: stretch; gap: 4px; height: 200px; margin-top: 14px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bar-col__v { flex: 1; display: flex; align-items: flex-end; }
.bar-col__v span { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(0deg, #f5ad27, #ffd400); }
.bar-col small { font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.bars--7 .bar-col small { font-size: 12px; }
td.row-start { gap: 6px; flex-wrap: nowrap; }

/* polls / animations / api */
.side__extra { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 12px 6px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.side__extra svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side__extra:hover, .side__extra[aria-current="page"] { color: #fff; background: rgba(255,255,255,.05); }
.pl-opts { display: grid; gap: 8px; margin-bottom: 10px; }
.pl-opt { display: flex; gap: 8px; } .pl-opt input { flex: 1; }
.pl-card.is-active { border-color: var(--gold); }
.pl-res { margin-top: 12px; } .pl-res__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-weight: 600; }
.pl-res__top strong { color: var(--muted); white-space: nowrap; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 12px; }
.an-item { display: grid; justify-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line); background: #000; color: var(--text); }
button.an-item { cursor: pointer; } button.an-item:hover { border-color: var(--gold); }
.an-item img { width: 100%; height: 90px; object-fit: contain; }
.an-item input { width: 100%; text-align: center; }
.an-emo { height: 56px; display: grid; place-items: center; }
.api-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
pre.code { margin: 10px 0 0; padding: 14px 16px; border-radius: 12px; background: #000; border: 1px solid var(--line); color: #e8e3d8; font: 13px/1.55 ui-monospace, Consolas, monospace; overflow-x: auto; white-space: pre; }

/* style pickers */
.stys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 6px 0 14px; }
@media (max-width: 800px) { .stys { grid-template-columns: repeat(3, 1fr); } }
.sty { display: grid; gap: 6px; justify-items: center; padding: 8px 6px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--muted); font-weight: 600; font-size: 12px; cursor: pointer; }
.sty[aria-pressed="true"] { border-color: var(--gold); color: #fff; box-shadow: 0 0 0 3px rgba(245,173,39,.18); }
.sty__pic { width: 100%; height: 34px; border-radius: 8px; background: #151411; position: relative; overflow: hidden; }
.sty__pic::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 8px; margin-top: -4px; border-radius: 99px; background: linear-gradient(90deg, #f5ad27 0 62%, rgba(255,255,255,.18) 62%); }
.sty__pic--g-neon { background: #0a0816; box-shadow: inset 0 0 0 1.5px #f5ad27, 0 0 10px rgba(245,173,39,.4); }
.sty__pic--g-neon::after { box-shadow: 0 0 8px #f5ad27; }
.sty__pic--g-glass, .sty__pic--w-glass { background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); }
.sty__pic--g-minimal { background: transparent; } .sty__pic--g-minimal::after { height: 4px; margin-top: -2px; }
.sty__pic--g-bold { background: #000; box-shadow: inset 0 0 0 2px #f5ad27; } .sty__pic--g-bold::after { height: 14px; margin-top: -7px; border-radius: 4px; background: repeating-linear-gradient(-45deg, #f5ad27 0 6px, #ffd400 6px 12px); right: 30%; }
.sty__pic--g-ring::after { left: 50%; right: auto; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: conic-gradient(#f5ad27 0 62%, rgba(255,255,255,.18) 62%); -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); }
[class*="sty__pic--w-"]::after { left: 14%; right: 14%; top: 22%; height: 4px; margin: 0; box-shadow: 0 9px 0 rgba(255,255,255,.3), 0 18px 0 rgba(255,255,255,.2); background: #f5ad27; }
.sty__pic--w-podium::after { top: auto; bottom: 0; left: 18%; right: auto; width: 20%; height: 22px; border-radius: 3px 3px 0 0; box-shadow: 16px 6px 0 #d9dde3, 32px 10px 0 #d08a4c; background: #f5ad27; }
.sty__pic--w-cards::after { height: 7px; border-radius: 3px; box-shadow: 0 10px 0 rgba(255,255,255,.25), 0 20px 0 rgba(255,255,255,.18); }
.sty__pic--w-neon { background: #0a0816; box-shadow: inset 0 0 0 1.5px #f5ad27, 0 0 10px rgba(245,173,39,.4); }
.sty__pic--w-minimal { background: transparent; }
.wg-prev.is-ring { height: 360px; }
#gw-prev { --k: .5; position: relative; height: auto; aspect-ratio: 16 / 9; margin: 0; background: #1a1a1a center / cover no-repeat; }
#gw-prev iframe { position: absolute; left: calc(50% - 400px * var(--k)); top: calc(50% - 100px * var(--k)); width: 800px; height: 200px; transform: scale(var(--k)); transform-origin: 0 0; } /* real 800×200 overlay on a sample scene */

/* stream integration group */
.nav-grp__btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: #d8d4cc; font: inherit; font-weight: 600; cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.nav-grp__btn:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-grp__btn.is-on { color: var(--yellow); }
.nav-grp__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-grp__btn span { flex: 1; }
.nav-grp__chev { width: 16px !important; height: 16px !important; transition: transform .2s; }
.nav-grp__btn[aria-expanded="true"] .nav-grp__chev { transform: rotate(180deg); }
.nav-grp__sub { display: grid; gap: 2px; margin: 2px 0 4px 21px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.side__nav .nav-grp__sub a { padding: 9px 12px; font-size: 14.5px; }
.side__nav .nav-grp__sub a[aria-current="page"] { box-shadow: none; }
#plw-prev { height: 340px; }

/* goals: active / finished */
.seg__n { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 12px; }
.gcard { position: relative; }
.gcard .goal { border: 0; padding: 0; background: none; }
.gbadge { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.gbadge--on { background: rgba(61,220,132,.12); color: #3ddc84; }
.gd { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; }
.gd li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.03); }
.gd li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd li strong { color: var(--yellow); }
.gd__r { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); font-weight: 800; font-size: 13px; }
.gd__r--1 { background: #f5ad27; color: #000; } .gd__r--2 { background: #d9dde3; color: #000; } .gd__r--3 { background: #d08a4c; color: #000; }
.gd__c { color: var(--muted); font-size: 13px; }
.gd__test { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.gd-title { margin: 14px 0 4px; font-size: 15px; }
.gd-empty { margin: 8px 0 14px; }
p.small { font-size: 12.5px; margin-top: 4px; }
/* captcha */
.hv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.hv__card { width: min(380px, 100%); padding: 26px 24px; border-radius: 20px; background: #111; border: 1px solid var(--line-2); text-align: center; display: grid; gap: 10px; justify-items: center; }
.hv__card h2 { margin: 0; }
.hv__err { color: #ff6b6b; min-height: 1em; margin: 0; }

/* support inbox */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ff3b5c; color: #fff; font-size: 12px; display: grid; place-items: center; }
.sp { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .sp { grid-template-columns: 1fr; } }
.sp__list { display: grid; gap: 6px; max-height: 70vh; overflow-y: auto; padding: 10px; }
.sp__item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; }
.sp__item:hover { background: rgba(255,255,255,.06); }
.sp__item.is-on { border-color: var(--gold); }
.sp__item span { color: var(--muted); font-size: 12px; }
.sp__item p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 26px; }
.sp__item.is-new b, .sp__item.is-new p { color: #fff; }
.sp__item i { position: absolute; right: 10px; bottom: 10px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--gold); color: #000; font: 800 11px/18px sans-serif; text-align: center; font-style: normal; }
.sp__conv { display: flex; flex-direction: column; min-height: 420px; }
.sp__who { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.sp__who a { color: var(--gold); }
.sp__msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 0; max-height: 55vh; overflow-y: auto; }
.sp__m { max-width: 75%; }
.sp__m p { margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.sp__m small { display: block; margin: 4px 6px 0; color: var(--muted); font-size: 11.5px; }
.sp__m--u { align-self: flex-start; } .sp__m--u p { background: rgba(255,255,255,.07); border-bottom-left-radius: 6px; }
.sp__m--a { align-self: flex-end; text-align: right; } .sp__m--a p { background: linear-gradient(135deg, #f5ad27, #ffd400); color: #000; font-weight: 600; text-align: left; border-bottom-right-radius: 6px; }
.sp__form { display: flex; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--line-2); }
.sp__form textarea { flex: 1; resize: vertical; }

/* ---------- Settings: personal details ---------- */
.pd__h { font-size: 20px; }
.pd__edit { display: inline-flex; align-items: center; gap: 8px; }
.pd__edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd__sub { font-size: 18px; margin: 10px 0 18px; }
.pd__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px 24px; }
.pd__f label { font-weight: 500; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.pd__f output { display: block; font-weight: 700; font-size: 15.5px; min-height: 22px; overflow-wrap: anywhere; }
.pd__f output.is-empty { color: var(--muted); font-weight: 500; }
.pd__f--wide { max-width: 420px; margin-top: 18px; }
.pd__f--wide output { letter-spacing: .02em; }
.pd__hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0 8px; }
.pd__note { font-size: 13.5px; max-width: 52ch; margin-top: -10px; }
.pd__err { color: var(--red); font-size: 13.5px; margin-top: 12px; min-height: 1px; }
.pd.is-edit .pd__edit { display: none; }
input[type="tel"], input[type="date"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--text); color-scheme: dark; }

/* ---------- Verification ---------- */
.ver-badge { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.ver-badge.is-ok { background: rgba(61,220,132,.12); color: var(--green); }
.ver-steps { display: grid; gap: 10px; padding: 20px; margin: 0; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.ver-steps li { list-style: none; display: flex; align-items: center; gap: 14px; padding: 6px 0; color: var(--muted); }
.ver-steps li b { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--display); font-size: 14px; }
.ver-steps li.is-done b { background: rgba(61,220,132,.14); color: var(--green); }
.ver-steps li strong { color: var(--text); font-weight: 600; }
.ver-steps li .btn { margin-left: auto; }
.ver-steps li em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); }

/* Devices */
.dev-list { display: grid; gap: 10px; padding: 0; margin: 0; }
.dev { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.dev.is-cur { border-color: rgba(61,220,132,.35); }
.dev__ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.dev.is-cur .dev__ic { background: rgba(61,220,132,.12); color: var(--green); }
.dev__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dev__txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.dev__txt strong { color: var(--text); font-weight: 600; }
.dev__txt span { color: var(--text); opacity: .8; font-size: 13.5px; }
.dev__txt small { color: var(--muted); font-size: 12.5px; }
.dev__cur { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; margin-left: 6px; border-radius: 999px; background: rgba(61,220,132,.12); color: var(--green); vertical-align: 1px; }
.dev .btn { flex: none; }
@media (max-width: 560px) { .dev { flex-wrap: wrap; } .dev .btn { width: 100%; } }

/* Goal design library */
.glib { margin: 6px 0 16px; }
.glib__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.glib__head label { margin: 0; }
.glib__tabs { display: flex; gap: 6px; }
.glib__tabs button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #000; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.glib__tabs button[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.glib__grid { --k: .3; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 430px; overflow-y: auto; padding: 2px; }
.glib__tile { display: grid; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: #0b0b0b; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.glib__tile[hidden] { display: none; }
.glib__tile:hover { border-color: var(--line); color: var(--text); }
.glib__tile[aria-pressed="true"] { border-color: var(--gold); color: #fff; box-shadow: 0 0 0 3px rgba(245,173,39,.18); }
.glib__frame { position: relative; display: block; aspect-ratio: 4 / 1; overflow: hidden; border-radius: 10px; background: repeating-conic-gradient(#1a1a1a 0 25%, #121212 0 50%) 0 0 / 14px 14px; }
.glib__frame iframe { color-scheme: normal; position: absolute; left: 0; top: 0; width: 800px; height: 200px; border: 0; transform: scale(var(--k)); transform-origin: 0 0; pointer-events: none; }
.glib__name { display: flex; align-items: center; gap: 6px; }
.glib__name em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,77,141,.18), rgba(245,173,39,.18)); color: #ffb86b; }
.gw-ctl--goal { grid-template-columns: 1.6fr 1.3fr 1fr 1fr 1fr auto; }
@media (max-width: 900px) { .gw-ctl--goal { grid-template-columns: 1fr 1fr; } }

.gw-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 16px; }
.gw-split .glib { margin: 0; }
.gw-split .glib__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); max-height: 520px; }
.gw-view { position: sticky; top: 76px; display: grid; gap: 10px; }
.gw-view .hint { margin: 0; }
.gw-bgs { flex-wrap: wrap; }
.gw-bgs button { padding: 6px 12px; font-size: 12.5px; }
@media (max-width: 1100px) { .gw-split { grid-template-columns: 1fr; } .gw-view { position: static; } }

/* ---------- premium lock on animated goal designs ---------- */
.glib__tile { position: relative; }
.glib__lock { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #000; color: var(--yellow);
  font: 800 10px/1 var(--display, Montserrat), sans-serif; letter-spacing: .06em; box-shadow: 0 0 0 1px rgba(245,173,39,.55); }
.glib__lock svg { width: 11px; height: 11px; fill: var(--gold); stroke: none; }
.glib__grid.is-prem .glib__lock { opacity: .55; }
.nav-prem svg { color: var(--gold); }

/* ---------- account card ---------- */
.acc { margin-bottom: 18px; }
.acc__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.acc__f > label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.acc__id { display: flex; align-items: center; gap: 10px; }
.acc__id code { font: 800 22px var(--display, Montserrat), sans-serif; color: var(--yellow); letter-spacing: .04em; }
.acc__badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 24px; min-height: 30px; }
.acc__badges .rlv, .acc__badges .rbadges { margin-left: 0; }
.acc__bn { font-size: 13px; }
.acc__dcico { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.plan-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 800 11px/1 var(--display, Montserrat), sans-serif; letter-spacing: .06em; background: var(--card-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-pill.is-on { background: linear-gradient(120deg, var(--gold), var(--yellow)); color: #000; box-shadow: none; }
#acc-plan { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.dc { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dc__me { display: flex; align-items: center; gap: 12px; }
.dc__me img, .dc__me > .ico { width: 42px; height: 42px; border-radius: 50%; }
.dc__me div { display: grid; }
.dc__me small { color: var(--muted); }
.dc .btn .ico { width: 16px; height: 16px; }

/* ---------- premium page ---------- */
.prem { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
.prem__card { position: relative; overflow: hidden; border-color: rgba(245,173,39,.45); background: radial-gradient(120% 80% at 100% 0, rgba(255,212,0,.12), transparent 60%), var(--card); }
.prem__card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,212,0,.08) 50%, transparent 60%); transform: translateX(-100%); animation: premshine 5s ease-in-out infinite; pointer-events: none; }
@keyframes premshine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.prem__tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: linear-gradient(120deg, var(--gold), var(--yellow)); color: #000; font: 900 12px/1 var(--display, Montserrat), sans-serif; letter-spacing: .1em; }
.prem__price { margin: 14px 0 18px; color: var(--muted); }
.prem__price b { font: 900 44px/1 var(--display, Montserrat), sans-serif; color: var(--text); }
.prem__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.prem__list li { display: flex; gap: 12px; align-items: flex-start; }
.prem__list li > svg { width: 36px; height: 36px; flex: none; padding: 8px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prem__list li span { display: grid; gap: 2px; }
.prem__list small { color: var(--muted); font-size: 13px; }
.prem__list--muted li::before { content: "✓"; color: var(--muted); }
.prem__buy { width: 100%; }
.prem__on { color: var(--green); font-weight: 700; }
@media (max-width: 860px) { .prem { grid-template-columns: 1fr; } }

/* ---------- admin panel ---------- */
.adm-find { display: flex; gap: 10px; }
.adm-find input { flex: 1; min-width: 0; font-size: 18px; letter-spacing: .04em; }
.adm-card { margin-top: 16px; display: grid; gap: 8px; }
.adm-av { width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.adm-av img { width: 100%; height: 100%; object-fit: cover; }
.dev__txt strong .rbadges, .dev__txt strong .rlv { font-size: 18px; }
.adm-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-b { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #000; border: 1px solid var(--line-2); cursor: pointer; font-size: 14px; }
.adm-b .rbadges { font-size: 22px; margin: 0; }
.adm-b:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,173,39,.15); }
.adm-prem { display: flex; flex-wrap: wrap; gap: 8px; }

/* glowing admin tab (owners only) */
.side__nav a.nav-admin { position: relative; color: var(--yellow); background: linear-gradient(90deg, rgba(245,173,39,.16), rgba(255,212,0,.05)); box-shadow: inset 0 0 0 1px rgba(245,173,39,.45); animation: admglow 2.4s ease-in-out infinite; }
.side__nav a.nav-admin svg { color: var(--yellow); filter: drop-shadow(0 0 4px rgba(255,212,0,.8)); }
@keyframes admglow { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(245,173,39,.45), 0 0 0 rgba(245,173,39,0); } 50% { box-shadow: inset 0 0 0 1px rgba(255,212,0,.9), 0 0 18px rgba(245,173,39,.45); } }
@media (prefers-reduced-motion: reduce) { .side__nav a.nav-admin { animation: none; } }
.acc__lv { margin-top: 10px; font-size: 13px; }
.acc__badges .rtip .rlv, .acc__badges .rbadges { margin-left: 0; }

/* admin: full badge list */
.adm-b { min-width: 220px; }
.adm-b span { display: grid; gap: 2px; }
.adm-b small { color: var(--muted); font-size: 11.5px; }
.adm-b.is-locked { opacity: .7; cursor: not-allowed; }
.adm-b.is-locked.is-has { opacity: 1; }
.adm-b .rbadges { font-size: 24px; }
.adm-danger { color: var(--red); }
#adm-del.is-sure { background: rgba(255,107,107,.15); border-color: var(--red); }
.acc__badges { font-size: 28px; }

/* donate page background (Settings, Premium) */
.bgup h2 .plan-pill { vertical-align: middle; margin-left: 6px; }
.bgup__prev { position: relative; aspect-ratio: 16 / 7; border-radius: 16px; border: 1px dashed var(--line-2); background: #000 center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 13px; margin: 4px 0 14px; overflow: hidden; }
.bgup__prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bgup__prev.has-img { border-style: solid; }
.bgup__prev.has-img span { display: none; }
.bgup__opts { display: grid; gap: 10px; }
.bgup__opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.bgup__opt > svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bgup__opt > div { flex: 1; display: grid; gap: 2px; }
.bgup__opt small { color: var(--muted); font-size: 13px; }
.bgup__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.bgup__row .hint { margin: 0; }
.bgup.is-locked .bgup__prev, .bgup.is-locked .bgup__opt { opacity: .55; }
.bgup.is-locked .bg-pick { pointer-events: none; }
@media (max-width: 560px) { .bgup__opt { flex-wrap: wrap; } .bgup__opt .bg-pick { width: 100%; justify-content: center; } }

/* simpler sidebar: small group titles, rarely used links at the bottom */
.side__grp { margin: 14px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.side__more { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 24px 4px; border-top: 1px solid var(--line); }
.side__more a { font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.side__more a:hover, .side__more a[aria-current="page"] { color: var(--yellow); }

/* free plan card */
.prem__free { position: relative; background: radial-gradient(120% 80% at 0 0, rgba(255,255,255,.05), transparent 60%), var(--card); }
.prem__tag--free { background: rgba(255,255,255,.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.prem__list--free li > svg { background: rgba(255,255,255,.06); color: #d8d4cc; }
.prem__cur { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 13px; text-align: center; font-weight: 700; }

/* background gallery */
.bgup__prev > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bgup__opt--gal { border-color: rgba(245,173,39,.35); background: linear-gradient(90deg, rgba(245,173,39,.08), transparent); }
.bggal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.bggal[hidden] { display: none; }
.bggal__c { width: min(980px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: #111; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0,0,0,.6); }
.bggal__h { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.bggal__x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 2px 8px; }
.bggal__cats { display: flex; gap: 6px; flex-wrap: wrap; }
.bggal__cats button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #000; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bggal__cats button[aria-pressed="true"] { border-color: var(--gold); color: var(--yellow); background: var(--gold-soft); }
.bggal__grid { overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 2px; }
.bggal__it { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #000; cursor: pointer; }
.bggal__it svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bggal__it:hover, .bggal__it:focus-visible { border-color: var(--gold); }
.bggal__it.is-on { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,212,0,.25); }
.bggal__it i { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font: 800 10px/1.4 inherit; font-style: normal; letter-spacing: .05em; }
.bggal__it i.gif { left: auto; right: 6px; background: var(--gold); color: #000; }
.bggal__grid { flex: 1; min-height: 0; align-content: start; }
.bggal__it { aspect-ratio: auto; height: 0; padding: 56.25% 0 0; display: block; width: 100%; }
.bggal__it i { max-width: calc(100% - 60px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bggal__kind { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.bggal__kind button { padding: 10px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.bggal__kind button[aria-pressed="true"] { background: linear-gradient(120deg, var(--gold), var(--yellow)); color: #000; }
/* the sidebar scrolls when the window is short, so every link stays reachable */
.side__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; scrollbar-width: thin; }
.adm-dc { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.adm-dc li.is-ok { color: var(--green); } .adm-dc li.is-bad { color: #ff6b6b; } .adm-dc li.is-info { color: var(--muted); }
.adm-dc code { color: var(--text); background: #000; padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* page views on the statistics page */
.stx-views { margin-bottom: 18px; }
.stx-views__tot { display: flex; align-items: baseline; gap: 8px 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.stx-views__tot b { font: 900 22px/1 var(--display, Montserrat), sans-serif; color: var(--text); margin-right: 10px; font-variant-numeric: tabular-nums; }
/* free trial */
.prem__trial { margin-top: 12px; display: grid; gap: 6px; }
.prem__trialbtn { width: 100%; border-color: rgba(245,173,39,.5); color: var(--yellow); }
/* badges page */
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bdg { display: flex; gap: 16px; align-items: flex-start; }
.bdg.is-has { border-color: rgba(245,173,39,.5); }
.bdg__icon { font-size: 40px; line-height: 1; flex: none; width: 56px; display: grid; place-items: center; }
.bdg__icon .rbadges { margin: 0; }
.bdg h3 { margin: 2px 0 6px; font-size: 16px; }
.bdg p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.bdg__how b { color: var(--text); }
.bdg__mine { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--yellow); vertical-align: middle; }
/* premium design preview popup */
.pmodal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.pmodal[hidden] { display: none; }
.pmodal__c { width: min(440px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: #111; box-shadow: 0 0 0 1px rgba(245,173,39,.45), 0 30px 80px rgba(0,0,0,.6); }
.pmodal__c h2 { margin: 0; font-size: 20px; }
.pmodal__c p { margin: 0; }
.pmodal__c .prem__tag { justify-self: start; }
.pmodal__btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.glib__tile.is-preview { box-shadow: 0 0 0 2px #2bb3ff; }

/* test donations: glowing "test" label in every list */
.testtag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; vertical-align: middle;
  color: #000; background: linear-gradient(90deg, #F5AD27, #FFD400); box-shadow: 0 0 10px rgba(255,212,0,.7); animation: testglow 1.6s ease-in-out infinite; }
@keyframes testglow { 0%, 100% { box-shadow: 0 0 6px rgba(255,212,0,.45); } 50% { box-shadow: 0 0 16px rgba(255,212,0,.95), 0 0 2px #fff; } }
.goal.is-test { box-shadow: inset 3px 0 0 #FFD400; }
@media (prefers-reduced-motion: reduce) { .testtag { animation: none; } }

/* RaPay loader (same as the donate page) */
.raload { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; padding: 60px 16px; font-size: 17px; }
.raload__logo { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.raload__logo img { width: 44px; height: auto; animation: rlpulse 1.2s ease-in-out infinite; }
.raload__spin { position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(255,255,255,.12); border-top-color: var(--gold); animation: rlspin .9s linear infinite; }
@keyframes rlspin { to { transform: rotate(360deg); } }
@keyframes rlpulse { 0%, 100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }

/* donation kind labels */
.realtag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; vertical-align: middle;
  color: #fff; background: linear-gradient(90deg, #1d6dff, #38bdf8); box-shadow: 0 0 10px rgba(56,189,248,.65); animation: realglow 1.8s ease-in-out infinite; }
@keyframes realglow { 0%, 100% { box-shadow: 0 0 6px rgba(56,189,248,.4); } 50% { box-shadow: 0 0 16px rgba(56,189,248,.95), 0 0 2px #fff; } }
.rc__who { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.rc__who h3 { margin: 0; }
.rc__who .testtag, .rc__who .realtag { margin-left: 0; }
.goal.is-real { box-shadow: inset 3px 0 0 #38bdf8; }
@media (prefers-reduced-motion: reduce) { .realtag { animation: none; } }
.btn--danger.is-armed { background: #ff4d4d; color: #fff; border-color: #ff4d4d; }
/* alert ranges editor */
.range-edit { margin-top: 12px; display: grid; gap: 6px; }
.range-edit .prefix { max-width: 160px; }
/* streamer mode */
.smode { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #000; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.smode__dot { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.smode[aria-pressed="true"] { color: #fff; border-color: #a259ff; box-shadow: 0 0 0 1px #a259ff, 0 0 18px rgba(162,89,255,.7); animation: smglow 1.8s ease-in-out infinite; }
.smode[aria-pressed="true"] .smode__dot { background: #ff2d55; box-shadow: 0 0 10px #ff2d55; }
@keyframes smglow { 0%, 100% { box-shadow: 0 0 0 1px #a259ff, 0 0 10px rgba(162,89,255,.45); } 50% { box-shadow: 0 0 0 1px #a259ff, 0 0 24px rgba(162,89,255,.95); } }
body.streamer .rp-user__name small, body.streamer .pd__f output, body.streamer .pd__f input, body.streamer .secret, body.streamer #sp-who a,
body.streamer .js-page-url, body.streamer [data-private] { filter: blur(7px); user-select: none; pointer-events: none; }
body.streamer .js-reveal { display: none; }
@media (max-width: 640px) { .smode span:not(.smode__dot) { display: none; } .smode { padding: 9px; } }
/* gallery favourites */
.bggal__fav { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 1; opacity: .85; }
.bggal__fav:hover { opacity: 1; color: var(--yellow); }
.bggal__fav.is-on { color: var(--yellow); opacity: 1; text-shadow: 0 0 8px rgba(255,212,0,.8); }

/* goals wall: crown over the owners' avatars (RaPay ID 1 and 2) */
.wcard__av { position: relative; display: inline-flex; flex: none; }
.wcard__crown { position: absolute; left: 50%; top: -15px; width: 26px; height: 20px; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 0 6px rgba(255,212,0,.65)); animation: wcrown 3s ease-in-out infinite; z-index: 1; }
@keyframes wcrown { 0%,100% { transform: translateX(-50%) rotate(-8deg); } 50% { transform: translateX(-50%) rotate(6deg) translateY(-2px); } }
.wcard__who { padding-top: 6px; }
/* streamer mode: hide amounts and donor lists too */
body.streamer .stat__num, body.streamer .stats .chip, body.streamer #ov-recent, body.streamer #ov-goal .goal__nums, body.streamer #don-list, body.streamer #chart, body.streamer #stx-cards, body.streamer [id^="stx-"] { filter: blur(9px); user-select: none; pointer-events: none; }

/* Voice recording for alert sound */
.recbox .row-start { gap: 12px; flex-wrap: wrap; align-items: center; }
.rec-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #f5ad27, #ffd400); color: #000; font-weight: 800; border: 0; box-shadow: 0 0 0 0 rgba(245,173,39,.5); }
.rec-btn:hover { filter: brightness(1.05); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0242b; box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.rec-btn.is-rec { background: #e0242b; color: #fff; animation: recPulse 1.2s ease-in-out infinite; }
.rec-btn.is-rec .rec-dot { background: #fff; border-radius: 2px; }
@keyframes recPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,36,43,.55); } 50% { box-shadow: 0 0 0 8px rgba(224,36,43,0); } }

/* Alert sound picker: "Your sound" first and glowing, other sounds as chips */
.ctl .lbl { display: block; margin-bottom: 8px; }
.sndpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.sndpick__b { padding: 10px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: var(--muted, #bbb); font: 600 13px/1.2 inherit; font-family: inherit; cursor: pointer; transition: border-color .15s, color .15s, background .15s, transform .15s; }
.sndpick__b:hover { color: #fff; border-color: rgba(245,173,39,.5); transform: translateY(-1px); }
.sndpick__b[aria-checked="true"] { color: #fff; border-color: #F5AD27; background: rgba(245,173,39,.12); }
.sndpick__b--main { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 15px; font-weight: 800; border: 0; }
.sndpick__b--main[aria-checked="true"] { color: #000; background: linear-gradient(120deg, #F5AD27, #FFD400); box-shadow: 0 0 0 1px rgba(255,212,0,.6), 0 0 22px rgba(245,173,39,.55); animation: sndglow 2.2s ease-in-out infinite; }
.sndpick__b--main[aria-checked="false"] { background: rgba(245,173,39,.14); color: #FFD400; box-shadow: 0 0 0 1px rgba(245,173,39,.55), 0 0 14px rgba(245,173,39,.3); }
.sndpick__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.18); }
@keyframes sndglow { 0%,100% { box-shadow: 0 0 0 1px rgba(255,212,0,.6), 0 0 14px rgba(245,173,39,.4); } 50% { box-shadow: 0 0 0 1px rgba(255,212,0,.9), 0 0 28px rgba(245,173,39,.75); } }
@media (prefers-reduced-motion: reduce) { .sndpick__b--main { animation: none !important; } }

/* Avatar decorations picker (My page) */
.deco-pick { grid-column: 1 / -1; }
.deco-h { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.deco-h h3 { font-size: 16px; margin: 0; }
.deco-h--own { margin-top: 18px; }
.deco-badge { font: 800 10.5px/1 var(--display, inherit); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; color: #000; background: linear-gradient(120deg, #F5AD27, #FFD400); }
.deco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 10px; }
.deco-t { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 6px 10px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: rgba(255,255,255,.02); color: var(--muted, #bbb); cursor: pointer; font: 600 11.5px/1.2 inherit; font-family: inherit; transition: border-color .15s, background .15s, transform .15s; }
.deco-t:hover { border-color: rgba(245,173,39,.5); transform: translateY(-1px); }
.deco-t[aria-pressed="true"] { border-color: #F5AD27; background: rgba(245,173,39,.1); color: #fff; }
.deco-t__av { position: relative; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #3a3a44, #22222a); }
.deco-t__av > .rdeco { position: absolute; left: -16.67%; top: -16.67%; width: 133.34%; height: 133.34%; overflow: visible; pointer-events: none; }
.deco-t__n { text-align: center; font-size: 11px; overflow-wrap: anywhere; max-width: 100%; }
.deco-t.is-locked .deco-t__av, .deco-t.is-locked .deco-t__n { opacity: .5; }
.deco-t__lock { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(120deg, #F5AD27, #FFD400); }
.deco-t__lock svg { width: 11px; height: 11px; fill: #000; }
.deco-grid--own .deco-t { border-color: rgba(255,212,0,.35); box-shadow: 0 0 14px rgba(245,173,39,.15); }
.avatar.has-deco { overflow: visible; }
/* Admin: RA Gaming banner */
.adm-banner { display: grid; gap: 10px; justify-items: start; }
.adm-banner__pv { width: min(420px, 100%); aspect-ratio: 960 / 260; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, rgba(255,255,255,.1)); }
