/* ============================================================
   Components to mirror the original app's pages & options
   (purple Liquid Glass restyle)
   ============================================================ */

/* ---------- branding hero ---------- */
.brand { text-align: center; margin: 6px 0 22px; }
.brand .logo { font-size: 46px; filter: drop-shadow(0 8px 22px rgba(168,85,247,.55)); animation: floaty 3s var(--ease) infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.brand h1 { margin: 8px 0 4px; font-size: 26px; letter-spacing: -.03em;
  background: linear-gradient(120deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand p { margin: 0 auto; max-width: 300px; color: var(--tx-2); font-size: 13px; }

/* ---------- 2-col stats with icon ---------- */
.stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat2 { padding: 20px 14px; text-align: center; }
.stat2 .ictile { width: 56px; height: 56px; border-radius: 17px; margin: 0 auto 11px; }
.stat2 .n { font-size: 34px; font-weight: 850; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--magenta)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat2 .n.gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat2 .l { margin-top: 6px; font-size: 12px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ---------- protection card ---------- */
.prot { padding: 20px; margin-bottom: 8px; transition: box-shadow 0.3s var(--ease); }
.prot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.prot-head .left { display: flex; align-items: center; gap: 12px; }
.prot-badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(168,85,247,.25), rgba(226,107,255,.18));
  border: 1px solid var(--glass-border-strong);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.prot-t { font-size: 16px; font-weight: 700; }
.prot-s { font-size: 12px; color: var(--tx-3); }
.status-ind { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .03em; }
.status-ind .pulse { width: 7px; height: 7px; border-radius: 50%; animation: blip 1.4s var(--ease) infinite; }
@keyframes blip { 50% { opacity: .3; transform: scale(1.4); } }
.status-ok { color: var(--mint); background: rgba(110,240,214,.1); border: 1px solid rgba(110,240,214,.25); }
.status-ok .pulse { background: var(--mint); }
.status-warn { color: var(--gold); background: rgba(241,207,138,.1); border: 1px solid rgba(241,207,138,.25); }
.status-warn .pulse { background: var(--gold); }
.status-off { color: var(--coral); background: rgba(255,111,143,.1); border: 1px solid rgba(255,111,143,.25); }
.status-off .pulse { background: var(--coral); animation: none; }

/* -- per-level: prot-badge icon color -- */
.prot.lvl-stop  .prot-badge .ic { color: var(--coral); }
.prot.lvl-basic .prot-badge .ic { color: var(--sky); }
.prot.lvl-max   .prot-badge .ic { color: var(--violet); }

/* -- per-level: badge background tint -- */
.prot.lvl-stop  .prot-badge { background: linear-gradient(135deg, rgba(255,111,143,.3), rgba(212,69,106,.18)); border-color: rgba(255,111,143,.4); }
.prot.lvl-basic .prot-badge { background: linear-gradient(135deg, rgba(196,181,253,.28), rgba(139,139,255,.18)); border-color: rgba(196,181,253,.38); }
.prot.lvl-max   .prot-badge { background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(226,107,255,.22)); border-color: rgba(168,85,247,.48); box-shadow: 0 0 18px -6px rgba(168,85,247,.5); }

/* -- per-level: card outer glow -- */
.prot.lvl-stop  { box-shadow: var(--shadow-card), var(--hl-top), var(--hl-edge), 0 0 55px -18px rgba(255,111,143,.45); }
.prot.lvl-max   { box-shadow: var(--shadow-card), var(--hl-top), var(--hl-edge), 0 0 60px -16px rgba(168,85,247,.65); }

/* -- per-level: seg sliding thumb color -- */
.seg.lvl-stop .thumb {
  background: linear-gradient(135deg, #ff6f8f, #d4456a);
  border-color: rgba(255,111,143,.55);
  box-shadow: var(--hl-top), 0 6px 22px -6px rgba(255,111,143,.65);
}
.seg.lvl-basic .thumb {
  background: linear-gradient(135deg, #c4b5fd, #8b8bff);
  border-color: rgba(196,181,253,.48);
  box-shadow: var(--hl-top), 0 6px 20px -6px rgba(196,181,253,.5);
}
.seg.lvl-max .thumb {
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  border-color: rgba(168,85,247,.6);
  box-shadow: var(--hl-top), 0 6px 22px -6px rgba(168,85,247,.7), 0 0 30px -8px rgba(226,107,255,.4);
}

/* -- level-aware button text -- */
.seg.lvl-stop  button[data-level="stop"]   { color: #fff; }
.seg.lvl-basic button[data-level="basic"]  { color: #1a1035; }  /* dark on light lilac thumb */
.seg.lvl-max   button[data-level="max"]    { color: #fff; }

/* ---------- feature grid (per protection level) ---------- */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fcard {
  padding: 14px; border-radius: var(--r-md); position: relative; overflow: hidden;
  background: var(--glass-bg-soft); border: 1px solid var(--glass-border);
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fcard.on {
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(109,75,255,.1));
  border-color: rgba(168,85,247,.45);
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.2), 0 4px 18px -6px rgba(168,85,247,.4);
}
.fcard.off { opacity: .5; }
.fcard .fi { font-size: 18px; margin-bottom: 8px; }
.fcard .fn { font-size: 13px; font-weight: 650; }
.fcard .fd { font-size: 10.5px; color: var(--tx-3); margin-top: 2px; }
.fbadge { position: absolute; top: 11px; right: 11px; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; }
.fbadge.on { color: var(--ink-900); background: linear-gradient(135deg, var(--mint), #3fc7b4); }
.fbadge.off { color: var(--tx-3); background: rgba(255,255,255,.08); }
.fbadge.pro { color: #2a1e06; background: linear-gradient(135deg, var(--gold), var(--gold-2)); }

/* max level: feature cards pop even more */
.prot.lvl-max .fcard.on {
  background: linear-gradient(135deg, rgba(168,85,247,.25), rgba(226,107,255,.14));
  border-color: rgba(168,85,247,.55);
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.28), 0 6px 22px -8px rgba(168,85,247,.55);
}
/* stop level: all cards very dim to signal "off" */
.prot.lvl-stop .fcard.off { opacity: .3; }

/* ---------- community list (channels/groups) ---------- */
.view-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 16px; }
.view-head h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--glass-border); background: var(--glass-bg-soft);
  color: var(--tx-1); font-size: 17px; cursor: pointer; transition: transform .3s var(--ease); }
.icon-btn:active { transform: rotate(180deg) scale(.92); }

/* ---------- redesigned community cards (channels + groups) ---------- */
.comm { padding: 16px; margin-bottom: 10px; cursor: pointer; transition: transform .18s var(--ease); }
.comm:active { transform: scale(.985); }
.comm-row { display: flex; align-items: center; gap: 14px; }

/* icon wrapper with a small status dot in the bottom-right corner */
.comm-thumb { position: relative; flex: 0 0 auto; }
.cdot { position: absolute; bottom: -2px; right: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--ink-900); }
.cdot.ok  { background: var(--mint); box-shadow: 0 0 8px rgba(110,240,214,.7); }
.cdot.off { background: var(--coral); }

/* text block */
.comm-info { flex: 1; min-width: 0; }
.comm-name {
  font-size: 15.5px; font-weight: 680;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}
.comm-meta { font-size: 12px; color: var(--tx-3); margin-top: 4px; }
.comm-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

/* dimmed style for inactive channels (not admin) */
.comm.comm-dim { opacity: 0.72; }

/* keep legacy .comm-pills working (group items still use it) */
.comm-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

/* legacy idx used in group items — keep it but subtler */
.idx { width: 24px; height: 24px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 750; color: var(--sky); background: rgba(196,181,253,.08); border: 1px solid var(--glass-border); }

/* ---------- sticky add ---------- */
.add-wrap { margin: 18px 0 8px; }

/* ---------- tools: scan interface ---------- */
.scan-big { padding: 24px; margin-bottom: 16px; text-align: center; }
.scan-circle { width: 168px; height: 168px; margin: 8px auto 14px; border-radius: 50%; cursor: pointer; position: relative;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: radial-gradient(circle at 50% 35%, rgba(168,85,247,.3), rgba(40,26,68,.6));
  border: 1.5px solid var(--glass-border-strong); box-shadow: var(--hl-top), 0 0 40px -10px rgba(168,85,247,.6);
  transition: transform .2s var(--ease); }
.scan-circle:active { transform: scale(.95); }
.scan-circle::after { content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: rgba(226,107,255,.7); animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-circle .sc-ic { font-size: 38px; }
.scan-circle .sc-t { font-size: 16px; font-weight: 750; }
.scan-circle .sc-s { font-size: 11px; color: var(--tx-2); max-width: 130px; }
.scan-note { font-size: 12px; color: var(--tx-2); margin-top: 4px; }

/* stage dots + live stats for scan animation */
.stage-dots { display: flex; gap: 7px; justify-content: center; margin: 6px 0 2px; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); transition: all var(--dur) var(--ease); }
.stage-dot.active { background: var(--violet); }
.stage-dot.current { box-shadow: 0 0 10px var(--violet); transform: scale(1.3); }
.live3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.live3 .b { padding: 10px; border-radius: var(--r-sm); background: var(--glass-bg-soft); border: 1px solid var(--glass-border); text-align: center; }
.live3 .b .v { font-size: 17px; font-weight: 750; }
.live3 .b .k { font-size: 10px; color: var(--tx-3); }

/* scan result boxes */
.res-box { padding: 16px; border-radius: var(--r-md); margin: 14px 0; text-align: left; }
.res-box.ok { background: rgba(110,240,214,.07); border: 1px solid rgba(110,240,214,.25); }
.res-box.warn { background: rgba(241,207,138,.07); border: 1px solid rgba(241,207,138,.25); }
.res-box .rh { font-weight: 750; margin-bottom: 8px; }
.res-line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }

/* ---------- reward progress ---------- */
.reward { padding: 16px; margin-bottom: 11px; }
.reward-top { display: flex; align-items: center; gap: 12px; }
.reward .ictile { flex: 0 0 auto; }
.pbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 10px 0 6px; }
.pbar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--magenta));
  transition: width .6s var(--ease); }

