/* Refund web app — black + hot pink, matching the Beezyne brand kit */
:root {
  --bg: #08070a;
  --surface: #131116;
  --surface-2: #1c1920;
  --surface-3: #26222b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --pink: #ff1a7f;
  --pink-2: #ff58a6;
  --pink-deep: #be0247;
  --pink-dim: rgba(255, 26, 127, 0.13);
  --pink-glow: 0 0 0 1px rgba(255, 26, 127, 0.55), 0 6px 28px -6px rgba(255, 26, 127, 0.55);
  --text: #f7f3f6;
  --muted: #a29aa6;
  --faint: #6d6672;
  --green: #35e3a1;
  --green-dim: rgba(53, 227, 161, 0.12);
  --red: #ff5468;
  --red-dim: rgba(255, 84, 104, 0.12);
  --amber: #ffc34d;
  --amber-dim: rgba(255, 195, 77, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-top: var(--tg-content-safe-area-inset-top, 0px);
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: url("/static/img/bg1.webp") center top / 640px auto repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-2); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 8px; }

#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; min-height: 100vh;
       padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 28px); }
#app.wide { max-width: 980px; }

/* ---------- boot / spinner ---------- */
.boot { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.boot-logo { width: 220px; filter: drop-shadow(0 0 30px rgba(255, 26, 127, 0.35)); animation: pulse 2.2s ease-in-out infinite; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--pink-dim); border-top-color: var(--pink);
           animation: spin 0.8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.03); filter: drop-shadow(0 0 44px rgba(255, 26, 127, 0.55)); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view { animation: rise 0.22s ease-out; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 40px; }
.topbar .back { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
                display: grid; place-items: center; cursor: pointer; flex: none; }
.topbar .back svg { width: 18px; height: 18px; }
.topbar .title { font-family: var(--display); font-size: 30px; letter-spacing: 0.5px; line-height: 1; flex: 1; min-width: 0;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }
.tg .topbar .back { display: none; }  /* inside Telegram the native back button is used */

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface);
        border: 1px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.pink { background: var(--pink-dim); border-color: rgba(255, 26, 127, 0.4); color: var(--pink-2); }
.chip img { width: 18px; height: 18px; }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); background: var(--surface-2); flex: none; }
.avatar.txt { display: grid; place-items: center; font-weight: 800; color: var(--pink-2); }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 16px; border: 1px solid rgba(255, 26, 127, 0.25);
        background: #000 url("/static/img/bg1.webp") center / cover; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.hero.banner { background: #000; aspect-ratio: auto; }
.hero.banner img { width: 100%; max-height: 360px; object-fit: cover; }
.hero .logo { width: 78%; filter: drop-shadow(0 6px 26px rgba(255, 26, 127, 0.45)); }
.hero .mascot { position: absolute; right: -14px; bottom: -8px; height: 92%; width: auto; opacity: 0.95; pointer-events: none; }
.hero.with-mascot .logo { width: 64%; margin-right: 26%; }
.welcome { color: var(--muted); font-size: 15px; margin: 0 2px 18px; white-space: pre-line; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 14px 14px 16px; min-height: 128px; cursor: pointer; overflow: hidden;
        display: flex; flex-direction: column; justify-content: flex-end; transition: transform 0.12s, border-color 0.12s; }
.tile:active { transform: scale(0.97); }
.tile:hover { border-color: rgba(255, 26, 127, 0.45); }
.tile { justify-content: space-between; gap: 8px; }
.tile .ico { align-self: flex-end; width: 68px; height: 68px; object-fit: contain; margin: -4px -4px 0 0;
             filter: drop-shadow(0 4px 14px rgba(255, 26, 127, 0.35)); }
