:root {
    --bg: #0b0b0f;
    --card: #16161d;
    --card-2: #1f1f28;
    --border: #2a2a36;
    --text: #f0f0f5;
    --muted: #8e8ea6;
    --pink: #fe2c55;
    --cyan: #25f4ee;
    --ok: #3ddc84;
    --warn: #f5b942;
    --err: #ff5c5c;
    --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, "Segoe UI", Tahoma, sans-serif; }
body { min-height: 100vh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: var(--text); background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus { outline: none; border-color: var(--cyan); }
h1 { font-size: 18px; margin: 0; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h2 { font-size: 15px; margin: 22px 4px 10px; color: var(--muted); font-weight: 600; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.error { color: var(--err); min-height: 1em; margin: 6px 0; }
.warn { color: var(--warn); }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; }

.screen { padding: calc(var(--safe-top) + 8px) 14px calc(var(--safe-bottom) + 90px); max-width: 640px; margin: 0 auto; }
.content { display: flex; flex-direction: column; }

/* top bar */
.bar { display: flex; align-items: center; gap: 8px; min-height: 52px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.bar-logo { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; color: var(--text); flex: none; }
.icon-btn:active { background: var(--card-2); }
[dir="rtl"] .back { transform: scaleX(-1); }

/* buttons */
.primary { background: var(--pink); color: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 600; width: 100%; }
.primary:disabled { opacity: .5; }
.ghost { border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; }
.ghost.danger { color: var(--err); border-color: #5a2230; width: 100%; margin-top: 24px; }
.more-btn { margin: 12px auto; }
.live-btn { margin-top: 10px; }

/* login */
.login-screen {
    position: relative; overflow: hidden; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    padding: calc(var(--safe-top) + 14px) 20px calc(var(--safe-bottom) + 18px);
}
.glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; }
.glow-a { background: var(--cyan); top: -140px; inset-inline-start: -120px; }
.glow-b { background: var(--pink); bottom: -160px; inset-inline-end: -120px; opacity: .3; }
.login-top { width: 100%; max-width: 400px; display: flex; justify-content: flex-end; z-index: 1; }
.seg { display: flex; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.seg .on { background: #fff; color: #111; font-weight: 600; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 5vh 0 22px; z-index: 1; }
.brand-logo { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 10px 40px rgba(254, 44, 85, .35), 0 0 0 1px rgba(255, 255, 255, .08); }
.brand-logo.small { width: 84px; height: 84px; border-radius: 22px; }
.brand-name { font-size: 26px; font-weight: 800; margin-top: 12px; letter-spacing: .5px; }
.brand-tag { color: var(--muted); font-size: 13px; }
.login-card {
    width: 100%; max-width: 400px; z-index: 1;
    background: rgba(22, 22, 29, .78); border: 1px solid rgba(255, 255, 255, .07); border-radius: 24px;
    padding: 22px 18px; display: flex; flex-direction: column; gap: 12px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.login-card.center { align-items: center; text-align: center; }
.login-title { margin: 0; font-size: 20px; color: var(--text); }
.login-sub { margin: -6px 0 6px; color: var(--muted); font-size: 13px; }
.field { position: relative; display: flex; align-items: center; }
.field input { padding-inline-start: 44px; padding-inline-end: 44px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .05); text-align: start; }
.field-icon { position: absolute; inset-inline-start: 14px; width: 20px; height: 20px; fill: var(--muted); pointer-events: none; display: flex; }
.field-icon svg, .field-action svg { width: 20px; height: 20px; fill: currentColor; }
.field-icon { color: var(--muted); }
/* usernames/passwords are typed left-to-right, but the hint follows the app language */
[dir="rtl"] .field input:placeholder-shown { direction: rtl; }
.login-card .error:empty { display: none; }
.login-card .error { margin: 0; text-align: center; }
.field:focus-within .field-icon { color: var(--cyan); }
.field-action { position: absolute; inset-inline-end: 8px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.primary.big { height: 52px; font-size: 16px; border-radius: 14px; background: linear-gradient(135deg, #ff3d67, #fe2c55 45%, #d9164a); box-shadow: 0 8px 24px rgba(254, 44, 85, .35); }
.login-foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 400px; z-index: 1; }
.link { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.server-input { max-width: 400px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.blocked-icon { font-size: 44px; }
.blocked-text { font-size: 17px; margin: 0 0 6px; }
.chips button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.chips .on { background: var(--pink); border-color: var(--pink); color: #fff; }

/* responsiveness: instant feedback on every tap */
button, .card, .person, [data-tiktok] { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button { transition: transform .08s, opacity .08s, background-color .15s; }
button:active:not(:disabled) { transform: scale(.96); }
.card { transition: transform .08s, background-color .12s; }
.card:active { transform: scale(.985); }
.btn-spin { display: none; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.loading .btn-text { display: none; }
.loading .btn-spin { display: inline-block; }
button.loading:not(:has(.btn-spin)) { opacity: .6; }
.primary { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* placeholders while data loads */
.skeleton { border-radius: 16px; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; margin-bottom: 8px; }
.skeleton.pill { width: 180px; height: 48px; border-radius: 999px; margin: 0 auto; }
.stats .skeleton { margin: 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.content.refreshing { opacity: .45; transition: opacity .15s; pointer-events: none; }
.card.removing { opacity: .4; }
.enter { animation: enter .18s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* cards & lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.card.form { flex-direction: column; align-items: stretch; }
.card .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.account.is-live { border-color: rgba(254, 44, 85, .6); box-shadow: 0 0 0 1px rgba(254, 44, 85, .25) inset; }
.card.session, .card.contributor, .card.account { cursor: pointer; }
.card:active { background: var(--card-2); }
.rank { width: 22px; text-align: center; color: var(--muted); font-weight: 700; flex: none; }
.chev { color: var(--muted); font-size: 20px; }
[dir="rtl"] .chev { transform: scaleX(-1); }

.avatar { border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; display: inline-block; }
.person { display: flex; align-items: center; gap: 10px; text-align: start; min-width: 0; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.person-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.person.big .person-name { font-size: 16px; }
.acc-head { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 2px 10px; }
.s-head { padding: 4px 2px 12px; }

.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); flex: none; }
.badge.live { background: var(--pink); color: #fff; }
.chip { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); margin: 2px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.small { justify-content: flex-end; }
.chips.period { margin: 4px 0 12px; }

/* the red gift total */
.coin-tag { background: #e8173f; color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 13px; white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.coin-tag small { font-weight: 500; opacity: .85; font-size: 10px; }
.coin-tag.big { font-size: 22px; padding: 8px 18px; box-shadow: 0 0 18px rgba(254, 44, 85, .45); }
.total-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 14px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 12px; }
.stat-i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
    background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.stat-i svg { width: 18px; height: 18px; fill: currentColor; }
.stat-v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-k { font-size: 11px; color: var(--muted); }
.note { background: rgba(245, 185, 66, .1); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 12px 0 0; }
.warning { background: rgba(245, 185, 66, .12); color: var(--warn); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; text-align: center; }

/* tabs */
.tabs { display: flex; background: var(--card); border-radius: 14px; padding: 4px; margin-bottom: 12px; position: sticky; top: 52px; z-index: 4; }
.tabs button { flex: 1; padding: 9px 4px; border-radius: 10px; color: var(--muted); font-size: 13px; }
.tabs .on { background: var(--card-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--pink); }

.gift-img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.card.gift { align-items: center; }
.comment { padding: 8px 4px; border-bottom: 1px solid var(--border); }
.comment-text { margin: 4px 0 0; padding-inline-start: 38px; word-wrap: break-word; }
.search { margin-bottom: 6px; }

/* charts */
.chart { width: 100%; height: 140px; display: block; direction: ltr; unicode-bidi: isolate; }
.chart text { direction: ltr; }
.chart .axis { fill: var(--muted); font-size: 9px; }
.chart .base { stroke: var(--border); }

/* floating add button and bottom sheet */
.fab { position: fixed; bottom: calc(var(--safe-bottom) + 22px); inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%;
    background: var(--pink); color: #fff; font-size: 28px; box-shadow: 0 6px 20px rgba(254, 44, 85, .45); }
dialog.sheet { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 20px; width: min(92vw, 420px); padding: 20px; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .6); }
dialog.sheet form { display: flex; flex-direction: column; gap: 12px; }
dialog.sheet h2 { margin: 0; color: var(--text); }
dialog.sheet .row button { flex: 1; }

.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--pink); border-radius: 50%; margin: 40px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; bottom: calc(var(--safe-bottom) + 90px); left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
    background: var(--card-2); border: 1px solid var(--border); padding: 10px 16px; border-radius: 12px; transition: .2s; pointer-events: none; z-index: 20; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { color: var(--err); border-color: var(--err); }

/* TikTok gifter level tag */
.person-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lvl { flex: none; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #fff; direction: ltr; line-height: 1.5; }
.lvl.t0 { background: #5f7488; }
.lvl.t1 { background: #2f8fe8; }
.lvl.t2 { background: #8a4dff; }
.lvl.t3 { background: #ff8a00; }
.lvl.t4 { background: #ff2d55; }
.lvl.t5 { background: linear-gradient(135deg, #ffd24a, #ff8a00); color: #3a2000; }
.level-history { display: flex; flex-wrap: wrap; gap: 6px; }
.level-history .step { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }

/* 1.0.8: dollar estimate, new supporters, where they gift */
.usd-line { font-size: 13px; color: var(--muted, #9a9aa6); text-align: center; margin-top: 2px; }
.usd-line b { color: #4ade80; font-size: 15px; }
.s-head .usd-line { text-align: start; margin-top: 8px; }
.new-tag { flex: none; font-size: 11px; font-weight: 800; color: #0b0b0f; background: #25f4ee; padding: 2px 8px; border-radius: 999px; margin-inline-start: 6px; align-self: center; }
.where { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.where.current { border-color: rgba(254, 44, 85, .55); cursor: default; }
.where .grow { min-width: 0; }
.where .share { font-size: 14px; }
.where .share-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.where .share-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #fe2c55, #ff7aa0); }
.where:not(.current) .share-bar i { background: linear-gradient(90deg, #25f4ee, #7df9f5); }
.where-note { margin: -6px 0 10px; }
.chips.period { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.period::-webkit-scrollbar { display: none; }
.chips.period button { flex: none; padding: 6px 12px; font-size: 14px; }

/* 1.0.9: notifications */
.nav-row { width: 100%; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #3a3a46; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: #fe2c55; }
.switch input:checked + span::after { transform: translateX(20px); }
html[dir='rtl'] .switch input:checked + span::after { transform: translateX(-20px); }
.notice { border-color: rgba(254, 44, 85, .5); }
.notice p { margin: 0 0 10px; }
.chips.threshold { flex-wrap: wrap; }
.gift-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gift-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 1px solid #2a2a33; background: #15151c; color: inherit; font: inherit; cursor: pointer; }
.gift-opt img, .gift-opt .gi { width: 44px; height: 44px; object-fit: contain; font-size: 30px; line-height: 44px; }
.gift-opt .gn { font-size: 12px; text-align: center; line-height: 1.2; }
.gift-opt .gc { font-size: 11px; color: #f5b942; font-weight: 700; }
.gift-opt.on { border-color: #fe2c55; background: rgba(254, 44, 85, .15); }

/* ---------- web app (browser / installed PWA): phones keep the app layout ---------- */
.side { display: none; }
.install-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 12px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(254, 44, 85, .16), rgba(37, 244, 238, .08)); border: 1px solid rgba(254, 44, 85, .4); }
.install-banner img { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.install-banner .title { font-weight: 700; }
.install-banner .sub { color: var(--muted); font-size: 12px; }
.install-banner .primary { width: auto; padding: 8px 16px; flex: none; }
.install-banner .close { width: 32px; height: 32px; font-size: 15px; color: var(--muted); }
.install-row { justify-content: flex-start; }
.login-foot .install-btn { border-radius: 999px; padding: 8px 18px; font-size: 13px; }
.ios-steps { line-height: 1.8; margin: 0; }

/* mouse users: hover feedback instead of the tap shrink */
@media (hover: hover) and (pointer: fine) {
    .card.account:hover, .card.session:hover, .card.contributor:hover, .where:not(.current):hover, .nav-row:hover, .gift-opt:hover { background: var(--card-2); }
    .icon-btn:hover { background: var(--card-2); }
    .chips button:not(.on):hover, .tabs button:not(.on):hover { color: var(--text); }
    .ghost:hover { border-color: #4a4a5a; }
    .primary:hover:not(:disabled) { filter: brightness(1.08); }
    button:active:not(:disabled), .card:active { transform: none; }
}

/* tablets and small windows: a bit more room */
@media (min-width: 700px) {
    .screen { max-width: 820px; padding-inline: 24px; }
    .list.accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .person-name, .person-sub { max-width: 300px; }
    .stats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* desktop: side menu + wide screen */
@media (min-width: 1000px) {
    body.with-side .shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
    body.with-side .side {
        display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
        padding: 18px 12px; background: #0e0e14; border-inline-end: 1px solid var(--border);
    }
    .side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
    .side-brand img { width: 40px; height: 40px; border-radius: 12px; }
    .side-nav { display: flex; flex-direction: column; gap: 2px; }
    .side-nav a, .side-acc {
        display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
        color: var(--muted); text-decoration: none; border-inline-start: 3px solid transparent;
    }
    .side-nav a:hover, .side-acc:hover { background: var(--card); color: var(--text); }
    .side-nav a.on, .side-acc.on { background: var(--card-2); color: var(--text); border-inline-start-color: var(--pink); }
    .side-nav svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
    .side-title { font-size: 12px; font-weight: 700; color: var(--muted); margin: 20px 12px 6px; letter-spacing: .4px; }
    .side-accounts { display: flex; flex-direction: column; gap: 2px; }
    .side-acc .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .side-acc .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); flex: none; }
    .side-empty { padding: 0 12px; }
    .side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }

    .screen { max-width: 1120px; padding: 18px 40px 60px; }
    .bar { min-height: 64px; }
    h1 { font-size: 22px; text-align: start; }
    .tabs { top: 64px; max-width: 620px; }
    body.with-side .bar [data-go="#/settings"] { display: none; } /* settings are in the side menu */
    body.with-side .bar-logo { display: none; }
    .list.sessions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .chart { height: auto; }
    .chart .axis { font-size: 8px; }
    .chips.period { flex-wrap: wrap; overflow: visible; }
    .person-name, .person-sub { max-width: 360px; }
    .gift-pick { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .fab { bottom: 32px; inset-inline-end: 40px; }
    .toast { bottom: 40px; }
    .content > .card.form, .content > .chips, .content > .ghost.danger, .content > .nav-row, .content > .install-row, .content > .card:first-child, .content > p.small.center { max-width: 560px; }
}
@media (min-width: 1500px) {
    .list.accounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* reCAPTCHA: Google's floating badge is replaced by the required text under the login */
.grecaptcha-badge { visibility: hidden; }
.captcha-note { margin: 0; font-size: 11px; color: var(--muted); text-align: center; max-width: 340px; line-height: 1.5; }
.captcha-note a { color: var(--muted); }

/* 1.0.10: supporter rows - the name never runs under the gifts; gifts as picture + count */
.card.contributor .person { flex: 1 1 auto; min-width: 0; }
.card.contributor .person-text { flex: 1; min-width: 0; }
.card.contributor .person-name { max-width: none; min-width: 0; flex: 0 1 auto; }
.card.contributor .person-sub { max-width: none; }
.card.contributor .grow.end { flex: 0 0 auto; max-width: 44%; }
.chips.small { gap: 4px; justify-content: flex-end; }
.gchip { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 8px 0 3px; border-radius: 999px;
    background: var(--card-2); color: var(--text); font-size: 12px; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gchip img { width: 22px; height: 22px; object-fit: contain; }
.gchip.txt { padding-inline: 8px; font-weight: 500; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.gchip.more { padding-inline: 8px; color: var(--muted); }
.card.gift-type .gcount { color: var(--muted); font-weight: 700; direction: ltr; unicode-bidi: isolate; }

/* live summary card */
.share-card { width: 100%; margin-top: 10px; }
dialog.card-sheet { width: min(94vw, 460px); padding: 14px; }
.card-preview { width: 100%; border-radius: 14px; display: block; }

/* active fans who never gifted */
.card.silent-fan .person { flex: 1 1 auto; min-width: 0; }
.card.silent-fan .person-name, .card.silent-fan .person-sub { max-width: none; }
.hint-tag { flex: none; font-size: 11px; font-weight: 700; color: #f5b942; background: rgba(245, 185, 66, .12); padding: 3px 9px; border-radius: 999px; }

/* today's coins on the accounts screen */
.card.account .today { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.today-coins { background: #e8173f; color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }
.today-label { font-size: 12px; color: var(--muted); }
.card.account .today.none { font-size: 12px; color: var(--muted); }

/* supporter cards: name + coins on the first line, gifts on one line below */
.card.contributor.two-rows { flex-direction: column; align-items: stretch; gap: 8px; }
.two-rows .c-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.two-rows .c-top .person { flex: 1 1 auto; min-width: 0; }
.two-rows .c-top .person-text { flex: 1; min-width: 0; }
.two-rows .person-name { max-width: none; min-width: 0; flex: 0 1 auto; }
.two-rows .person-sub { max-width: none; }
.two-rows .c-top .coin-tag, .two-rows .c-top .new-tag, .two-rows .c-top .chev { flex: none; }
.two-rows .c-gifts { display: flex; gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding-inline-start: 78px; /* under the name: rank + avatar */ }
.two-rows .c-gifts::-webkit-scrollbar { display: none; }
.two-rows .c-gifts .gchip { flex: none; }

/* pull down to refresh */
.ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: height .15s ease; }
.ptr-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2);
    color: var(--muted); font-size: 18px; transition: transform .15s, color .15s; }
.ptr.ready .ptr-icon { transform: rotate(180deg); color: var(--pink); }
.ptr.loading .ptr-icon { font-size: 0; border: 3px solid var(--border); border-top-color: var(--pink); background: none; animation: spin .7s linear infinite; }

/* Continue with Google */
.google-box { display: flex; flex-direction: column; gap: 10px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px;
    background: #fff; color: #1f1f1f; font-weight: 600; font-size: 15px; width: 100%; }
.google-btn .g-logo { display: flex; }
.google-btn .btn-spin { border-color: rgba(0, 0, 0, .2); border-top-color: #1f1f1f; }
.google-web { display: flex; justify-content: center; min-height: 0; }
.free-note { margin: -2px 0 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* plan: bar on the accounts screen, packages */
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 10px 12px;
    border-radius: 14px; background: rgba(245, 185, 66, .1); color: var(--warn); font-size: 13px; }
.plan-bar .primary { width: auto; padding: 7px 14px; font-size: 13px; }
.full-note { width: 100%; justify-content: space-between; margin-top: 8px; color: var(--muted); font: inherit; font-size: 13px; text-align: start; }
.link-like { color: var(--pink); font-weight: 700; }
.plan-now { margin-bottom: 12px; }
.card.package { position: relative; align-items: center; }
.card.package.best { border-color: rgba(254, 44, 85, .6); }
.card.package.current { border-color: var(--ok); }
.pkg-badge { position: absolute; top: -9px; inset-inline-start: 14px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.pkg-price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.card.package .buy { width: auto; padding: 8px 16px; }
.buy-help { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.buy-help .row button { flex: 1; }
.wa-btn { text-decoration: none; }
.delete-account { margin: 18px auto 0; color: var(--muted); }