/* ---------- modal sections (detail modals) ---------- */
.msec { margin-bottom: 16px; }
.msec .st { font-size: 12px; font-weight: 700; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 9px; }
.mname { font-size: 19px; font-weight: 750; }
.muser { font-size: 13px; color: var(--tx-2); }
.mid { font-size: 11px; color: var(--tx-3); font-family: ui-monospace, monospace; margin-top: 2px; }
.mstats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 14px 0; }
.mstat { padding: 13px 8px; border-radius: var(--r-sm); text-align: center; background: var(--glass-bg-soft); border: 1px solid var(--glass-border); }
.mstat .v { font-size: 18px; font-weight: 750; }
.mstat .k { font-size: 10px; color: var(--tx-3); margin-top: 2px; text-transform: uppercase; }
.badges { display: grid; gap: 8px; }
.sbadge { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  background: var(--glass-bg-soft); border: 1px solid var(--glass-border); }
.sbadge.ok { color: var(--mint); border-color: rgba(110,240,214,.25); }
.sbadge.warn { color: var(--gold); border-color: rgba(241,207,138,.25); }
.sbadge.off { color: var(--tx-3); }
.perms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.perm { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--glass-bg-soft); border: 1px solid var(--glass-border); text-transform: capitalize; }
.perm.no { opacity: .5; }
.prot-disp { display: inline-flex; padding: 9px 14px; border-radius: 999px; font-weight: 650; font-size: 14px;
  background: rgba(168,85,247,.14); color: var(--violet); border: 1px solid rgba(168,85,247,.3); }