.tile .lbl { font-family: var(--display); font-size: 23px; line-height: 1; letter-spacing: 0.4px; max-width: 92%; }
.tile .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.tile.wide { grid-column: 1 / -1; min-height: 96px; }
.tile.wide { flex-direction: row-reverse; align-items: center; }
.tile.wide .ico { width: 84px; height: 84px; margin: -6px -4px -6px 0; align-self: center; }
.tile.wide > div:not(.badge) { flex: 1; }
.tile.feature { border-color: rgba(255, 26, 127, 0.5); background: linear-gradient(140deg, rgba(255, 26, 127, 0.22), var(--surface) 70%); }
.badge { position: absolute; top: 10px; left: 10px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--pink);
         color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--pink-glow); }
.badge.inline { position: static; display: inline-grid; margin-left: 6px; vertical-align: middle; }

.status-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px;
                background: linear-gradient(90deg, rgba(255, 26, 127, 0.18), transparent); border: 1px solid rgba(255, 26, 127, 0.35); cursor: pointer; }
.status-strip img { height: 44px; width: auto; }
.status-strip .t { font-weight: 700; }
.status-strip .s { color: var(--muted); font-size: 13px; }

/* ---------- cards / lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card.pink { border-color: rgba(255, 26, 127, 0.4); background: linear-gradient(160deg, rgba(255, 26, 127, 0.12), var(--surface) 60%); }
.card h3 { font-family: var(--display); font-size: 22px; letter-spacing: 0.4px; margin-bottom: 6px; }
.section-title { font-family: var(--display); font-size: 20px; letter-spacing: 0.6px; color: var(--muted); margin: 20px 2px 10px; }
.intro { color: var(--muted); white-space: pre-line; margin: 0 2px 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.center { text-align: center; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.12s, transform 0.1s; }
.item:hover { border-color: rgba(255, 26, 127, 0.4); }
.item:active { transform: scale(0.985); }
.item .thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; }
.item .thumb.contain { object-fit: contain; padding: 4px; }
.item .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .price { font-weight: 800; color: var(--pink-2); white-space: nowrap; }
.item .chev { color: var(--faint); flex: none; }
.item.static { cursor: default; }
.item.static:active { transform: none; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.catcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
           cursor: pointer; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; }
.catcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catcard img.contain { object-fit: contain; padding: 22% 22% 30%; }
.catcard .nm { position: relative; width: 100%; padding: 26px 12px 10px; font-family: var(--display); font-size: 22px; letter-spacing: 0.4px;
               background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
        background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.pill.pink { background: var(--pink-dim); color: var(--pink-2); }
.pill.green { background: var(--green-dim); color: var(--green); }
.pill.red { background: var(--red-dim); color: var(--red); }
.pill.amber { background: var(--amber-dim); color: var(--amber); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 14px;
       padding: 14px 18px; font-weight: 800; font-size: 15px; letter-spacing: 0.2px; transition: transform 0.1s, filter 0.15s, opacity 0.15s;
       background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); text-align: center; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(180deg, var(--pink-2), var(--pink) 45%, var(--pink-deep)); border-color: transparent; color: #fff;
               box-shadow: var(--pink-glow); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.green { background: var(--green); color: #04130c; border-color: transparent; }
.btn.danger { background: var(--red-dim); color: var(--red); border-color: rgba(255, 84, 104, 0.35); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 5px 9px; font-size: 12px; border-radius: 8px; font-weight: 700; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
.btns { display: flex; flex-direction: column; gap: 10px; }
.btns.row { flex-direction: row; }
.btns.row > * { flex: 1; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 2px 6px; }
.field label .req { color: var(--pink); }
.input, textarea.input, select.input { width: 100%; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px;
         padding: 13px 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-dim); }
textarea.input { min-height: 96px; resize: vertical; }
.input-money { position: relative; }
.input-money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-money .input { padding-left: 28px; font-weight: 700; font-size: 17px; }
.hint { color: var(--faint); font-size: 12.5px; margin: 6px 2px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
input[type=file].input { padding: 10px; font-size: 13px; }

.toggle { position: relative; width: 44px; height: 26px; flex: none; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 13px; transition: 0.15s; border: 1px solid var(--line-strong); }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: 0.15s; }
.toggle input:checked + span { background: var(--pink); border-color: var(--pink); }
.toggle input:checked + span::after { transform: translateX(18px); }

/* ---------- money / balance ---------- */
.balance-card { position: relative; overflow: hidden; border-radius: 22px; padding: 20px; margin-bottom: 14px;
                background: radial-gradient(120% 140% at 100% 0%, rgba(255, 26, 127, 0.42), transparent 55%), linear-gradient(160deg, #211722, #110e13);
                border: 1px solid rgba(255, 26, 127, 0.4); }
.balance-card .lbl { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.balance-card .amt { font-family: var(--display); font-size: 58px; line-height: 1; margin-top: 6px; letter-spacing: 1px; }
.balance-card img { position: absolute; right: -10px; top: 8px; width: 132px; transform: rotate(-8deg); opacity: 0.95; }
.big-price { font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: 1px; }
.big-price small { font-size: 20px; color: var(--muted); }
.amt-pos { color: var(--green); font-weight: 800; white-space: nowrap; }
.amt-neg { color: var(--text); font-weight: 800; white-space: nowrap; }

/* ---------- sticker states ---------- */
.state { text-align: center; padding: 28px 12px; }
.state img { width: 190px; margin: 0 auto 14px; filter: drop-shadow(0 8px 28px rgba(255, 26, 127, 0.4)); }
.state img.sm { width: 140px; }
.state h2 { font-family: var(--display); font-size: 32px; letter-spacing: 0.6px; margin-bottom: 6px; }
.state p { color: var(--muted); }
.pop { animation: popin 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes popin { from { transform: scale(0.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- product detail ---------- */
.cover { width: 100%; border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface); }
.cover.contain { object-fit: contain; padding: 16%; background: #000 url("/static/img/bg1.webp") center / cover; }
.prod-name { font-family: var(--display); font-size: 36px; line-height: 1; letter-spacing: 0.5px; margin-bottom: 8px; }
.desc { color: #d8d0da; white-space: pre-wrap; word-break: break-word; }
.sticky-cta { position: sticky; bottom: calc(var(--safe-bottom) + 10px); margin-top: 18px; z-index: 5; }
.reader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; white-space: pre-wrap;
          word-break: break-word; line-height: 1.65; font-size: 15.5px; }

/* ---------- order tracker ---------- */
.tracker { display: flex; flex-direction: column; gap: 0; margin: 6px 0 4px; }
.step { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--surface-3); }
.step:last-child::before { display: none; }
.step.done::before { background: var(--pink); }
.step .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface-3); background: var(--surface); flex: none;
             display: grid; place-items: center; font-size: 13px; font-weight: 800; z-index: 1; }
.step.done .dot { background: var(--pink); border-color: var(--pink); color: #fff; }
.step.current .dot { border-color: var(--pink); color: var(--pink-2); box-shadow: 0 0 0 5px var(--pink-dim); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 9px rgba(255, 26, 127, 0.05); } }
.step .st { font-weight: 800; padding-top: 3px; }
.step .ss { color: var(--muted); font-size: 13px; }
.step.todo .st { color: var(--faint); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-deep), var(--pink-2)); border-radius: 3px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- category picker (review) ---------- */
.opt { padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: 0.12s; }
.opt + .opt { margin-top: 8px; }
.opt.sel { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-dim); background: linear-gradient(160deg, rgba(255, 26, 127, 0.1), var(--surface)); }
.opt .d { color: var(--muted); font-size: 13.5px; margin-top: 6px; white-space: pre-line; }
.fee-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm);
           background: var(--pink-dim); border: 1px solid rgba(255, 26, 127, 0.35); margin: 4px 0 14px; }
