/* =====================================================================
   Tik4U — "Noir" design. Carbon black + pure red. Exclusive to Tik4U.
   ===================================================================== */
@font-face { font-family: 'Almarai'; font-weight: 300; font-display: swap; src: url(/fonts/almarai-arabic-300-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Almarai'; font-weight: 300; font-display: swap; src: url(/fonts/almarai-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Almarai'; font-weight: 400; font-display: swap; src: url(/fonts/almarai-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Almarai'; font-weight: 400; font-display: swap; src: url(/fonts/almarai-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Almarai'; font-weight: 700; font-display: swap; src: url(/fonts/almarai-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Almarai'; font-weight: 700; font-display: swap; src: url(/fonts/almarai-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Almarai'; font-weight: 800; font-display: swap; src: url(/fonts/almarai-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Almarai'; font-weight: 800; font-display: swap; src: url(/fonts/almarai-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }


:root {
  --bg: #050506;
  --bg-2: #09090b;
  --panel: #0d0d10;
  --panel-2: #141418;
  --panel-3: #1a1a20;
  --line: #1f1f25;
  --line-2: #2b2b33;
  --text: #f3f3f5;
  --muted: #8b8b96;
  --red: #006be5;
  --red-2: #0b7dff;
  --red-d: #004593;
  --red-glow: rgb(var(--acc) / .45);
  --grad: linear-gradient(135deg, var(--red-2) 0%, #0d5ab3 55%, #003d82 100%);
  --cyan: var(--red-2); --pink: #0d5ab3; --gold: #ffc24b; --green: #23e08f;
  --radius: 12px;
  --acc: 0 107 229; --acc-bg: #09111b; --acc-line: #12253a; --muted-2: #9fb0c8;
  --dock: 74px;
  --winbar: 0px;
  font-synthesis: none;
}
html.inapp { --winbar: 34px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Almarai', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; padding-top: var(--winbar);
}
/* one static backdrop: red light from the top corner + a fine carbon dot grid */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 100% -10%, rgb(var(--acc) / .13), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgb(var(--acc) / .07), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--bg);
}
a { color: var(--red-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgb(var(--acc) / .35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #24242b; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a44; }

/* ---------- window bar (desktop app) ---------- */
#winbar { position: fixed; top: 0; left: 0; right: 0; height: var(--winbar); z-index: 100; display: flex; direction: ltr; align-items: center; gap: 8px;
  padding: 0 14px; background: #030304; border-bottom: 1px solid var(--line); -webkit-app-region: drag; user-select: none; }
#winbar img { width: 22px; height: 22px; }
#winbar b { font-size: 12.5px; font-weight: 600; letter-spacing: .4px; color: #d6d6dc; }
#winbar b em { font-style: normal; color: var(--red); }
#winbar .sp { flex: 1; }
#winbar small { display: none; }
/* Windows puts its buttons on the left or right depending on the language, so the logo sits in the middle */
#winbar { justify-content: center; }
#winbar .sp { display: none; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--dock) 1fr; height: calc(100vh - var(--winbar)); }
.main { overflow-y: auto; display: flex; flex-direction: column; min-width: 0; position: relative; }

/* the dock: icons only, opens with names on hover */
.sidebar { position: relative; z-index: 30; }
.dock { position: absolute; top: 10px; bottom: 10px; inset-inline-start: 10px; width: calc(var(--dock) - 20px);
  background: linear-gradient(180deg, #0f0f13, #09090c); border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden; transition: width .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s; }
.dock:hover { width: 232px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7), 0 0 0 1px rgb(var(--acc) / .12); }
.brand { display: flex; align-items: center; gap: 10px; padding: 12px 9px 10px; border-bottom: 1px solid var(--line); flex: none; min-width: 232px; }
.logo { width: 36px; height: 36px; flex: none; background: url('/icon.png') center/contain no-repeat; filter: drop-shadow(0 0 10px var(--red-glow)); }
.brand b { font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 7px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-group { flex: none; height: 1px; margin: 7px 10px; background: var(--line); font-size: 0; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 3px; border-radius: 11px; color: #c9c9d1;
  font-size: 13.5px; font-weight: 500; white-space: nowrap; min-width: 216px; transition: background .15s, color .15s; }
.nav a .ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #a6a6b0; transition: .15s; }
.nav a .ico i[data-i], .nav a .ico .coin { width: 19px; height: 19px; }
.nav a:hover { background: var(--panel-3); color: #fff; }
.nav a:hover .ico { color: #fff; }
.nav a.active { color: #fff; }
.nav a.active .ico { background: var(--grad); color: #fff; box-shadow: 0 6px 18px var(--red-glow); }
.nav a.active::before { content: ''; position: absolute; inset-inline-start: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.acct { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 9px; border-top: 1px solid var(--line); min-width: 232px; font-size: 12.5px; }
.acct .aav { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--panel-3) center/cover; display: grid; place-items: center; font-weight: 700; color: var(--red-2); }
.acct-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.acct-days { color: var(--muted); font-size: 11.5px; }
.acct a { color: var(--muted); font-size: 11.5px; margin-inline-start: auto; }
.acct a:hover { color: var(--red-2); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 22px; background: rgba(5, 5, 6, .92); border-bottom: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 12px; padding: 5px 6px 5px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.me-av { position: relative; width: 42px; height: 42px; flex: none; }
.me-av .img { position: absolute; inset: 3px; border-radius: 50%; background: var(--panel-3) center/cover; display: grid; place-items: center; font-weight: 700; color: var(--red-2); font-size: 16px; }
.me-av::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#3a3a44 0 100%); }
.me[data-s="live"] .me-av::before { background: conic-gradient(from 0deg, var(--red), #3b97ff, var(--red-d), var(--red)); animation: spin 2.6s linear infinite; box-shadow: 0 0 14px var(--red-glow); }
.me[data-s="connecting"] .me-av::before { background: conic-gradient(var(--red) 0 30%, #3a3a44 30%); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.me-live { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 700; letter-spacing: .6px; padding: 0 5px;
  border-radius: 5px; background: var(--red); color: #fff; display: none; font-family: Arial, sans-serif; }
.me[data-s="live"] .me-live { display: block; }
.me-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me-info .connect { justify-content: flex-end; }
.me-info b { unicode-bidi: plaintext; text-align: right; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.connect { display: flex; align-items: center; gap: 0; direction: ltr; }
.connect span { color: var(--muted); font-size: 13px; }
.connect input { background: transparent; border: 0; outline: 0; width: 150px; direction: ltr; text-align: left; padding-left: 1px !important; font-size: 13px; color: #c9c9d1; padding: 2px 0; }
.connect input:focus { color: #fff; }
.connect .btn { margin-inline-start: 6px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #55555f; flex: none; }
.pill[data-s="live"] { color: #b8ffde; border-color: rgba(35, 224, 143, .35); }
.pill[data-s="live"] .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(35, 224, 143, .6); animation: ping 1.6s infinite; }
.pill[data-s="connecting"] .dot { background: #77777f; }
.pill[data-s="offline"] .dot, .pill[data-s="error"] .dot { background: var(--red); }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(35, 224, 143, 0); } }
.counters { display: flex; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.counter { min-width: 84px; padding: 6px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.counter small { display: block; color: var(--muted); font-size: 11px; }
.counter b { font-size: 16px; font-weight: 600; direction: ltr; display: inline-block; color: #fff; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; cursor: pointer;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: #e8e8ec; font-weight: 500; font-size: 13.5px;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; }
.btn:hover { border-color: #43434d; background: var(--panel-3); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary, .btn.warn { border: 0; color: #fff; font-weight: 600; background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 18px rgb(var(--acc) / .28); }
.btn.primary:hover, .btn.warn:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 26px rgb(var(--acc) / .45); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--line-2); }
.btn.danger { color: #3191ff; }
.btn.danger:hover { border-color: var(--red); background: rgb(var(--acc) / .08); }
.btn.info { color: var(--red-2); }
.btn i[data-i] { width: 1.1em; height: 1.1em; }

.input, select.input, textarea.input { width: 100%; padding: 9px 12px; border-radius: 10px; outline: none; background: #08080a; border: 1px solid var(--line-2); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgb(var(--acc) / .15); }
textarea.input { resize: vertical; min-height: 64px; }
select.input option { background: #111; }
input[type=range] { accent-color: var(--red); width: 100%; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--red); }

.toggle { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; border: 1px solid var(--line-2); border-radius: 8px; background: #121216; transition: .2s; }
.toggle::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 5px; background: #6a6a74; transition: .2s; }
.toggle.on { background: var(--grad); border-color: transparent; box-shadow: 0 0 12px rgb(var(--acc) / .35); }
.toggle.on::after { right: 21px; background: #fff; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 11px; background: #08080a; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 7px 13px; cursor: pointer; color: #b5b5bf; font-size: 13px; }
.seg button:hover { color: #fff; background: var(--panel-2); }
.seg button.on { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgb(var(--acc) / .3); }
.seg.sm button { padding: 5px 11px; font-size: 12px; }

.chip { font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--muted); }
.chip:hover { color: #fff; }
.chip.on { color: #fff; border-color: var(--red); background: rgb(var(--acc) / .12); }
.tabs { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #08080a; border: 1px solid var(--line); }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 4px 10px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.tabs button.on { background: var(--panel-3); color: #fff; box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- page ---------- */
.page { padding: 24px 26px 40px; display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding-bottom: 4px; }
.page-head .grow { flex: 1; min-width: 260px; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 700; letter-spacing: -.2px; }
.page-head h1 i[data-i] { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgb(var(--acc) / .35); }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.page-head h1::after { content: ''; flex: 0 0 auto; width: 46px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red), transparent); margin-inline-start: 4px; }
h2 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
h2 i[data-i] { color: var(--red); }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; }
.spacer { flex: 1; }

/* cards: graphite, with a red notch at the start of the head */
.card { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, #0f0f12, #0b0b0d); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }
.card-head { position: relative; display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.card-head::before { content: ''; position: absolute; inset-inline-start: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); box-shadow: 0 0 10px var(--red-glow); }
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-head h3 i[data-i], .card-head h3 .coin { color: var(--red); }
.card-head .spacer { flex: 1; }
.card-body { padding: 10px; overflow-y: auto; flex: 1; }
.form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.empty { color: var(--muted); text-align: center; padding: 50px 20px; font-size: 13.5px; }
.empty .big { font-size: 34px; display: block; margin-bottom: 8px; opacity: .7; }
.feed { height: clamp(420px, calc(100vh - 370px), 900px); flex: none; min-height: 0; overflow-y: auto; }
/* live room: «كومنتات جديدة ↓» while you read old comments higher up (owner 2 Dec) */
.newpill { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border: 0; border-radius: 999px; background: var(--sky, #2f8cff); color: #fff; font: inherit; font-weight: 800; font-size: 14px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); animation: newpillIn .18s ease-out; }
.newpill[hidden] { display: none; }
.newpill:hover { filter: brightness(1.1); }
.newpill i[data-i] { width: 17px; height: 17px; }
@keyframes newpillIn { from { opacity: 0; transform: translate(-50%, 8px); } }

.grid-room { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr; gap: 16px; min-height: 560px; }
.col-side { display: flex; flex-direction: column; gap: 16px; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
@media (max-width: 1250px) { .grid-room { grid-template-columns: 1fr 1fr; } .col-side { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .page-grid { grid-template-columns: 1fr; } }

/* feed rows */
.row { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; }
.row:hover { background: var(--panel-2); }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--panel-3) center/cover; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.row .who { font-weight: 600; font-size: 13.5px; }
.row .who small { color: var(--muted); font-weight: 400; margin-inline-start: 6px; direction: ltr; display: inline-block; }
.row .txt { color: #dadae0; margin-top: 2px; word-break: break-word; }
.tag { font-size: 10.5px; padding: 1px 7px; border-radius: 6px; margin-inline-start: 5px; display: inline-block; line-height: 1.5; vertical-align: 1px; background: var(--panel-3); color: #c9c9d1; }
.tag.mod, .tag.fol { background: rgb(var(--acc) / .14); color: var(--red-2); }
/* comments: everyone's name is white; moderators write in red, Super Fans in light yellow */
#comments .row .who { color: #fff; }
.tag.mod { background: rgba(255, 59, 92, .12); border: 1.5px solid #ff3b5c; color: #ff6b80; font-weight: 800; }
.tag.sf { background: rgba(255, 190, 60, .14); border: 1.5px solid rgba(255, 190, 60, .7); color: #ffd36b; font-weight: 800; }
.tag.lv { color: #fff; font-weight: 800; direction: ltr; background: linear-gradient(135deg, var(--red-2), #6fb6ff); }
.tag.lv.t2 { background: linear-gradient(135deg, #0fb5a6, #4fe0c2); }
.tag.lv.t3 { background: linear-gradient(135deg, #7a3cff, #b47bff); }
.tag.lv.t4 { background: linear-gradient(135deg, #e0338a, #ff7ab8); }
.tag.lv.t5 { background: linear-gradient(135deg, #c88a00, #ffd75e); color: #2a1a00; }
#events .ev.box-bag { border-color: rgba(168, 85, 247, .45); background: linear-gradient(90deg, rgba(168, 85, 247, .14), transparent); }
#events .ev.box-chest { border-color: rgba(255, 200, 61, .5); background: linear-gradient(90deg, rgba(255, 200, 61, .14), transparent); }
#events .ev.box-bag .ico, #events .ev.box-chest .ico { font-size: 22px; display: grid; place-items: center; }
.tag.test { background: rgba(255, 255, 255, .08); color: #fff; }

.ev { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.ev + .ev { margin-top: 4px; }
.ev .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); flex: none; color: var(--red-2); }
.ev .ico img { width: 28px; height: 28px; }
.ev .body { flex: 1; min-width: 0; }
.ev .body b { font-size: 13.5px; font-weight: 600; }
.ev .body div { color: var(--muted); font-size: 12.5px; }
.ev .val { font-weight: 700; direction: ltr; }
.ev.gift { background: linear-gradient(90deg, rgb(var(--acc) / .08), transparent); border-color: rgb(var(--acc) / .15); }
.ev.gift.big { background: linear-gradient(90deg, rgb(var(--acc) / .2), rgb(var(--acc) / .04)); border-color: rgb(var(--acc) / .4); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }

/* leaderboard */
.lb { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 9px; }
.lb:hover { background: var(--panel-2); }
.lb .rank { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--muted); background: var(--panel-2); }
.lb:nth-child(1) .rank { background: var(--grad); color: #fff; }
.lb:nth-child(2) .rank { color: #fff; background: #3a3a44; }
.lb:nth-child(3) .rank { color: #fff; background: #152d48; }
.lb .name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .val { direction: ltr; font-weight: 700; }

.tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; }
.tests .btn { font-size: 12.5px; padding: 7px 6px; }
.link-row { display: flex; gap: 6px; align-items: center; padding: 9px 14px; }
.link-row + .link-row { border-top: 1px solid var(--line); }
.link-row span { flex: 1; font-size: 13.5px; }
.link-row code { display: none; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none; z-index: 200;
  padding: 11px 18px; border-radius: 12px; background: #111115; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--red);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6); transition: .22s; font-size: 13.5px; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- actions page ---------- */
.actions-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .actions-layout { grid-template-columns: 1fr; } }
.group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group + .group { margin-top: 14px; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgb(var(--acc) / .07), transparent 60%); }
.group-head .gdot { width: 10px; height: 10px; border-radius: 3px; }
.group-head h3 { margin: 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.group-head .count { font-size: 11.5px; padding: 1px 9px; border-radius: 999px; background: rgb(var(--acc) / .12); color: var(--red-2); }
.group.collapsed .group-body { display: none; }
.group-body { padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.group-body .empty { grid-column: 1 / -1; padding: 24px; }
.gchev { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--red-2); display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.gchev i[data-i] { width: 12px; height: 12px; }
.gchev.open { transform: rotate(90deg); }

.act { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s; }
.act:hover { border-color: #3a3a44; }
.act.off { opacity: .45; }
.act-top { display: flex; align-items: center; gap: 10px; }
.act-ico { width: 44px; height: 44px; border-radius: 11px; background: #08080a; display: grid; place-items: center; flex: none; overflow: hidden; color: var(--red-2); border: 1px solid var(--line); }
.act-ico img { width: 36px; height: 36px; object-fit: contain; }
.act-title { flex: 1; min-width: 0; }
.act-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.act-title small { color: var(--muted); font-size: 12px; }
.act-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.act-meta span { font-size: 11.5px; background: #08080a; border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; color: #c9c9d1; }
.act-btns { display: flex; gap: 6px; }
.act-btns .btn { flex: 1; padding: 6px 4px; font-size: 12.5px; }

.side-stack { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 86px; }
.screen-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
.screen-row + .screen-row { border-top: 1px solid var(--line); }
.screen-row.more { align-items: center; }
.screen-row span { flex: 1; font-size: 13.5px; }
.sr-top { display: flex; align-items: center; justify-content: space-between; }
.sr-top b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.sr-top b i[data-i] { color: var(--red); }
.sr-url { display: flex; gap: 6px; }
.sr-url .input { flex: 1; min-width: 0; font-size: 12px; padding: 7px 10px; color: var(--muted); }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: #08080a; border: 1px solid var(--line); }
.conn i { width: 7px; height: 7px; border-radius: 50%; background: #55555f; }
.conn.on { color: #b8ffde; border-color: rgba(35, 224, 143, .35); background: rgba(35, 224, 143, .07); }
.conn.on i { background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- modal & forms ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; padding: 20px; background: rgba(0, 0, 0, .78); }
.modal-bg.show { display: grid; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(760px, 100%); max-height: calc(100vh - 40px - var(--winbar)); display: flex; flex-direction: column; border-radius: 16px;
  background: #0d0d10; border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0, 0, 0, .8), 0 0 0 1px rgb(var(--acc) / .08); animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal.wide { width: min(1000px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-start; }
.x { background: transparent; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; width: 34px; height: 34px; border-radius: 9px; }
.x:hover { background: var(--panel-3); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; color: #c9c9d1; font-weight: 500; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .fields-2, .fields-4 { grid-template-columns: 1fr 1fr; } }
.section { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #09090b; }
.section-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.section-title i[data-i] { color: var(--red); }
.kv { display: flex; align-items: center; gap: 10px; }
.kv > label { flex: 1; font-size: 13.5px; }
.kv .input { width: 140px; }

/* gifts & media */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; max-height: 230px; overflow-y: auto; padding: 2px; }
.gift { background: #08080a; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; cursor: pointer; font-size: 12px; }
.gift .gi { height: 36px; display: grid; place-items: center; font-size: 26px; }
.gift .gi img { width: 34px; height: 34px; object-fit: contain; }
.gift .gn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.gift .gd { color: var(--gold); direction: ltr; }
.gift.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); background: rgb(var(--acc) / .08); }
.gift-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #08080a; }
.gift-row { display: grid; grid-template-columns: 38px 40px 1fr auto; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.gift-row:last-child { border-bottom: 0; }
.gift-row:hover { background: var(--panel-2); }
.gift-row.on { background: rgb(var(--acc) / .14); box-shadow: inset -3px 0 0 var(--red); }
.gift-row .gnum { color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.gift-row .gi { width: 34px; height: 34px; display: grid; place-items: center; font-size: 24px; }
.gift-row .gi img { width: 32px; height: 32px; object-fit: contain; }
.gift-row .gn { font-weight: 600; }
.gift-row .gd { color: var(--gold); font-weight: 700; direction: ltr; }

.media-pick { display: flex; align-items: center; gap: 12px; border: 2px dashed transparent; border-radius: 14px; padding: 6px; transition: border-color .15s, background .15s; }
.media-pick.over { border-color: var(--acc, #2f8bff); background: rgba(47,139,255,.08); }
.media-thumb { position: relative; width: 150px; height: 86px; border-radius: 10px; flex: none; overflow: hidden; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); font-size: 28px; background: repeating-conic-gradient(#121215 0% 25%, #0b0b0d 0% 50%) 50% / 16px 16px; }
.media-thumb video, .media-thumb img { width: 100%; height: 100%; object-fit: contain; }
.media-thumb .dur { position: absolute; bottom: 6px; left: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.media-grid.lib { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.media-card { position: relative; overflow: hidden; cursor: pointer; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.media-card:hover { border-color: #43434d; transform: translateY(-2px); }
.media-card.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.media-card .media-thumb { width: 100%; height: 120px; border: 0; border-radius: 0; }
.media-card .mc-body { padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.media-card .mc-body b { flex: 1; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-card .mc-body small { color: var(--muted); font-size: 11.5px; direction: ltr; }
.media-card .del { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer; display: none; background: rgba(0, 0, 0, .7); color: #fff; }
.media-card .shr { position: absolute; top: 36px; right: 6px; z-index: 2; border: 0; border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,.75); color: #ffd257; cursor: pointer; }
.media-card .shr.on { color: #7fd1ff; }
.media-card span.shr { cursor: default; color: #c9d4e4; }
.media-card:hover .del { display: grid; place-items: center; }
.drop { border: 1.5px dashed #33333c; border-radius: 14px; padding: 24px; text-align: center; color: var(--muted); transition: .15s; }
.drop.over { border-color: var(--red); color: #fff; background: rgb(var(--acc) / .06); }
.progress { height: 5px; background: #1c1c22; border-radius: 10px; overflow: hidden; display: none; }
.progress div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* widget preview cards */
.wcard { overflow: hidden; }
.wprev { position: relative; overflow: hidden; background: repeating-conic-gradient(#101013 0% 25%, #0a0a0c 0% 50%) 50% / 22px 22px; }
.wprev iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; pointer-events: none; }
.wprev.still, .gprev.still { cursor: pointer; }
.gprev.still { position: relative; }
.wprev.still::after, .gprev.still::after { content: '▶'; position: absolute; inset: auto auto 8px 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }
.wlink { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.wlink .input { flex: 1; min-width: 0; font-size: 12px; padding: 7px 10px; color: var(--muted); }
.wlink .gear { padding: 6px 9px; }
.wlink .gear i[data-i] { width: 17px; height: 17px; color: var(--red-2); }
.frame-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.frame-pick > span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
#feed .ev { display: flex; align-items: center; gap: 10px; }
#feed .ev .body { flex: 1; min-width: 0; }
#feed .replay { flex: none; }

.big-num { font-size: 42px; font-weight: 700; direction: ltr; color: #fff; text-shadow: 0 0 24px var(--red-glow); }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.log { font-size: 13px; padding: 9px 11px; border-radius: 10px; background: var(--panel-2); margin-bottom: 6px; border-inline-start: 3px solid transparent; }
.log.ok { border-inline-start-color: var(--green); }
.log.err { border-inline-start-color: var(--red); }

.coin { display: inline-block; width: 1em; height: 1em; background: url(/img/coin.svg) center/contain no-repeat; vertical-align: -0.16em; }

/* icons */
i[data-i] { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -.22em; flex: none; }
i[data-i] svg.icn { width: 100%; height: 100%; }

/* ---------- streamer home ---------- */
.hero-home { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 26px; border-radius: 18px;
  background: linear-gradient(110deg, #060b12 0%, #0c0c0f 55%); border: 1px solid var(--line); }
.hero-home::after { content: '4U'; position: absolute; left: 34%; top: 50%; transform: translateY(-50%); font: 800 130px/1 'Almarai', sans-serif;
  color: transparent; -webkit-text-stroke: 1px rgb(var(--acc) / .18); letter-spacing: -6px; pointer-events: none; }
.hero-home > * { position: relative; z-index: 1; }
.hero-home img.av { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--panel-3); padding: 3px;
  border: 2px solid var(--red); box-shadow: 0 0 0 5px rgb(var(--acc) / .12), 0 0 30px var(--red-glow); }
.hero-home h1 { margin: 0; font-size: 28px; font-weight: 700; }
.hero-home p { margin: 4px 0 0; color: var(--muted); }
.hero-home h1 i[data-i], .hero-home p i[data-i] { color: var(--red); }
.home-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.kpi { padding: 12px 10px; border-radius: 12px; text-align: center; background: #08080a; border: 1px solid var(--line); }
.kpi b { display: block; font-size: 22px; font-weight: 700; direction: ltr; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi small i[data-i] { color: var(--red); }
.days-big { font-size: 48px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 0 26px var(--red-glow); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; counter-reset: tile; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 5px; padding: 18px 16px 16px; border-radius: 14px; color: var(--text);
  background: linear-gradient(180deg, #101013, #0b0b0d); border: 1px solid var(--line); transition: border-color .18s, transform .18s; counter-increment: tile; }
.tile::after { content: counter(tile, decimal-leading-zero); position: absolute; top: 12px; inset-inline-end: 14px; font-size: 12px; font-weight: 600; color: #3a3a44; font-family: Arial, sans-serif; }
.tile:hover { border-color: rgb(var(--acc) / .55); transform: translateY(-2px); }
.tile .ti { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; display: grid; place-items: center; font-size: 0; color: var(--red); background: rgb(var(--acc) / .1); border: 1px solid rgb(var(--acc) / .2); transition: .18s; }
.tile .ti i[data-i], .tile .ti .coin { width: 21px; height: 21px; }
.tile:hover .ti { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px var(--red-glow); }
.tile b { font-size: 15px; font-weight: 600; }
.tile span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.wm { font-style: normal; font-weight: 700; letter-spacing: .2px; color: #fff; }
.wm i { font-style: normal; color: var(--red); margin-left: 1px; }

@media (max-width: 820px) { .app { grid-template-columns: 1fr; } .sidebar { display: none; } .grid-room { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* library: hover preview window */
#hoverPrev { position: fixed; z-index: 120; width: 520px; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.94);
  transition: opacity .16s, transform .16s; background: #0b0b0d; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .8), 0 0 0 1px rgb(var(--acc) / .15); }
#hoverPrev.show { opacity: 1; transform: none; }
#hoverPrev .hp-media { height: 300px; display: grid; place-items: center; background: #000; }
#hoverPrev .hp-media video, #hoverPrev .hp-media img { width: 100%; height: 100%; object-fit: contain; }
#hoverPrev .hp-media.audio { background: radial-gradient(circle at 50% 60%, rgb(var(--acc) / .25), #050506 70%); }
#hoverPrev .hp-foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; }
#hoverPrev .hp-foot b { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hoverPrev .hp-foot span { color: var(--muted); font-size: 12px; }
.hp-eq { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.hp-eq i { width: 10px; border-radius: 4px; background: var(--grad); animation: eq 0.9s ease-in-out infinite; box-shadow: 0 0 12px var(--red-glow); }
.hp-eq i:nth-child(2) { animation-delay: -.2s; } .hp-eq i:nth-child(3) { animation-delay: -.5s; } .hp-eq i:nth-child(4) { animation-delay: -.1s; }
.hp-eq i:nth-child(5) { animation-delay: -.7s; } .hp-eq i:nth-child(6) { animation-delay: -.3s; } .hp-eq i:nth-child(7) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }

/* library sections */
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13.5px;
  background: var(--panel); border: 1px solid var(--line); color: #c9c9d1; transition: .15s; }
.cats button small { font-size: 11px; color: var(--muted); background: #08080a; padding: 0 7px; border-radius: 6px; }
.cats button:hover { border-color: #43434d; color: #fff; }
.cats button.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgb(var(--acc) / .3); }
.cats button.on small { background: rgba(0, 0, 0, .25); color: #fff; }
.cats button.add { border-style: dashed; color: var(--muted); }
.cat-sec + .cat-sec { margin-top: 22px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cat-head b { font-size: 16px; font-weight: 600; }
.cat-head b::before { content: ''; display: inline-block; width: 4px; height: 16px; border-radius: 2px; background: var(--red); margin-inline-end: 8px; vertical-align: -2px; box-shadow: 0 0 8px var(--red-glow); }
.cat-head span { font-size: 12px; color: var(--muted); background: var(--panel-2); padding: 1px 8px; border-radius: 6px; }
.cat-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cat-sel { padding: 5px 9px !important; font-size: 12.5px; }
/* store watermark on every preview, so clips can't be passed off as someone else's */
.wm4u { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.wm4u::before { content: ''; position: absolute; inset: -20%; background: url('/icon.png') 0 0 / 70px auto repeat; opacity: .07; transform: rotate(-18deg); }
.wm4u img { position: relative; width: 34%; max-width: 130px; opacity: .4; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); }
#hoverPrev .hp-media { position: relative; }
.media-thumb video, .media-thumb img:not(.wm4u img) { -webkit-user-drag: none; user-select: none; }

/* scene editor */
#stage .sitem { position: absolute; overflow: visible; outline: 1.5px dashed rgb(var(--acc) / .6); pointer-events: none; }
#stage .sitem.full { outline-color: rgb(var(--acc) / .3); }
#stage .sitem.sel { outline: 2px solid var(--red); box-shadow: 0 0 0 4px rgb(var(--acc) / .18); }
#stage .sitem iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
#stage .sitem > .ifw { position: absolute; inset: 0; overflow: hidden; }
#stage .sname { position: absolute; top: 4px; right: 4px; font-size: 11px; background: rgba(0, 0, 0, .8); padding: 1px 7px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 4; }
#stage .sitem.full .sname { right: 50%; transform: translateX(50%); }
#stage .sx { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; display: none; place-items: center; border: 0; border-radius: 7px; background: var(--red); color: #fff; cursor: pointer; z-index: 6; pointer-events: auto; }
#stage .sitem.sel .sx { display: grid; }
#stage .sx i { pointer-events: none; width: 14px; height: 14px; }
#stage .sh { position: absolute; width: 16px; height: 16px; border-radius: 4px; background: #fff; border: 3px solid var(--red); z-index: 6; display: none; pointer-events: auto; }
#stage .sitem.sel .sh { display: block; }
#stage .sh.tl { left: -8px; top: -8px; cursor: nwse-resize; } #stage .sh.br { right: -8px; bottom: -8px; cursor: nwse-resize; }
#stage .sh.tr { right: -8px; top: -8px; cursor: nesw-resize; } #stage .sh.bl { left: -8px; bottom: -8px; cursor: nesw-resize; }
#stage .sitem.full .sh.tl, #stage .sitem.full .sh.tr { top: 2px; } #stage .sitem.full .sh.bl, #stage .sitem.full .sh.br { bottom: 2px; }
#stage .sitem.full .sh.tl, #stage .sitem.full .sh.bl { left: 2px; } #stage .sitem.full .sh.tr, #stage .sitem.full .sh.br { right: 2px; }
#stage .sh.e { width: 12px; height: 12px; border-radius: 50%; background: #0b7bff; border-color: #fff; }
#stage .sh.e.t { top: -6px; left: calc(50% - 6px); cursor: ns-resize; } #stage .sh.e.b { bottom: -6px; left: calc(50% - 6px); cursor: ns-resize; }
#stage .sh.e.l { left: -6px; top: calc(50% - 6px); cursor: ew-resize; } #stage .sh.e.r { right: -6px; top: calc(50% - 6px); cursor: ew-resize; }
#stage .sitem.full .sh.e.t { top: 2px; } #stage .sitem.full .sh.e.b { bottom: 2px; } #stage .sitem.full .sh.e.l { left: 2px; } #stage .sitem.full .sh.e.r { right: 2px; }
.selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #08080a; border: 1px solid var(--line); min-height: 50px; font-size: 13px; }
.selbar b { font-weight: 600; margin-inline-end: 6px; }
.selbar input[type=range] { width: 160px; }
.selbar .num { min-width: 44px; font-weight: 600; direction: ltr; }

/* language button + English (left-to-right) layout fixes */
.topbar .lang { order: 99; margin-inline-start: 4px; }
[dir="ltr"] .toggle::after { right: auto; left: 3px; }
[dir="ltr"] .toggle.on::after { left: 21px; right: auto; }
[dir="ltr"] .gift-row.on { box-shadow: inset 3px 0 0 var(--red); }
[dir="ltr"] .me { padding: 5px 14px 5px 6px; }
[dir="ltr"] .me-info b { text-align: left; }
[dir="ltr"] .me-info .connect { justify-content: flex-start; }
[dir="ltr"] .hero-home::after { left: auto; right: 34%; }
[dir="ltr"] .tbl th, [dir="ltr"] .tbl td { text-align: left; }

/* sticker picker */
.emote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; padding: 2px; }
.emote { height: 72px; border-radius: 12px; border: 1px solid var(--line); background: #08080a; cursor: pointer; display: grid; place-items: center; color: #c9c9d1; font-size: 12px; }
.emote img { width: 52px; height: 52px; object-fit: contain; }
.emote.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); background: rgb(var(--acc) / .1); }
.screens4 { display: grid; grid-template-columns: repeat(2, 1fr); }
.screens4 .screen-row + .screen-row { border-top: 0; }
.screens4 .screen-row { border-bottom: 1px solid var(--line); }
@media (max-width: 1200px) { .screens4 { grid-template-columns: 1fr; } }

/* lives history */
.hist { padding: 6px 10px 10px; }
.hrow { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 14px; align-items: center; padding: 12px 10px; border-radius: 12px; }
.hrow + .hrow { border-top: 1px solid var(--line); }
.hrow:hover { background: var(--panel-2); }
.hrow.live { background: linear-gradient(90deg, rgb(var(--acc) / .1), transparent); }
.hwhen b { display: block; font-size: 14px; font-weight: 600; }
.hwhen small { color: var(--muted); font-size: 12px; }
.hlive { color: var(--red-2); font-weight: 700; }
.hnums { display: flex; flex-wrap: wrap; gap: 6px; }
.hnums span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 6px 8px; border-radius: 10px; background: #08080a; border: 1px solid var(--line); }
.hnums span i { color: var(--red-2); width: 14px; height: 14px; }
.hnums b { font-size: 15px; font-weight: 700; direction: ltr; }
.hnums small { font-size: 10.5px; color: var(--muted); }
.htop { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.hsup { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hav { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--panel-3) center/cover; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--red-2); }
@media (max-width: 1100px) { .hrow { grid-template-columns: 1fr; } }

.act-tbl td { font-size: 13px; padding: 9px 14px; }
.act-tbl th { position: sticky; top: 0; background: #0d0d10; z-index: 1; padding: 9px 14px; }
.act-ev i[data-i] { color: var(--red-2); width: 14px; height: 14px; }
.act-ev.gift { color: #ffd98a; }
/* alert links: one column */
.screens4 { grid-template-columns: 1fr !important; }

.group-head .gscreen { width: auto; padding: 5px 10px; font-size: 12.5px; }

/* group colours: the main group red, new groups blue */
.group { border-color: color-mix(in srgb, var(--gc, var(--red)) 35%, var(--line)); }
.group-head { background: linear-gradient(90deg, color-mix(in srgb, var(--gc, var(--red)) 16%, transparent), transparent 65%); box-shadow: inset -3px 0 0 var(--gc, var(--red)); }
.group-head .count { background: color-mix(in srgb, var(--gc, var(--red)) 18%, transparent); color: color-mix(in srgb, var(--gc, var(--red)) 70%, #fff); }
.group-head .gchev { color: var(--gc, var(--red)); }
.group-head .toggle.on { background: var(--gc, var(--red)); box-shadow: 0 0 12px color-mix(in srgb, var(--gc, var(--red)) 45%, transparent); }

.modal.welcome { width: min(520px, 100%); border-top: 3px solid var(--red); background: radial-gradient(500px 220px at 50% 0, rgb(var(--acc) / .16), transparent 70%), #0d0d10; }

/* =====================================================================
   0.9.30 — black + sky blue. No side menu: the home tiles are the menu.
   ===================================================================== */
:root { --danger: #ff4d63; --sky: #0c7eff; }
.pill[data-s="offline"] .dot, .pill[data-s="error"] .dot { background: var(--danger); box-shadow: 0 0 8px rgba(255,77,99,.6); }
.btn.danger { color: #ff8a9a; }
.btn.danger:hover { border-color: var(--danger); background: rgba(255, 77, 99, .08); }
.log.err { border-inline-start-color: var(--danger); }
.app { grid-template-columns: 1fr !important; }
.sidebar { display: none !important; }
.homebtn { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px 0 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: #fff; font-weight: 600; }
.homebtn img { width: 30px; height: 30px; }
.homebtn:hover { border-color: var(--sky); background: var(--acc-bg); color: #fff; }
.homebtn .hb-t { display: flex; flex-direction: column; line-height: 1.15; }
.homebtn .hb-t small { color: var(--muted); font-weight: 400; font-size: 11px; }
.homebtn.here { pointer-events: none; }
/* home tiles */
.start-hi { font-size: 24px; font-weight: 700; margin: 0; }
.start-sub { color: var(--muted); margin: 4px 0 0; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3 .stp { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--acc-line); }
.steps3 .n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #031831; background: var(--sky); }
.steps3 .stp b { display: block; font-size: 14px; }
.steps3 .stp span { color: var(--muted); font-size: 12.5px; }
.steps3 .stp.done { border-color: #1d5e3f; } .steps3 .stp.done .n { background: var(--green); }
.sq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.sq { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px;
  border-radius: 18px; background: var(--panel); border: 1px solid #112031; color: #fff; transition: transform .15s, border-color .15s, background .15s; }
.sq:hover { transform: translateY(-3px); border-color: var(--sky); background: var(--acc-bg); }
.sq .ti-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgb(var(--acc) / .1); color: var(--sky); }
.sq .ti-ic i[data-i], .sq .ti-ic .coin { width: 28px; height: 28px; }
.sq b { font-size: 15.5px; font-weight: 600; }
.sq span { color: var(--muted-2); font-size: 12.5px; line-height: 1.35; }
.sq.main { background: var(--acc-bg); border-color: var(--sky); }
.sq .tbadge { position: absolute; top: 10px; inset-inline-start: 10px; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgb(var(--acc) / .15); color: var(--sky); }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; } }
/* help page */
.help-step { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.help-step .n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #031831; background: var(--sky); }
.help-step h3 { margin: 0 0 4px; font-size: 16px; }
.help-step p { margin: 0; color: var(--muted-2); line-height: 1.8; }
/* bottom bar: the main sections are always one click away, close to the hand */
.bnav { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: stretch; gap: 4px; padding: 6px;
  border-radius: 20px; background: rgba(8, 12, 18, .94); border: 1px solid #16304d; box-shadow: 0 14px 40px rgba(0,0,0,.65), 0 0 0 1px rgb(var(--acc) / .08); backdrop-filter: blur(10px); max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.bnav::-webkit-scrollbar { display: none; }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 66px; padding: 7px 8px 6px; border-radius: 14px; color: var(--muted-2); font-size: 11.5px; white-space: nowrap; transition: .15s; }
.bnav a i[data-i] { width: 21px; height: 21px; }
.bnav a:hover { background: var(--acc-bg); color: #fff; }
.bnav a.on { background: var(--sky); color: #fff; box-shadow: 0 6px 18px rgb(var(--acc) / .35); }
.bnav a.home { color: #fff; background: var(--acc-bg); border: 1px solid var(--acc-line); }
.bnav a.home.on { background: var(--sky); border-color: transparent; }
.bnav .sep { width: 1px; margin: 8px 2px; background: var(--acc-line); flex: none; }
main.main { padding-bottom: 96px; }
/* start page: intro + footer */
.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.intro .card-body, .intro .ib { padding: 20px 22px; }
.intro h2 { margin: 0 0 8px; font-size: 21px; }
.intro p { margin: 0 0 10px; color: var(--muted-2); line-height: 1.9; }
.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.feat div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--acc-bg); border: 1px solid #142739; color: #c9d6e2; font-size: 13px; line-height: 1.6; }
.feat i[data-i] { width: 20px; height: 20px; flex: none; color: var(--sky); margin-top: 2px; }
.who li { margin-bottom: 6px; color: var(--muted-2); }
.foot { margin-top: 10px; padding: 18px 4px 4px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted-2); } .foot a:hover { color: #fff; }
.foot .sp { flex: 1; }
.legal h3 { margin: 18px 0 6px; font-size: 16px; } .legal p, .legal li { color: var(--muted-2); line-height: 1.9; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }
/* actions page v2: compact rows, small links, wider live log */
.actions-layout.v2 { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); }
@media (max-width: 1100px) { .actions-layout.v2 { grid-template-columns: 1fr; } }
.actions-layout.v2 .group-body { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.arow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s; }
.arow:hover { border-color: color-mix(in srgb, var(--gc, var(--red-2)) 55%, var(--line)); }
.arow.off { opacity: .45; }
.arow .act-ico { width: 36px; height: 36px; border-radius: 9px; }
.arow .act-ico img { width: 30px; height: 30px; }
.ar-t { flex: 1; min-width: 0; }
.ar-t b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-t small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-b { display: flex; align-items: center; gap: 4px; flex: none; }
.ar-b .btn.sm { padding: 5px 8px; font-size: 12px; }
.ar-b .toggle { margin-inline-start: 4px; }
.gscr { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted-2); padding: 3px 9px; border-radius: 8px; background: #0a1420; border: 1px solid #16304d; }
.gscr i[data-i] { width: 14px; height: 14px; }
.scr-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; }
.scr { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.scr b { font-size: 13px; } .scr small { color: var(--muted); font-size: 11px; flex: 1; }
.scr .d { width: 8px; height: 8px; border-radius: 50%; background: #55555f; flex: none; }
.scr.on { border-color: #1d5e3f; } .scr.on .d { background: var(--green); box-shadow: 0 0 8px var(--green); } .scr.on small { color: var(--green); }
.scr .btn.sm { padding: 4px 7px; font-size: 11.5px; }
.gcolors { display: flex; gap: 10px; flex-wrap: wrap; }
.gcolors button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; outline: 2px solid #22303f; }
.gcolors button.on { border-color: #fff; outline-color: #fff; }
.scr-list { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.scr2 { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.scr2 .lbl { display: flex; align-items: center; gap: 6px; flex: none; width: 140px; }
.scr2 .lbl b { font-size: 13px; } .scr2 .lbl small { color: var(--muted); font-size: 11px; }
.scr2 .d { width: 8px; height: 8px; border-radius: 50%; background: #55555f; flex: none; }
.scr2.on { border-color: #1d5e3f; } .scr2.on .d { background: var(--green); box-shadow: 0 0 8px var(--green); } .scr2.on .lbl small { color: var(--green); }
.scr2 .input { flex: 1; height: 32px; font-size: 12px; padding-top: 4px; padding-bottom: 4px; color: var(--muted-2); }
.arow .act-ico img { width: 34px; height: 34px; object-fit: contain; }
.coinic { display: grid; place-items: center; width: 100%; height: 100%; } .coinic .coin { width: 24px; height: 24px; }
/* the 4U logo, always visible: a big soft mark behind every page + a clear brand at the top */
body::after { content: ''; position: fixed; z-index: -1; pointer-events: none; left: 50%; top: 56%; width: min(46vw, 560px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url('/icon.png') center / contain no-repeat; opacity: .05; filter: saturate(1.2); }
.homebtn { height: 52px; padding: 0 16px 0 10px; gap: 10px; }
.homebtn img { width: 40px; height: 40px; filter: drop-shadow(0 2px 8px rgb(var(--acc) / .35)); }
.homebtn .hb-t { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.homebtn .hb-t small { font-size: 11px; }
.wm4u::before { opacity: .1; }
.wm4u img { opacity: .55; }

#winbar b em{color:var(--sky)!important}
.intro .feat{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.chip.box-bag.on { border-color: #a54bff; color: #e2c2ff; background: rgba(165, 75, 255, .16); }
.chip.box-chest.on { border-color: #ffc83d; color: #ffe08a; background: rgba(255, 200, 61, .12); }

/* platform activity: the streamer's nickname in mixed pink, red, blue and white */
.stn { font-weight: 900; color: #ff5fa2; unicode-bidi: plaintext; }
.stn[style*="--o:1"] { color: #ff6b81; }
.stn[style*="--o:2"] { color: #6cb8ff; }
.stn[style*="--o:3"] { color: #ffd98a; }

.me-av .img.logo { background-size: 78% !important; background-repeat: no-repeat; background-position: center; background-color: #0a1120; }

/* live room comments: like a live chat. New ones come in at the bottom and push the old ones up */
#comments { display: flex; flex-direction: column; }
#comments > :first-child { margin-top: auto; }
#comments .row { animation: chatIn .28s ease-out; border: 1px solid transparent; }
@keyframes chatIn { from { transform: translateY(12px); opacity: 0; } }
#comments .row .grow { flex: 1; min-width: 0; }
/* moderator: a light red background; Super Fan: a light yellow one. Names and words stay white */
#comments .row.is-mod { background: rgba(255, 59, 92, .10); border-color: rgba(255, 59, 92, .25); }
#comments .row.is-sf { background: rgba(255, 200, 61, .09); border-color: rgba(255, 200, 61, .25); }
#comments .row .txt { color: #f1f3f7; }
.tag.lv, .tag.lv.t2, .tag.lv.t3, .tag.lv.t4, .tag.lv.t5 { background: rgba(47, 139, 255, .16); border: 1.5px solid var(--red-2); color: #8cc4ff; }
/* ban / mute next to every comment */
.modb { display: flex; gap: 4px; opacity: .35; transition: opacity .15s; flex: none; }
#comments .row:hover .modb { opacity: 1; }
.mb { border: 1px solid var(--line); background: var(--acc-bg); color: #e8eef8; border-radius: 8px; padding: 3px 7px; font: inherit; font-size: 13px; cursor: pointer; }
.mb.pinb { white-space: nowrap; font-weight: 700; font-size: 12.5px; }
.mb.pinb:hover { background: #1b6cff; border-color: #1b6cff; color: #fff; }
#comments .row.pinned { background: rgba(27,108,255,.12); box-shadow: inset -3px 0 0 #1b6cff; }
#comments .row.pinned .modb { opacity: 1; }
#comments .row.pinned .pinb { background: #1b6cff; border-color: #1b6cff; color: #fff; }
.mb:hover { background: #18233a; }
.mutemenu { position: fixed; z-index: 9999; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; background: #0b1220; border: 1px solid var(--acc-line); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); min-width: 170px; }
.mutemenu b { font-size: 13px; color: var(--muted-2); margin-bottom: 4px; }
.mutemenu button { border: 0; background: #111c30; color: #fff; border-radius: 9px; padding: 9px 12px; font: inherit; font-weight: 700; cursor: pointer; text-align: start; }
.mutemenu button:hover { background: var(--acc-line); }
.sysrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 6px; padding: 8px 12px; border-radius: 10px; background: var(--acc-bg); border: 1px solid var(--line); font-size: 13px; color: #c4ccd8; animation: chatIn .28s ease-out; }
.sysrow.ban { border-color: rgba(255, 59, 92, .35); } .sysrow.mute { border-color: rgba(255, 200, 61, .3); }
.sysrow.ttwait { border-color: rgba(245, 179, 1, .4); color: #ffe3a3; } .sysrow.ttok { border-color: rgba(35, 224, 143, .4); color: #b9f5d8; } .sysrow.tterr { border-color: rgba(255, 77, 99, .45); color: #ffc2cb; }
/* interactions: viewers + everyone who came in; gifts in light yellow */
.evc { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 10px; padding: 3px 10px; border-radius: 999px; background: var(--acc-bg); border: 1px solid var(--line); font-size: 13px; }
.evc i { width: 14px; height: 14px; }
#events .ev.gifty { background: linear-gradient(90deg, rgba(255, 200, 61, .13), rgba(255, 200, 61, .04)); border-color: rgba(255, 200, 61, .35); }

/* live room: comments and interactions only */
.grid-room.two { grid-template-columns: minmax(0,2fr) minmax(300px,1fr); }
.grid-room.two > .card:last-child .card-head { flex-wrap: wrap; row-gap: 8px; }
.grid-room.two > .card:last-child .filters { width: 100%; justify-content: flex-start; }
.grid-room.two > .card:last-child .feed { font-size: 13px; }
@media (max-width: 900px) { .grid-room.two { grid-template-columns: 1fr; } }
.evc small { color: var(--muted); font-size: 11.5px; }
#filters [data-drop] { font-weight: 800; }

/* drop a coin bag / treasure box */
.dropmenu { min-width: 300px; gap: 6px; }
.dropmenu small { color: #8b95a5; font-size: 12.5px; margin-top: 4px; }
.dseg { display: flex; flex-wrap: wrap; gap: 5px; }
.dseg button { flex: 1; min-width: 46px; padding: 7px 6px !important; text-align: center !important; font-size: 13px; direction: ltr; }
.dseg button.on { background: linear-gradient(135deg, #0a5fd1, var(--red-2)) !important; }
.dropmenu .go { margin-top: 8px; background: linear-gradient(135deg, #7a2cd6, #a54bff) !important; text-align: center !important; font-weight: 900 !important; }
.cd { font-weight: 800; color: #ffd75e; direction: rtl; } .cd.opened { color: #4ff0a8; }

.bagkw { margin-top: 4px; font-size: 12.5px; color: #d9b8ff; } .bagkw b { color: #fff; } .bagkw .bj { color: var(--muted-2); }
.bagwin { margin-top: 4px; font-size: 12.5px; color: #4ff0a8; } .bagwin.none { color: var(--muted-2); }
.sysrow.bag { border-color: rgba(165, 75, 255, .45); background: rgba(165, 75, 255, .08); justify-content: flex-start; }

/* Streamlabs donations in the live room */
#events .ev.don { background: linear-gradient(90deg, rgba(49, 196, 141, .16), rgba(49, 196, 141, .04)); border-color: rgba(49, 196, 141, .45); }
.donico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #31c48d, #0e9f6e); color: #fff; font-size: 17px; }
.donv { color: #5eead4; font-size: 15px; }

/* Telegram: logo only, rounded tile like the platform logo */
.tgfab { position: fixed; left: 18px; bottom: 18px; z-index: 61; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(145deg, #2aabee, #1678c9); color: #fff; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(34,158,217,.4), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s, filter .15s; }
.tgfab svg { width: 26px; height: 26px; transform: translateX(-1px); }
.tgfab:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.08); }
/* the topbar button while connected: "قطع الاتصال" in red */
.btn.stopgo { background: linear-gradient(135deg, #b3122e, #ff3b5c) !important; color: #fff !important; border-color: transparent !important; }

/* ================= Looks (themes) =================
   html[data-theme] = colours, html[data-layout] = where the menu sits.
   Chosen in the "الشكل" window (top bar), saved per device. */
/* compact: the same pages, less empty space (every look) */
.page { padding: 18px 20px 32px; gap: 14px; }
.page-head h1 { font-size: 22px; }
.page-head h1 i[data-i] { width: 36px; height: 36px; padding: 8px; }
.card-head { padding: 10px 14px; }
.tile { padding: 14px 13px 12px; }
.tile .ti { width: 36px; height: 36px; margin-bottom: 4px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }

html[data-theme="ember"] {
  --bg: #0e0e10; --bg-2: #121214; --panel: #17171a; --panel-2: #1e1e22; --panel-3: #26262b; --line: #2a2a30; --line-2: #37373e;
  --text: #f5f5f6; --muted: #9a9aa4; --muted-2: #b4b4bd;
  --red: #ff5a1f; --red-2: #ff7a3d; --red-d: #c2410c; --sky: #ff5a1f; --acc: 255 90 31; --acc-bg: #241510; --acc-line: #4a2618;
  --grad: linear-gradient(135deg, #ff7a3d 0%, #ff5a1f 55%, #d9370c 100%); --radius: 14px;
}
html[data-theme="violet"] {
  --bg: #0a0712; --bg-2: #0e0a18; --panel: rgba(28, 20, 48, .72); --panel-2: #1b1530; --panel-3: #241c3d; --line: #2c2347; --line-2: #3a2f5c;
  --text: #f4f1ff; --muted: #a39cbf; --muted-2: #c3b9e8;
  --red: #8b5cf6; --red-2: #a78bfa; --red-d: #6d28d9; --sky: #8b5cf6; --acc: 139 92 246; --acc-bg: #1a1233; --acc-line: #3b2a6b;
  --grad: linear-gradient(135deg, #c084fc 0%, #8b5cf6 50%, #ec4899 100%); --radius: 16px;
}
html[data-theme="mint"] {
  --bg: #060d0c; --bg-2: #08110f; --panel: #0c1715; --panel-2: #10201d; --panel-3: #152a26; --line: #17302b; --line-2: #214039;
  --text: #ecfdf8; --muted: #86a8a0; --muted-2: #a7c7bf;
  --red: #10b981; --red-2: #2dd4a7; --red-d: #047857; --sky: #10b981; --acc: 16 185 129; --acc-bg: #0b1f1a; --acc-line: #1b4a3e;
  --grad: linear-gradient(135deg, #34d399 0%, #10b981 55%, #0f766e 100%); --radius: 12px;
}
html[data-theme="ember"] body::before { background: radial-gradient(900px 500px at 100% -10%, rgba(255, 90, 31, .10), transparent 60%), var(--bg); }
html[data-theme="violet"] body::before { background: radial-gradient(900px 600px at 100% -10%, rgba(139, 92, 246, .22), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(236, 72, 153, .12), transparent 60%), var(--bg); }
html[data-theme="violet"] .card, html[data-theme="violet"] .tile { backdrop-filter: blur(14px); }
html[data-theme="mint"] body::before { background: radial-gradient(900px 500px at 100% -10%, rgba(16, 185, 129, .10), transparent 60%), radial-gradient(rgba(255,255,255,.03) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--bg); }
html[data-theme="ember"] .card { background: var(--panel); border-color: var(--line); box-shadow: none; }
html[data-theme="ember"] .card-head { border-bottom-color: var(--line); }
html[data-theme="ember"] .card-head::before { box-shadow: none; }
html[data-theme] .bnav a.on, html[data-theme] .bnav a.home.on { background: var(--red); box-shadow: 0 6px 18px rgb(var(--acc) / .35); }

/* ---- menu on the side (with the logo on top) ---- */
html[data-layout="side"] { --side: 92px; }
html[data-layout="side"] .bnav { top: var(--winbar); bottom: 0; right: 0; left: auto; transform: none; flex-direction: column; justify-content: flex-start;
  width: var(--side); max-width: none; border-radius: 0; padding: 10px 8px; gap: 3px; overflow-y: auto; overflow-x: hidden;
  background: var(--bg-2); border: 0; border-inline-start: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
html[data-layout="side"] .bnav::before { content: ''; flex: none; height: 54px; margin: 2px 0 8px; background: url(/icon.png) center / 42px no-repeat; filter: drop-shadow(0 0 12px rgb(var(--acc) / .45)); }
html[data-layout="side"] .bnav a { min-width: 0; width: 100%; padding: 8px 4px 7px; font-size: 11px; border-radius: 12px; }
html[data-layout="side"] .bnav .sep { width: auto; height: 1px; margin: 4px 10px; }
html[data-layout="side"] .app { margin-inline-start: var(--side); }
html[data-layout="side"] main.main { padding-bottom: 24px; }
html[data-layout="side"] .tgfab { bottom: 18px; left: 18px; right: auto; }
html[data-layout="side"] .homebtn img { display: none; }
html[data-layout="side"] .homebtn { padding: 0 14px; }

/* ---- menu as tabs under the top bar ---- */
html[data-layout="top"] .bnav { position: sticky; top: calc(var(--winbar) + 0px); bottom: auto; left: auto; transform: none; margin: 0; width: 100%; max-width: none;
  border-radius: 0; flex-direction: row; justify-content: flex-start; gap: 2px; padding: 6px 14px; overflow-x: auto;
  background: var(--bg-2); border: 0; border-bottom: 1px solid var(--line); box-shadow: none; order: -1; }
html[data-layout="top"] .bnav a { flex-direction: row; gap: 6px; min-width: 0; padding: 7px 11px; font-size: 12.5px; border-radius: 10px; }
html[data-layout="top"] .bnav a i[data-i] { width: 17px; height: 17px; }
html[data-layout="top"] main.main { padding-bottom: 24px; }
html[data-layout="top"] body { display: flex; flex-direction: column; }
html[data-layout="top"] .app { flex: 1; min-height: 0; }

/* the look picker */
.looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.look { border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; background: var(--panel-2); text-align: center; font-weight: 600; }
.look.on { border-color: var(--red); box-shadow: 0 0 0 3px rgb(var(--acc) / .2); }
.look .lp { height: 86px; border-radius: 10px; margin-bottom: 8px; display: grid; grid-template-columns: 22% 1fr; gap: 6px; padding: 6px; }
.look .lp i { display: block; border-radius: 6px; }
.look small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.sq-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sq { aspect-ratio: 6 / 5; gap: 6px; }
.sq .ti-ic { width: 48px; height: 48px; border-radius: 14px; }
.sq .ti-ic i[data-i], .sq .ti-ic .coin { width: 24px; height: 24px; }
.sq b { font-size: 14.5px; }
.sq span { font-size: 12px; }
/* actions log: which action fired */
#liveLog .lrow0 { display: flex; }
#liveLog .lact { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--red-2); background: rgb(var(--acc) / .1); border: 1px solid rgb(var(--acc) / .25); }
#liveLog .lact i[data-i] { width: 13px; height: 13px; }

/* actions page: smaller log column and compact alert links */
.actions-layout.v2 { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
#liveLog { padding: 8px 10px; }
#liveLog .ev { padding: 8px 10px; }
.scr-list { gap: 4px; padding: 8px 10px; }
.scr-list .scr2 { padding: 4px 8px; gap: 6px; } .scr-list .scr2 .lbl { width: 110px; }
.scr-list .scr2 .input { height: 26px; font-size: 11px; padding: 0 8px; }
.scr-list .scr2 .btn { height: 26px; padding: 0 8px; font-size: 11px; }
.scr-list .scr2 .lbl b { font-size: 12px; } .scr-list .scr2 .lbl small { font-size: 10.5px; }
.seg[hidden], .card[hidden] { display: none !important; }
#liveLog .ev { border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 6px; }
/* actions: compact like the chat bot list */
.group-head { padding: 8px 12px; gap: 8px; }
.group-head h3 { font-size: 14px; }
.group-head .btn.sm { height: 28px; padding: 0 9px; font-size: 12px; }
.group-body { padding: 8px; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.arow { padding: 6px 8px; gap: 8px; }
.arow .act-ico { width: 30px; height: 30px; border-radius: 8px; }
.arow .act-ico img { width: 24px; height: 24px; }
.arow .ar-t { min-width: 0; }
.arow .ar-t b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .ar-t small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.arow .tchip { display: inline-block; padding: 0 7px; border-radius: 999px; font-weight: 600; color: color-mix(in srgb, var(--gc, var(--red-2)) 75%, #fff); background: color-mix(in srgb, var(--gc, var(--red-2)) 16%, transparent); }
.arow .ar-b { gap: 3px; }
.arow .btn.ic { width: 28px; height: 28px; padding: 0; justify-content: center; }
.arow .btn.ic i[data-i] { width: 14px; height: 14px; }
.arow .toggle { transform: scale(.85); }
/* links: two short rows per line, url on hover */
.scr-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; padding: 8px 10px !important; }
.scr-list .scr2 { padding: 5px 8px; justify-content: space-between; }
.scr-list .scr2 .lbl { width: auto; flex: 1; min-width: 0; }
.scr-list .scr2 .lbl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-list .scr2:last-child { grid-column: 1 / -1; }
.actions-layout.v2 { grid-template-columns: minmax(0, 1fr) 330px !important; }
.actions-layout.v2 .group-body { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 6px !important; }
#liveLog .ev { padding: 7px 9px; gap: 8px; }
#liveLog .ev .ico { width: 28px; height: 28px; }
#liveLog .ev .body { font-size: 12.5px; }
#liveLog .lrow { margin-top: 4px; }
#liveLog .lrow .replay { height: 26px; padding: 0 9px; font-size: 11.5px; }
#logFilter .chip { padding: 3px 9px; font-size: 11.5px; }
/* one action per line, numbered; links one per line with the address shown */
.actions-layout.v2 .group-body { display: flex !important; flex-direction: column; gap: 5px !important; }
.arow .anum { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--gc, var(--red-2)) 80%, #fff); background: color-mix(in srgb, var(--gc, var(--red-2)) 16%, transparent); }
.arow .ar-t { flex: 1; }
.scr-list { display: flex !important; flex-direction: column; gap: 5px !important; }
.scr-list .scr2 { justify-content: flex-start; }
.scr-list .scr2 .lbl { flex: none; width: 150px; }
.scr-list .scr2 .input { flex: 1; height: 28px; font-size: 11.5px; }
#liveLog .lline { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 5px; font-size: 12.5px; }
#liveLog .lline > i[data-i] { width: 14px; height: 14px; color: var(--red-2); flex: none; }
#liveLog .lline b { overflow-wrap: anywhere; line-height: 1.35; }
#liveLog .lline .who { flex: 1; min-width: 0; color: var(--muted-2); overflow-wrap: anywhere; line-height: 1.35; }
#liveLog .lline small { color: var(--muted); font-size: 11px; }
#liveLog .lline .replay { height: 26px; padding: 0 9px; font-size: 11.5px; flex: none; }

/* ===== pill switch with a round knob (Windows 11 style), everywhere ===== */
/* switch: on = coloured, white circle on the right; off = grey, circle on the left. Same in Arabic and English, fixed size. */
.toggle, [dir="ltr"] .toggle { width: 46px; height: 26px; border-radius: 999px; padding: 0; border: none; background: #4a4f5c; box-shadow: none; transition: background .2s; animation: none; }
.toggle::after, [dir="ltr"] .toggle::after { content: ''; position: absolute; inset: auto; top: 3px; left: 3px; right: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; transform: none; transition: left .2s cubic-bezier(.3,1.3,.5,1); -webkit-mask: none; mask: none; filter: none; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.toggle:hover, .toggle:hover::after { filter: none; }
.toggle.on, .group-head .toggle.on { background: var(--red); border: none; box-shadow: none; }
.toggle.on::after, [dir="ltr"] .toggle.on::after { left: 23px; right: auto; width: 20px; height: 20px; background: #fff; }
.group-head .toggle.on { background: var(--gc, var(--red)); }
.arow .toggle { transform: none; width: 46px; height: 26px; }

/* actions page: the alerts and their links side by side, no empty space */
.actions-layout.v2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px !important; }
.actions-layout.v2 > div:first-child { display: contents; }
.actions-layout.v2 > div:first-child > #groups { grid-column: 1; }
.actions-layout.v2 > div:first-child > .card { grid-column: 2; grid-row: 1; margin-top: 0 !important; }
.actions-layout.v2 > .side-stack { grid-column: 3; grid-row: 1; }
.arow { padding: 5px 8px; }
.scr-list .scr2 { flex-wrap: nowrap; }
.scr-list .scr2 .lbl { width: 90px; }
.scr-list .scr2 .lbl small { display: none; }
@media (max-width: 1200px) { .actions-layout.v2 { grid-template-columns: 1fr 300px !important; } .actions-layout.v2 > div:first-child > .card { grid-column: 1; grid-row: auto; } .actions-layout.v2 > .side-stack { grid-column: 2; } }
/* action editor: gift picker as a dropdown, hidden parts really hidden */
.section[hidden], .field[hidden] { display: none !important; }
.gpick { position: relative; max-width: 420px; }
.gdrop { width: 100%; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; }
.gdrop:hover, .gdrop.open { border-color: var(--red); }
.gdrop > i[data-i] { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; margin-inline-start: auto; }
.gdrop.open > i[data-i] { transform: rotate(180deg); }
.gd-sel { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.gd-sel .gi img { width: 30px; height: 30px; object-fit: contain; }
.gd-sel b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-sel .gd { margin-inline-start: auto; color: #ffc93c; font-weight: 700; font-size: 13px; }
.gpop { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline: 0; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.gpop .row-gap { margin-bottom: 6px; }
.gpop .gift-list { max-height: 320px; }
/* supporter look: four small boxes with an arrow, under the preview */
#donorStyle .dprev { margin-bottom: 10px; }
.lk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lk { position: relative; }
.lk-btn { width: 100%; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; text-align: start; }
.lk-btn:hover, .lk-btn.open { border-color: var(--red); }
.lk-l { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lk-v { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: flex-end; }
.lk-btn > i[data-i] { width: 15px; height: 15px; color: var(--muted); flex: none; transition: transform .2s; }
.lk-btn.open > i[data-i] { transform: rotate(180deg); }
.lk-sw { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); display: inline-block; }
.lk-pop { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-start: 0; min-width: 100%; width: max-content; max-width: 260px; max-height: 280px; overflow: auto; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 16px 36px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 2px; }
.lk-pop[hidden] { display: none; }
.lk-pop > button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: start; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.lk-pop > button:hover { background: var(--panel-2); } .lk-pop > button.on { background: rgb(var(--acc) / .18); color: #fff; }
.lk-sws { display: grid; grid-template-columns: repeat(4, 28px); gap: 8px; padding: 6px; }
.lk-sws b { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.15); }
.lk-sws b.on { border-color: #fff; box-shadow: 0 0 0 2px var(--red); }
.lk-own { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px; font-size: 12.5px; color: var(--muted-2); border-top: 1px solid var(--line); margin-top: 4px; }
.lk-own input { width: 36px; height: 26px; border: 0; background: none; padding: 0; cursor: pointer; }
@media (max-width: 760px) { .lk-row { grid-template-columns: 1fr 1fr; } }
/* where the supporter's picture sits on the clip */
.pstage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: repeating-conic-gradient(#15151a 0 25%, #0e0e12 0 50%) 0 0 / 22px 22px; background-size: cover; background-position: center; }
.pstage video { position: absolute; object-fit: contain; }
.pempty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.pdon { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: grab; touch-action: none; user-select: none; }
.pdon:active { cursor: grabbing; }
.pring { width: var(--r, 60px); height: var(--r, 60px); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #5a1020, #1a0508 75%); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red), 0 0 18px rgb(var(--acc) / .7); color: #fff; font-weight: 800; }
.pname { font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px #000; }

/* home: top streamers (leaderboard look, the website shows a podium) */
.lb{margin-bottom:14px;flex-direction:column;align-items:stretch}.lb>.lb-list,.lb>.lb-me{align-self:stretch}
.lb-list{display:flex;flex-direction:column;gap:8px;padding:6px 14px 4px}
.lb-row{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:rgb(var(--acc) / .05);border:1px solid var(--line);overflow:hidden;animation:lbIn .6s cubic-bezier(.2,.9,.3,1.1) both;--c1:#e2e8f0;--c2:#8a96a8}
.lb-row.m1{--c1:#ffe27a;--c2:#d99400;background:linear-gradient(90deg,rgba(255,200,60,.12),transparent 70%);border-color:rgba(255,200,60,.35)}
.lb-row.m2{animation-delay:.08s}.lb-row.m3{--c1:#ffb48a;--c2:#c2410c;animation-delay:.16s}
@keyframes lbIn{from{opacity:0;transform:translateX(-18px)}}
.lb-rk{width:30px;height:30px;flex:none;border-radius:9px;display:grid;place-items:center;font-weight:800;color:#111;background:linear-gradient(var(--c1),var(--c2))}
.m1 .lb-rk{background:none;font-size:22px;animation:lbBob 2.4s ease-in-out infinite}@keyframes lbBob{50%{transform:translateY(-3px) rotate(-6deg)}}
.lb-av{width:42px;height:42px;flex:none;border-radius:50%;background:#1b2433 center/cover;display:grid;place-items:center;font-weight:800;color:#fff;box-shadow:0 0 0 2px var(--c1)}
.lb-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.lb-t b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lb-t small{color:var(--muted);font-size:11.5px;text-align:right}
.lb-bar{display:block;height:4px;border-radius:4px;margin-top:4px;background:rgb(var(--acc) / .12);position:relative;overflow:hidden}
.lb-bar::after{content:'';position:absolute;inset:0 0 0 auto;width:var(--w);border-radius:4px;background:linear-gradient(90deg,var(--c2),var(--c1));animation:lbW 1.2s .2s cubic-bezier(.3,.9,.3,1) both}
@keyframes lbW{from{width:0}}
.lb-h{text-align:center;flex:none}.lb-h b{display:block;font-size:20px;font-weight:800;background:linear-gradient(var(--c1),var(--c2));-webkit-background-clip:text;background-clip:text;color:transparent}.lb-h small{color:var(--muted);font-size:11px}
.lb-row.empty{opacity:.55}.lb-row.empty .lb-av{font-size:18px}
.lb-me{margin:8px 14px 14px;padding:10px 12px;border-radius:12px;background:rgb(var(--acc) / .08);color:var(--muted);font-size:13px}.lb-me b{color:var(--text)}
.lb-av{overflow:hidden}.lb-av img{width:100%;height:100%;object-fit:cover;display:block}
.lb-crown{width:30px;height:25px;display:block;filter:drop-shadow(0 3px 8px rgba(255,190,40,.6))}

/* ===== cards with round pieces: alerts (actions page) ===== */
.group-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.group-body > :not(.arow) { grid-column: 1 / -1; }
.arow { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico txt" "ico btn"; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 100%, transparent), var(--panel)); border: 1px solid var(--line); transition: border-color .15s, transform .15s, box-shadow .15s; }
.arow:hover { border-color: color-mix(in srgb, var(--gc, var(--red-2)) 60%, var(--line)); box-shadow: 0 10px 30px rgb(var(--acc) / .14); transform: translateY(-2px); }
.arow.off { opacity: .5; }
.arow .act-ico { grid-area: ico; width: 72px; height: 72px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--gc, var(--red-2)), color-mix(in srgb, var(--gc, var(--red-2)) 30%, #fff)) border-box; box-shadow: 0 0 18px color-mix(in srgb, var(--gc, var(--red-2)) 35%, transparent); }
.arow .act-ico img { width: 40px; height: 40px; border-radius: 50%; }
.arow .ar-t { grid-area: txt; }
.arow .ar-t b { font-size: 15.5px; font-weight: 800; white-space: normal; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arow .ar-t small { margin-top: 6px; font-size: 12px; white-space: normal; }
.arow .tchip { padding: 2px 10px; }
.arow .anum { position: absolute; top: 10px; left: 12px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--muted-2); }
.arow .ar-b { grid-area: btn; display: flex; align-items: center; gap: 6px; }
.arow .btn.ic { width: 34px; height: 34px; border-radius: 50%; padding: 0; justify-content: center; }
.arow .btn.ic i[data-i] { width: 16px; height: 16px; }
.arow .ar-b .toggle { margin-inline-start: auto; }
.arow .act-ico img { width: 48px; height: 48px; }
.arow .act-ico i[data-i], .arow .act-ico svg { width: 30px; height: 30px; }

/* ===== round-card look (blue theme) ===== */
.card{border-radius:22px}
.btn.ic{border-radius:50%}

/* ===== alert links: round cards ===== */
.scr-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; padding: 12px !important; }
.scr-list .scr2 { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "ic lbl btn" "url url url"; align-items: center; gap: 10px 12px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg,var(--panel-2),var(--panel)); border: 1px solid var(--line); }
.scr-list .scr2:hover { border-color: color-mix(in srgb, var(--red-2) 55%, var(--line)); }
.scr-list .scr2.bar { grid-column: 1 / -1; }
.scr-list .scr-ic { grid-area: ic; position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--panel-3); border: 3px solid var(--line-2); }
.scr-list .scr2.on .scr-ic { border-color: #23e08f; box-shadow: 0 0 0 4px rgba(35,224,143,.14), 0 0 18px rgba(35,224,143,.35); }
.scr-list .scr-ic i { width: 22px; height: 22px; }
.scr-list .scr-ic em { position: absolute; bottom: -4px; left: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.scr-list .scr2 .lbl { grid-area: lbl; width: auto !important; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scr-list .scr2 .lbl b { font-size: 15px !important; font-weight: 800; }
.scr-list .scr2 .lbl small { display: flex; align-items: center; gap: 6px; font-size: 12px !important; color: var(--muted-2); }
.scr-list .scr2 .lbl .d { width: 8px; height: 8px; border-radius: 50%; background: #6b6590; flex: none; }
.scr-list .scr2.on .lbl .d { background: #23e08f; box-shadow: 0 0 8px #23e08f; }
.scr-list .scr2 .input { grid-area: url; height: 34px !important; border-radius: 999px; font-size: 11.5px !important; padding: 0 14px !important; background: var(--bg-2); }
.scr-list .scr2 .btn.ic { grid-area: btn; width: 40px; height: 40px !important; padding: 0 !important; border-radius: 50%; justify-content: center; }
.scr-list .scr2 .btn.ic i { width: 17px; height: 17px; }

/* ===== alert log: round rows ===== */
#liveLog .lline { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 18px; background: linear-gradient(180deg,var(--panel-2),var(--panel)); border: 1px solid var(--line); }
#liveLog .lav { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: radial-gradient(circle at 35% 30%, #4da3ff, #004593); box-shadow: 0 0 0 3px rgb(var(--acc) / .22); }
#liveLog .ltx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#liveLog .ltx b { font-size: 14px; font-weight: 800; max-width: none; }
#liveLog .ltx .who { font-size: 12px; color: var(--muted-2); }
#liveLog .replay.ic { width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; flex: none; }
.arow .schip { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; padding: 2px 10px; border-radius: 999px; font-weight: 700; color: #9fd0ff; background: rgb(var(--acc) / .16); border: 1px solid rgb(var(--acc) / .38); }
.arow .schip i[data-i] { width: 12px; height: 12px; }
/* alert log: viewer photo + what they did, time and screen */
#liveLog .lav { position: relative; overflow: visible; }
#liveLog .lav > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
#liveLog .lev { position: absolute; bottom: -4px; left: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); border: 2px solid var(--panel); color: #fff; overflow: hidden; }
#liveLog .lev img { width: 100%; height: 100%; object-fit: contain; }
#liveLog .lev i { width: 12px; height: 12px; }
#liveLog .ev-like .lev { background: #e11d48; } #liveLog .ev-follow .lev { background: #16a34a; } #liveLog .ev-share .lev { background: #0ea5e9; }
#liveLog .ev-chat .lev { background: #2563eb; } #liveLog .ev-join .lev { background: #7c3aed; } #liveLog .ev-donation .lev { background: #059669; }
#liveLog .lmeta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 2px; }
#liveLog .lscr { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; border-radius: 999px; background: rgb(var(--acc) / .14); color: #9fd0ff; font-weight: 700; }
#liveLog .lscr i { width: 11px; height: 11px; }
/* action editor, TikOverlay-style order */
#editorBg .modal { border-radius: 24px; }
#editorBg .flbl, #editorBg .section-title { font-weight: 800; font-size: 14px; }
#editorBg .section { border-radius: 18px; }
#editorBg .evsel { max-width: none; height: 46px; border-radius: 14px; font-weight: 800; color: #9fd0ff; background: rgb(var(--acc) / .10); border-color: rgb(var(--acc) / .45); }
#editorBg .modal-foot { align-items: center; }
#editorBg .adv { border: 1px dashed var(--line-2); }
/* actions page: the alerts (right), the alerts console beside them, the alert links under the alerts */
.actions-layout.v2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important; }
.actions-layout.v2 > div:first-child { display: contents; }
.actions-layout.v2 > div:first-child > #groups { grid-column: 1; grid-row: 1; }
.actions-layout.v2 > div:first-child > .card { grid-column: 1; grid-row: 2; margin-top: 0 !important; }
.actions-layout.v2 > .side-stack { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 12px; }
@media (max-width: 1100px) { .actions-layout.v2 { grid-template-columns: 1fr !important; } .actions-layout.v2 > div:first-child > #groups, .actions-layout.v2 > div:first-child > .card, .actions-layout.v2 > .side-stack { grid-column: 1; grid-row: auto; position: static; } }
/* alert links: one under the other (screen 1, 2, 3, 4, then the gifts bar), each on one line */
.scr-list { grid-template-columns: 1fr !important; }
.scr-list .scr2 { grid-template-columns: auto minmax(110px, auto) minmax(0, 1fr) auto; grid-template-areas: "ic lbl url btn"; padding: 10px 14px; }
.scr-list .scr2.bar { grid-column: auto; padding: 6px 14px; }
.scr-list .scr2.bar .scr-ic { width: 40px; height: 40px; }
.scr-list .scr2.bar .lbl small { display: none; }
/* the alerts console a little wider */
.actions-layout.v2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
@media (max-width: 1100px) { .actions-layout.v2 { grid-template-columns: 1fr !important; } }

/* "جديد" on alerts added in the last 3 days */
.newb{position:absolute;top:8px;right:8px;z-index:3;padding:3px 10px;border-radius:999px;background:linear-gradient(135deg,#0a5fd1,var(--red-2));color:#fff;font-weight:800;font-size:12px;box-shadow:0 0 12px rgba(47,139,255,.7);animation:nb 1.6s ease-in-out infinite}

/* ---- action editor (TikOverlay-style layout) ---- */
#editorBg .modal-head { background: #121214; }
.whobox { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--panel2, #0b1220); border: 1px solid var(--line, #2a2a2e); border-radius: 12px; padding: 10px 14px; margin: 4px 0 12px; }
.whobox .check { margin: 0; }
.atc { border: 1px solid var(--line, #2a2a2e); border-radius: 14px; background: #161618; margin-bottom: 10px; }
.atc.on { border-color: #2f6fd1; }
.atc .ath { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 800; cursor: pointer; margin: 0; }
.atc .ath i { color: #5aa2ff; }
.atc .atb { display: none; padding: 0 12px 12px; }
.atc.on .atb { display: block; }
.atc.sl { padding: 12px 14px; }
.atc .note { background: rgb(var(--acc) / .12); border: 1px solid #1b3566; border-radius: 10px; padding: 8px 10px; color: #9fc6ff; margin-top: 8px; display: block; }
.libbtn { width: 100%; justify-content: center; background: #0f1d38; border-color: #2f6fd1; color: #9fc6ff; font-weight: 800; margin-bottom: 10px; }
.dz { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed #2f6fd1; border-radius: 12px; padding: 16px; text-align: center; background: #081227; cursor: pointer; margin-bottom: 10px; }
.dz i { font-size: 26px; color: #2f8bff; } .dz small { color: #7b8698; }
.dz.over { background: rgba(47,139,255,.14); border-color: #5aa2ff; }
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shapes button { background: #0b1220; border: 1px solid #2a2a2e; border-radius: 10px; padding: 8px 2px; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.shapes button i { display: block; width: 28px; height: 28px; margin: 0 auto 5px; background: #2f8bff; }
.shapes button.on { border-color: #2f8bff; background: rgb(var(--acc) / .12); }
#advBox:not([hidden]) { position: fixed; z-index: 120; top: 4vh; left: 50%; transform: translateX(-50%); width: min(980px, 94vw); max-height: 92vh; overflow: auto; background: #070b14; border: 1px solid #2f6fd1; border-radius: 18px; padding: 16px 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.6), 0 30px 80px #000; }
#advBox .section-title { display: flex; align-items: center; }
#emPop { max-height: 360px; overflow: auto; }
.fp { width: 240px; padding: 4px; }
.fp-sv { position: relative; height: 140px; border-radius: 8px; cursor: crosshair; touch-action: none; }
.fp-sv b { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #000; pointer-events: none; }
.fp-h { position: relative; height: 14px; border-radius: 7px; margin-top: 10px; cursor: pointer; touch-action: none; background: linear-gradient(to right, red, #ff0, lime, cyan, blue, #f0f, red); }
.fp-h b { position: absolute; top: -4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; border: 2px solid #000; pointer-events: none; }
.fp-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.fp-now { width: 34px; height: 34px; border-radius: 8px; border: 2px solid #fff3; flex: none; }
.fp-hex { flex: 1; padding: 6px 10px; font-size: 13px; }

.tb-ver { display: block; font-size: 11px; color: #7fb4ff; opacity: .85; direction: rtl; }
/* the version sits small in the top-left corner; under the name only the live title (from LIVE Studio) */
.tb-corner { position: absolute; top: 4px; left: 12px; font-size: 10.5px; opacity: .7; pointer-events: none; z-index: 2; }

.evpop { display: flex; flex-direction: column; padding: 6px; max-height: 330px; overflow: auto; }
.evpop button, .evdrop .gd-sel { display: flex; align-items: center; gap: 10px; }
.evpop button { background: none; border: 0; color: inherit; font: inherit; font-weight: 800; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: start; }
.evpop button:hover, .evpop button.on { background: rgb(var(--acc) / .12); color: #9fc6ff; }
.evpop i, .evdrop i:not(:last-child) { color: #5aa2ff; }
.evdrop { border-color: #2f6fd1 !important; background: rgb(var(--acc) / .12) !important; color: #9fc6ff; font-weight: 800; }

/* advanced settings window: preview on the right, settings on the left */
#advBox:not([hidden]) { top: 3vh; width: min(1240px, 96vw); max-height: 94vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
#advBox .adv-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #232326; background: #121214; }
#advBox .adv-head h2 { margin: 0; font-size: 20px; display: flex; gap: 8px; align-items: center; } #advBox .adv-head h2 i { color: #2f8bff; }
#advBox .adv-head .x { background: none; border: 0; color: #8b95a5; font-size: 26px; cursor: pointer; }
.adv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; padding: 14px 18px; overflow: auto; min-height: 0; }
.adv-cap { text-align: center; margin-bottom: 6px; } .adv-cap i { color: #2f8bff; }
.adv-set { display: flex; flex-direction: column; gap: 12px; }
.adv-card { background: #161618; border: 1px solid #2a2a2e; border-radius: 14px; padding: 12px 14px; }
.adv-card > b { display: block; margin-bottom: 4px; }
.adv-pos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pos-c { background: #161618; border: 1px solid #2a2a2e; border-radius: 12px; padding: 10px 12px; }
.pos-h { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; color: #9fc6ff; } .pos-h b { color: #5aa2ff; direction: ltr; }
.pos-c input[type=range] { width: 100%; margin: 8px 0 2px; } .pos-e { display: flex; justify-content: space-between; font-size: 11.5px; color: #7b8698; }
.adv-foot { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid #232326; }
.pdon .pring { background: none; box-shadow: none; position: relative; }
.pdon .pav { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--frc, #2f8bff), 0 0 18px var(--frc, #2f8bff); }
.pdon .pav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdon[data-sh] .pring { clip-path: var(--clip); background: var(--frc, #2f8bff); }
.pdon[data-sh] .pav { inset: 7%; border-radius: 0; clip-path: var(--clip); box-shadow: none; }
.pdon[data-sh="rsquare"] { --clip: inset(0 round 22%); } .pdon[data-sh="hex"] { --clip: polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%); }
.pdon[data-sh="diamond"] { --clip: polygon(50% 0,100% 50%,50% 100%,0 50%); } .pdon[data-sh="star"] { --clip: polygon(50% 0,61% 34%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 34%); }
.pdon[data-sh="shield"] { --clip: polygon(50% 0,96% 14%,92% 60%,50% 100%,8% 60%,4% 14%); } .pdon[data-sh="oct"] { --clip: polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%); }
.pdon[data-sh="heart"] { --clip: polygon(50% 96%,10% 58%,2% 38%,4% 20%,14% 8%,28% 3%,42% 8%,50% 18%,58% 8%,72% 3%,86% 8%,96% 20%,98% 38%,90% 58%); }
.pdon .pname, .pdon .ptext { font-weight: 800; text-shadow: 0 2px 6px #000; white-space: nowrap; }
.pdon[data-sh=""] .pring { clip-path: none; background: none; }
@media (max-width: 900px) { .adv-grid { grid-template-columns: 1fr; } }

/* ===== Tik4U look like TikOverlay: carbon grey + the logo's blue only as a thin line and accents ===== */
html:not([data-theme]) {
  --bg: #0c0c0d; --bg-2: #111113; --panel: #151517; --panel-2: #1b1b1e; --panel-3: #222226; --line: #242428; --line-2: #303035;
  --muted: #8d8d96; --muted-2: #a3a3ad; --acc-bg: #151517; --acc-line: #242428;
  --grad: linear-gradient(135deg, var(--red-2), var(--red));
}
html:not([data-theme]) body::before { background: radial-gradient(1000px 600px at 50% 40%, rgb(var(--acc) / .05), transparent 70%); }
html:not([data-theme]) body::after { width: min(62vw, 820px); opacity: .07; filter: grayscale(.2); }
/* cards: flat grey, a glowing logo-blue line on top */
html:not([data-theme]) .card, html:not([data-theme]) .group, html:not([data-theme]) .modal, html:not([data-theme]) .tile {
  background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35) !important; backdrop-filter: none; }
html:not([data-theme]) .card::before, html:not([data-theme]) .modal::before {
  content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 2px; border-radius: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--red-2) 30%, var(--red-2) 70%, transparent); box-shadow: 0 0 12px rgb(var(--acc) / .6); }
html:not([data-theme]) .modal { position: relative; }
html:not([data-theme]) .card-head { border-bottom-color: transparent; }
html:not([data-theme]) .card-head::before { display: none; }
/* buttons: dark fill + blue outline + blue text, like TikOverlay's red ones */
html:not([data-theme]) .btn { background: var(--panel-2); border: 1px solid var(--line-2); color: #e6e6ea; box-shadow: none; }
html:not([data-theme]) .btn:hover { border-color: rgb(var(--acc) / .6); color: #fff; }
html:not([data-theme]) .btn.primary, html:not([data-theme]) .btn.warn {
  background: rgb(var(--acc) / .12) !important; border: 1px solid rgb(var(--acc) / .55) !important; color: var(--red-2) !important; box-shadow: none !important; font-weight: 800; }
html:not([data-theme]) .btn.primary:hover, html:not([data-theme]) .btn.warn:hover { background: rgb(var(--acc) / .2) !important; box-shadow: 0 0 16px rgb(var(--acc) / .3) !important; filter: none; }
html:not([data-theme]) .btn.primary i, html:not([data-theme]) .btn.warn i { color: var(--red-2); }
/* toggles: dark track, blue knob */
html:not([data-theme]) .toggle { background: #2a2a2e !important; border-color: #34343a !important; box-shadow: none !important; }
html:not([data-theme]) .toggle.on { background: rgb(var(--acc) / .25) !important; border-color: rgb(var(--acc) / .5) !important; }
html:not([data-theme]) .toggle.on::after { background: var(--red-2) !important; box-shadow: 0 0 8px rgb(var(--acc) / .7); }
/* inputs and rows */
html:not([data-theme]) .input, html:not([data-theme]) select.input, html:not([data-theme]) textarea.input { background: #111113 !important; border-color: var(--line-2) !important; }
html:not([data-theme]) .input:focus { border-color: rgb(var(--acc) / .7) !important; box-shadow: 0 0 0 3px rgb(var(--acc) / .12) !important; }
html:not([data-theme]) .arow, html:not([data-theme]) .lline { background: var(--panel-2) !important; border-color: var(--line) !important; }
html:not([data-theme]) .group-head { background: var(--panel-2) !important; box-shadow: inset -3px 0 0 var(--gc, var(--red-2)) !important; }
html:not([data-theme]) .group-head .count { background: #2a2a2e !important; color: #cfcfd6 !important; }
html:not([data-theme]) .topbar { background: rgba(12,12,13,.85) !important; border-bottom: 1px solid var(--line) !important; }
html:not([data-theme]) .dock, html:not([data-theme]) .bnav { background: #121214 !important; border-color: var(--line) !important; }
html:not([data-theme]) .evdrop { background: var(--panel-2) !important; border-color: var(--line-2) !important; color: #e6e6ea; }

/* ===== actions page like TikOverlay: actions on the right, the alerts console on the left ===== */
.actions-layout.v3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .actions-layout.v3 { grid-template-columns: 1fr !important; } }
.actions-layout.v3 .side-a, .actions-layout.v3 .side-b { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.act-top { flex-direction: row !important; gap: 14px; padding: 16px; justify-content: space-between; }
.act-top .btn { height: 50px; padding: 0 22px; font-size: 15px; } .act-top .btn.big { flex: 1; max-width: 280px; font-size: 16px; }
.act-list { padding: 14px 16px 16px; } .act-list .card-head { padding: 12px 0 10px; }
.al-tools { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#groups { display: flex; flex-direction: column; gap: 10px; }
.actions-layout.v3 .group { box-shadow: none !important; border-radius: 12px; }
.actions-layout.v3 .group::before { display: none; }
.actions-layout.v3 .group-head { cursor: pointer; padding: 14px 16px; gap: 10px; border-bottom: 0; border-radius: 12px; box-shadow: inset -3px 0 0 var(--gc) !important; }
.actions-layout.v3 .group:not(.collapsed) .group-head { border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line); }
.gdot2 { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); box-shadow: 0 0 8px var(--gc); flex: none; }
.gfold { color: var(--gc); font-size: 17px; }
.actions-layout.v3 .group-head h3 { font-size: 15.5px; font-weight: 800; }
.actions-layout.v3 .group-head .count { min-width: 30px; text-align: center; font-size: 12px; font-weight: 800; }
.gic { background: none; border: 0; color: #a7a7b0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; font-size: 15px; }
.gic:hover { background: #26262a; color: #fff; }
.gchev i { transition: transform .2s; } .gchev.open i { transform: rotate(180deg); }
.actions-layout.v3 .group.collapsed .group-body { display: none !important; }
.actions-layout.v3 .group-body { display: flex !important; flex-direction: column; gap: 6px !important; padding: 10px !important; }
.gadd { align-self: flex-start; margin-top: 4px; }
/* console as a table */
.dock-link { padding: 0 16px 10px; } .dock-link small { display: block; text-align: end; color: var(--muted); font-weight: 800; font-size: 11.5px; margin-bottom: 6px; letter-spacing: .3px; }
.dock-link > div { display: flex; gap: 8px; } .dock-link .input { flex: 1; font-size: 12px; height: 34px; } .dock-link .btn { height: 34px; padding: 0 18px; font-weight: 800; }
.ltable-h, .lrow { display: grid; grid-template-columns: 82px minmax(0, 1.4fr) 44px minmax(0, 1fr) 42px 46px; align-items: center; gap: 6px; padding: 0 12px; }
.ltable-h { margin: 0 16px; padding-block: 8px; font-size: 11.5px; font-weight: 800; color: var(--muted); background: #111113; border-radius: 8px 8px 0 0; }
.ltable-h span:nth-child(n+3) { text-align: center; }
#liveLog { padding: 0 16px 14px !important; }
.lrow { min-height: 46px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.lrow:hover { background: #1a1a1d; }
.lrow .lt { color: var(--muted); font-size: 11.5px; direction: ltr; text-align: end; }
.lrow .lu { display: flex; align-items: center; gap: 8px; min-width: 0; } .lrow .lu b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.lrow .lav { position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #2a2a2e; font-size: 11px; font-weight: 800; overflow: hidden; }
.lrow .lav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lrow .le { display: grid; place-items: center; color: var(--red-2); } .lrow .le img { width: 20px; height: 20px; object-fit: contain; }
.lrow .la { font-weight: 800; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .ls { text-align: center; color: var(--muted-2); }
.lrow .replay { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: #111113; color: #e6e6ea; cursor: pointer; display: grid; place-items: center; justify-self: center; }
.lrow .replay:hover { border-color: rgb(var(--acc) / .6); color: var(--red-2); }
/* screen links as rows */
.actions-layout.v3 .scr-list { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.actions-layout.v3 .scr2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lbl url copy"; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.actions-layout.v3 .scr2 .scr-ic { display: none; }
.actions-layout.v3 .scr2 .lbl { grid-area: lbl; min-width: 88px; } .actions-layout.v3 .scr2 .lbl b { font-size: 14.5px; font-weight: 800; display: block; }
.actions-layout.v3 .scr2 .lbl small { color: #ff4d5e; font-weight: 800; font-size: 11.5px; } .actions-layout.v3 .scr2.on .lbl small { color: #23e08f; }
.actions-layout.v3 .scr2 .input { grid-area: url; height: 36px; font-size: 12px; } .actions-layout.v3 .scr2 .btn { grid-area: copy; height: 36px; }
.actions-layout.v3 .gchev { width: 30px; height: 30px; border: 0; background: none; color: #a7a7b0 !important; transform: none !important; }
.actions-layout.v3 .gchev i[data-i] { width: 16px; height: 16px; }
.actions-layout.v3 .group-head .toggle { flex: none; }
#liveLog .lrow .lav { width: 26px !important; height: 26px !important; min-width: 0 !important; font-size: 11px !important; box-shadow: none !important; border: 0 !important; }
#liveLog .lrow .lav .lev { display: none; }

/* goals page like TikOverlay */
.goals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .goals-grid { grid-template-columns: 1fr; } }
.gcard { overflow: hidden; } .gcard .card-head { border-bottom: 1px solid var(--line) !important; } .gcard .card-head h3 { font-size: 16px; font-weight: 800; }
.gbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.gbar .input { flex: 1; min-width: 0; height: 36px; font-size: 12px; font-family: monospace; }
.gbar .btn { height: 36px; padding: 0 18px; font-weight: 800; }
.gb { height: 36px; min-width: 38px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.gb.set { background: rgb(var(--acc) / .12); border: 1px solid rgb(var(--acc) / .45); color: var(--red-2); }
.gb.play { background: rgba(255, 196, 0, .1); border: 1px solid rgba(255, 196, 0, .45); color: #ffc400; }
.gb.rst { background: rgba(255, 70, 90, .1); border: 1px solid rgba(255, 70, 90, .45); color: #ff6b7d; }
.gb:hover { filter: brightness(1.25); }
.gprev { position: relative; height: 420px; background: #000; }
.gprev iframe { width: 100%; height: 100%; border: 0; display: block; }
.garr { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 14px rgb(var(--acc) / .5); }
.garr.r { right: 10px; } .garr.r i { transform: rotate(-90deg); } .garr.l { left: 10px; } .garr.l i { transform: rotate(90deg); }
.gnum { position: absolute; bottom: 10px; inset-inline-start: 12px; font-size: 11.5px; color: #777; direction: ltr; }
.gsmodal { width: min(620px, 100%); } .gsmodal .modal-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; overflow-y: auto; }
.gsl { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-top: 8px; } .gsl i, .gsl .hico { color: var(--red-2); font-style: normal; }
.gsh { color: var(--muted); font-size: 12px; } .gsmodal .input { height: 44px; }
.gscol { width: 44px; height: 44px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: #111113; cursor: pointer; }
.gsmodal .modal-foot { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.evpop[hidden], .gpop[hidden] { display: none !important; }

.hexin { margin-top: 6px; height: 32px !important; font-family: monospace; font-size: 12.5px; text-align: left; }
.huef input[type=range] { width: 100%; height: 14px; -webkit-appearance: none; appearance: none; border-radius: 10px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); outline: none; }
.huef input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #333; cursor: pointer; }
.huef label { display: flex; align-items: center; gap: 8px; } .huef label b { color: var(--red-2); margin-inline-start: auto; }

#donorStyle .lk-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#donorStyle .lk { min-width: 0; } #donorStyle .lk-btn { width: 100%; min-width: 0; padding-inline: 8px; }
.adv-set .lk-row:has(#fNameFont) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* shared free colour button */
.cb { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; } .cb > label { font-size: 12.5px; font-weight: 800; color: var(--muted-2); }
.cb-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; background: #111113; border: 1px solid var(--line-2); color: #e6e6ea; cursor: pointer; font: inherit; font-size: 12.5px; }
.cb-btn:hover { border-color: rgb(var(--acc) / .6); } .cb-btn i { margin-inline-start: auto; color: var(--muted); }
.cb-sw { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); flex: none; }
.cb-sw.rbw { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f) !important; }
.cb-pop { position: absolute; z-index: 60; top: 100%; inset-inline-start: 0; margin-top: 6px; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.cb-pop[hidden] { display: none !important; } .cb-rbw { width: 100%; margin-bottom: 8px; }
.wsCols.cbs, #sCols.cbs { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.setgrid > b { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; } .setgrid > b i { color: var(--red-2); }
.setgrid .field { margin: 0; } .setgrid select.input { height: 40px; }

.gearc { width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; display: inline-grid !important; place-items: center; }
.gearc i { font-size: 17px; }

/* preview: the frame colour turns around the picture like on the stream */
.pdon .pring { position: relative; }
.pdon .pring::before, .pdon .pring::after { content: ''; position: absolute; inset: -9%; border-radius: 50%; pointer-events: none; z-index: 3;
  background: conic-gradient(from 0deg, transparent 0 12%, var(--frc, #2f8bff) 26%, #fff 31%, var(--frc, #2f8bff) 36%, transparent 50% 62%, var(--frc, #2f8bff) 76%, #fff 81%, var(--frc, #2f8bff) 86%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  filter: drop-shadow(0 0 6px var(--frc, #2f8bff)); animation: frcspin 1.6s linear infinite; }
.pdon .pring::after { inset: -16%; opacity: .55; animation-duration: 2.8s; animation-direction: reverse; }
.pdon .pav { animation: pglow 1.8s ease-in-out infinite; }
@keyframes frcspin { to { transform: rotate(1turn); } }
@keyframes pglow { 50% { box-shadow: 0 0 0 4px var(--frc, #2f8bff), 0 0 30px var(--frc, #2f8bff), 0 0 55px var(--frc, #2f8bff); } }

/* 4 picture shapes, filled with colour like TikOverlay */
.shapes.four { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shapes.four button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 12px; background: #111113; border: 1px solid var(--line-2); color: #cfcfd6; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.shapes.four button i { width: 34px; height: 34px; background: linear-gradient(145deg, color-mix(in srgb, var(--red-2) 65%, #fff), var(--red-2) 55%, color-mix(in srgb, var(--red-2) 60%, #000)); box-shadow: inset 0 -3px 6px rgba(0,0,0,.35); }
.shapes.four button.on { border-color: var(--red-2); background: rgb(var(--acc) / .14); color: #fff; box-shadow: 0 0 12px rgb(var(--acc) / .35); }
/* preview: shapes get the turning colour too */
.pdon[data-sh] .pring { overflow: hidden; }
.pdon[data-sh] .pring::before { inset: -40%; border-radius: 0; -webkit-mask: none; mask: none; filter: none; z-index: 0; background: conic-gradient(from 0deg, var(--frc, #2f8bff), #fff 8%, var(--frc, #2f8bff) 16%, color-mix(in srgb, var(--frc, #2f8bff) 45%, #000) 50%, var(--frc, #2f8bff) 66%, #fff 74%, var(--frc, #2f8bff) 82%); animation-duration: 2s; }
.pdon[data-sh] .pring::after { display: none; }
.pdon[data-sh] .pav { z-index: 2; animation: none; }
.pdon[data-sh] { filter: drop-shadow(0 0 10px var(--frc, #2f8bff)); }
.frow.named { display: flex; flex-wrap: wrap; gap: 10px; } .fnm { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; }
.fnm small { font-size: 10.5px; color: var(--muted-2); text-align: center; line-height: 1.25; font-weight: 700; }
.xfc { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; } .xfc .cb { flex: 1; min-width: 220px; }

.pmute { position: absolute; z-index: 6; bottom: 10px; inset-inline-start: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,0,0,.6); color: #fff; font-size: 17px; cursor: pointer; }
.pdon [hidden] { display: none !important; }
.pdon { gap: 0 !important; }
#pStage { background-color: #0d0d0f !important; background-image: repeating-conic-gradient(#161618 0 25%, #0f0f11 0 50%) !important; background-size: 28px 28px !important; }

.rkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 12px 16px; overflow: auto; max-height: 58vh; }
.rkit { border-radius: 12px; border: 2px solid var(--line); background: #0d0d0f; cursor: pointer; overflow: hidden; }
.rkit.on { border-color: var(--red-2); box-shadow: 0 0 14px rgb(var(--acc) / .4); }
.rkit .rkpv { height: 150px; pointer-events: none; background: repeating-conic-gradient(#151517 0 25%, #101012 0 50%) 0 0/18px 18px; }
.rkit .rkpv iframe { width: 100%; height: 100%; border: 0; }
.rkit b { display: block; text-align: center; padding: 6px; font-size: 13px; }
.rkcol { display: flex; gap: 10px; align-items: flex-end; padding: 0 16px 12px; } .rkcol .cb { flex: 1; max-width: 320px; }

.ovcol { display: flex; align-items: flex-end; gap: 8px; } .ovcol .cb { flex: 1; } .ovcol > .btn { height: 40px; }

.ovfr { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 8px !important; }
.ovfr button { display: flex !important; flex-direction: column; align-items: center; gap: 4px; width: 74px; height: auto !important; padding: 6px 4px !important; border-radius: 12px !important; }
.ovfr button i { width: 46px; height: 46px; border-radius: 12px; background: #0b0b10 center/120% no-repeat; display: block; }
.ovfr button small { font-size: 10.5px; line-height: 1.2; }
.ovfr .fi-none::after { content: '✕'; display: grid; place-items: center; height: 100%; color: #888; }
.ovfr .fi-planets { background: radial-gradient(circle, transparent 40%, #ff4d66 42%, transparent 46%), radial-gradient(circle at 80% 20%, #ffd166 6%, transparent 8%) #0b0b10 !important; }
.ovfr .fi-flame { background: conic-gradient(#ff2d55, #ffb347, #ff2d55) !important; -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); }
.ovfr .fi-c1, .ovfr .fi-c2, .ovfr .fi-c3, .ovfr .fi-c4 { background: radial-gradient(circle, transparent 40%, #a855f7 43%, transparent 50%) #0b0b10 !important; }
.ovfr .fi-royal { background: linear-gradient(#ff7a1a, #b81f38) !important; } .ovfr .fi-ember { background: linear-gradient(#ff4b1a, #3a0a00) !important; }

/* the live's title under the streamer's name (like TikTok's own) */
.tb-title { display: block; font-size: 11.5px; color: var(--muted, #9aa3b2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; unicode-bidi: plaintext; text-align: right; }
[dir="ltr"] .tb-title { text-align: left; }

/* room: settings button of the comments (muted / blocked lists) */
.modgear { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #12151d; color: var(--text); display: grid; place-items: center; cursor: pointer; margin-inline-start: 6px; }
.modgear:hover { border-color: var(--accent, #2f7bff); }
.modgear i svg { width: 16px; height: 16px; }
.modmenu { min-width: 280px; max-width: 340px; max-height: 60vh; overflow: auto; padding: 6px; }
.modmenu details { border-radius: 10px; }
.modmenu summary { cursor: pointer; padding: 10px; font-weight: 800; display: flex; align-items: center; gap: 8px; list-style: none; }
.modmenu summary::after { content: '›'; margin-inline-start: auto; color: var(--muted); }
.modmenu details[open] summary::after { transform: rotate(90deg); }
.modmenu summary em { font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: #1b2232; color: #8fb6ff; }
.modrow { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); }
.modrow span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.modrow span b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modrow span small { font-size: 11px; color: var(--muted); }
.modrow .mleft { font-size: 11.5px; color: #ffb35c; }
.modrow .mb { white-space: nowrap; }
.mnone { display: block; padding: 4px 10px 10px; color: var(--muted); }

/* waiting for the live: a calm blue pulse and a slow ring, "يدور على بثك…" */
.pill[data-s="searching"] { color: #cfe4ff; border-color: rgba(59,151,255,.4); }
.pill[data-s="searching"] .dot { background: #3b97ff; box-shadow: 0 0 0 0 rgba(59,151,255,.6); animation: ping 1.6s infinite; }
.me[data-s="searching"] .me-av::before { background: conic-gradient(#3b97ff 0 22%, #2a2f3a 22%); animation: spin 2.2s linear infinite; }

/* sticker picker: the subscription part and the Super Fan part */
.em-h { margin: 8px 2px 2px; font-size: 13px; font-weight: 800; color: #cfe0ff; display: flex; align-items: center; gap: 6px; }
.em-h span { color: var(--muted); font-weight: 600; }
.em-h.gen { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }

/* ===== 0.9.154: sections in colours — bottom bar, bar under the top bar, Ctrl+K ===== */
.bnav { display: none !important; }
main.main { padding-bottom: 118px; }
.gnav { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: flex-end; gap: 6px; padding: 7px 9px;
  border-radius: 20px; background: rgba(10, 12, 18, .97); border: 1px solid #1c2638; box-shadow: 0 14px 40px rgba(0,0,0,.65);
  max-width: calc(100vw - 110px); overflow-x: auto; scrollbar-width: none; }
.gnav::-webkit-scrollbar { display: none; }
.gnav .g { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.gnav .g em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--c); letter-spacing: .2px; }
.gnav .g .its { display: flex; gap: 2px; padding: 3px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); background: color-mix(in srgb, var(--c) 5%, transparent); }
.gnav .g.cur .its { border-color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.gnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 56px; padding: 6px 5px 5px; border-radius: 11px; color: var(--muted-2); font-size: 11px; white-space: nowrap; transition: background .15s, color .15s; }
.gnav a i[data-i] { width: 19px; height: 19px; }
.gnav .g a:hover { color: #fff; background: color-mix(in srgb, var(--c) 18%, transparent); }
.gnav .g a.on { background: var(--c); color: #0b0d12; font-weight: 800; }
.gnav a.home { flex: none; min-width: 64px; align-self: stretch; color: #fff; background: var(--acc-bg); border: 1px solid var(--acc-line); }
.gnav a.home.on { background: var(--sky); border-color: transparent; }
.sectbar { display: flex; align-items: center; gap: 10px; margin: 14px 26px 0; padding: 7px 9px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); flex-wrap: wrap; }
.sectbar .crumb { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.sectbar .crumb i[data-i] { width: 18px; height: 18px; }
.sectbar .tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sectbar .tabs a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 11px; color: var(--muted-2); font-weight: 700; font-size: 14px; }
.sectbar .tabs a:hover { color: #fff; background: rgba(255,255,255,.04); }
.sectbar .tabs a i[data-i] { width: 17px; height: 17px; }
.sectbar .tabs a.on { color: #fff; background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 -2px 0 var(--c); }
.sectbar .sp { flex: 1; }
.sectbar .jump { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.sectbar .jump:hover { color: #fff; border-color: var(--line-2); }
.sectbar .jump i[data-i] { width: 15px; height: 15px; }
.sectbar kbd, .qs kbd, .hm-search kbd { font: 700 11px/1.6 ui-monospace, Consolas, monospace; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; color: var(--muted); }
.qs-bg { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); display: grid; place-items: start center; padding-top: 110px; }
.qs { width: min(580px, 92vw); border-radius: 18px; background: #10141d; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.qs .in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.qs .in i[data-i] { width: 19px; height: 19px; color: var(--muted); }
.qs .in input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 17px; }
.qs-list { max-height: 52vh; overflow: auto; padding: 6px 0; }
.qs .r { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 15px; color: var(--text); }
.qs .r .ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.qs .r .ic i[data-i] { width: 19px; height: 19px; }
.qs .r .tx { display: flex; flex-direction: column; min-width: 0; }
.qs .r .tx b { font-weight: 700; }
.qs .r .tx span { color: var(--muted); font-size: 12.5px; }
.qs .r small { margin-inline-start: auto; color: var(--c); font-weight: 800; font-size: 12px; white-space: nowrap; }
.qs .r.on { background: rgba(255,255,255,.06); }
.qs-none { padding: 18px; color: var(--muted); text-align: center; }
.qs .ft { padding: 9px 18px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .sectbar { margin: 10px 12px 0; } .sectbar .jump span { display: none; } .gnav { max-width: calc(100vw - 20px); left: 10px; right: 10px; transform: none; } }
/* the Telegram / download buttons never sit on the bottom menu: beside it on a wide screen, above it on a phone */
.gnav { max-width: calc(100vw - 180px); }
@media (max-width: 900px) { .gnav { max-width: calc(100vw - 20px); } .tgfab { bottom: 112px; } .tgfab.dlfab { bottom: 174px !important; } }

/* ===== 0.9.154: the new home page ===== */
.hm { gap: 20px; }
.hm-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hm-top h1 { margin: 0; font-size: 28px; font-weight: 800; }
.hm-top .sp { flex: 1; }
.hm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted-2); font-size: 13.5px; }
.hm-chip b { color: #fff; font-weight: 700; }
.hm-chip i[data-i] { width: 16px; height: 16px; }
.hm-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #5b6472; }
.hm-chip[data-s="live"] { border-color: rgba(255, 59, 92, .6); background: rgba(255, 59, 92, .08); }
.hm-chip[data-s="live"] .dot { background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: hmPulse 1.4s infinite; }
.hm-chip[data-s="wait"] .dot, .hm-chip[data-s="conn"] .dot { background: #f5b301; animation: hmPulse 1.4s infinite; }
@keyframes hmPulse { 50% { opacity: .35; } }
.hm-try { padding: 11px 22px; font-size: 15px; font-weight: 800; }
.hm-acc { padding: 10px 16px; }
.hm-out { padding: 10px 16px; color: #ff8a8a; border-color: rgba(255,90,90,.35); }
.hm-out:hover { background: rgba(255,90,90,.12); color: #ffb3b3; }
.hm-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.hm-row .card { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.hm-row .hd { display: flex; align-items: center; gap: 10px; }
.hm-row .hd b { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.hm-row .hd b i[data-i] { width: 20px; height: 20px; }
.hm-row .hd span { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.hm-prog { height: 6px; border-radius: 6px; background: #142033; overflow: hidden; }
.hm-prog i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #6fe3b0, #0c7eff); transition: width .4s; }
.hm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-ck { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line); min-height: 52px; }
.hm-ck .mk { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px dashed #5b6472; display: grid; place-items: center; }
.hm-ck.ok .mk { border: 0; background: #1f9d6a; color: #fff; }
.hm-ck .mk i[data-i] { width: 15px; height: 15px; }
.hm-ck b { font-size: 14px; font-weight: 600; flex: 1; }
.hm-ck .btn { flex: none; }
.hm-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line-2); cursor: text; }
.hm-search:focus-within { border-color: var(--sky); }
.hm-search i[data-i] { width: 18px; height: 18px; color: var(--muted); }
.hm-search input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; min-width: 0; }
.hm-favs { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-fc { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 16px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; color: #fff; }
.hm-fc:hover { border-color: var(--c); }
.hm-fc .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.hm-fc .ic i[data-i] { width: 18px; height: 18px; }
.hm-empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }
.hm-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.hm-g .gh { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--c); }
.hm-g .gh i[data-i] { width: 20px; height: 20px; }
.hm-g .gh b { font-size: 18px; font-weight: 800; color: #fff; }
.hm-g .gh .ln { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 35%, transparent)); }
html[dir="rtl"] .hm-g .gh .ln { background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--c) 35%, transparent)); }
.hm-g .gh small { color: var(--muted); font-size: 13px; }
.hm-g .gc { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hm-c { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 36px; min-height: 150px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: #fff; transition: transform .15s, border-color .15s, background .15s; }
.hm-c:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 5%, var(--panel)); }
.hm-c .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: 6px; }
.hm-c .ic i[data-i] { width: 24px; height: 24px; }
.hm-c b { font-size: 16px; font-weight: 800; }
.hm-c .d { color: var(--muted-2); font-size: 12.8px; line-height: 1.5; }
.hm-c .bdg { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.hm-c .bdg:empty { display: none; }
.hm-c .bdg.g { color: #8ff0c4; background: rgba(35, 224, 143, .13); }
.hm-c .bdg.r { color: #ff9aaa; background: rgba(255, 59, 92, .13); }
.hm-c .bdg.b { color: #9cc9ff; background: rgba(12, 126, 255, .15); }
.hm-c .fav { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #5b6472; cursor: pointer; }
.hm-c .fav i[data-i] { width: 17px; height: 17px; }
.hm-c .fav:hover { color: #ffcc4d; background: rgba(255, 204, 77, .1); }
.hm-c .fav.on { color: #ffcc4d; }
.hm-c .fav.on i[data-i] svg, .hm-c .fav.on svg { fill: #ffcc4d; }
.hm-none { color: var(--muted); text-align: center; padding: 30px; }
@media (max-width: 1100px) { .hm-row, .hm-groups { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hm-checks { grid-template-columns: 1fr; } }

/* ===== 0.9.154: stream health ===== */
.hchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; border: 1px solid; }
.hchip[hidden] { display: none; }
.hchip i[data-i] { width: 15px; height: 15px; }
.hchip .dot { width: 9px; height: 9px; border-radius: 50%; }
.hchip[data-lv="g"] { background: rgba(49,196,141,.12); border-color: rgba(49,196,141,.5); color: #9ff2cb; } .hchip[data-lv="g"] .dot { background: #31c48d; }
.hchip[data-lv="y"] { background: rgba(245,179,1,.1); border-color: rgba(245,179,1,.5); color: #ffd98a; } .hchip[data-lv="y"] .dot { background: #f5b301; }
.hchip[data-lv="r"] { background: rgba(255,77,99,.1); border-color: rgba(255,77,99,.55); color: #ffb3bf; } .hchip[data-lv="r"] .dot { background: #ff4d63; animation: hmPulse 1.2s infinite; }
.hpanel { position: fixed; z-index: 9980; width: min(560px, calc(100vw - 20px)); max-height: calc(100vh - 120px); overflow: auto; background: #10141d; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 28px 70px rgba(0,0,0,.65); }
.hpanel .hd { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(135deg, rgba(49,196,141,.14), transparent); }
.hpanel .hd h4 { margin: 0; font-size: 18px; } .hpanel .hd p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.hpanel .hd .x { margin-inline-start: auto; align-self: flex-start; background: transparent; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.hpanel .ring { --c: #31c48d; width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #1c2533 0); }
.hpanel .ring.y { --c: #f5b301; } .hpanel .ring.r { --c: #ff4d63; }
.hpanel .ring b { width: 50px; height: 50px; border-radius: 50%; background: #10141d; display: grid; place-items: center; font-size: 16px; color: #fff; }
.hrow { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); }
.hrow .ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.hrow .ic.g { color: #31c48d; } .hrow .ic.y { color: #f5b301; } .hrow .ic.r { color: #ff4d63; }
.hrow .ic i[data-i] { width: 18px; height: 18px; }
.hrow .tx { flex: 1; min-width: 0; } .hrow .tx b { display: block; font-size: 14px; } .hrow .tx span { color: var(--muted); font-size: 12.3px; }
.hrow .val { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 110px; }
.hrow .lbl { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.lbl.g { color: #8ff0c4; background: rgba(35,224,143,.12); } .lbl.y { color: #ffd98a; background: rgba(245,179,1,.12); } .lbl.r { color: #ffb3bf; background: rgba(255,77,99,.12); } .lbl.n { color: var(--muted); }
.hrow .num { font-weight: 800; } .num.g { color: #8ff0c4; } .num.y { color: #ffd98a; } .num.r { color: #ffb3bf; }
.hbar { width: 110px; height: 6px; border-radius: 6px; background: #1c2533; overflow: hidden; } .hbar i { display: block; height: 100%; border-radius: 6px; background: #31c48d; } .hbar i.y { background: #f5b301; } .hbar i.r { background: #ff4d63; }
.spark { width: 110px; display: flex; align-items: flex-end; gap: 3px; height: 30px; } .spark i { flex: 1; border-radius: 2px; background: #2a3b57; } .spark i.y { background: #f5b301; }
.hwarn { margin: 4px 18px 12px; padding: 11px 13px; border-radius: 13px; background: rgba(245,179,1,.08); border: 1px solid rgba(245,179,1,.4); }
.hwarn b { display: block; font-size: 13.5px; color: #ffd166; } .hwarn span { color: #d9c99a; font-size: 12.5px; line-height: 1.7; }
.hwarn .wact { display: flex; gap: 8px; margin-top: 9px; }
.htip { margin: 0 18px 8px; color: #d9c99a; font-size: 12.5px; line-height: 1.7; }
.hft { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); flex-wrap: wrap; }
.hft .btn.on { border-color: #31c48d; color: #9ff2cb; background: rgba(49,196,141,.12); }
.hft .hint2 { color: var(--muted); font-size: 12px; } .hft .sp { flex: 1; }
.hft .leg { display: flex; gap: 12px; color: var(--muted); font-size: 12px; } .hft .leg span { display: inline-flex; align-items: center; gap: 5px; }
.hft .leg .d { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .d.g { background: #31c48d; } .d.y { background: #f5b301; } .d.r { background: #ff4d63; }

/* ===== 0.9.154: live mode ===== */
.lv { gap: 16px; }
.lv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 18px; background: linear-gradient(90deg, rgba(255,59,92,.07), transparent 60%), var(--panel); border: 1px solid rgba(255,59,92,.25); }
.lv-bar .sp { flex: 1; }
.lv-on { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-inline-end: 6px; }
.lv-on .dot { width: 11px; height: 11px; border-radius: 50%; background: #5b6472; }
.lv-on[data-s="live"] .dot { background: #ff3b5c; box-shadow: 0 0 12px #ff3b5c; animation: hmPulse 1.4s infinite; }
.lv-on[data-s="wait"] .dot, .lv-on[data-s="conn"] .dot { background: #f5b301; animation: hmPulse 1.4s infinite; }
.lv-on .clock { font: 800 21px/1 ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #fff; }
.lv-panic { display: flex; align-items: center; gap: 18px; width: 100%; padding: 18px 22px; border: 0; border-radius: 20px; cursor: pointer; text-align: start; font: inherit; color: #fff;
  background: linear-gradient(90deg, #e11d48, #ff4d6d); box-shadow: 0 12px 34px rgba(225,29,72,.35); transition: transform .12s, filter .12s; }
.lv-panic:hover { filter: brightness(1.06); } .lv-panic:active { transform: scale(.99); }
.lv-panic .pic { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.45); }
.lv-panic .ptx { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.lv-panic .ptx b { font-size: 23px; } .lv-panic .ptx small { font-size: 14px; opacity: .92; line-height: 1.6; }
.lv-panic kbd { font: 800 13px/1 ui-monospace, Consolas, monospace; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.lv-panic.on { background: repeating-linear-gradient(135deg, #7f1d1d 0 18px, #991b1b 18px 36px); box-shadow: 0 0 0 3px #ff4d6d, 0 12px 34px rgba(225,29,72,.45); animation: lvBlink 1.6s infinite; }
@keyframes lvBlink { 50% { box-shadow: 0 0 0 3px rgba(255,77,109,.3), 0 12px 34px rgba(225,29,72,.2); } }
.lv-grid { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 16px; align-items: start; }
.lv-grid .card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lv-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-h b { display: flex; align-items: center; gap: 8px; font-size: 17px; } .lv-h b i[data-i] { width: 19px; height: 19px; }
.lv-h small { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; }
.lv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lv-t { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; min-height: 128px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); color: #fff; font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, transform .12s; }
.lv-t:hover { border-color: var(--line-2); transform: translateY(-1px); }
.lv-t .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(12,126,255,.14); color: #6fb1ff; margin-bottom: 6px; }
.lv-t .ic i[data-i] { width: 21px; height: 21px; }
.lv-t b { font-size: 15.5px; } .lv-t small { color: var(--muted-2); font-size: 12.3px; line-height: 1.5; }
.lv-t kbd { position: absolute; top: 10px; inset-inline-end: 10px; font: 700 10.5px/1.6 ui-monospace, Consolas, monospace; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.lv-t.on { border-color: rgba(49,196,141,.55); background: rgba(49,196,141,.07); } .lv-t.on .ic { background: rgba(49,196,141,.16); color: #6fe3b0; }
.lv-t.warn { border-color: rgba(245,179,1,.6); background: rgba(245,179,1,.07); } .lv-t.warn .ic { background: rgba(245,179,1,.16); color: #ffcc4d; }
.lv-t .vol { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 4px; color: var(--muted); } .lv-t .vol i[data-i] { width: 15px; height: 15px; }
.lv-t .vol input { flex: 1; min-width: 0; accent-color: #0c7eff; } .lv-t .vol em { font-style: normal; font-size: 11.5px; min-width: 32px; }
.lv-keys { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
.lv-keys small { color: #ffb3bf; font-size: 12px; }
.lv-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.lv-sw input { display: none; } .lv-sw span { width: 36px; height: 20px; border-radius: 20px; background: #2a3344; position: relative; transition: .2s; }
.lv-sw span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.lv-sw input:checked + span { background: #1f9d6a; } .lv-sw input:checked + span::after { inset-inline-start: 19px; }
.lv-cur { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgba(49,196,141,.5); background: rgba(49,196,141,.06); }
.lv-cur.idle { border-color: var(--line); background: var(--panel-2); }
.lv-cur img, .lv-cur .ph { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: #0b1220; color: var(--muted); }
.lv-cur .ph i[data-i] { width: 26px; height: 26px; }
.lv-cur .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lv-cur .tx small { color: #6fe3b0; font-size: 12px; font-weight: 700; } .lv-cur.idle .tx small { color: var(--muted); }
.lv-cur .tx b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-cur .tx span { color: var(--muted-2); font-size: 12.5px; }
.lv-cur .pg { height: 6px; border-radius: 6px; background: #1c2533; overflow: hidden; margin-top: 4px; } .lv-cur .pg i { display: block; height: 100%; width: 0; background: #31c48d; border-radius: 6px; transition: width .25s linear; }
.lv-ql { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow: auto; }
.lv-qi { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.lv-qi .n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1c2533; font-size: 12px; font-weight: 800; }
.lv-qi .tx { flex: 1; min-width: 0; } .lv-qi .tx b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-qi .tx small { color: var(--muted); font-size: 12px; }
.lv-qi .x { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 1px solid rgba(255,77,99,.35); background: transparent; color: #ff8a9b; font-size: 18px; cursor: pointer; }
.lv-qf { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-el { display: flex; flex-direction: column; max-height: 520px; overflow: auto; }
.lv-e { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.lv-e .av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #2b3a55 center / cover; color: #fff; }
.lv-e .tx { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; } .lv-e .tx .g { color: #ffcc4d; font-weight: 700; }
.lv-e small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.lv-empty { color: var(--muted); font-size: 13px; padding: 14px 4px; }
.hk-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hk-r { display: flex; align-items: center; gap: 10px; } .hk-r span { flex: 1; } .hk-k { min-width: 130px; font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 1200px) { .lv-grid { grid-template-columns: 1fr 1fr; } .lv-ev { grid-column: 1 / -1; } }
@media (max-width: 800px) { .lv-grid { grid-template-columns: 1fr; } .lv-tiles { grid-template-columns: repeat(2, 1fr); } }
/* the small window on top of the game */
html.mini #topbar, html.mini .gnav, html.mini .sectbar, html.mini .tgfab, html.mini .tb-corner { display: none !important; }
html.mini main.main { padding-bottom: 12px; }
html.mini .page.lv { padding: 10px; gap: 10px; }
html.mini #lvMini, html.mini .lv-bar .lv-n, html.mini .lv-ev, html.mini .lv-keys, html.mini .lv-h small { display: none; }
html.mini .lv-panic { padding: 12px 14px; gap: 12px; } html.mini .lv-panic .pic { width: 44px; height: 44px; font-size: 24px; } html.mini .lv-panic .ptx b { font-size: 17px; } html.mini .lv-panic .ptx small { display: none; }
html.mini .lv-grid { grid-template-columns: 1fr; gap: 10px; }
html.mini .lv-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; } html.mini .lv-t { min-height: 0; padding: 10px; } html.mini .lv-t small { display: none; } html.mini .lv-t .ic { width: 32px; height: 32px; margin: 0; }
/* the waiting box option on each alert group */
.qbx { display: inline-flex; align-items: center; gap: 6px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); }
.qbx.on { border-color: rgba(245,179,1,.55); background: rgba(245,179,1,.07); }
.qbx button { border: 0; background: transparent; color: var(--muted-2); font: inherit; font-size: 12.5px; cursor: pointer; border-radius: 9px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.qbx .qbx-t i[data-i] { width: 15px; height: 15px; }
.qbx.on .qbx-t { color: #ffd98a; font-weight: 700; }
.qbx .sw { width: 28px; height: 16px; border-radius: 16px; background: #2a3344; position: relative; }
.qbx .sw::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: .2s; }
.qbx.on .sw { background: #f5b301; } .qbx.on .sw::after { inset-inline-start: 14px; }
.qbx-s { display: inline-flex; border: 1px solid rgba(245,179,1,.3); border-radius: 9px; overflow: hidden; }
.qbx-s button { border-radius: 0; padding: 4px 9px; }
.qbx-s button.on { background: #f5b301; color: #1a1300; font-weight: 800; }
/* how stickers arrive (action editor) */
.em-how { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(12,126,255,.06); border: 1px solid rgba(12,126,255,.28); font-size: 13px; line-height: 1.7; color: #c9d6e2; }
.em-how b { display: flex; align-items: center; gap: 6px; color: #9cc9ff; font-size: 13.5px; } .em-how b i[data-i] { width: 16px; height: 16px; }
.em-how span { display: flex; gap: 8px; align-items: flex-start; }
.em-how em { font-style: normal; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: rgba(12,126,255,.2); color: #cfe6ff; }

/* the supporter picture's shape: one button that opens all the shapes */
.shape-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 12px; background: #111113; border: 1px solid var(--line-2); color: #fff; font: inherit; cursor: pointer; }
.shape-pick i { width: 30px; height: 30px; flex: none; background: linear-gradient(145deg, color-mix(in srgb, var(--red-2) 65%, #fff), var(--red-2) 55%, color-mix(in srgb, var(--red-2) 60%, #000)); }
.shape-pick b { font-weight: 800; }
.shape-pick small { margin-inline-start: auto; color: var(--muted, #9aa); font-size: 12px; }
.shape-pick:hover { border-color: var(--red-2); }
.shapes-pop { margin-top: 8px; padding: 10px; border-radius: 14px; background: #0c0c0e; border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.shapes-pop .shapes.four { grid-template-columns: repeat(3, 1fr) !important; }