.notice { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: var(--r-sm); margin-top: 10px;
  background: rgba(241,207,138,.08); border: 1px solid rgba(241,207,138,.22); font-size: 12.5px; color: var(--gold); }

/* ---------- payment ---------- */
.feat-box { padding: 16px; margin-bottom: 18px; }
.feat-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; }
.feat-row .ck { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(226,107,255,.2)); }
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.pcard { padding: 14px 8px; border-radius: var(--r-md); text-align: center; cursor: pointer; position: relative;
  background: var(--glass-bg-soft); border: 1px solid var(--glass-border); transition: transform .16s var(--ease); }
.pcard:active { transform: scale(.97); }
.pcard.pop { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), var(--hl-top); }
.pcard .pn2 { font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pcard .pp2 { font-size: 22px; font-weight: 800; margin: 4px 0; letter-spacing: -.02em; }
.pcard .pdiv { font-size: 9px; color: var(--tx-3); margin: 2px 0; }
.pcard .pst { font-size: 11px; color: var(--gold); font-weight: 650; }
.cbadge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; padding: 3px 8px;
  border-radius: 999px; white-space: nowrap; color: #2a1e06; background: linear-gradient(135deg, var(--gold), var(--gold-2)); }

.btn-stars { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px;
  border: 0; border-radius: var(--r-md); font-family: inherit; font-weight: 750; font-size: 15px; cursor: pointer; color: #2a1e06;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: var(--hl-top), 0 14px 30px -12px rgba(241,207,138,.6); }
.or-div { text-align: center; font-size: 11px; color: var(--tx-3); margin: 14px 0; letter-spacing: .05em; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; margin-bottom: 8px; cursor: pointer;
  border-radius: var(--r-md); background: var(--glass-bg-soft); border: 1px solid var(--glass-border); transition: all var(--dur) var(--ease); }
.crow.sel { border-color: var(--violet); box-shadow: inset 0 0 0 1px rgba(168,85,247,.3); }
.crow .cl { display: flex; align-items: center; gap: 11px; }
.crow .cbox { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--glass-border-strong); flex: 0 0 auto; transition: all var(--dur) var(--ease); }
.crow.sel .radio { border-color: var(--violet); background: radial-gradient(circle, var(--violet) 38%, transparent 42%); }
.qr-white { background: #fff; padding: 18px; border-radius: var(--r-md); text-align: center; margin: 14px 0; }
.qr-white img { width: 180px; height: 180px; }
.qr-white .sendto { font-size: 11px; color: #666; font-weight: 650; margin-top: 10px; }
.addr-box { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 10px; padding: 10px 12px;
  border-radius: var(--r-sm); background: #f2f2f5; cursor: pointer; }
.addr-box span { font-family: ui-monospace, monospace; font-size: 12px; color: #333; word-break: break-all; }

/* ---------- celebration / confetti ---------- */
.celebrate { text-align: center; position: relative; padding: 8px 4px; }
.celebrate .big { font-size: 56px; animation: pop .5s var(--ease-snap) both; }
.confetti-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-wrap i { position: absolute; top: -10px; width: 8px; height: 14px; opacity: .9; animation: fall 2.4s linear infinite; }
@keyframes fall { to { transform: translateY(420px) rotate(540deg); opacity: 0; } }

/* ---------- input ---------- */
.tinput { width: 100%; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.28); color: var(--tx-1); font-family: inherit; font-size: 14px; }
.tinput:focus { outline: none; border-color: var(--violet); }

/* ============================================================
   Polish pass — native feel, glow, refined scroll
   ============================================================ */

/* nav: soft outer glow + lift the active glyph */
.nav { box-shadow: var(--shadow-card), var(--hl-top), 0 0 30px -10px rgba(168,85,247,.5); }
.nav button.on .ti { filter: drop-shadow(0 4px 12px rgba(168,85,247,.8)); }
.nav button:active { transform: scale(.9); }
.nav button .ti, .nav button:active .ti { transition: transform var(--dur) var(--ease-snap); }

/* thin, on-theme scrollbars inside sheets/logs */
.sheet, .log { scrollbar-width: thin; scrollbar-color: rgba(168,85,247,.5) transparent; }
.sheet::-webkit-scrollbar, .log::-webkit-scrollbar { width: 5px; }
.sheet::-webkit-scrollbar-thumb, .log::-webkit-scrollbar-thumb { background: rgba(168,85,247,.45); border-radius: 999px; }
.sheet::-webkit-scrollbar-track, .log::-webkit-scrollbar-track { background: transparent; }

/* grip subtly reacts */
.grip { transition: width var(--dur) var(--ease), background var(--dur) var(--ease); }
.sheet:active .grip { width: 54px; background: rgba(168,85,247,.5); }


/* cards: gentle lift + brighter border on press */
.glass.card:active, .glass.comm:active, .glass.tool:active, .pcard:active, .plan:active { border-color: var(--glass-border-strong); }

/* pill polish */
.pill { line-height: 1.5; }

/* status badge icon in detail modal */
.sbadge { line-height: 1.3; }

/* avatar ring glow on profile */
.hero .avatar { position: relative; }
.hero .avatar::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; z-index: -1;
  background: linear-gradient(150deg, var(--violet), var(--magenta)); filter: blur(14px); opacity: .45; }

/* first-paint fade for the whole shell */
#app { animation: appIn .5s var(--ease) both; }
@keyframes appIn { from { opacity: 0; } }

/* ---------- icon system ---------- */
.ic { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.brandlogo { filter: drop-shadow(0 10px 24px rgba(168,85,247,.5)); }

/* gradient "app icon" tiles */
.ictile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: #fff; flex: 0 0 auto; box-shadow: var(--hl-top), 0 8px 18px -8px rgba(0,0,0,.6); }
.ictile.sm { width: 38px; height: 38px; border-radius: 12px; }
.ictile.lg { width: 56px; height: 56px; border-radius: 17px; }
.ictile.v-violet { background: linear-gradient(150deg, #a855f7, #7c3aed); box-shadow: var(--hl-top), 0 10px 22px -8px rgba(168,85,247,.65); }
.ictile.v-magenta{ background: linear-gradient(150deg, #d946ef, #a855f7); box-shadow: var(--hl-top), 0 10px 22px -8px rgba(217,70,239,.6); }
.ictile.v-gold   { background: linear-gradient(150deg, #f1cf8a, #c9a25a); color: #2a1e06; box-shadow: var(--hl-top), 0 10px 22px -8px rgba(241,207,138,.6); }
.ictile.v-mint   { background: linear-gradient(150deg, #6ef0d6, #34c3ad); color: #06231d; box-shadow: var(--hl-top), 0 10px 22px -8px rgba(110,240,214,.55); }
.ictile.v-sky    { background: linear-gradient(150deg, #c4b5fd, #8b8bff); color: #161335; }
.ictile.v-coral  { background: linear-gradient(150deg, #ff8aa3, #ff5f7e); }
.ictile.v-glass  { background: var(--glass-bg-soft); border: 1px solid var(--glass-border); color: var(--tx-1); box-shadow: none; }

/* status dot-icons inline in pills */
.pill .ic { margin-right: 3px; }
.sbadge .ic, .res-line .ic, .feat-row .ic, .toggle-row .ic { flex: 0 0 auto; }
.chev .ic { color: var(--tx-3); }

/* premium-locked hint on the Max segment */
.seg .lock { display: inline-flex; opacity: .85; vertical-align: middle; margin-left: 2px; }
.seg .lock .ic { color: currentColor; }

/* toast: glassy pill with a touch more presence */
.toast { box-shadow: var(--shadow-card), var(--hl-top); border: 1px solid var(--glass-border-strong); }

/* ---------- icon alignment in flex controls ---------- */
.pill { display: inline-flex; align-items: center; gap: 3px; }
.badge { display: inline-flex; align-items: center; gap: 5px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.subtabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sec-title { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; }
.btn .ic { margin-right: 2px; }
.empty .big { display: flex; justify-content: center; margin-bottom: 14px; }
.comm-thumb .ictile { display: inline-grid; }   /* override any block-level drift inside flex */
.tool .ictile { margin-bottom: 12px; }
.tool .ictile.toolic { width: 50px; height: 50px; }
.card.menu { display: flex; align-items: center; gap: 12px; }
.brand .logo { font-size: 0; }
.scan-circle .sc-ic { color: #fff; filter: drop-shadow(0 6px 14px rgba(168,85,247,.7)); }
/* prot-badge icon color overridden per-level above; fallback for non-prot uses */
.fcard.on .fi { color: var(--violet); }
.prot.lvl-stop .fcard.on .fi { color: var(--coral); }
.fcard.off .fi { color: var(--tx-3); }
.status-ind { gap: 6px; }
.comm-name .bk { color: var(--mint); display: inline-flex; vertical-align: middle; }
.menu .ictile { color: var(--tx-2); }

/* detail-modal header (tile + name) */
.mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mhead .mname { margin: 0; }
.mid { margin: 0 0 14px; }

/* celebration / result hero icon centers its tile */
.celebrate .big { display: flex; justify-content: center; margin-bottom: 6px; }
.celebrate .big .ictile { width: 64px; height: 64px; border-radius: 20px; }

/* scan/fix log check icon = mint */
.log .lgi { color: var(--mint); vertical-align: -2px; }

/* res-line trailing icons sit at the row end */
.res-line .ic { color: var(--tx-2); }
.res-line span .ic { color: inherit; }

/* feature box check icon stays crisp white in its gradient chip */
.feat-row .ck .ic { color: #fff; }
.btn-stars .ic { color: #2a1e06; }

/* prot-disp inline icon */
.prot-disp .ic { color: var(--violet); margin-right: 2px; }

/* ============================================================
   Device frame — on phones (Telegram) this is invisible; on a
   desktop browser it becomes a centered phone shell so the
   bottom nav docks under the content instead of the window edge.
   ============================================================ */
#device { display: contents; }

@media (min-width: 700px) {
  body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
  #device {
    display: block; position: relative;
    width: 412px; height: min(900px, 94vh);
    border-radius: 48px; overflow: hidden;
    background: var(--ink-900);
    transform: translateZ(0);                 /* anchor fixed/absolute descendants to the frame */
    box-shadow: 0 50px 130px -30px rgba(0,0,0,.85),
                0 0 0 11px #0c0a16, 0 0 0 12px rgba(168,85,247,.30),
                inset 0 1px 0 rgba(255,255,255,.12);
  }
  #app { position: absolute; inset: 0; max-width: none; margin: 0; overflow-y: auto; }
  .nav { position: absolute; }                /* docks to the frame bottom, not the window */
  .scrim, .sheet { position: absolute; }       /* sheets slide within the frame */
  .toast-wrap { position: absolute; }
}