.fee-box .v { font-family: var(--display); font-size: 30px; letter-spacing: 0.5px; color: var(--pink-2); line-height: 1; }
.stepper { display: flex; gap: 6px; margin-bottom: 16px; }
.stepper i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.stepper i.on { background: var(--pink); }

/* ---------- chat ---------- */
.chat-wrap { display: flex; flex-direction: column; min-height: calc(100vh - var(--safe-top) - 90px); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 90px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.msg .tm { display: block; font-size: 11px; opacity: 0.6; margin-top: 3px; text-align: right; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, var(--pink), var(--pink-deep)); border-bottom-right-radius: 6px; color: #fff; }
.msg.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(var(--safe-bottom) + 10px);
            background: linear-gradient(transparent, var(--bg) 30%); }
.composer .inner { max-width: 528px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
#app.wide .composer .inner { max-width: 948px; }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; border-radius: 23px; padding: 12px 16px; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; padding: 0; flex: none; }
.chat-empty { text-align: center; margin: 30px 0; }
.chat-empty img { width: 150px; margin: 0 auto 12px; }

/* ---------- sheet / modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.66); z-index: 100; display: flex; align-items: flex-end; justify-content: center;
                  animation: fade 0.18s ease-out; backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong);
         border-bottom: 0; border-radius: 24px 24px 0 0; padding: 10px 18px calc(var(--safe-bottom) + 18px); animation: slideup 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 12px; }
.sheet .sh-title { font-family: var(--display); font-size: 28px; letter-spacing: 0.5px; margin-bottom: 10px; line-height: 1.05; }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 24px; border-bottom: 1px solid var(--line-strong); max-width: 520px; padding-bottom: 20px; }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideup { from { transform: translateY(40px); opacity: 0.4; } }
.pay-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin: 12px 0; font-weight: 600; }

/* ---------- toast ---------- */
#toast-root { position: fixed; left: 0; right: 0; top: calc(var(--safe-top) + 12px); z-index: 200; display: flex; flex-direction: column;
              align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--surface-3); border: 1px solid var(--line-strong); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px;
         box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: rise 0.2s ease-out; max-width: 520px; }
