/* Hols v2 — matte black theme, real gift art, Telegram-style gift card, upgrade roulette, rating badge chain,
   anonymous numbers, auctions, paid messages, light-theme nickname fix. Loaded last. */

/* =================================================================== matte black (dark theme) */
html[data-theme="dark"] {
  --bg: #0a0a0b;
  --panel: rgba(19, 19, 21, .97);
  --panel-solid: #141416;
  --panel-2: rgba(255, 255, 255, .035);
  --panel-3: rgba(255, 255, 255, .07);
  --hover: rgba(255, 255, 255, .05);
  --active: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .065);
  --line-2: rgba(255, 255, 255, .11);
  --text: #ededef;
  --text-2: #9b9ba3;
  --text-3: #686870;
  --bubble-in: #1d1d20;
  --bubble-out-1: color-mix(in srgb, var(--accent) 72%, #151517);
  --bubble-out-2: color-mix(in srgb, var(--accent) 72%, #151517);
  --glass-hi: rgba(255, 255, 255, .045);
  --glass-lo: rgba(0, 0, 0, 0);
  --shadow: 0 24px 70px rgba(0, 0, 0, .7);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
  --input: rgba(255, 255, 255, .045);
  --overlay: rgba(0, 0, 0, .7);
  --brand-grad: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #fff), var(--accent));
}
html[data-theme="dark"] body { background: #0a0a0b; }
html[data-theme="dark"] body::before { display: none; }
html[data-theme="dark"] body::after { opacity: .045; mix-blend-mode: normal; }
html[data-theme="dark"] .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-sm); }
html[data-theme="dark"] .glass::before { opacity: .18; background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 40%); }
html[data-theme="dark"] .glass::after { display: none; }
html[data-theme="dark"] .glass-lite { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel); }
html[data-theme="dark"] .btn::after { display: none; }
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .send-btn, html[data-theme="dark"] .cv-bigbtn.primary { background: var(--accent); box-shadow: none; }
html[data-theme="dark"] .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); filter: none; }
html[data-theme="dark"] .btn-green { background: #1f9d55; box-shadow: none; }
html[data-theme="dark"] .badge-count, html[data-theme="dark"] .rx.mine { background: var(--accent); box-shadow: none; }
html[data-theme="dark"] .modal, html[data-theme="dark"] .ctx, html[data-theme="dark"] .popover, html[data-theme="dark"] .toast, html[data-theme="dark"] .drawer, html[data-theme="dark"] .tip-pop { background: #151517; }
html[data-theme="dark"] .modal-back, html[data-theme="dark"] .miniapp-back { -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="dark"] .cl-item.active { background: rgba(255, 255, 255, .07); box-shadow: none; }
html[data-theme="dark"] .cl-item.active::before { background: var(--accent); box-shadow: none; }
html[data-theme="dark"] .cl-item:hover { transform: none; }
html[data-theme="dark"] .bubble { -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(255, 255, 255, .03); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
html[data-theme="dark"] .mrow.out .bubble { box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
html[data-theme="dark"] .cv-bg { opacity: .35; }
html[data-theme="dark"] .cv-bg::after { background: radial-gradient(80% 60% at 50% 40%, transparent, rgba(10, 10, 11, .6)); }
html[data-theme="dark"] .date-sep, html[data-theme="dark"] .sys-pill, html[data-theme="dark"] .loose-meta { background: rgba(28, 28, 31, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="dark"] .story-ring { background: conic-gradient(from 200deg, var(--accent), #9b9ba3, var(--accent)); }
html[data-theme="dark"] .tb-logo img, html[data-theme="dark"] .auth-logo, html[data-theme="dark"] .cv-empty .logo { filter: none; }
html[data-theme="dark"] .chip.active, html[data-theme="dark"] .ftab.active { background: rgba(255, 255, 255, .09); color: var(--text); border-color: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .seg button.active { background: rgba(255, 255, 255, .1); box-shadow: none; }
html[data-theme="dark"] .miniapp { background: #121214; border-color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .ma-act .c { background: var(--accent); }
html[data-theme="dark"] .rating-modal { background: #121214 !important; }
html[data-theme="dark"] .sendfx { background: rgba(6, 6, 7, .9); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="dark"] .gift-card::after { display: none; }
html[data-theme="dark"] .composer { background: #151517; }
html[data-theme="dark"] .ico-sq { box-shadow: none; }

/* =================================================================== nickname styles: light theme fix */
/* The old light-theme overrides used the `background` shorthand, which silently resets background-clip
   to border-box — the nickname turned into a solid colour bar. Clip is now forced for every style. */
.nm[class*="ns-"] { -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important; display: inline; }
/* a text-shadow behind clipped gradient text makes it look dirty — never combine them */
.nm[class*="ns-"] { text-shadow: none !important; }
.pf-hero .pf-name .nm[class*="ns-"] { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.ns-preview { font-size: 1.8rem; font-weight: 800; margin: 6px 0 16px; padding: 14px 10px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); }
html[data-theme="light"] .ns-swatch { background: #fff; border-color: rgba(15, 23, 42, .06); }
html[data-theme="light"] .ns-swatch.active { border-color: var(--accent); }
html[data-theme="light"] .ns-ruby { background-image: linear-gradient(90deg, #d90429, #e5383b); }
html[data-theme="light"] .ns-gold { background-image: linear-gradient(90deg, #a86b00, #d18a00); }
html[data-theme="light"] .ns-mint { background-image: linear-gradient(90deg, #047857, #0d9488); }
html[data-theme="light"] .ns-sky { background-image: linear-gradient(90deg, #0369a1, #0284c7); }
html[data-theme="light"] .ns-violet { background-image: linear-gradient(90deg, #6d28d9, #7c3aed); }
html[data-theme="light"] .ns-sunset { background-image: linear-gradient(90deg, #ea580c, #db2777, #7e22ce); }
html[data-theme="light"] .ns-aurora { background-image: linear-gradient(90deg, #059669, #0891b2, #6d28d9); }
html[data-theme="light"] .ns-candy { background-image: linear-gradient(90deg, #db2777, #d97706); }
html[data-theme="light"] .ns-ocean { background-image: linear-gradient(90deg, #0369a1, #4f46e5); }
html[data-theme="light"] .ns-fire { background-image: linear-gradient(90deg, #ca8a04, #ea580c, #dc2626); }
html[data-theme="light"] .ns-galaxy { background-image: linear-gradient(90deg, #6d28d9, #be185d, #0369a1); }
html[data-theme="light"] .ns-shimmer-gold { background-image: linear-gradient(100deg, #7a4f00 0%, #b07800 22%, #e0a800 32%, #9a6400 45%, #7a4f00 60%, #b07800 80%, #7a4f00 100%); }
html[data-theme="light"] .ns-shimmer-rainbow { background-image: linear-gradient(90deg, #dc2626, #d97706, #059669, #0284c7, #7c3aed, #dc2626); }
html[data-theme="light"] .ns-shimmer-ice { background-image: linear-gradient(100deg, #075985 0%, #0284c7 25%, #4f46e5 45%, #075985 70%, #0369a1 100%); }
html[data-theme="light"] .ns-holo { background-image: linear-gradient(110deg, #a21caf, #b45309, #0369a1, #047857, #a21caf, #b45309); }
html[data-theme="light"] .ns-shimmer-gold, html[data-theme="light"] .ns-shimmer-rainbow, html[data-theme="light"] .ns-shimmer-ice, html[data-theme="light"] .ns-holo { background-size: 250% 100% !important; }
html[data-theme="light"] .mrow.out .bubble .nm[class*="ns-"], html[data-theme="light"] .pf-hero .nm[class*="ns-"] { filter: brightness(1.6) saturate(1.2) drop-shadow(0 1px 4px rgba(0, 0, 0, .35)); }
html[data-theme="light"] .pf-hero.plain { background: radial-gradient(90% 70% at 50% 35%, color-mix(in srgb, var(--a2) 70%, #1b1b2e), color-mix(in srgb, var(--a2) 35%, #2a2a3a)); }

/* =================================================================== gift images */
.gift-img { position: relative; display: block; animation: none; }
.gift-img img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.gift-img.fill { width: 100%; height: 100%; }
.gift-card .gart { width: 76px; height: 76px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.gift-card .gart .gift-img { width: 76px; height: 76px; }
.gift-card.shop { padding-top: 0; }
.gift-card.shop::before { inset: 0 0 auto 0; height: 104px; background: radial-gradient(80% 90% at 50% 40%, var(--c1), var(--c2)); opacity: .9; }
.gift-card.shop .gart { margin-top: 14px; }
.gift-card.shop .gn { margin-top: 18px; }
.gift-card .gleft { font-size: .66rem; color: var(--text-3); margin-top: 6px; }
.gift-card.soldout { opacity: .55; }
.gift-card .nft-no { font-variant-numeric: tabular-nums; }
.gift-big .gift-img { margin: 0 auto; }

/* NFT tile: backdrop + symbol pattern */
.nft-art { background: radial-gradient(70% 70% at 50% 45%, var(--c1), var(--c2)); }
.nft-pattern { position: absolute; inset: 0; pointer-events: none; animation: none; }
.nft-art .nft-pattern { animation: patSpin 120s linear infinite; }
.nft-pattern .sym { position: absolute; height: auto; aspect-ratio: 1; object-fit: contain; filter: brightness(0); user-select: none; }
.nft-art .nft-model { inset: 15%; }
.pf-hero .nft-pattern { inset: -10%; animation: patSpin 160s linear infinite; }
.pf-hero .nft-pattern .sym { opacity: .26 !important; }
.bd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.nft-num { color: var(--text-2); font-weight: 700; }
.val-strong { color: var(--text) !important; font-weight: 800; }
.nft-modal .nft-big { width: min(300px, 74vw); border-radius: 32px; overflow: hidden; }
.nft-modal .nft-big .nft-art { border-radius: 32px; }

/* =================================================================== the gift card (Telegram layout) */
.gcard {
  position: relative; overflow: hidden; isolation: isolate; width: 100%; max-width: 330px; margin: 0 auto;
  border-radius: 30px; padding: 22px 18px 18px; text-align: center; color: #fff;
  background: radial-gradient(85% 70% at 50% 30%, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.gcard .nft-pattern { z-index: -1; }
.gcard .nft-pattern .sym { opacity: .16 !important; }
.gcard-ribbon {
  position: absolute; top: 20px; right: -34px; width: 132px; transform: rotate(45deg); padding: 5px 0;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: color-mix(in srgb, var(--c2) 72%, #000); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.gcard-art { width: 150px; height: 150px; margin: 0 auto 10px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
.gcard-art .gift-img { width: 100%; height: 100%; }
.gc-cur { display: grid; place-items: center; width: 100%; height: 100%; }
.gc-cur svg { width: 120px; height: 120px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35)); animation: gaFloat 3.4s ease-in-out infinite; }
.gcard-title { font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.gcard-sub { margin-top: 3px; font-size: 1rem; font-weight: 700; color: color-mix(in srgb, var(--c1) 35%, #fff); text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.gcard-attrs { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 7px 14px; margin: 14px 0 2px; font-size: 1rem; }
.gcard-attrs .k { text-align: right; color: rgba(255, 255, 255, .62); }
.gcard-attrs b { text-align: left; font-weight: 700; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard-btn { margin-top: 16px; width: 100%; max-width: 220px; height: 46px; border-radius: 999px; font-size: 1.05rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .16); transition: background .2s, transform .15s; }
.gcard-btn:hover { background: rgba(255, 255, 255, .24); }
.gcard-btn:active { transform: scale(.97); }

/* gift card inside a chat bubble */
.bubble.gbub { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0; min-width: 0; }
.bubble.gbub .b-meta { float: none; justify-content: flex-end; margin: 6px 8px 0; color: var(--text-3) !important; display: flex; }
.b-gcard { width: min(320px, 72vw); }
.b-gcard .gc-cap { text-align: center; font-size: .9rem; font-weight: 600; color: var(--text); margin: 0 6px 8px; line-height: 1.3; }
.b-gcard .gcard { padding: 18px 14px 14px; border-radius: 26px; }
.b-gcard .gcard-art { width: 128px; height: 128px; }
.b-gcard .gcard-title { font-size: 1.12rem; }
.b-gcard .gcard-sub { font-size: .9rem; }
.b-gcard .gcard-attrs { font-size: .88rem; gap: 5px 12px; }
.b-gcard .gcard-btn { height: 40px; font-size: .95rem; margin-top: 12px; }
.mrow.out .b-gcard .gc-cap { color: var(--text); }

/* gift send dialog */
.gsend-modal .gcard { max-width: 100%; }
.transfer-modal .gcard { max-width: 100%; }
.tr-head { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 0 0 12px; font-weight: 700; }
.tr-head .tr-arrow { color: var(--text-3); }

/* =================================================================== send animation with the card */
.sendfx { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sendfx-card { position: absolute; left: 50%; top: 50%; width: min(330px, 86vw); transform: translate(-50%, -46%) scale(.9); opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--spring); }
.sendfx.show-card .sendfx-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sendfx.show-card .sendfx-stage { opacity: 0; transition: opacity .3s; }
.sendfx .done { position: static; margin-top: 14px; opacity: 1; transform: none; }
.sendfx .flyer .gift-img, .sendfx .flyer .nft-art { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; }
.prem-fly svg { width: 84px; height: 84px; }

/* =================================================================== upgrade roulette */
.upgrade-modal .modal-body { padding-top: 0; }
.rl-stage { width: min(280px, 72vw); margin: 0 auto; border-radius: 32px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); }
.rl-stage .nft-art { border-radius: 32px; transition: background .12s; }
.rl-stage .nft-art .nft-pattern { animation: none; }
.rl-stage.tick .nft-model { animation: rlTick .18s ease-out; }
@keyframes rlTick { from { transform: translateY(-6px) scale(.96); opacity: .6; } }
.rl-stage.done { animation: rlDone .9s var(--spring); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 30px 70px -20px rgba(0, 0, 0, .8); }
@keyframes rlDone { 0% { transform: scale(.9); filter: brightness(2); } 100% { transform: none; filter: none; } }
.rl-num { text-align: center; margin: 12px 0 8px; color: var(--text-2); font-size: .9rem; }
.rl-num b { color: var(--text); }
.rl-num b.big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.rl-reels { display: grid; gap: 6px; }
.rl-reel { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.rl-reel .k { width: 64px; color: var(--text-3); font-size: .82rem; font-weight: 600; }
.rl-reel b { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-reel i { font-style: normal; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--panel-3); }
.rl-reel.spin b { animation: rlBlur .12s linear infinite; }
@keyframes rlBlur { 50% { transform: translateY(-2px); opacity: .7; } }
.rl-reel.locked { border-color: color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success) 8%, var(--panel-2)); }
.rl-reel.locked i { background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); }

/* =================================================================== rating badges (silver, no colour underneath) */
.lvl-svg { display: block; overflow: visible; }
.bdg.lvl { filter: none; }
.lvl-badge { width: 30px; height: 30px; }
.lvl-badge svg { position: static; width: 30px; height: 30px; }
.pf-hero .lvl-badge svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.lvl-chain { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.lc-item { display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: .45; transition: opacity .2s, transform .2s; }
.lc-item.got { opacity: .85; }
.lc-item.on { opacity: 1; transform: scale(1.12); }
.lc-item svg { width: 34px; height: 34px; }
.lc-item span { font-size: .66rem; font-weight: 700; }
.lc-item small { font-size: .58rem; opacity: .7; }
.rt-top { display: flex; align-items: center; gap: 14px; }
.rt-top .rt-big { width: 64px; height: 64px; }
.rt-lv { font-size: 1.4rem; font-weight: 800; }
.rt-lv small { font-size: .9rem; opacity: .6; }
.rt-pts { opacity: .7; font-size: .86rem; }
@media (max-width: 460px) { .lvl-chain { grid-template-columns: repeat(5, 1fr); row-gap: 10px; } }

/* =================================================================== anonymous numbers */
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.num-card { position: relative; border-radius: 20px; padding: 14px; background: linear-gradient(160deg, #24262c, #121316); color: #fff; cursor: pointer; border: 1px solid rgba(255, 255, 255, .06); transition: transform .2s var(--spring); }
.num-card:hover { transform: translateY(-3px); }
.num-card.ex { background: linear-gradient(160deg, #3a2b0a, #120d03); border-color: rgba(255, 209, 102, .35); }
.num-card .nc-top { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, .6); }
.nc-tag { font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #ffd166, #b07800); color: #1a1200; }
.nc-tag.dim { background: rgba(255, 255, 255, .1); color: #fff; }
.nc-tag.mini { font-size: .56rem; vertical-align: 2px; }
.num-card .nc-num { font-size: 1.32rem; font-weight: 800; letter-spacing: .01em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-card.ex .nc-num { background: linear-gradient(100deg, #b8860b, #ffe680 30%, #fff8dc 40%, #ffd700 55%, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-card .nc-sub { font-size: .74rem; color: rgba(255, 255, 255, .55); }
.num-card .nc-price { margin-top: 10px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: .82rem; }
.num-link { color: var(--accent); cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .num-link { color: #c7c1ff; }
.num-link:hover { text-decoration: underline; }
.un-icon.num { color: #fff; background: radial-gradient(circle at 30% 25%, #ffd166, #b07800 60%, #3a2600); }

/* =================================================================== auctions */
.auc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.auc-card { border-radius: 20px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.auc-card:hover { transform: translateY(-3px); background: var(--hover); }
.auc-card.done { opacity: .65; }
.auc-card .ac-kind { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.auc-card .ac-title { font-size: 1.2rem; font-weight: 800; margin: 6px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auc-card .ac-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-2); padding: 2px 0; }
.auc-card .ac-row b { color: var(--text); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.auc-hero { border-radius: 24px; padding: 22px 16px; text-align: center; background: linear-gradient(160deg, #24262c, #101114); color: #fff; }
.auc-hero.name { background: radial-gradient(90% 90% at 50% 20%, #3b2f7a, #120d2a); }
.auc-hero .ah-kind { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.auc-hero .ah-title { font-size: 2rem; font-weight: 800; margin: 6px 0; letter-spacing: -.01em; }
.auc-hero .ah-left { font-variant-numeric: tabular-nums; opacity: .8; }
.adm-issue { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 560px) { .adm-issue { grid-template-columns: 1fr 1fr; } }

/* =================================================================== mint, paid messages, wallet notes */
.mint-hero { padding: 4px 0 14px; }
.paid-hero { text-align: center; padding: 6px 4px 12px; color: var(--text-2); font-size: .9rem; }
.paid-hero .ruby svg { width: 46px; height: 46px; }
.paid-bar { display: flex; align-items: center; gap: 8px; margin: 0 6px 6px; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, #ef233c 12%, var(--panel)); border: 1px solid color-mix(in srgb, #ef233c 25%, transparent); font-size: .82rem; color: var(--text-2); }
.paid-bar b { color: var(--text); }
.paid-tag { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.ma-note { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; line-height: 1.4; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.ma-note .i { flex: none; margin-top: 1px; }
.tx .ti .i { color: #e9e4ff; }

/* currency dialog */
.cur-hero-in { border-radius: 24px; padding: 18px; text-align: center; color: #fff; background: radial-gradient(85% 80% at 50% 30%, #ff6b81, #6d0b24); }
.cur-hero-in.spheres { background: radial-gradient(85% 80% at 50% 30%, #8f7bff, #1e0f6a); }
.cur-hero-in .ch-ico svg { width: 64px; height: 64px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); animation: gaFloat 3.4s ease-in-out infinite; }
.cur-hero-in .ch-to { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); font-weight: 700; }

/* premium hero with the new icon */
.premium-hero .star { background: radial-gradient(circle, rgba(255, 159, 67, .22), transparent 70%); }
.premium-hero .star svg { width: 72px; height: 72px; }
.premium-star svg { filter: none; }
.premium-star { filter: drop-shadow(0 0 4px rgba(255, 159, 67, .4)); }
html[data-theme="dark"] .premium-star { filter: none; }

/* misc */
.profile-modal .mh-title { visibility: hidden; }
.adm-issue.two { grid-template-columns: 1fr auto; }
.gift-card .gleft { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* login key */
.key-box { margin: 4px 0 6px; padding: 16px; border-radius: 16px; text-align: center; font: 700 1.25rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; background: var(--panel-2); border: 1px dashed var(--line-2); cursor: pointer; user-select: all; }
.key-box:hover { background: var(--hover); }

/* =================================================================== mobile: smooth & light
   html.touch is set on phones/tablets (coarse pointer) and narrow windows */
.mrow { animation: none; }
.mrow.fresh { animation: msgIn .32s var(--ease) both; }
html.touch, html.touch body { height: 100%; }
html.touch #app { height: 100vh; height: 100dvh; }
html.touch * { -webkit-tap-highlight-color: transparent; }
html.touch button, html.touch a, html.touch .cl-item, html.touch .mrow, html.touch .gift-card { touch-action: manipulation; }
/* blur and live backgrounds are the main reason phones stutter — replace with solid surfaces */
html.touch .glass, html.touch .glass-lite, html.touch .bubble, html.touch .rx, html.touch .kb-btn, html.touch .cm-tab, html.touch .date-sep, html.touch .sys-pill,
html.touch .modal-back, html.touch .miniapp-back, html.touch .sendfx, html.touch .gift-card .nft-no, html.touch .sv-views, html.touch .b-disappear .dz-ico,
html.touch .profile-modal .modal-head .icon-btn.glassy, html.touch .pf-hero .status-pill, html.touch .call-overlay { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.touch .glass, html.touch .glass-lite { background: var(--panel-solid); }
html.touch .glass::before, html.touch .glass::after { display: none; }
html.touch body::before, html.touch body::after { display: none; }
html.touch .modal { background: var(--panel-solid); }
html.touch .nft-art .nft-pattern, html.touch .pf-hero .nft-pattern, html.touch .gift-card::after, html.touch .btn::after { animation: none !important; }
html.touch .btn::after, html.touch .gift-card::after { display: none; }
html.touch .pf-stars i { animation-duration: 4s; }
html.touch .cl-item { animation: none; transition: background .15s; }
html.touch .cl-item:hover { transform: none; }
html.touch .bubble { box-shadow: none; }
html.touch .chatview { will-change: transform; transform: translate3d(100%, 0, 0); }
html.touch .app.chat-open .chatview { transform: translate3d(0, 0, 0); }
@media (min-width: 861px) { html.touch .chatview { transform: none; will-change: auto; } }
html.touch .msgs, html.touch .sb-scroll, html.touch .modal-body, html.touch .ma-body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.touch .cv { animation: none; }
/* iOS zooms into inputs with a font smaller than 16px */
html.touch .input, html.touch .ce, html.touch textarea, html.touch .fgroup .frow input, html.touch .sv-reply { font-size: 16px; }
html.touch .cv-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
html.touch .modal-foot { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
html.touch .drawer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
html.touch .cv-head { margin-top: max(10px, env(safe-area-inset-top)); }
html.touch .sb-head { padding-top: max(16px, env(safe-area-inset-top)); }
@media (max-width: 560px) {
  .modal-head { touch-action: none; }
  .modal-head::before { content: ''; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .modal-head { position: relative; }
  .profile-modal .modal-head::before { background: rgba(255, 255, 255, .5); z-index: 6; }
  .gift-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .num-grid, .auc-grid { grid-template-columns: 1fr 1fr; }
  .num-card .nc-num { font-size: 1.05rem; }
  .b-gcard { width: min(300px, 78vw); }
  .gcard-art { width: 128px; height: 128px; }
  .nft-actions { grid-template-columns: repeat(3, 1fr); }
  .sendfx-stage { height: 240px; }
}