.toast.err { border-color: rgba(255, 84, 104, 0.5); color: #ffd6db; }
.toast.ok { border-color: rgba(53, 227, 161, 0.45); }

/* ---------- admin ---------- */
.admin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-head img { height: 40px; width: auto; }
.admin-head .t { font-family: var(--display); font-size: 28px; letter-spacing: 0.6px; line-height: 1; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 16px; }
@media (min-width: 720px) { .tabs { display: flex; flex-wrap: wrap; } }
.tab { padding: 9px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px;
       cursor: pointer; white-space: nowrap; color: var(--muted); position: relative; text-align: center;
       overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 720px) { .tab { padding: 9px 14px; border-radius: 999px; overflow: visible; } }
.tab.on { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: var(--pink-glow); }
.tab .badge { top: -6px; left: auto; right: -4px; min-width: 18px; height: 18px; font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat .v { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: 0.5px; }
.stat .k { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.stat.hot { border-color: rgba(255, 26, 127, 0.45); background: linear-gradient(160deg, rgba(255, 26, 127, 0.14), var(--surface)); }
.warn { padding: 12px 14px; border-radius: 12px; background: var(--amber-dim); border: 1px solid rgba(255, 195, 77, 0.3); color: #ffe2a8;
        font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.tree-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.tree-cat .hd { display: flex; align-items: center; gap: 10px; padding: 12px; }
.tree-cat .bd { padding: 0 12px 12px; }
.tree-cat .tree-cat { margin: 8px 0 0; background: var(--surface-2); }
.tree-prod { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg); margin-top: 6px; }
.tree-prod img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.off { opacity: 0.5; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.thread-unread .name::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-left: 8px; vertical-align: middle; }
.segment { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; margin-bottom: 12px; }
.segment button { background: none; border: 0; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.segment button.on { background: var(--surface-3); color: var(--text); }
.menu-row { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.menu-row .input { padding: 8px 10px; font-size: 14px; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); display: grid;
            place-items: center; cursor: pointer; flex: none; font-size: 14px; color: var(--text); }
.icon-btn:disabled { opacity: 0.3; }
.icon-btn.red { color: var(--red); }
