/* FaceDash Mini App — "Instrument": black, hairlines, mono labels, precise motion.
   One personal accent hue (--h) is derived from the user's Telegram id. */

:root {
  /* Safe areas — JS overrides from Telegram safeAreaInset / contentSafeAreaInset */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --csat: 0px; --csab: 0px;
  --top: calc(var(--sat) + var(--csat));
  --bottom: calc(var(--sab) + var(--csab));
  --tabbar: 60px;
  --px: 18px;
  --h: 255;

  --display: "Geologica", "Onest", system-ui, sans-serif;
  --text: "Onest", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}
[data-theme="dark"] {
  --bg: #050505; --s1: #0d0d0e; --s2: #171718; --fg: #f3f2ee; --mut: #8b8a85; --dim: #55544f;
  --ln: rgba(255,255,255,.11); --ln2: rgba(255,255,255,.06);
  --ac: hsl(var(--h) 78% 66%); --ac-soft: hsl(var(--h) 78% 66% / .14);
  --ok: #58d39b; --bad: #ff6b6b; --me: #f3f2ee; --me-fg: #0a0a0a; --ai: #141415;
  --scrim: rgba(0,0,0,.62); --grid: rgba(255,255,255,.035);
}
[data-theme="light"] {
  --bg: #f2f1ec; --s1: #fbfaf7; --s2: #e7e5dd; --fg: #0b0b0c; --mut: #76746d; --dim: #b1afa6;
  --ln: rgba(0,0,0,.13); --ln2: rgba(0,0,0,.07);
  --ac: hsl(var(--h) 72% 42%); --ac-soft: hsl(var(--h) 72% 42% / .1);
  --ok: #14804f; --bad: #c9302c; --me: #0b0b0c; --me-fg: #f3f2ee; --ai: #fbfaf7;
  --scrim: rgba(20,18,10,.4); --grid: rgba(0,0,0,.04);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--fg); }
body { font: 15px/1.45 var(--text); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.mut { color: var(--mut); }
.lbl { font: 500 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.star { display: inline-block; font-family: var(--mono); font-weight: 500; opacity: .75; margin-inline-start: .18em; }

/* backdrop: fine measuring grid + a faint wash of the personal hue */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -12%, hsl(var(--h) 80% 60% / .16), transparent 62%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 100%;
  -webkit-mask: linear-gradient(#000, rgba(0,0,0,.35) 60%, transparent); mask: linear-gradient(#000, rgba(0,0,0,.35) 60%, transparent); }

/* ---------- views ---------- */
#views { position: fixed; inset: 0; z-index: 1; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: calc(var(--top) + 14px) calc(var(--sar) + var(--px)) calc(var(--bottom) + var(--tabbar) + 36px) calc(var(--sal) + var(--px));
  visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; z-index: 1; }
.view::-webkit-scrollbar { display: none; }
.view.on { visibility: visible; opacity: 1; transform: none; transition: opacity .32s ease .04s, transform .5s var(--ease) .04s; }
.view.thread { z-index: 5; padding: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); opacity: 1; transform: translateX(100%); transition: transform .42s var(--ease), visibility 0s .42s; }
.view.thread.on { transform: none; transition: transform .42s var(--ease); }

/* staggered entrance of blocks */
.view.on > .in { animation: rise .7s var(--ease) both; }
.view.on > .in:nth-child(2) { animation-delay: .05s; } .view.on > .in:nth-child(3) { animation-delay: .1s; }
.view.on > .in:nth-child(4) { animation-delay: .15s; } .view.on > .in:nth-child(5) { animation-delay: .2s; }
.view.on > .in:nth-child(6) { animation-delay: .25s; } .view.on > .in:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.h1 { font: 700 30px/1.05 var(--display); letter-spacing: -.035em; margin: 6px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ln); }
.sec .n { color: var(--ac); margin-inline-end: 10px; }
.sec a { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.sec a svg { width: 13px; height: 13px; }

.btn { height: 50px; border-radius: 14px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 600 15px var(--text); background: var(--fg); color: var(--bg); transition: transform .15s var(--ease), opacity .2s, background .2s; white-space: nowrap; position: relative; overflow: hidden; }
.btn:active { transform: scale(.975); }
.btn.line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--ln); }
.btn.line:active { background: var(--s2); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; border-radius: 10px; padding: 0 13px; font-size: 13px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }
.btn.danger { color: var(--bad); }
.sq { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; flex: none; transition: background .2s, transform .15s; }
.sq:active { background: var(--s2); transform: scale(.94); }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--ln); color: var(--mut); white-space: nowrap; }
.tag.live { color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 2s ease-in-out infinite; }
.tag.ac { color: var(--ac); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 45%, transparent); }
@keyframes blink { 50% { opacity: .25; } }

.avatar { border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font: 600 16px var(--display); background: var(--s2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--ln); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- home: header ---------- */
.hello { display: flex; align-items: center; gap: 12px; margin: 2px 0 20px; }
.hello .avatar { width: 44px; height: 44px; }
.hello .t { flex: 1; min-width: 0; }
.hello .nm { font: 600 19px/1.15 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- membership card: tilts with the phone, flips on tap ---------- */
.card-stage { perspective: 1100px; margin: 0 -2px; }
.mcard { position: relative; width: 100%; aspect-ratio: 1.586; transform-style: preserve-3d; cursor: pointer;
  transform: rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg + var(--flip, 0deg))); transition: transform .9s var(--ease); will-change: transform; }
.mcard.live { transition: transform .12s linear; }
.mcard .face { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #f3f2ee;
  background: linear-gradient(150deg, #1d1d20 0%, #0b0b0c 55%, #141416 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 30px 50px -30px rgba(0,0,0,.75), 0 0 60px -30px hsl(var(--h) 80% 60% / .7); }
.mcard .back { transform: rotateY(180deg); }
.mcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcard .sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(60% 80% at var(--sx, 30%) var(--sy, 0%), rgba(255,255,255,.2), transparent 60%),
              linear-gradient(115deg, transparent 35%, hsl(var(--h) 90% 70% / .18) 48%, hsl(calc(var(--h) + 60) 90% 70% / .14) 54%, transparent 66%);
  background-position: 0 0, calc(var(--sx, 30%) * 1.5 - 30%) 0; background-size: 100% 100%, 200% 100%; }
.mcard .cin { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.mcard .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mcard .wm { font: 700 14px var(--display); letter-spacing: .22em; }
.mcard .tier { font: 600 11px var(--mono); letter-spacing: .2em; padding: 5px 9px 4px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.mcard .tier.none { opacity: .5; }
.mcard .cl { font: 500 9px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(243,242,238,.55); margin-bottom: 3px; }
.mcard .cv { font: 500 13.5px var(--mono); letter-spacing: .04em; }
.mcard .who { font: 600 17px var(--display); letter-spacing: .01em; text-transform: uppercase; }
.mcard .serial { font: 500 15px var(--mono); letter-spacing: .2em; color: rgba(243,242,238,.9); }
.mcard .chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, hsl(var(--h) 60% 72%), hsl(calc(var(--h) + 50) 50% 55%)); position: relative; opacity: .9; }
.mcard .chip::after { content: ""; position: absolute; inset: 5px 8px; border: 1px solid rgba(0,0,0,.35); border-radius: 2px; }
.mcard .back .cin { justify-content: flex-start; gap: 12px; }
.mcard .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.mcard .hint { position: absolute; right: 16px; bottom: 12px; font: 500 9px var(--mono); letter-spacing: .14em; color: rgba(243,242,238,.4); text-transform: uppercase; }

/* ---------- gauge ---------- */
.gauge { margin-top: 22px; }
.gauge .top { display: flex; justify-content: space-between; align-items: flex-end; }
.odo { font: 700 54px/1.14 var(--display); letter-spacing: -.045em; display: inline-flex; overflow: hidden; height: 1.14em; }
.odo .d { display: block; height: 1.14em; overflow: hidden; }
.odo .d > i { display: block; font-style: normal; transition: transform 1.3s var(--ease); }
.odo .d > i > b { display: block; height: 1.14em; font-weight: inherit; }
.odo .sp { width: .22em; }
.gauge .of { font: 500 14px var(--mono); color: var(--mut); margin-inline-start: 8px; }
.gauge .right { text-align: end; }
.gauge .right b { display: block; font: 600 17px var(--mono); }
.ticks { display: flex; gap: 3px; height: 30px; align-items: flex-end; margin: 14px 0 8px; }
.ticks i { flex: 1; height: 55%; border-radius: 1px; background: var(--ln); transform-origin: bottom; transition: background .3s, height .5s var(--ease); }
.ticks i:nth-child(5n+1) { height: 100%; }
.ticks i.f { background: var(--fg); }
.ticks i.edge { background: var(--ac); box-shadow: 0 0 10px var(--ac); }
.gauge .scale { display: flex; justify-content: space-between; }
.acts { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin-top: 18px; }

/* ---------- radar (referrals) ---------- */
.radar { position: relative; height: 270px; margin: 0 calc(-1 * var(--px)); touch-action: pan-y; cursor: grab; }
.radar canvas { width: 100%; height: 100%; display: block; }
.radar .tip { position: absolute; transform: translate(-50%, -135%); padding: 6px 9px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 500 11px var(--mono); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.radar .tip.on { opacity: 1; }
.radar .hint { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.kv div { padding: 12px 0 11px; }
.kv div + div { border-inline-start: 1px solid var(--ln); padding-inline-start: 14px; }
.kv b { display: block; font: 600 22px/1.1 var(--display); letter-spacing: -.02em; margin-top: 5px; }
.linkrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.linkrow code { flex: 1; min-width: 0; font: 12.5px var(--mono); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkrow button { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 6px; align-items: center; padding: 6px 0 6px 8px; transition: color .2s; }
.linkrow button.ok { color: var(--ok); }
.linkrow button svg { width: 14px; height: 14px; }

/* ---------- timeline (instructions) ---------- */
.tl { position: relative; padding-inline-start: 34px; }
.tl::before { content: ""; position: absolute; inset-inline-start: 10px; top: 12px; bottom: 12px; width: 1px; background: var(--ln); }
.tl .fill { position: absolute; inset-inline-start: 10px; top: 12px; width: 1px; background: var(--ac); box-shadow: 0 0 8px var(--ac); height: 0; transition: height 1.2s var(--ease) .3s; }
.tl-item { position: relative; padding: 12px 0; cursor: pointer; }
.tl-item + .tl-item { border-top: 1px solid var(--ln2); }
.tl-item .dot { position: absolute; inset-inline-start: -34px; top: 13px; width: 21px; height: 21px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; font: 500 10px var(--mono); color: var(--mut); transition: all .4s var(--ease); }
.tl-item.done .dot { background: var(--ac); color: var(--bg); box-shadow: 0 0 0 4px var(--ac-soft); }
.tl-item .dot svg { width: 11px; height: 11px; stroke-width: 2.6; }
.tl-item .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tl-item b { font: 600 16px var(--display); letter-spacing: -.01em; }
.tl-item .pm { width: 14px; height: 14px; position: relative; flex: none; opacity: .5; }
.tl-item .pm::before, .tl-item .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease); }
.tl-item .pm::after { transform: rotate(90deg); }
.tl-item.open .pm::after { transform: rotate(0); }
.tl-item .bd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.tl-item.open .bd { grid-template-rows: 1fr; }
.tl-item .bd > p { overflow: hidden; margin: 0; color: var(--mut); font-size: 14.5px; }
.tl-item.open .bd > p { padding-top: 6px; }

/* ---------- news ---------- */
.nw { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ln); cursor: pointer; transition: padding .3s var(--ease), background .2s; }
.nw:active { padding-inline-start: 6px; }
.nw .ix { font: 500 12px var(--mono); color: var(--ac); padding-top: 3px; width: 22px; flex: none; }
.nw .t { flex: 1; min-width: 0; }
.nw .mt { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.nw h3 { margin: 0; font: 600 18px/1.22 var(--display); letter-spacing: -.02em; }
.nw p { margin: 5px 0 0; color: var(--mut); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw .arr { align-self: center; color: var(--mut); transition: transform .3s var(--ease); }
.nw:active .arr { transform: translateX(4px); }
.nw .th { width: 64px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; flex: none; }

.reader { position: fixed; inset: 0; z-index: 25; background: var(--bg); overflow-y: auto; visibility: hidden; padding: calc(var(--top) + 16px) calc(var(--sar) + var(--px)) calc(var(--bottom) + 30px) calc(var(--sal) + var(--px)); scrollbar-width: none; }
.reader.on { visibility: visible; }
.reader .bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.reader .img { height: 210px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 22px; }
.reader h2 { font: 700 32px/1.08 var(--display); letter-spacing: -.035em; margin: 14px 0 18px; }
.reader p { font-size: 17px; line-height: 1.6; white-space: pre-line; margin: 0; user-select: text; }
.reader .rule { height: 1px; background: var(--ln); margin: 0 0 18px; transform-origin: left; animation: draw .9s var(--ease) .25s both; }
@keyframes draw { from { transform: scaleX(0); } }
.reader.on .ra { animation: rise .7s var(--ease) both; } .reader.on .ra:nth-child(3) { animation-delay: .12s; } .reader.on .ra:nth-child(n+4) { animation-delay: .2s; }

/* ---------- sessions list ---------- */
.search { height: 44px; border-bottom: 1px solid var(--ln); display: flex; align-items: center; gap: 10px; color: var(--mut); transition: border-color .2s; }
.search:focus-within { border-color: var(--fg); }
.search svg { width: 16px; height: 16px; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--mut); }
.chat { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ln2); cursor: pointer; transition: padding .3s var(--ease); }
.chat:active { padding-inline-start: 6px; }
.cv { overflow: hidden; flex: none; }
.cv .pt, .cv img { width: 100%; height: 100%; object-fit: cover; }
.chat .cv { width: 52px; height: 52px; border-radius: 12px; }
.chat .t { flex: 1; min-width: 0; }
.chat .l1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chat .l1 b { font: 600 16px var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat .l1 time { font: 11px var(--mono); color: var(--mut); flex: none; }
.chat .l2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 3px; }
.chat .l2 span { font-size: 13.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat .l2 .typing { color: var(--ac); font-family: var(--mono); font-size: 12px; }
.chat .l2 .fail { color: var(--bad); }
.unread { min-width: 20px; height: 20px; border-radius: 6px; padding: 0 6px; background: var(--ac); color: var(--bg); font: 600 11px var(--mono); display: grid; place-items: center; flex: none; }
.pbar { height: 2px; background: var(--ln); margin-top: 8px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--ac); transition: width 1s linear; }

.styles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; perspective: 800px; }
.style-tile { position: relative; height: 128px; border-radius: 14px; overflow: hidden; color: #fff; text-align: start; cursor: pointer; transition: transform .35s var(--ease); box-shadow: inset 0 0 0 1px var(--ln); }
.style-tile:active { transform: scale(.97); }
.style-tile .pt { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.style-tile:active .pt { transform: scale(1.08); }
.style-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.6)); }
.style-tile .ix { position: absolute; left: 12px; top: 10px; z-index: 1; font: 500 10.5px var(--mono); letter-spacing: .1em; opacity: .85; }
.style-tile b { position: absolute; left: 12px; bottom: 10px; z-index: 1; font: 600 15px var(--display); }
.empty { text-align: center; padding: 30px 10px 26px; }
.empty .mark { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; color: var(--mut); }
.empty h3 { margin: 0 0 6px; font: 600 20px var(--display); letter-spacing: -.02em; }
.empty p { margin: 0; color: var(--mut); font-size: 14.5px; }

/* ---------- thread ---------- */
.th-head { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(var(--top) + 8px) calc(var(--sar) + 14px) 12px calc(var(--sal) + 10px); border-bottom: 1px solid var(--ln); z-index: 2; }
.th-back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.th-back:active { background: var(--s2); }
.th-back svg { width: 22px; height: 22px; transform: rotate(180deg); }
.th-head .cv { width: 36px; height: 36px; border-radius: 9px; }
.th-head .t { flex: 1; min-width: 0; }
.th-head b { display: block; font: 600 15.5px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-head span { font: 11px var(--mono); color: var(--mut); letter-spacing: .04em; }
.th-head span.live { color: var(--ac); }
.th-body { flex: 1; overflow-y: auto; padding: 16px calc(var(--sar) + 14px) 10px calc(var(--sal) + 14px); display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; }
.th-body::-webkit-scrollbar { display: none; }
.th-body > * { flex-shrink: 0; }
.day { align-self: center; font: 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 12px 0 8px; display: flex; align-items: center; gap: 10px; width: 100%; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--ln2); }
.msg { max-width: 84%; padding: 10px 13px 9px; border-radius: 16px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; animation: msg .45s var(--ease) both; }
.msg time { font: 10px var(--mono); opacity: .5; margin-inline-start: 10px; float: inline-end; margin-top: 6px; }
.msg.user { align-self: flex-end; background: var(--me); color: var(--me-fg); border-end-end-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--ai); box-shadow: inset 0 0 0 1px var(--ln2); border-end-start-radius: 4px; }
.msg.failed { color: var(--bad); }
@keyframes msg { from { opacity: 0; transform: translateY(10px); } }
.grid4 { align-self: flex-start; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(80%, 340px); border-radius: 16px 16px 16px 4px; overflow: hidden; position: relative; }
.grid4 .pt, .grid4 img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.grid4.fresh > * { animation: develop 1.1s var(--ease) both; }
.grid4.fresh > *:nth-child(2) { animation-delay: .12s; } .grid4.fresh > *:nth-child(3) { animation-delay: .24s; } .grid4.fresh > *:nth-child(4) { animation-delay: .36s; }
@keyframes develop { from { clip-path: inset(0 0 100% 0); filter: blur(14px) brightness(1.6); } to { clip-path: inset(0); filter: none; } }
.grid4.gen .pt { filter: blur(16px) saturate(.6) brightness(.8); transform: scale(1.2); cursor: default; }
.grid4.gen::after { content: ""; position: absolute; left: 0; right: 0; height: 34%; top: -34%; background: linear-gradient(transparent, hsl(var(--h) 90% 70% / .28) 85%, hsl(var(--h) 90% 80% / .9) 99%, transparent); animation: scan 2.2s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes scan { to { top: 100%; } }
.gen-label { align-self: flex-start; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ac); margin: 4px 0 4px 2px; display: flex; gap: 10px; align-items: center; width: min(80%, 340px); }
.gen-label .pbar { flex: 1; margin: 0; }

.composer { flex: none; padding: 10px calc(var(--sar) + 12px) calc(var(--bottom) + 10px) calc(var(--sal) + 12px); border-top: 1px solid var(--ln); background: var(--bg); }
.style-rail { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px 10px; padding: 0 12px; scrollbar-width: none; }
.style-rail::-webkit-scrollbar { display: none; }
.style-chip { flex: none; height: 30px; padding: 0 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ln); font: 500 12px var(--mono); letter-spacing: .02em; color: var(--mut); transition: all .25s var(--ease); }
.style-chip.on { background: var(--fg); color: var(--bg); box-shadow: none; }
.inputbar { display: flex; align-items: flex-end; gap: 8px; }
.inputbar textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; border: 0; box-shadow: inset 0 0 0 1px var(--ln); border-radius: 14px; background: var(--s1); padding: 12px 14px; outline: 0; font-size: 15.5px; line-height: 1.35; transition: box-shadow .2s; }
.inputbar textarea:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.send { width: 46px; height: 46px; border-radius: 14px; background: var(--fg); color: var(--bg); display: grid; place-items: center; flex: none; transition: transform .2s var(--spring), opacity .2s; }
.send:active { transform: scale(.9); }
.send[disabled] { opacity: .25; }
.send svg { width: 19px; height: 19px; stroke-width: 2.2; }
.quota-hint { font: 10.5px var(--mono); letter-spacing: .06em; color: var(--mut); text-align: center; margin-top: 8px; text-transform: uppercase; }

/* ---------- wallet ---------- */
.bal { padding: 6px 0 4px; }
.bal .odo { font-size: 64px; }
.bal .unit { font: 500 15px var(--mono); color: var(--mut); margin-inline-start: 8px; letter-spacing: .06em; }
.bal .sub { color: var(--mut); font-size: 13.5px; margin-top: 8px; }
.ruler-wrap { margin: 26px calc(-1 * var(--px)) 0; position: relative; }
.ruler-val { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--px); margin-bottom: 8px; }
.ruler-val b { font: 600 26px var(--display); letter-spacing: -.02em; }
.ruler { display: flex; align-items: flex-end; height: 56px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 50%; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.ruler::-webkit-scrollbar { display: none; }
.ruler i { flex: none; width: 12px; height: 16px; scroll-snap-align: center; position: relative; }
.ruler i::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 100%; background: var(--dim); }
.ruler i.maj { height: 30px; } .ruler i.maj::after { background: var(--fg); }
.ruler i.maj span { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font: 10px var(--mono); color: var(--mut); font-style: normal; }
.ruler-wrap .needle { position: absolute; left: 50%; bottom: 0; width: 2px; height: 44px; margin-left: -1px; background: var(--ac); box-shadow: 0 0 12px var(--ac); pointer-events: none; border-radius: 1px; }
.ruler-wrap .needle::before { content: ""; position: absolute; left: -4px; top: -5px; border: 5px solid transparent; border-top-color: var(--ac); }

.plan-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--px)); padding: 4px var(--px) 10px; scrollbar-width: none; perspective: 900px; }
.plan-rail::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 72%; max-width: 280px; scroll-snap-align: center; border-radius: 18px; padding: 18px; position: relative; overflow: hidden; cursor: pointer; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); display: flex; flex-direction: column; min-height: 230px; transition: transform .5s var(--ease), box-shadow .3s; transform: rotateY(calc(var(--tx, 0) * 1deg)) scale(var(--sc, 1)); }
.pcard.cur { box-shadow: inset 0 0 0 1px var(--ac), 0 0 40px -20px var(--ac); }
.pcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at var(--sx, 80%) var(--sy, 0%), color-mix(in srgb, var(--pc) 26%, transparent), transparent 70%); transition: opacity .3s; }
.pcard > * { position: relative; }
.pcard .nm { display: flex; justify-content: space-between; align-items: center; }
.pcard .nm b { font: 700 22px var(--display); letter-spacing: -.02em; }
.pcard .bar { width: 28px; height: 3px; background: var(--pc); border-radius: 2px; margin: 12px 0 14px; transition: width .6s var(--ease); }
.pcard:active .bar { width: 56px; }
.pcard .ft { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--mut); }
.pcard .ft li { display: flex; gap: 8px; } .pcard .ft li::before { content: "—"; color: var(--dim); }
.pcard .pr { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.pcard .pr b { font: 700 28px var(--display); letter-spacing: -.03em; }
.pcard .pr span { font: 11px var(--mono); color: var(--mut); letter-spacing: .06em; text-transform: uppercase; }

.tx { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ln2); }
.tx .ic { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; color: var(--mut); flex: none; }
.tx .ic svg { width: 16px; height: 16px; }
.tx .t { flex: 1; min-width: 0; }
.tx .t b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .t span { font: 11px var(--mono); color: var(--mut); letter-spacing: .03em; }
.tx .amt { font: 600 14px var(--mono); white-space: nowrap; }
.tx .amt.plus { color: var(--ok); }

/* ---------- profile ---------- */
.pf { display: flex; gap: 16px; align-items: center; margin: 4px 0 6px; }
.pf .ring { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; }
.pf .ring canvas { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }
.pf .avatar { width: 72px; height: 72px; font-size: 26px; position: relative; }
.pf .nm { font: 700 25px/1.08 var(--display); letter-spacing: -.03em; }
.pf .st { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.hue { display: inline-flex; align-items: center; gap: 6px; }
.hue i { width: 9px; height: 9px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); }
.rows .row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--ln2); min-height: 56px; cursor: pointer; transition: padding .3s var(--ease); }
.rows .row.static { cursor: default; }
.rows .row:not(.static):active { padding-inline-start: 6px; }
.rows .row > svg:first-child { color: var(--mut); }
.rows .row .t { flex: 1; min-width: 0; }
.rows .row .t b { display: block; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .row .t span { display: block; font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .row .v { font: 12px var(--mono); color: var(--mut); white-space: nowrap; }
.rows .row .chev { color: var(--dim); width: 16px; height: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; box-shadow: inset 0 0 0 1px var(--ln); border-radius: 10px; padding: 3px; width: 100%; max-width: 216px; }
.seg .th { position: absolute; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc((100% - 6px) / 3); border-radius: 7px; background: var(--fg); transition: transform .45s var(--ease); }
.seg button { position: relative; height: 28px; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--mut); transition: color .3s; }
.seg button.on { color: var(--bg); }

/* ---------- tabbar ---------- */
.tabbar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + var(--bottom)); padding: 0 calc(var(--sar) + 6px) var(--bottom) calc(var(--sal) + 6px);
  display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid var(--ln); transition: transform .4s var(--ease); }
.tabbar.away { transform: translateY(110%); }
.tab-line { position: absolute; top: -1px; inset-inline-start: calc(var(--sal) + 6px); width: calc((100% - var(--sal) - var(--sar) - 12px) / 4); height: 2px; pointer-events: none; transition: transform .55s var(--ease); display: flex; justify-content: center; }
.tab-line::after { content: ""; width: 28px; height: 2px; background: var(--ac); box-shadow: 0 0 14px var(--ac), 0 6px 22px 2px hsl(var(--h) 80% 60% / .35); border-radius: 2px; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--mut); font: 500 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: color .3s; }
.tab svg { width: 22px; height: 22px; transition: transform .45s var(--spring); }
.tab.on { color: var(--fg); }
.tab.on svg { transform: translateY(-1px); }
.tab:active svg { transform: scale(.86); }
.badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 5px; padding: 0 4px; background: var(--ac); color: var(--bg); font: 600 10px var(--mono); font-style: normal; display: none; place-items: center; letter-spacing: 0; }
.badge.show { display: grid; }

/* ---------- sheet / viewer / toast / boot ---------- */
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--top) - 24px); display: flex; flex-direction: column; background: var(--s1); border-radius: 22px 22px 0 0; box-shadow: inset 0 1px 0 var(--ln); transform: translateY(102%); transition: transform .5s var(--ease); padding: 0 calc(var(--sar) + var(--px)) calc(var(--bottom) + 18px) calc(var(--sal) + var(--px)); }
.sheet.on { transform: none; }
.grab { width: 36px; height: 4px; border-radius: 2px; background: var(--ln); margin: 10px auto 14px; flex: none; }
.sheet-in { overflow-y: auto; scrollbar-width: none; }
.sheet h2 { font: 700 24px/1.15 var(--display); letter-spacing: -.03em; margin: 6px 0 10px; }
.sheet p.body { color: var(--mut); font-size: 15.5px; line-height: 1.5; margin: 0 0 14px; }
.sheet .feat { list-style: none; padding: 0; margin: 6px 0 20px; }
.sheet .feat li { display: flex; gap: 12px; align-items: center; font-size: 15px; padding: 11px 0; border-bottom: 1px solid var(--ln2); }
.sheet .feat li svg { width: 15px; height: 15px; color: var(--ac); stroke-width: 2.2; }
.sheet .actions { display: grid; gap: 8px; }
.sheet .price { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 16px; }
.sheet .price b { font: 700 36px var(--display); letter-spacing: -.035em; }

.viewer { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.96); display: none; align-items: center; justify-content: center; padding: calc(var(--top) + 10px) 0 calc(var(--bottom) + 10px); }
.viewer.on { display: flex; animation: fade .3s ease; }
.viewer .pt, .viewer img { width: min(100%, 520px); aspect-ratio: 3/4; object-fit: contain; animation: zoom .5s var(--ease); }
@keyframes fade { from { opacity: 0; } } @keyframes zoom { from { transform: scale(.92); opacity: 0; } }
.viewer .close { position: absolute; top: calc(var(--top) + 10px); right: 16px; width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); color: #fff; display: grid; place-items: center; }

.toast { position: fixed; z-index: 40; left: 50%; top: calc(var(--top) + 12px); transform: translate(-50%, -180%); background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; font: 500 12px var(--mono); letter-spacing: .04em; transition: transform .5s var(--ease); white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; align-items: center; }
.toast:not(.on) { visibility: hidden; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); }
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }

.boot { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; transition: opacity .5s ease, visibility .5s; }
.boot.off { opacity: 0; visibility: hidden; }
.boot-mark { display: flex; gap: 5px; align-items: flex-end; height: 26px; }
.boot-mark i { width: 2px; background: var(--fg); animation: bars 1s var(--ease) infinite alternate; height: 30%; }
.boot-mark i:nth-child(2) { animation-delay: .15s; } .boot-mark i:nth-child(3) { animation-delay: .3s; }
@keyframes bars { to { height: 100%; } }

.skel { height: 60px; border-bottom: 1px solid var(--ln2); background: linear-gradient(90deg, transparent, var(--s2), transparent); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.pt { background-color: #777; }

/* theme switch: the new theme opens as a circle from the touch point */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: iris .7s var(--ease); }
@keyframes iris { from { clip-path: circle(0 at var(--ix, 50%) var(--iy, 50%)); } to { clip-path: circle(150% at var(--ix, 50%) var(--iy, 50%)); } }

@media (min-width: 620px) {
  .view:not(.thread), .reader { padding-left: max(calc(var(--sal) + var(--px)), calc(50% - 270px)); padding-right: max(calc(var(--sar) + var(--px)), calc(50% - 270px)); }
  .radar, .ruler-wrap, .plan-rail { margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ================= form components ================= */
.field { display: grid; gap: 7px; }
.field > .lbl { display: flex; justify-content: space-between; }
.field .help { font-size: 12.5px; color: var(--mut); }
.input, .textarea, .select { width: 100%; height: 50px; border: 0; outline: 0; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); padding: 0 15px; font: 15.5px var(--text); color: var(--fg); transition: box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .textarea:focus, .select:focus { box-shadow: inset 0 0 0 1px var(--fg), 0 0 0 4px var(--ac-soft); }
.textarea { height: auto; min-height: 104px; padding: 13px 15px; resize: vertical; line-height: 1.45; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field.err .input, .field.err .textarea { box-shadow: inset 0 0 0 1px var(--bad); }
.field.err .help { color: var(--bad); }
.field.ok .input { box-shadow: inset 0 0 0 1px var(--ok); }
.input-group { position: relative; }
.input-group .input { padding-inline-end: 64px; }
.input-group .suffix { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font: 500 11px var(--mono); letter-spacing: .1em; color: var(--mut); text-transform: uppercase; }
.input.underline { border-radius: 0; background: none; box-shadow: inset 0 -1px 0 var(--ln); padding: 0; }
.input.underline:focus { box-shadow: inset 0 -1px 0 var(--fg); }

.check, .radio, .switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; min-height: 28px; }
.check input, .radio input, .switch input { position: absolute; opacity: 0; pointer-events: none; }
.check i, .radio i { width: 22px; height: 22px; flex: none; box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.check i { border-radius: 7px; } .radio i { border-radius: 50%; }
.check i::after { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--spring); }
.radio i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); transform: scale(0); transition: transform .3s var(--spring); }
.check input:checked + i, .radio input:checked + i { background: var(--fg); box-shadow: none; }
.check input:checked + i::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.radio input:checked + i::after { transform: scale(1); }
.check input:focus-visible + i, .radio input:focus-visible + i, .switch input:focus-visible + i { box-shadow: 0 0 0 4px var(--ac-soft), inset 0 0 0 1px var(--fg); }
.switch { justify-content: space-between; }
.switch i { width: 46px; height: 28px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ln); position: relative; flex: none; transition: background .3s; }
.switch i::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mut); transition: transform .4s var(--spring), background .3s; }
.switch input:checked + i { background: var(--fg); box-shadow: none; }
.switch input:checked + i::after { transform: translateX(18px); background: var(--bg); }

.stepper { display: inline-grid; grid-template-columns: 44px minmax(64px, auto) 44px; align-items: center; height: 46px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ln); }
.stepper button { height: 100%; display: grid; place-items: center; color: var(--mut); transition: color .2s; }
.stepper button:active { color: var(--fg); }
.stepper b { text-align: center; font: 600 16px var(--mono); }

.alert { display: flex; gap: 12px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ln); font-size: 14.5px; align-items: flex-start; }
.alert svg { margin-top: 1px; color: var(--ac); }
.alert.bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 50%, transparent); } .alert.bad svg { color: var(--bad); }
.alert b { display: block; font-weight: 600; margin-bottom: 2px; }
.alert span { color: var(--mut); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.panel { border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); padding: 18px; }

/* ================= general‑purpose components ================= */
/* forms+ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form-grid .full { grid-column: 1 / -1; }
.pass { position: relative; } .pass .input { padding-inline-end: 48px; }
.pass button { position: absolute; inset-inline-end: 6px; top: 6px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--mut); }
.otp { display: flex; gap: 8px; } .otp input { width: 48px; height: 58px; text-align: center; padding: 0; font: 600 22px var(--mono); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; outline: 0; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--fg) var(--p), var(--ln) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 5px var(--ac-soft); cursor: grab; }
.range::-moz-range-track { height: 2px; background: var(--ln); } .range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--fg); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 36px; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--ln); font-size: 14px; font-weight: 500; color: var(--mut); transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: 7px; }
.pill.on { background: var(--fg); color: var(--bg); box-shadow: none; }
.chips-input { display: flex; flex-wrap: wrap; gap: 6px; min-height: 50px; padding: 8px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.chips-input:focus-within { box-shadow: inset 0 0 0 1px var(--fg), 0 0 0 4px var(--ac-soft); }
.chips-input input { flex: 1; min-width: 90px; border: 0; outline: 0; background: none; padding: 0 6px; font-size: 15px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 11px; border-radius: 8px; background: var(--s2); font-size: 13.5px; }
.chip-x button { width: 20px; height: 20px; display: grid; place-items: center; color: var(--mut); border-radius: 5px; } .chip-x button svg { width: 12px; height: 12px; }
.rating { display: inline-flex; gap: 4px; } .rating button { color: var(--dim); transition: color .2s, transform .3s var(--spring); } .rating button svg { width: 26px; height: 26px; }
.rating button.on { color: var(--fg); } .rating button.on svg { fill: currentColor; } .rating button:active { transform: scale(.85); }
.drop { border-radius: 16px; border: 1px dashed var(--dim); padding: 28px 18px; text-align: center; transition: border-color .2s, background .2s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--fg); background: var(--s1); }
.drop svg { margin: 0 auto 10px; width: 26px; height: 26px; color: var(--mut); } .drop b { display: block; font-weight: 600; } .drop span { font-size: 13px; color: var(--mut); }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ln2); }
.file .ext { width: 40px; height: 46px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; font: 600 10px var(--mono); color: var(--mut); flex: none; }
.file .t { flex: 1; min-width: 0; } .file b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file span { font: 11px var(--mono); color: var(--mut); }
.suggest { position: relative; } .suggest .list { margin-top: 6px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 20px 40px -20px rgba(0,0,0,.5); padding: 6px; }
.suggest .list div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 11px; border-radius: 9px; font-size: 14.5px; cursor: pointer; } .suggest .list div:hover, .suggest .list div.on { background: var(--s2); } .suggest .list kbd, .kbd { font: 11px var(--mono); color: var(--mut); padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--ln); }

/* navigation */
.appbar { display: flex; align-items: center; gap: 12px; height: 56px; border-bottom: 1px solid var(--ln); } .appbar b { flex: 1; font: 600 17px var(--display); letter-spacing: -.01em; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--ln); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--mut); white-space: nowrap; transition: color .2s; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--fg); transform: scaleX(0); transition: transform .4s var(--ease); }
.tabs button.on { color: var(--fg); } .tabs button.on::after { transform: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mut); flex-wrap: wrap; } .crumbs a { color: inherit; text-decoration: none; } .crumbs b { color: var(--fg); font-weight: 500; } .crumbs i { font-style: normal; color: var(--dim); }
.pager { display: flex; gap: 4px; align-items: center; } .pager button { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 9px; font: 500 13px var(--mono); color: var(--mut); display: grid; place-items: center; } .pager button.on { background: var(--fg); color: var(--bg); } .pager button:not(.on):hover { background: var(--s2); }
.wizard { display: flex; align-items: center; } .wizard .st { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--mut); white-space: nowrap; }
.wizard .st i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; font: 500 11px var(--mono); font-style: normal; }
.wizard .st.done i { background: var(--fg); color: var(--bg); box-shadow: none; } .wizard .st.on { color: var(--fg); } .wizard .st.on i { box-shadow: inset 0 0 0 1px var(--fg), 0 0 0 4px var(--ac-soft); }
.wizard .ln { flex: 1; height: 1px; background: var(--ln); margin: 0 10px; min-width: 14px; } .wizard .ln.done { background: var(--fg); }
.menu { display: grid; gap: 2px; } .menu a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; color: var(--mut); text-decoration: none; font-size: 14.5px; font-weight: 500; cursor: pointer; } .menu a:hover { background: var(--s2); color: var(--fg); } .menu a.on { background: var(--s2); color: var(--fg); } .menu a span { margin-inline-start: auto; font: 11px var(--mono); color: var(--dim); } .menu a svg { width: 18px; height: 18px; }
.dd { position: relative; display: inline-block; } .dd .pop { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 200px; z-index: 5; padding: 6px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 24px 50px -20px rgba(0,0,0,.6); opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: all .25s var(--ease); transform-origin: top left; }
.dd.open .pop { opacity: 1; transform: none; pointer-events: auto; } .dd .pop button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 11px; border-radius: 9px; font-size: 14.5px; text-align: start; } .dd .pop button:hover { background: var(--s2); } .dd .pop hr { border: 0; border-top: 1px solid var(--ln2); margin: 5px 0; } .dd .pop button.danger { color: var(--bad); } .dd .pop svg { width: 16px; height: 16px; color: var(--mut); }
.actionbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 20px 40px -24px rgba(0,0,0,.6); } .actionbar .t { flex: 1; } .actionbar .t b { display: block; font: 600 17px var(--display); } .actionbar .t span { font: 11px var(--mono); color: var(--mut); }

/* overlays */
.modal-bg { position: fixed; inset: 0; z-index: 40; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-bg.on { opacity: 1; pointer-events: auto; }
.dialog { width: 100%; max-width: 400px; border-radius: 22px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 40px 80px -30px rgba(0,0,0,.7); padding: 24px; transform: translateY(14px) scale(.97); transition: transform .45s var(--ease); }
.modal-bg.on .dialog { transform: none; } .dialog.static { transform: none; }
.dialog h3 { margin: 0 0 8px; font: 700 21px/1.15 var(--display); letter-spacing: -.025em; } .dialog p { margin: 0 0 20px; color: var(--mut); } .dialog .acts { margin-top: 0; grid-template-columns: 1fr 1fr; }
.tip-wrap { position: relative; display: inline-block; } .tip-wrap .tt { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 6px 9px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 500 11px var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: all .2s var(--ease); } .tip-wrap:hover .tt { opacity: 1; transform: translate(-50%, 0); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--fg); color: var(--bg); font-size: 14.5px; } .banner .t { flex: 1; } .banner button { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.snack { display: inline-flex; align-items: center; gap: 14px; padding: 11px 12px 11px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 14px; } .snack button { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 30%, transparent); }

/* data */
.tbl-wrap { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ln); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: start; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); padding: 12px 14px; border-bottom: 1px solid var(--ln); white-space: nowrap; } .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--ln2); } .tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover td { background: var(--s1); } .tbl .num { text-align: end; font-family: var(--mono); }
.stat { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--ln); padding: 16px; background: var(--s1); } .stat b { display: block; font: 700 30px/1.1 var(--display); letter-spacing: -.035em; margin: 8px 0 4px; } .stat .delta { font: 500 11.5px var(--mono); color: var(--ok); } .stat .delta.down { color: var(--bad); } .stat svg.spark { width: 100%; height: 36px; margin-top: 10px; stroke: var(--ac); stroke-width: 1.5; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; } .bars i { flex: 1; background: var(--fg); border-radius: 3px 3px 0 0; min-height: 2px; transition: height .8s var(--ease), background .2s; } .bars i:hover { background: var(--ac); } .bars i.dim { background: var(--ln); }
.axis { display: flex; justify-content: space-between; margin-top: 8px; }
.donut { width: 120px; height: 120px; position: relative; flex: none; } .donut svg { width: 100%; height: 100%; transform: rotate(-90deg); stroke-width: 10; } .donut .bg { stroke: var(--ln); } .donut .fg { stroke: var(--fg); stroke-linecap: butt; transition: stroke-dashoffset 1.2s var(--ease); } .donut b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 24px var(--display); letter-spacing: -.03em; }
.legend { display: grid; gap: 8px; font-size: 14px; } .legend div { display: flex; align-items: center; gap: 9px; } .legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--fg); } .legend span { margin-inline-start: auto; font-family: var(--mono); color: var(--mut); padding-left: 16px; }
.dl { display: grid; } .dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ln2); font-size: 14.5px; } .dl dt, .dl span:first-child { color: var(--mut); } .dl span:last-child { text-align: end; font-weight: 500; }
.avatars { display: flex; } .avatars .avatar { width: 36px; height: 36px; font-size: 13px; margin-inline-end: -9px; box-shadow: 0 0 0 2px var(--bg); } .avatars .more { background: var(--fg); color: var(--bg); font: 600 11px var(--mono); }
.feed { position: relative; padding-inline-start: 26px; } .feed::before { content: ""; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--ln); } .feed .ev { position: relative; padding: 0 0 18px; } .feed .ev::before { content: ""; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--mut); } .feed .ev.on::before { background: var(--ac); box-shadow: 0 0 0 4px var(--ac-soft); } .feed .ev b { font-weight: 600; } .feed .ev time { display: block; font: 11px var(--mono); color: var(--mut); margin-top: 2px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ln2); } .comment .avatar { width: 36px; height: 36px; font-size: 13px; } .comment .t { flex: 1; } .comment .hd { display: flex; gap: 8px; align-items: baseline; } .comment .hd b { font-weight: 600; font-size: 14.5px; } .comment .hd time { font: 11px var(--mono); color: var(--mut); } .comment p { margin: 4px 0 8px; font-size: 14.5px; } .comment .ax { display: flex; gap: 16px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.cal { width: 100%; max-width: 320px; } .cal .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .cal .hd b { font: 600 16px var(--display); } .cal .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; } .cal .g span { font: 10px var(--mono); color: var(--mut); padding: 6px 0; letter-spacing: .1em; } .cal .g button { aspect-ratio: 1; border-radius: 10px; font: 500 13px var(--mono); display: grid; place-items: center; position: relative; transition: background .2s; } .cal .g button:hover { background: var(--s2); } .cal .g button.out { color: var(--dim); } .cal .g button.on { background: var(--fg); color: var(--bg); } .cal .g button.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ac); }
.kan { border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); padding: 12px; display: grid; gap: 8px; } .kan .hd { display: flex; justify-content: space-between; padding: 2px 4px 6px; } .kan .kc { border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ln2); padding: 12px; cursor: grab; transition: transform .3s var(--ease); } .kan .kc:active { transform: rotate(-1.5deg) scale(1.02); } .kan .kc b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; } .kan .kc .ft { display: flex; justify-content: space-between; align-items: center; }
.acc { border-bottom: 1px solid var(--ln); } .acc .q { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 16px 0; font: 600 16px var(--display); text-align: start; letter-spacing: -.01em; } .acc .pm { width: 14px; height: 14px; position: relative; flex: none; } .acc .pm::before, .acc .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease); } .acc .pm::after { transform: rotate(90deg); } .acc.open .pm::after { transform: none; } .acc .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); } .acc.open .a { grid-template-rows: 1fr; } .acc .a > p { overflow: hidden; margin: 0; color: var(--mut); } .acc.open .a > p { padding-bottom: 16px; }
.codeblock { border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); overflow: hidden; } .codeblock .hd { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--ln2); } .codeblock pre { margin: 0; padding: 14px; font: 12.5px/1.65 var(--mono); overflow-x: auto; } .codeblock .c { color: var(--mut); } .codeblock .k { color: var(--ac); }

/* commerce */
.product { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ln); background: var(--s1); } .product .ph { aspect-ratio: 4/3; position: relative; overflow: hidden; } .product .ph > div { position: absolute; inset: 0; transition: transform .9s var(--ease); } .product:hover .ph > div { transform: scale(1.06); } .product .ph .tag { position: absolute; left: 12px; top: 12px; background: var(--bg); } .product .in { padding: 14px 16px 16px; } .product h4 { margin: 0 0 4px; font: 600 17px var(--display); letter-spacing: -.015em; } .product p { margin: 0 0 14px; font-size: 13.5px; color: var(--mut); } .product .ft { display: flex; justify-content: space-between; align-items: center; } .product .ft b { font: 700 20px var(--display); letter-spacing: -.02em; } .product .ft s { font: 12px var(--mono); color: var(--mut); margin-left: 8px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ln2); align-items: center; } .cart-item .ph { width: 64px; height: 64px; border-radius: 12px; flex: none; } .cart-item .t { flex: 1; min-width: 0; } .cart-item b { display: block; font-weight: 600; } .cart-item span { font-size: 13px; color: var(--mut); } .cart-item .pr { font: 600 15px var(--mono); }
.stepper.sm { height: 34px; grid-template-columns: 32px minmax(30px, auto) 32px; border-radius: 10px; } .stepper.sm b { font-size: 13px; } .stepper.sm svg { width: 14px; height: 14px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; color: var(--mut); } .summary .line span:last-child { font-family: var(--mono); color: var(--fg); } .summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--ln); } .summary .total b { font: 700 28px var(--display); letter-spacing: -.03em; }
.pay { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ln); cursor: pointer; transition: box-shadow .2s, background .2s; width: 100%; text-align: start; } .pay.on { box-shadow: inset 0 0 0 1.5px var(--fg); background: var(--s1); } .pay .t { flex: 1; } .pay b { display: block; font-weight: 600; } .pay span { font-size: 13px; color: var(--mut); } .pay .rd { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ln); display: grid; place-items: center; } .pay.on .rd { background: var(--fg); } .pay.on .rd::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); }
.price-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; } .price-col { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ln); padding: 20px; display: flex; flex-direction: column; background: var(--s1); } .price-col.hot { box-shadow: inset 0 0 0 1.5px var(--fg); } .price-col .p { font: 700 38px/1 var(--display); letter-spacing: -.04em; margin: 14px 0 4px; } .price-col .p small { font: 12px var(--mono); color: var(--mut); letter-spacing: .04em; } .price-col ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; font-size: 14px; } .price-col li { display: flex; gap: 9px; } .price-col li::before { content: "+"; font-family: var(--mono); color: var(--ac); } .price-col li.no { color: var(--dim); } .price-col li.no::before { content: "–"; color: var(--dim); } .price-col .btn { margin-top: auto; }
.track { display: flex; } .track .s { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--mut); padding-top: 22px; } .track .s::before { content: ""; position: absolute; top: 5px; left: -50%; right: 50%; height: 1px; background: var(--ln); } .track .s:first-child::before { display: none; } .track .s::after { content: ""; position: absolute; top: 0; left: 50%; margin-left: -5.5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--mut); } .track .s.done { color: var(--fg); } .track .s.done::before { background: var(--fg); } .track .s.done::after { background: var(--fg); box-shadow: none; } .track .s.on::after { background: var(--ac); box-shadow: 0 0 0 4px var(--ac-soft); }

/* marketing */
.hero-b { text-align: center; padding: 20px 0; } .hero-b h1 { font: 700 clamp(32px, 6vw, 52px)/1.02 var(--display); letter-spacing: -.045em; margin: 14px 0; } .hero-b p { color: var(--mut); font-size: 16.5px; max-width: 460px; margin: 0 auto 22px; } .hero-b .cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--ln); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--ln); } .features > div { background: var(--bg); padding: 22px; transition: background .3s; } .features > div:hover { background: var(--s1); } .features svg { color: var(--ac); margin-bottom: 14px; width: 22px; height: 22px; } .features b { display: block; font: 600 17px var(--display); margin-bottom: 6px; } .features p { margin: 0; font-size: 14px; color: var(--mut); }
.quote { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ln); padding: 22px; } .quote p { font: 500 19px/1.4 var(--display); letter-spacing: -.015em; margin: 0 0 18px; } .quote .by { display: flex; align-items: center; gap: 11px; } .quote .by .avatar { width: 38px; height: 38px; font-size: 13px; } .quote .by b { display: block; font-size: 14.5px; } .quote .by span { font-size: 13px; color: var(--mut); }
.cta-band { border-radius: 22px; background: var(--fg); color: var(--bg); padding: 30px 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .cta-band h3 { margin: 0 0 4px; font: 700 24px/1.1 var(--display); letter-spacing: -.03em; } .cta-band p { margin: 0; opacity: .65; } .cta-band .btn { background: var(--bg); color: var(--fg); }
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); } .stats-band div { padding: 20px 0; } .stats-band div + div { border-left: 1px solid var(--ln); padding-left: 20px; } .stats-band b { display: block; font: 700 34px/1 var(--display); letter-spacing: -.04em; margin-bottom: 6px; }
.logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: center; color: var(--mut); font: 700 16px var(--display); letter-spacing: .14em; } .logos span { opacity: .6; transition: opacity .2s; } .logos span:hover { opacity: 1; }
.subscribe { display: flex; gap: 8px; } .subscribe .input { flex: 1; }
.footer-b { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--ln); font-size: 14px; } .footer-b b { display: block; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-bottom: 12px; } .footer-b a { display: block; color: var(--fg); text-decoration: none; padding: 4px 0; opacity: .8; } .footer-b a:hover { opacity: 1; } .footer-b p { color: var(--mut); margin: 8px 0 0; }

/* states */
.state { text-align: center; padding: 26px 10px; } .state .big { font: 700 84px/1 var(--display); letter-spacing: -.06em; background: linear-gradient(var(--fg), transparent 130%); -webkit-background-clip: text; background-clip: text; color: transparent; } .state h3 { margin: 12px 0 6px; font: 600 21px var(--display); letter-spacing: -.02em; } .state p { margin: 0 auto 18px; color: var(--mut); max-width: 320px; }
.check-anim { width: 64px; height: 64px; margin: 0 auto; } .check-anim circle { stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 190; stroke-dashoffset: 190; animation: dash .8s var(--ease) forwards; } .check-anim path { stroke: var(--ok); stroke-width: 2; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash .5s var(--ease) .55s forwards; } @keyframes dash { to { stroke-dashoffset: 0; } }
.onb { text-align: center; } .onb .art { height: 150px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ln); margin-bottom: 20px; position: relative; overflow: hidden; background: radial-gradient(60% 80% at 50% 110%, var(--ac-soft), transparent); } .onb .art i { position: absolute; left: 50%; top: 50%; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ln); transform: translate(-50%, -50%); animation: grow 4s linear infinite; } .onb .art i:nth-child(2) { animation-delay: -1.3s; } .onb .art i:nth-child(3) { animation-delay: -2.6s; } @keyframes grow { from { width: 10px; height: 10px; opacity: 1; } to { width: 320px; height: 320px; opacity: 0; } } .onb h3 { margin: 0 0 6px; font: 700 22px var(--display); letter-spacing: -.025em; } .onb p { color: var(--mut); margin: 0 0 18px; } .dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; } .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ln); transition: all .4s var(--ease); } .dots i.on { width: 22px; background: var(--fg); }
.user-card { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ln); padding: 18px; background: var(--s1); } .user-card .hd { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .user-card .avatar { width: 48px; height: 48px; } .user-card .hd b { display: block; font: 600 17px var(--display); } .user-card .hd span { font-size: 13px; color: var(--mut); }
.notif { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ln2); align-items: flex-start; } .notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); margin-top: 7px; flex: none; box-shadow: 0 0 10px var(--ac); } .notif.read .dot { background: var(--ln); box-shadow: none; } .notif .t { flex: 1; } .notif b { font-weight: 600; } .notif p { margin: 2px 0 0; font-size: 14px; color: var(--mut); } .notif time { font: 11px var(--mono); color: var(--mut); white-space: nowrap; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .footer-b { grid-template-columns: 1fr 1fr; } .stats-band div + div { padding-left: 12px; } }

.sec + .kv { border-top: 0; margin-top: -12px; }

/* =====================================================================
   SOFT ENTERPRISE THEME — overrides the earlier "Instrument" look.
   Light, airy surfaces, gentle shadows, calm indigo accent, Inter.
   ===================================================================== */
:root {
  --h: 240;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", -apple-system, system-ui, sans-serif;
  --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
}
[data-theme="light"] {
  --bg: #f5f6fb; --s1: #ffffff; --s2: #f0f2f8; --fg: #1c2238; --mut: #6b7290; --dim: #a9aec4;
  --ln: rgba(28,34,56,.08); --ln2: rgba(28,34,56,.055);
  --ac: hsl(var(--h) 74% 60%); --ac-2: hsl(calc(var(--h) + 35) 80% 66%); --ac-soft: hsl(var(--h) 90% 62% / .1); --ac-ink: hsl(var(--h) 60% 46%);
  --ok: #17a57a; --ok-soft: rgba(23,165,122,.1); --bad: #e0566c; --warn: #e29a2b;
  --me: hsl(var(--h) 74% 60%); --me-fg: #fff; --ai: #ffffff;
  --sh1: 0 1px 2px rgba(28,34,56,.04), 0 6px 18px -8px rgba(28,34,56,.1);
  --sh2: 0 2px 4px rgba(28,34,56,.03), 0 18px 40px -18px rgba(60,70,140,.22);
  --scrim: rgba(28,34,56,.32); --grid: transparent;
}
[data-theme="dark"] {
  --bg: #0f1322; --s1: #171c2e; --s2: #1e2438; --fg: #e9ecf6; --mut: #9aa2bf; --dim: #5d6585;
  --ln: rgba(255,255,255,.075); --ln2: rgba(255,255,255,.05);
  --ac: hsl(var(--h) 85% 72%); --ac-2: hsl(calc(var(--h) + 35) 85% 74%); --ac-soft: hsl(var(--h) 90% 70% / .14); --ac-ink: hsl(var(--h) 90% 80%);
  --ok: #4fd1a5; --ok-soft: rgba(79,209,165,.13); --bad: #ff7b8e; --warn: #f5b850;
  --me: hsl(var(--h) 65% 58%); --me-fg: #fff; --ai: #1e2438;
  --sh1: 0 1px 2px rgba(0,0,0,.25), 0 8px 20px -10px rgba(0,0,0,.45);
  --sh2: 0 2px 6px rgba(0,0,0,.2), 0 24px 48px -20px rgba(0,0,0,.6);
  --scrim: rgba(5,8,18,.55); --grid: transparent;
}
body { font-family: var(--text); letter-spacing: -.005em; }

/* soft colour wash instead of the measuring grid */
.backdrop { -webkit-mask: none; mask: none;
  background:
    radial-gradient(70% 45% at 0% 0%, hsl(var(--h) 95% 86% / .55), transparent 70%),
    radial-gradient(55% 38% at 100% 4%, hsl(calc(var(--h) + 60) 95% 88% / .5), transparent 70%),
    radial-gradient(60% 35% at 60% 0%, hsl(calc(var(--h) - 40) 90% 90% / .35), transparent 70%); }
[data-theme="dark"] .backdrop { opacity: .28; }

/* typography: sentence case, no mono labels */
.lbl { font: 500 13px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--mut); }
.h1 { font: 700 28px/1.1 var(--display); letter-spacing: -.03em; }
.mono { font-family: var(--text); font-feature-settings: "tnum"; }
.star { font-family: var(--text); opacity: .8; }
.odo { font-family: var(--display); letter-spacing: -.035em; }

/* section headers */
.sec { border-bottom: 0; margin: 30px 2px 12px; padding: 0; align-items: center; }
.sec .lbl { font: 650 18px var(--display); color: var(--fg); letter-spacing: -.02em; }
.sec .n { display: none; }
.sec a { font: 600 14px var(--text); letter-spacing: 0; text-transform: none; color: var(--ac-ink); }
.shead { display: flex; justify-content: space-between; align-items: center; margin: 30px 2px 12px; }
.shead h2 { margin: 0; font: 650 19px var(--display); letter-spacing: -.02em; }
.shead a, .shead .meta { font: 600 14px var(--text); color: var(--ac-ink); cursor: pointer; }
.shead .meta { color: var(--mut); font-weight: 500; }

/* buttons */
.btn { background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 92%, #fff), var(--ac)); color: #fff; border-radius: 14px; font: 600 15px var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -12px hsl(var(--h) 80% 50% / .75); }
.btn.line { background: var(--s1); color: var(--fg); box-shadow: inset 0 0 0 1px var(--ln), var(--sh1); }
.btn.line:active { background: var(--s2); }
.btn.danger { color: var(--bad); }
.sq { background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), var(--sh1); border-radius: 14px; color: var(--fg); }

/* tags / chips */
.tag { height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--text); letter-spacing: 0; text-transform: none; background: var(--s2); box-shadow: none; color: var(--mut); }
.tag.live { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.tag.live::before { animation: none; }
.tag.ac { background: var(--ac-soft); color: var(--ac-ink); box-shadow: none; }
.unread { border-radius: 999px; font: 700 11.5px var(--text); }
.badge { border-radius: 999px; font: 700 10px var(--text); background: var(--bad); color: #fff; border: 2px solid var(--s1); }

.avatar { background: linear-gradient(135deg, hsl(var(--h) 90% 92%), hsl(calc(var(--h) + 45) 90% 92%)); color: var(--ac-ink); box-shadow: 0 0 0 3px var(--s1), var(--sh1); font-family: var(--display); }
[data-theme="dark"] .avatar { background: linear-gradient(135deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 45) 40% 30%)); color: #fff; }

/* tab bar */
.tabbar { background: color-mix(in srgb, var(--s1) 88%, transparent); border-top: 1px solid var(--ln); box-shadow: 0 -8px 30px -18px rgba(28,34,56,.25); }
.tab-line { display: none; }
.tab { font: 600 10.5px var(--text); letter-spacing: 0; text-transform: none; }
.tab.on { color: var(--ac-ink); }
.tab.on svg { stroke-width: 2; }

/* lists */
.rows { background: var(--s1); border-radius: var(--r-md); box-shadow: var(--sh1); padding: 0 16px; }
.rows .row { border-bottom: 1px solid var(--ln2); }
.rows .row:last-child { border-bottom: 0; }
.rows .row > svg:first-child { color: var(--ac-ink); }
.rows .row .v { font: 500 13px var(--text); }
.seg { background: var(--s2); box-shadow: none; border-radius: 12px; }
.seg .th { background: var(--s1); box-shadow: var(--sh1); border-radius: 9px; }
.seg button { font: 600 12.5px var(--text); letter-spacing: 0; }
.seg button.on { color: var(--fg); }
.tx { border-bottom: 1px solid var(--ln2); }
.tx .ic { border-radius: 50%; background: var(--ac-soft); color: var(--ac-ink); box-shadow: none; }
.tx .t span { font: 13px var(--text); letter-spacing: 0; }
.tx .amt { font: 650 14.5px var(--text); }

/* sessions */
.search { height: 46px; border: 0; border-radius: 14px; background: var(--s1); box-shadow: var(--sh1); padding: 0 14px; margin-bottom: 8px; }
.chat { padding: 12px 10px; margin: 0 -10px; border-radius: 16px; border-bottom: 0; }
.chat:active { background: var(--s1); padding-inline-start: 10px; }
.chat .cv { border-radius: 16px; }
.chat .l1 b { font: 650 16px var(--display); }
.chat .l1 time { font: 12.5px var(--text); }
.chat .l2 .typing { font: 600 13px var(--text); }
.pbar { height: 4px; border-radius: 2px; background: var(--s2); }
.pbar i { border-radius: 2px; background: linear-gradient(90deg, var(--ac), var(--ac-2)); }
.style-tile { border-radius: 20px; box-shadow: var(--sh1); }
.style-tile .ix { display: none; }
.empty .mark { background: var(--ac-soft); color: var(--ac-ink); box-shadow: none; }

/* thread */
.th-head { background: color-mix(in srgb, var(--s1) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.th-head .cv { border-radius: 12px; }
.th-head span { font: 12.5px var(--text); letter-spacing: 0; }
.day { font: 600 12px var(--text); letter-spacing: 0; text-transform: none; }
.day::before, .day::after { display: none; }
.day { width: auto; padding: 4px 12px; border-radius: 999px; background: var(--s1); box-shadow: var(--sh1); }
.msg { border-radius: 20px; }
.msg.user { border-end-end-radius: 6px; }
.msg.assistant { box-shadow: var(--sh1); border-end-start-radius: 6px; }
.msg time { font: 11px var(--text); }
.grid4 { border-radius: 20px 20px 20px 6px; box-shadow: var(--sh1); }
.gen-label { font: 600 12.5px var(--text); letter-spacing: 0; text-transform: none; color: var(--ac-ink); }
.composer { background: var(--s1); }
.style-chip { border-radius: 999px; font: 600 13px var(--text); letter-spacing: 0; background: var(--s2); box-shadow: none; color: var(--fg); }
.style-chip.on { background: var(--ac); color: #fff; }
.inputbar textarea { border-radius: 22px; background: var(--s2); box-shadow: none; }
.inputbar textarea:focus { box-shadow: 0 0 0 3px var(--ac-soft); }
.send { border-radius: 50%; background: var(--ac); color: #fff; }
.quota-hint { font: 12px var(--text); letter-spacing: 0; text-transform: none; }

/* wallet */
.bal .unit { font: 600 15px var(--text); letter-spacing: 0; }
.ruler-val b { font-family: var(--display); }
.ruler i.maj span { font: 11px var(--text); }
.ruler i::after { background: var(--dim); } .ruler i.maj::after { background: var(--mut); }
.ruler-wrap .needle { box-shadow: none; }
.pcard { background: var(--s1); box-shadow: var(--sh1); border-radius: 22px; }
.pcard.cur { box-shadow: 0 0 0 2px var(--ac), var(--sh2); }
.pcard .ft li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.pcard .pr span { font: 13px var(--text); letter-spacing: 0; text-transform: none; }

/* profile */
.pf .ring canvas { display: none; }
.pf .avatar { box-shadow: 0 0 0 4px var(--s1), 0 0 0 6px var(--ac-soft), var(--sh2); }

/* overlays */
.sheet { background: var(--s1); box-shadow: 0 -20px 50px -20px rgba(28,34,56,.3); border-radius: 26px 26px 0 0; }
.sheet .feat li svg { color: var(--ok); }
.toast { border-radius: 999px; font: 600 13.5px var(--text); letter-spacing: 0; padding: 10px 16px; }
.toast::before { background: var(--ok); }
.boot-mark { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ac-soft); border-top-color: var(--ac); animation: rot .8s linear infinite; }
.boot-mark i { display: none; }
.skel { border-radius: 16px; border: 0; margin-bottom: 8px; background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); background-size: 200% 100%; }
.reader h2 { font-family: var(--display); }
.panel, .alert, .input, .select, .textarea, .chips-input { box-shadow: inset 0 0 0 1px var(--ln); }
.panel { box-shadow: var(--sh1); border-radius: var(--r-md); }
.kv { border: 0; } .kv b { font-family: var(--display); }

/* ================= HOME (soft enterprise) ================= */
.home-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.home-head .avatar { width: 46px; height: 46px; font-size: 17px; }
.home-head .t { flex: 1; min-width: 0; }
.home-head .t span { display: block; font-size: 13.5px; color: var(--mut); }
.home-head .t b { display: block; font: 700 21px/1.2 var(--display); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-card { position: relative; overflow: hidden; border-radius: 26px; padding: 20px 20px 18px; isolation: isolate;
  background: linear-gradient(140deg, #ffffff 0%, hsl(var(--h) 100% 97%) 55%, hsl(calc(var(--h) + 40) 100% 96%) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), var(--sh2); }
[data-theme="dark"] .hero-card { background: linear-gradient(140deg, #1b2136 0%, hsl(var(--h) 40% 21%) 60%, hsl(calc(var(--h) + 40) 35% 20%) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), var(--sh2); }
.hero-card::before, .hero-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(4px); }
.hero-card::before { width: 190px; height: 190px; right: -60px; top: -80px; background: radial-gradient(circle, hsl(var(--h) 95% 80% / .55), transparent 70%); }
.hero-card::after { width: 150px; height: 150px; right: 40px; top: -50px; background: radial-gradient(circle, hsl(calc(var(--h) + 50) 95% 85% / .5), transparent 70%); }
[data-theme="dark"] .hero-card::before, [data-theme="dark"] .hero-card::after { opacity: .35; }
.hc-top { display: flex; justify-content: space-between; align-items: center; }
.hc-k { font-size: 14px; font-weight: 500; color: var(--mut); }
.pill-plan { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--s1); box-shadow: var(--sh1); font: 650 13.5px var(--text); }
.pill-plan i { width: 8px; height: 8px; border-radius: 50%; }
.hc-num { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 14px; flex-wrap: wrap; }
.hc-big { font: 750 52px/1.14 var(--display) !important; letter-spacing: -.04em; }
.hc-of { font-size: 15px; color: var(--mut); font-weight: 500; }
.hc-bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--fg) 7%, transparent); overflow: hidden; }
.hc-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--ac), var(--ac-2)); transition: width 1.4s var(--ease) .2s; box-shadow: 0 0 16px -2px hsl(var(--h) 90% 65% / .6); }
.hc-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--mut); }
.hc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hc-meta svg { width: 15px; height: 15px; }
.hc-acts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 18px; }
.hero-card.empty { text-align: center; padding: 28px 22px 22px; }
.hc-ill { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ac), var(--ac-2)); box-shadow: 0 12px 28px -12px hsl(var(--h) 80% 55% / .8); }
.hc-ill svg { width: 28px; height: 28px; }
.hero-card.empty h3 { margin: 0 0 6px; font: 700 20px var(--display); letter-spacing: -.02em; }
.hero-card.empty p { margin: 0 0 18px; color: var(--mut); font-size: 14.5px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 20px; background: var(--s1); box-shadow: var(--sh1); font: 600 12.5px var(--text); color: var(--fg); transition: transform .2s var(--ease), box-shadow .2s; }
.qa:active { transform: scale(.95); }
.qi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }
.qi svg { width: 21px; height: 21px; }
.q1 { background: hsl(var(--h) 95% 95%); color: hsl(var(--h) 65% 52%); }
.q2 { background: #fff4e0; color: #d98a12; }
.q3 { background: #e4f8f1; color: #17a57a; }
.q4 { background: #fde9ee; color: #d94b6a; }
[data-theme="dark"] .q1 { background: hsl(var(--h) 50% 26%); color: hsl(var(--h) 90% 82%); }
[data-theme="dark"] .q2 { background: #3a2f1a; color: #f5c063; }
[data-theme="dark"] .q3 { background: #173a31; color: #5fe0b4; }
[data-theme="dark"] .q4 { background: #3d1f2a; color: #ff9ab2; }

.card-s { background: var(--s1); border-radius: 22px; box-shadow: var(--sh1); padding: 18px; }
.rc-head { display: flex; gap: 12px; align-items: center; }
.rc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #17a57a; background: #e4f8f1; }
[data-theme="dark"] .rc-ic { background: #173a31; color: #5fe0b4; }
.rc-head b { display: block; font: 650 16px var(--display); letter-spacing: -.015em; }
.rc-head span { font-size: 13.5px; color: var(--mut); }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.rc-stats div { background: var(--s2); border-radius: 14px; padding: 11px 12px; }
.rc-stats b { display: block; font: 700 19px var(--display); letter-spacing: -.02em; }
.rc-stats span { font-size: 12.5px; color: var(--mut); }
.rc-link { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 14px; background: var(--s2); margin-bottom: 10px; }
.rc-link span { flex: 1; min-width: 0; font-size: 13.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-link button { height: 36px; padding: 0 12px; border-radius: 11px; background: var(--s1); box-shadow: var(--sh1); font: 600 13px var(--text); color: var(--ac-ink); display: flex; align-items: center; gap: 6px; transition: color .2s; }
.rc-link button.ok { color: var(--ok); }
.rc-link button svg { width: 15px; height: 15px; }

.steps-card { padding: 6px 16px; }
.st-row { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; }
.st-row + .st-row { border-top: 1px solid var(--ln2); }
.st-n { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 14px var(--display); background: var(--ac-soft); color: var(--ac-ink); }
.st-row.done .st-n { background: var(--ok-soft); color: var(--ok); }
.st-n svg { width: 16px; height: 16px; stroke-width: 2.4; }
.st-t b { display: block; font: 650 15.5px var(--display); letter-spacing: -.01em; }
.st-t p { margin: 3px 0 0; font-size: 14px; color: var(--mut); line-height: 1.45; }
.st-row.done .st-t b { color: var(--mut); }

.news-list { display: grid; gap: 12px; }
.news-card { background: var(--s1); border-radius: 22px; box-shadow: var(--sh1); overflow: hidden; cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s; }
.news-card:active { transform: scale(.985); }
.nc-img { height: 150px; background-size: cover; background-position: center; }
.nc-in { padding: 16px 18px 18px; }
.nc-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mut); margin-bottom: 8px; }
.news-card h3 { margin: 0; font: 650 17px/1.3 var(--display); letter-spacing: -.015em; }
.news-card p { margin: 6px 0 0; color: var(--mut); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font: 600 13.5px var(--text); color: var(--ac-ink); }
.nc-more svg { width: 15px; height: 15px; }

/* ================= COMPACT density ================= */
:root { --px: 14px; }
.view { padding-top: calc(var(--top) + 10px); }
.btn { height: 42px; border-radius: 12px; font-size: 14px; padding: 0 16px; }
.btn svg { width: 16px; height: 16px; }
.sq { width: 36px; height: 36px; border-radius: 11px; }
.sq svg { width: 18px; height: 18px; }
.shead { margin: 18px 2px 8px; }
.shead h2 { font-size: 16px; }
.shead a, .shead .meta { font-size: 13px; }
.h1 { font-size: 24px; margin: 4px 0 12px; }

.home-head { margin: 0 0 12px; gap: 10px; }
.home-head .avatar { width: 38px; height: 38px; font-size: 15px; box-shadow: 0 0 0 2px var(--s1), var(--sh1); }
.home-head .t span { font-size: 12.5px; }
.home-head .t b { font-size: 17px; }

.hero-card { border-radius: 20px; padding: 14px 16px; }
.hc-k { font-size: 13px; }
.pill-plan { height: 26px; padding: 0 10px; font-size: 12.5px; }
.hc-num { margin: 10px 0 10px; gap: 8px; }
.hc-big { font-size: 38px !important; }
.hc-of { font-size: 13.5px; }
.hc-bar { height: 7px; }
.hc-meta { margin-top: 8px; font-size: 12.5px; }
.hc-acts { margin-top: 12px; gap: 8px; }
.hero-card.empty { padding: 18px 16px 16px; }
.hc-ill { width: 46px; height: 46px; border-radius: 15px; margin-bottom: 10px; }
.hc-ill svg { width: 22px; height: 22px; }
.hero-card.empty h3 { font-size: 17px; }
.hero-card.empty p { font-size: 13.5px; margin-bottom: 12px; }

.quick { gap: 8px; margin-top: 10px; }
.qa { flex-direction: row; justify-content: center; gap: 6px; padding: 9px 4px; border-radius: 14px; font-size: 12px; }
.qi { width: 26px; height: 26px; border-radius: 8px; }
.qi svg { width: 15px; height: 15px; }
@media (max-width: 380px) { .qa { flex-direction: column; gap: 4px; padding: 8px 2px; font-size: 11px; } }

.card-s { border-radius: 18px; padding: 14px; }
.rc-head { gap: 10px; }
.rc-ic { width: 36px; height: 36px; border-radius: 11px; }
.rc-ic svg { width: 18px; height: 18px; }
.rc-head b { font-size: 15px; }
.rc-head span { font-size: 12.5px; }
.rc-stats { margin: 12px 0 10px; gap: 6px; }
.rc-stats div { padding: 8px 10px; border-radius: 11px; }
.rc-stats b { font-size: 16px; }
.rc-stats span { font-size: 11.5px; }
.rc-link { padding: 4px 4px 4px 12px; border-radius: 12px; margin-bottom: 8px; }
.rc-link span { font-size: 12.5px; }
.rc-link button { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; }

.steps-card { padding: 2px 14px; }
.st-row { gap: 11px; padding: 10px 0; }
.st-n { width: 26px; height: 26px; font-size: 12.5px; }
.st-n svg { width: 14px; height: 14px; }
.st-t b { font-size: 14.5px; }
.st-t p { font-size: 13px; margin-top: 1px; line-height: 1.4; }

.news-list { gap: 8px; }
.news-card { border-radius: 16px; }
.nc-img { height: 110px; }
.nc-in { padding: 12px 14px; }
.nc-meta { margin-bottom: 5px; font-size: 12px; }
.nc-meta .tag { height: 20px; padding: 0 8px; font-size: 11px; }
.news-card h3 { font-size: 15px; }
.news-card p { font-size: 13px; margin-top: 3px; -webkit-line-clamp: 1; }
.nc-more { display: none; }
.news-card { position: relative; }
.news-card::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--dim); border-top: 1.6px solid var(--dim); transform: translateY(-50%) rotate(45deg); }
.news-card .nc-in { padding-inline-end: 34px; }

/* tighter shared blocks on other tabs */
.chat { padding: 9px 10px; }
.chat .cv { width: 46px; height: 46px; border-radius: 14px; }
.styles-grid { gap: 6px; }
.style-tile { height: 104px; border-radius: 16px; }
.bal .odo { font-size: 46px; }
.ruler-wrap { margin-top: 16px; }
.pcard { min-height: 196px; padding: 15px; border-radius: 18px; }
.rows { padding: 0 14px; border-radius: 16px; }
.rows .row { padding: 11px 0; min-height: 48px; }
.tabbar { --tabbar: 54px; }
.tab svg { width: 21px; height: 21px; }
.quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qa { flex-direction: column; gap: 5px; padding: 9px 2px 8px; font-size: 11.5px; min-width: 0; white-space: nowrap; }
.qi { width: 30px; height: 30px; border-radius: 10px; }
.qi svg { width: 16px; height: 16px; }

/* ================= PROFILE (soft enterprise, compact) ================= */
.pc { position: relative; overflow: hidden; border-radius: 22px; background: var(--s1); box-shadow: var(--sh2); text-align: center; padding: 0 16px 14px; isolation: isolate; }
.pc-cover { height: 78px; margin: 0 -16px; position: relative; z-index: -1;
  background: radial-gradient(60% 120% at 15% 0%, hsl(var(--h) 95% 86%), transparent 70%),
              radial-gradient(55% 120% at 90% 10%, hsl(calc(var(--h) + 55) 95% 88%), transparent 70%),
              linear-gradient(120deg, hsl(var(--h) 100% 96%), hsl(calc(var(--h) + 40) 100% 96%)); }
[data-theme="dark"] .pc-cover { background: radial-gradient(60% 120% at 15% 0%, hsl(var(--h) 50% 34%), transparent 70%), radial-gradient(55% 120% at 90% 10%, hsl(calc(var(--h) + 55) 45% 32%), transparent 70%), linear-gradient(120deg, hsl(var(--h) 35% 22%), hsl(calc(var(--h) + 40) 30% 20%)); }
.pc .avatar { width: 76px; height: 76px; font-size: 28px; margin: -40px auto 8px; box-shadow: 0 0 0 4px var(--s1), var(--sh2); }
.pc-name { font: 700 20px/1.2 var(--display); letter-spacing: -.025em; }
.pc-sub { margin-top: 3px; font-size: 13px; color: var(--mut); }
.pc-tags { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pc-tags .tag { height: 24px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ln2); }
.pc-stats div + div { border-inline-start: 1px solid var(--ln2); }
.pc-stats b { display: block; font: 700 18px var(--display); letter-spacing: -.02em; }
.pc-stats span { font-size: 12px; color: var(--mut); }

.ps { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: var(--s1); box-shadow: var(--sh1); cursor: pointer; transition: transform .15s; }
.ps:active { transform: scale(.985); }
.ps .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--ac), var(--ac-2)); box-shadow: 0 8px 18px -10px hsl(var(--h) 80% 55% / .9); }
.ps .ic svg { width: 18px; height: 18px; }
.ps .t { flex: 1; min-width: 0; }
.ps .t b { display: block; font: 650 14.5px var(--display); }
.ps .t span { font-size: 12.5px; color: var(--mut); }
.ps .mini { height: 4px; border-radius: 2px; background: var(--s2); margin-top: 6px; overflow: hidden; }
.ps .mini i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--ac), var(--ac-2)); transition: width 1.2s var(--ease) .2s; }
.ps .go { font: 600 13px var(--text); color: var(--ac-ink); white-space: nowrap; }

.grp { background: var(--s1); border-radius: 18px; box-shadow: var(--sh1); padding: 0 14px; }
.gr { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 0; cursor: pointer; }
.gr + .gr { border-top: 1px solid var(--ln2); }
.gr.static { cursor: default; }
.gr:not(.static):active { opacity: .6; }
.gr .qi { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.gr .qi svg { width: 17px; height: 17px; }
.gr .t { flex: 1; min-width: 0; }
.gr .t b { display: block; font-weight: 600; font-size: 14.5px; }
.gr .t span { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr .v { font-size: 13px; color: var(--mut); white-space: nowrap; }
.gr .chev { width: 16px; height: 16px; color: var(--dim); }
.gr .seg { max-width: 190px; }
.q5 { background: #eef0f5; color: #5d6580; } [data-theme="dark"] .q5 { background: #262c42; color: #b5bcd6; }
.q6 { background: #e8f3ff; color: #2b7fd9; } [data-theme="dark"] .q6 { background: #1b2f48; color: #7fb8ff; }
.pf-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--dim); }

.gr .seg { max-width: 200px; }
.gr .seg button { font-size: 12px; padding: 0 2px; }

/* ================= HOME — reference style ================= */
#v-home { padding-top: 6px; }
.h-bar { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; margin: 0 calc(-1 * var(--px)) 14px; border-bottom: 1px solid var(--ln); background: color-mix(in srgb, var(--s1) 70%, transparent); }
.h-bar b { font: 800 21px var(--display); letter-spacing: -.025em; }
.h-logo { width: 34px; height: 34px; }

.h-prof { border-radius: 26px; padding: 16px; background: linear-gradient(160deg, #ffffff 0%, #f4f6fb 100%); box-shadow: inset 0 0 0 1px #e6e9f2, 0 14px 30px -20px rgba(40,60,120,.35); }
[data-theme="dark"] .h-prof { background: linear-gradient(160deg, #1b2134 0%, #171c2c 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 14px 30px -20px rgba(0,0,0,.6); }
.h-prof-top { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--ln); }
.h-ava { width: 68px; height: 68px; border-radius: 20px; flex: none; display: grid; place-items: center; overflow: hidden; color: #fff; font: 700 30px var(--display);
  background: linear-gradient(150deg, #4fb4ff 0%, #2a7bf2 100%); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(255,166,77,.55), 0 10px 22px -8px rgba(42,123,242,.6); }
.h-ava img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .h-ava { box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px rgba(255,166,77,.45), 0 10px 22px -8px rgba(0,0,0,.6); }
.h-who { flex: 1; min-width: 0; display: grid; gap: 5px; }
.h-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.h-name b { font: 800 20px var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-ic { width: 18px; height: 18px; color: #3b6ff5; flex: none; }
.h-ic.mut { color: #8a96c8; width: 15px; height: 15px; }
.h-ic.amber { color: #f08c1b; width: 20px; height: 20px; }
.h-id { display: flex; align-items: center; gap: 6px; font: 600 13px var(--text); color: var(--fg); min-width: 0; }
.h-id span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-copy { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--mut); flex: none; }
.h-copy:active { background: var(--s2); }
.h-copy svg { width: 14px; height: 14px; }
.h-status { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); font: 700 11.5px var(--text); letter-spacing: .03em; text-transform: uppercase; color: var(--fg); }
.h-status svg { width: 13px; height: 13px; }
.h-status.on { background: #e6f8ef; color: #15955f; box-shadow: inset 0 0 0 1px #bfead3; }
[data-theme="dark"] .h-status.on { background: #133327; color: #4fd1a5; box-shadow: none; }
.h-bal { text-align: end; flex: none; }
.h-bal .k { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.h-bal .k svg { width: 15px; height: 15px; color: #3b6ff5; }
.h-bal .v { margin-top: 8px; font: 800 34px/1 var(--display); letter-spacing: -.04em; display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; }
.h-bal .v i { font-style: normal; font-size: 20px; color: #f2b01e; }
.h-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.h-btn { height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font: 700 15px var(--text); letter-spacing: -.01em; transition: transform .15s var(--ease), filter .2s; }
.h-btn:active { transform: scale(.97); filter: brightness(1.05); }
.h-btn svg { width: 18px; height: 18px; stroke-width: 2; }
.h-btn.green { background: linear-gradient(180deg, #22c470, #15a35a); box-shadow: 0 10px 20px -12px rgba(21,163,90,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.h-btn.blue { background: linear-gradient(180deg, #3b7cf6, #1f5ce0); box-shadow: 0 10px 20px -12px rgba(31,92,224,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.h-btn.amber { width: 100%; margin-top: 10px; background: linear-gradient(180deg, #ffa53a, #f08c1b); box-shadow: 0 10px 20px -12px rgba(240,140,27,.9), inset 0 1px 0 rgba(255,255,255,.25); }

.h-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.h-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 6px 16px -12px rgba(40,60,120,.3); text-align: start; min-width: 0; transition: transform .15s var(--ease); }
.h-tile:active { transform: scale(.97); }
.h-tile .t { flex: 1; min-width: 0; }
.h-tile .t b { display: block; font: 700 14.5px var(--display); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-tile .t span { display: block; font: 500 11.5px var(--text); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.h-arr { width: 15px; height: 15px; color: var(--dim); flex: none; }
.h-ti { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.h-ti svg { width: 19px; height: 19px; }
.t-blue { background: #eaf1ff; color: #3b6ff5; box-shadow: inset 0 0 0 1px #d9e5ff; }
.t-orange { background: #fff3e4; color: #ef8a16; box-shadow: inset 0 0 0 1px #ffe3c2; }
.t-violet { background: #f1ecff; color: #7b5cf0; box-shadow: inset 0 0 0 1px #e3daff; }
.t-amber { background: #fff3e4; color: #ef8a16; box-shadow: inset 0 0 0 1px #ffe3c2; }
.t-red { background: #ffe4e7; color: #e5384f; box-shadow: inset 0 0 0 1px #ffc9d0; }
[data-theme="dark"] .t-blue { background: #1c2a4a; color: #7fa7ff; box-shadow: none; }
[data-theme="dark"] .t-orange, [data-theme="dark"] .t-amber { background: #3a2a17; color: #ffb35c; box-shadow: none; }
[data-theme="dark"] .t-violet { background: #2a2350; color: #b29cff; box-shadow: none; }
[data-theme="dark"] .t-red { background: #3d1d25; color: #ff7c8f; box-shadow: none; }

.h-ban { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 20px; text-align: start; }
.h-ban.red { background: linear-gradient(120deg, #fff3f4, #ffe6e9); box-shadow: inset 0 0 0 1px #ffd0d6; }
[data-theme="dark"] .h-ban.red { background: linear-gradient(120deg, #2c1a22, #33161f); box-shadow: inset 0 0 0 1px rgba(255,124,143,.25); }
.h-ban .h-ti { width: 44px; height: 44px; border-radius: 14px; }
.h-ban .t { flex: 1; min-width: 0; }
.h-ban .k { display: block; font: 800 10.5px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #e5384f; }
.h-ban b { display: block; font: 800 17px var(--display); letter-spacing: -.02em; margin: 1px 0; }
.h-ban .t > span:last-child { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-open { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 10px 0 12px; border-radius: 10px; font: 700 13px var(--text); color: #e5384f; box-shadow: inset 0 0 0 1px #ffc2ca; background: rgba(255,255,255,.6); flex: none; }
[data-theme="dark"] .h-open { background: transparent; color: #ff7c8f; box-shadow: inset 0 0 0 1px rgba(255,124,143,.4); }
.h-open svg { width: 14px; height: 14px; }

.h-card { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 10px 24px -18px rgba(40,60,120,.35); }
.h-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.h-head b { flex: 1; font: 800 17px var(--display); letter-spacing: -.02em; }
.h-dot { width: 16px; height: 16px; border-radius: 50%; background: #18b26b; box-shadow: 0 0 0 4px #d8f5e6; flex: none; }
[data-theme="dark"] .h-dot { box-shadow: 0 0 0 4px #173a2b; }
.h-count { min-width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 800 14px var(--display); color: #3b6ff5; background: #eaf1ff; box-shadow: inset 0 0 0 1px #d4e1ff; }
[data-theme="dark"] .h-count { background: #1c2a4a; color: #7fa7ff; box-shadow: none; }
.h-empty { text-align: center; padding: 22px 14px 20px; border-radius: 18px; border: 1.5px dashed #dfe3ee; background: #fafbfe; }
[data-theme="dark"] .h-empty { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
.h-key { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: #3b6ff5; background: radial-gradient(circle, #eaf1ff, transparent 72%); }
.h-key svg { width: 26px; height: 26px; }
.h-empty b { display: block; font: 800 16.5px var(--display); letter-spacing: -.02em; }
.h-empty p { margin: 6px 0 14px; color: var(--mut); font-size: 14px; }
.h-empty .h-btn { padding: 0 20px; height: 42px; }
.h-subrow { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--s2); cursor: pointer; }
.h-subrow .t { flex: 1; min-width: 0; }
.h-subrow .l1, .h-subrow .l2 { display: flex; justify-content: space-between; gap: 8px; }
.h-subrow .l1 b { font: 800 15.5px var(--display); }
.h-subrow .l1 span, .h-subrow .l2 span { font-size: 12.5px; color: var(--mut); }
.h-prog { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 8%, transparent); margin: 8px 0 6px; overflow: hidden; }
.h-prog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b7cf6, #7b5cf0); transition: width 1.2s var(--ease) .2s; }

.h-ref { background: linear-gradient(160deg, #fffaf3 0%, #ffffff 60%); box-shadow: inset 0 0 0 1px #fde8cc, 0 10px 24px -18px rgba(240,140,27,.35); }
[data-theme="dark"] .h-ref { background: linear-gradient(160deg, #2a2118 0%, var(--s1) 60%); box-shadow: inset 0 0 0 1px rgba(255,179,92,.18); }
.h-earn { height: 32px; padding: 0 12px; border-radius: 11px; display: inline-flex; align-items: center; font: 800 15px var(--display); color: #e47b0c; background: #fff1de; box-shadow: inset 0 0 0 1px #fdd9a8; }
[data-theme="dark"] .h-earn { background: #3a2a17; color: #ffb35c; box-shadow: none; }
.h-ref-body { display: flex; gap: 10px; align-items: center; }
.h-ref-body > div:first-child { flex: 1; min-width: 0; }
.h-ref-body p { margin: 0; }
.h-ref-body .muted { font-size: 14.5px; color: var(--fg); opacity: .8; }
.h-ref-body .hot { margin-top: 8px; font: 700 14px/1.4 var(--text); color: #ee8513; }
.h-ref-body .cnt { margin-top: 6px; font-size: 12.5px; color: var(--mut); }
.h-orbit { position: relative; width: 104px; height: 104px; flex: none; }
.h-orbit .ring { position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed #f6c98b; animation: rot 24s linear infinite; }
.h-orbit .core { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #ffc067, #f08c1b); box-shadow: 0 0 0 8px rgba(255,190,110,.22), 0 10px 20px -8px rgba(240,140,27,.8); }
.h-orbit .core svg { width: 20px; height: 20px; }
.h-orbit .sat { position: absolute; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #ef8a16; box-shadow: 0 0 0 1px #fde2bf, 0 4px 10px -4px rgba(240,140,27,.5); }
[data-theme="dark"] .h-orbit .sat { background: #2a2118; }
.h-orbit .sat svg { width: 13px; height: 13px; }
.h-orbit .s1 { left: 6px; top: 4px; } .h-orbit .s2 { right: -2px; top: 40px; } .h-orbit .s3 { left: 6px; bottom: 4px; }
.h-link { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px #f3e3cd; }
[data-theme="dark"] .h-link { box-shadow: inset 0 0 0 1px rgba(255,179,92,.15); }
.h-link .k { display: flex; align-items: center; gap: 7px; font: 800 11.5px var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); opacity: .8; }
.h-link .k svg { width: 15px; height: 15px; color: #ef8a16; }
.h-linkbox { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 9px; padding: 11px 12px; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); text-align: start; }
.h-linkbox code { flex: 1; min-width: 0; font: 600 12.5px var(--mono, ui-monospace); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-linkbox svg { width: 18px; height: 18px; color: var(--fg); flex: none; }

/* tab bar like the reference: tinted pill behind the active tab */
.tab { margin: 6px 4px; border-radius: 16px; transition: background .25s, color .25s; }
.tab.on { background: #eaf1ff; color: #2f63e6; }
[data-theme="dark"] .tab.on { background: #1c2a4a; color: #8fb2ff; }
.tab.on svg { fill: currentColor; fill-opacity: .14; }
.h-tile { padding: 11px 10px 11px 11px; gap: 8px; }
.h-tile .h-ti { width: 34px; height: 34px; border-radius: 11px; }
.h-tile .h-ti svg { width: 17px; height: 17px; }
.h-tile .t b { font-size: 14px; overflow: visible; }
.h-arr { width: 13px; height: 13px; }

/* ================= HOME variant 8: stories, promo, floating Create ================= */
.h-stories { display: flex; gap: 12px; overflow-x: auto; margin: -4px calc(-1 * var(--px)) 12px; padding: 2px var(--px) 4px; scrollbar-width: none; }
.h-stories::-webkit-scrollbar { display: none; }
.h-story { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.h-story .ring { width: 60px; height: 60px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 200deg, #3b7cf6, #7b5cf0, #ff6aa8, #ffa53a, #3b7cf6); transition: transform .2s var(--ease); }
.h-story:active .ring { transform: scale(.93); }
.h-story .ring .h-ti { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg); }
.h-story .ring .h-ti svg { width: 22px; height: 22px; }
.h-story.seen .ring { background: var(--ln); }
.h-story.seen .h-ti { opacity: .75; }
.h-story .lb { font: 600 11px var(--text); color: var(--fg); max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-story.seen .lb { color: var(--mut); }

.story { position: fixed; inset: 0; z-index: 35; color: #fff; display: none; flex-direction: column; padding: calc(var(--top) + 10px) calc(var(--sar) + 16px) calc(var(--bottom) + 20px) calc(var(--sal) + 16px); }
.story.on { display: flex; animation: svIn .35s var(--ease); }
@keyframes svIn { from { opacity: 0; transform: scale(.96); } }
.sv-bars { display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.sv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv-bars i.done b { width: 100%; }
.sv-bars i.cur b { animation: svFill 6s linear forwards; }
.story.paused .sv-bars i.cur b { animation-play-state: paused; }
@keyframes svFill { to { width: 100%; } }
.sv-head { display: flex; align-items: center; gap: 8px; margin-top: 12px; position: relative; z-index: 2; }
.sv-logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.sv-logo .h-logo { width: 20px; height: 20px; }
.sv-head b { font: 700 14px var(--text); }
.sv-head time { font-size: 12.5px; opacity: .75; }
.sv-x { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); }
.sv-body { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; pointer-events: none; }
.sv-body button { pointer-events: auto; }
.sv-tag { align-self: flex-start; height: 26px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 12px var(--text); background: rgba(255,255,255,.2); }
.sv-body h2 { margin: 14px 0 12px; font: 800 30px/1.12 var(--display); letter-spacing: -.03em; }
.sv-body p { margin: 0; font-size: 16.5px; line-height: 1.5; opacity: .92; white-space: pre-line; }
.sv-img { height: 220px; border-radius: 20px; background-size: cover; background-position: center; margin-bottom: 18px; }
.sv-steps { display: grid; gap: 12px; margin-top: 4px; }
.sv-steps div { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.13); }
.sv-steps i { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 13px var(--display); font-style: normal; background: #fff; color: #2f63e6; }
.sv-steps b { display: block; font: 700 15px var(--display); margin-bottom: 2px; }
.sv-steps span { font-size: 13.5px; opacity: .9; }
.sv-cta { margin-top: 22px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--text); background: #fff; color: #1f3fae; }
.sv-cta svg { width: 18px; height: 18px; }
.sv-tap { position: absolute; top: 90px; bottom: 0; z-index: 1; }
.sv-tap.prev { left: 0; width: 32%; } .sv-tap.next { right: 0; width: 68%; }

.h-promo { margin-top: 12px; }
.pr-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--px)); padding: 2px var(--px) 4px; scrollbar-width: none; }
.pr-rail::-webkit-scrollbar { display: none; }
.pr-card { flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; border-radius: 20px; padding: 15px 16px; color: #fff; text-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 112px; }
.pr-rail .pr-card:only-child { flex-basis: 100%; }
.pr-card.p0 { background: linear-gradient(120deg, #ff8a3d, #ff5a8a); box-shadow: 0 14px 24px -18px rgba(255,90,138,.95); }
.pr-card.p1 { background: linear-gradient(120deg, #3b7cf6, #7b5cf0); box-shadow: 0 14px 24px -18px rgba(59,124,246,.95); }
.pr-card.p2 { background: linear-gradient(120deg, #17b07a, #0f9bb8); box-shadow: 0 14px 24px -18px rgba(23,176,122,.95); }
.pr-card .art { position: absolute; right: -24px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.16); }
.pr-card .art.a2 { right: 34px; top: auto; bottom: -50px; width: 90px; height: 90px; background: rgba(255,255,255,.1); }
.pr-card b { position: relative; font: 800 17px/1.2 var(--display); letter-spacing: -.02em; max-width: 80%; }
.pr-card .tx { position: relative; font-size: 12.5px; opacity: .92; max-width: 88%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-card .chip { position: relative; margin-top: auto; padding-top: 0; height: 28px; padding: 0 8px 0 11px; border-radius: 9px; display: inline-flex; align-items: center; gap: 2px; font: 700 12px var(--text); background: #fff; color: #1c2238; }
.pr-card .chip svg { width: 13px; height: 13px; }
.pr-dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.pr-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ln); transition: all .3s var(--ease); }
.pr-dots i.on { width: 18px; background: #3b7cf6; }

.fab { position: relative; width: 100%; justify-content: center; margin-top: 16px; height: 48px; padding: 0 18px 0 16px; border-radius: 24px; display: none; align-items: center; gap: 8px; color: #fff; font: 700 14.5px var(--text);
  background: linear-gradient(180deg, #3b7cf6, #1f5ce0); box-shadow: 0 14px 26px -12px rgba(31,92,224,.95), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s var(--ease); }
.fab:active { transform: scale(.95); }
.fab svg { width: 18px; height: 18px; stroke-width: 2; }
body[data-tab="home"]:not(.in-thread) .fab { display: flex; animation: fabIn .4s var(--ease); }
@keyframes fabIn { from { opacity: 0; transform: translateY(14px) scale(.9); } }
#v-home { padding-bottom: calc(var(--bottom) + var(--tabbar) + 90px); }
.pr-card .tx { line-height: 1.4; max-height: 2.8em; }
.pr-card .chip { margin-top: 10px; }
.h-story .ring .h-ti { background-clip: padding-box; }
.h-story .ring { padding: 3px; }
.h-story .ring .h-ti { box-shadow: 0 0 0 2px var(--bg); width: calc(100% - 4px); height: calc(100% - 4px); margin: 2px; }
.pr-card .tx { display: block; -webkit-line-clamp: unset; white-space: normal; max-height: 2.8em; overflow: hidden; }

.pr-card .tx { max-height: none; overflow: visible; line-height: 1.4; }

/* compact referral block */
.h-ref-c { padding: 13px 14px; }
.h-ref-c .h-head { margin-bottom: 6px; }
.h-ref-c .h-head b { font-size: 15.5px; }
.h-ref-c .h-earn { height: 26px; padding: 0 9px; font-size: 13px; border-radius: 9px; }
.h-ref-line { margin: 0 0 10px; font-size: 13px; color: var(--mut); }
.h-ref-line b { color: #ee8513; font-weight: 800; }
.h-ref-line span { color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ln); text-underline-offset: 3px; cursor: pointer; }
.h-ref-row { display: flex; gap: 8px; }
.h-ref-row .h-linkbox { margin: 0; flex: 1; min-width: 0; padding: 9px 11px; }
.h-ref-row .h-linkbox code { font-size: 12px; }
.h-ref-row .h-linkbox svg { width: 16px; height: 16px; }
.h-share { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #ffa53a, #f08c1b); box-shadow: 0 8px 16px -10px rgba(240,140,27,.9); }
.h-share:active { transform: scale(.94); }
.h-share svg { width: 18px; height: 18px; stroke-width: 2; }

/* ================= floating tab bar ================= */
:root { --tabbar: 78px; }               /* bar height 64 + gap 14, used for view/FAB offsets */
.tabbar {
  left: calc(var(--sal) + 12px); right: calc(var(--sar) + 12px); bottom: calc(var(--bottom) + 12px);
  height: 64px; padding: 6px; gap: 4px; border-radius: 24px; border: 0;
  background: color-mix(in srgb, var(--s1) 86%, transparent);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 0 1px var(--ln), 0 18px 36px -14px rgba(40,60,120,.35);
}
[data-theme="dark"] .tabbar { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 36px -14px rgba(0,0,0,.7); }
.tabbar.away { transform: translateY(calc(100% + 30px)); }
.tab { margin: 0; border-radius: 18px; gap: 3px; font: 600 11px var(--text); color: var(--mut); transition: background .3s var(--ease), color .3s; }
.tab svg { width: 23px; height: 23px; transition: transform .35s var(--spring); }
.tab.on { color: #2f63e6; background: linear-gradient(180deg, #eef3ff, #e2ebff); box-shadow: inset 0 0 0 1px #d6e2ff, 0 6px 14px -10px rgba(47,99,230,.7); }
.tab.on svg { transform: translateY(-1px) scale(1.06); fill: currentColor; fill-opacity: .16; stroke-width: 2; }
[data-theme="dark"] .tab.on { color: #9dbcff; background: linear-gradient(180deg, #24345c, #1c2a4a); box-shadow: inset 0 0 0 1px rgba(157,188,255,.18); }
.tab:active svg { transform: scale(.88); }
.badge { top: 6px; left: calc(50% + 5px); }


/* ================= in-app admin ================= */
.view.admin { z-index: 6; background: var(--bg); }
body.in-admin .fab { display: none !important; }
.ad-head { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--top) + 8px) calc(var(--sar) + 14px) 10px calc(var(--sal) + 8px); background: color-mix(in srgb, var(--s1) 92%, transparent); border-bottom: 1px solid var(--ln); }
.ad-head .t { flex: 1; min-width: 0; }
.ad-head .t b { display: block; font: 800 17px var(--display); letter-spacing: -.02em; }
.ad-head .t span { font-size: 12px; color: #e5384f; font-weight: 600; }
.ad-nav { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px calc(var(--sar) + 14px) 10px calc(var(--sal) + 14px); scrollbar-width: none; border-bottom: 1px solid var(--ln2); background: var(--bg); }
.ad-nav::-webkit-scrollbar { display: none; }
.ad-nav button { flex: none; height: 34px; padding: 0 12px; border-radius: 11px; display: flex; align-items: center; gap: 6px; font: 600 13px var(--text); color: var(--mut); background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); transition: all .25s var(--ease); }
.ad-nav button svg { width: 15px; height: 15px; }
.ad-nav button.on { color: #fff; background: linear-gradient(180deg, #3b7cf6, #1f5ce0); box-shadow: 0 8px 16px -10px rgba(31,92,224,.9); }
.ad-body { flex: 1; overflow-y: auto; padding: 14px calc(var(--sar) + 14px) calc(var(--bottom) + 30px) calc(var(--sal) + 14px); scrollbar-width: none; }
.ad-body::-webkit-scrollbar { display: none; }
.ad-body > * + * { margin-top: 10px; }
.ad-online { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font: 600 12.5px var(--text); color: #15955f; background: #e6f8ef; }
[data-theme="dark"] .ad-online { background: #133327; color: #4fd1a5; }
.ad-online i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 2s infinite; }
.ad-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-kpi { background: var(--s1); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ln); padding: 12px; display: grid; gap: 2px; }
.ad-kpi .h-ti { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 6px; }
.ad-kpi .h-ti svg { width: 16px; height: 16px; }
.ad-kpi b { font: 800 22px var(--display); letter-spacing: -.03em; }
.ad-kpi > span:not(.h-ti) { font-size: 12px; color: var(--mut); }
.ad-kpi em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #15955f; }
.ad-chart .hd, .ad-sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ad-chart .hd b, .ad-sh b { font: 700 15px var(--display); }
.ad-chart .hd span, .ad-sh span { font-size: 12px; color: var(--mut); }
.ad-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.ad-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#3b7cf6, #7b5cf0); min-height: 3px; }
.ad-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--mut); }
.ad-split { display: grid; grid-template-columns: 76px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.ad-split span { display: flex; align-items: center; gap: 6px; } .ad-split span i { width: 8px; height: 8px; border-radius: 50%; }
.ad-split .tr { height: 8px; border-radius: 4px; background: var(--s2); overflow: hidden; } .ad-split .tr i { display: block; height: 100%; border-radius: 4px; }
.ad-split b { text-align: end; font-weight: 700; }
.ad-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; }
.ad-mini div { text-align: center; } .ad-mini b { display: block; font: 800 16px var(--display); } .ad-mini span { font-size: 11px; color: var(--mut); }
.ad-count { font-size: 12.5px; color: var(--mut); margin: 4px 2px 0; }
.ad-ava { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; overflow: hidden; color: #fff; font: 700 15px var(--display); background: linear-gradient(150deg, #4fb4ff, #2a7bf2); }
.ad-ava img { width: 100%; height: 100%; object-fit: cover; }
.ad-ava.lg { width: 56px; height: 56px; border-radius: 17px; font-size: 22px; }
.ad-user { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.ad-dl { background: var(--s2); border-radius: 16px; padding: 2px 14px; margin-bottom: 16px; }
.ad-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.ad-dl div + div { border-top: 1px solid var(--ln2); }
.ad-dl span { color: var(--mut); } .ad-dl b { font-weight: 600; text-align: end; }
.ad-seg { max-width: none; margin-bottom: 2px; }
.ad-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .ad-dot.lg { width: 14px; height: 14px; margin: 0 9px; }
.ad-add { margin-bottom: 2px; }
.ad-hint { font-size: 12px; color: var(--mut); margin: 8px 4px 0; display: block; }
.ad-err { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 10px; color: var(--mut); }
.ad-err svg { width: 28px; height: 28px; color: var(--bad); } .ad-err b { color: var(--fg); }
.two-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three-f { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sheet .stack { display: grid; gap: 12px; }
.sheet .switch { padding: 4px 0; }
.grp .gr .st-n { flex: none; }

/* admin convenience */
.ad-nav em { font-style: normal; font: 700 10.5px var(--text); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: none; place-items: center; background: var(--s2); color: var(--mut); }
.ad-nav em:not(:empty) { display: grid; }
.ad-nav button.on em { background: rgba(255,255,255,.25); color: #fff; }
.ad-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ad-quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); font: 600 11px/1.25 var(--text); color: var(--fg); text-align: center; }
.ad-quick button:active { transform: scale(.95); }
.ad-quick svg { width: 20px; height: 20px; color: #2f63e6; }
.ad-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.ad-filters::-webkit-scrollbar { display: none; }
.ad-filters .pill { flex: none; height: 32px; font-size: 13px; }
.ad-uacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ad-uacts button { height: 54px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--s2); font: 600 12px var(--text); color: #2f63e6; }
.ad-uacts svg { width: 18px; height: 18px; }
.ad-tg { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--dim); flex: none; }
.ad-tg svg { width: 17px; height: 17px; }
.ad-tg.on { color: #2f63e6; background: #eaf1ff; }
.ad-tg.on.amber { color: #ef8a16; background: #fff3e4; }
[data-theme="dark"] .ad-tg.on { background: #1c2a4a; color: #8fb2ff; } [data-theme="dark"] .ad-tg.on.amber { background: #3a2a17; color: #ffb35c; }
.gr.draft .t b { color: var(--mut); }
.ad-sw { flex: none; min-height: 0; }
#grantQuick { flex-wrap: wrap; }

/* ===== Sessions placeholder (AI sessions removed) ===== */
.soon { margin-top: 18px; padding: 28px 22px; border-radius: 22px; background: var(--s1); box-shadow: 0 10px 30px -18px rgba(30, 45, 90, .25); text-align: center; display: grid; gap: 10px; justify-items: center; }
.soon .mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #5b8cff, #7c5cff); color: #fff; }
.soon .mark svg { width: 30px; height: 30px; }
.soon h3 { margin: 4px 0 0; font: 700 19px "Inter Tight", sans-serif; }
.soon p { margin: 0 0 6px; color: var(--mut, #6b7390); font-size: 14px; line-height: 1.45; }

/* ===== Catalog: services, durations, packs ===== */
.svc-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--sc, #3b6ff5), color-mix(in srgb, var(--sc, #3b6ff5) 55%, #fff)); box-shadow: 0 10px 22px -12px var(--sc, #3b6ff5); }
.svc-ic svg { width: 24px; height: 24px; } .svc-ic .emo { font-size: 24px; line-height: 1; }
.svc-ic.lg { width: 60px; height: 60px; border-radius: 20px; } .svc-ic.lg svg { width: 30px; height: 30px; } .svc-ic.lg .emo { font-size: 30px; }
.svc-list { display: grid; gap: 10px; }
.svc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 20px; background: var(--s1); color: var(--fg, inherit); text-align: start; box-shadow: 0 8px 24px -18px rgba(30, 45, 90, .35); cursor: pointer; font: inherit; }
.svc-row:active { transform: scale(.985); }
.svc-t { flex: 1; min-width: 0; display: grid; gap: 2px; } .svc-t b { font: 700 15.5px "Inter Tight", sans-serif; display: flex; align-items: center; gap: 6px; }
.svc-t > span { font-size: 12.5px; color: var(--mut, #6b7390); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-t .tag { font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; font-family: Inter, sans-serif; }
.svc-p { display: grid; justify-items: end; line-height: 1.15; } .svc-p b { font: 800 17px "Inter Tight", sans-serif; } .svc-p small { font-size: 11px; color: var(--mut, #6b7390); }
.pack-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad, 16px)); padding: 2px var(--pad, 16px) 12px; scrollbar-width: none; }
.pack-rail::-webkit-scrollbar { display: none; }
.pack { flex: 0 0 76%; scroll-snap-align: center; display: grid; gap: 6px; padding: 16px; border: 0; border-radius: 22px; text-align: start; font: inherit; color: inherit; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 16%, var(--s1)), var(--s1) 60%); box-shadow: 0 12px 30px -20px var(--pc); }
.pack-tag { justify-self: start; font: 800 10.5px Inter, sans-serif; letter-spacing: .06em; color: var(--pc); padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--pc) 14%, transparent); }
.pack-ics { display: flex; margin: 4px 0 2px; } .pack-ics i { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-inline-end: -8px; border: 2.5px solid var(--s1); background: linear-gradient(135deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #fff)); }
.pack-ics svg { width: 19px; height: 19px; } .pack-ics .emo { font-size: 19px; font-style: normal; }
.pack > b { font: 800 18px "Inter Tight", sans-serif; } .pk-s { font-size: 12.5px; color: var(--mut, #6b7390); }
.pk-p { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; } .pk-p b { font: 800 22px "Inter Tight", sans-serif; } .pk-p s, .pk-p small { font-size: 12.5px; color: var(--mut, #6b7390); }
.svc-head { display: flex; gap: 14px; align-items: center; } .svc-head h2 { margin: 0; font: 800 22px "Inter Tight", sans-serif; } .svc-head p { margin: 2px 0 0; color: var(--mut, #6b7390); font-size: 13.5px; }
.dur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.dur { position: relative; display: grid; gap: 1px; padding: 12px 10px; border: 0; border-radius: 16px; background: var(--s2, #f1f3f9); color: inherit; font: inherit; text-align: start; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: .15s; }
.dur b { font-size: 13.5px; } .dur span { font: 800 17px "Inter Tight", sans-serif; } .dur span s { font: 500 11.5px Inter, sans-serif; color: var(--mut, #6b7390); } .dur small { font-size: 11px; color: var(--mut, #6b7390); }
.dur i { position: absolute; top: -7px; inset-inline-end: 8px; font-style: normal; font: 700 10.5px Inter, sans-serif; padding: 2px 6px; border-radius: 7px; background: #16a34a; color: #fff; }
.dur.on { background: color-mix(in srgb, #3b6ff5 10%, var(--s1)); box-shadow: inset 0 0 0 2px #3b6ff5; }
.pk-hint { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #f08c1b 12%, transparent); font-size: 13px; margin-bottom: 12px; }
.pk-hint svg { width: 18px; height: 18px; flex: none; color: #f08c1b; } .pk-hint a { color: #d97706; font-weight: 700; cursor: pointer; }
.pk-svcs { display: grid; gap: 8px; margin: 12px 0; } .pk-svcs > div { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--s2, #f1f3f9); }
.pk-svcs b { display: block; font-size: 14.5px; } .pk-svcs span { font-size: 12.5px; color: var(--mut, #6b7390); }
.price b s { font-size: 14px; color: var(--mut, #6b7390); font-weight: 500; }
/* ===== quote, promo code ===== */
.q-box { display: grid; gap: 6px; margin-bottom: 12px; }
.ql { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--s2, #f1f3f9); font-size: 13.5px; }
.ql span { display: flex; align-items: center; gap: 6px; } .ql svg { width: 16px; height: 16px; }
.ql s { color: var(--mut, #6b7390); } .ql.ok { background: color-mix(in srgb, #16a34a 12%, transparent); color: #15803d; }
.ql.bad { background: color-mix(in srgb, #e5384f 12%, transparent); color: #c0263b; }
.ql.tot { background: none; padding: 4px 2px; font-weight: 700; } .ql.tot b { font: 800 20px "Inter Tight", sans-serif; }
.q-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .08); color: inherit; font-size: 15px; cursor: pointer; }
.promo-tg { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #3b6ff5; font: 600 13.5px Inter, sans-serif; padding: 4px 0; cursor: pointer; } .promo-tg svg { width: 16px; height: 16px; }
.promo-in { display: none; gap: 8px; } .promo-row.open .promo-in { display: flex; }
.promo-in input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--s2, #f1f3f9); font: 600 15px Inter, sans-serif; text-transform: uppercase; color: inherit; outline: 0; box-shadow: inset 0 0 0 1px transparent; }
.promo-in input:focus { box-shadow: inset 0 0 0 1.5px #3b6ff5; } .promo-in .btn { height: 42px; }
/* ===== payments ===== */
.pm-list, .pay-list { display: grid; gap: 8px; }
.pm-opt, .pay-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 18px; background: var(--s2, #f1f3f9); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.pay-row { background: var(--s1); box-shadow: 0 8px 24px -18px rgba(30, 45, 90, .35); }
.pm-opt > svg { width: 18px; height: 18px; opacity: .5; }
.pm-t { flex: 1; min-width: 0; display: grid; gap: 2px; } .pm-t b { font-size: 14.5px; } .pm-t span { font-size: 12.5px; color: var(--mut, #6b7390); }
.svc-ic.sm { width: 34px; height: 34px; border-radius: 11px; box-shadow: none; } .svc-ic.sm svg { width: 18px; height: 18px; } .svc-ic.sm .emo { font-size: 18px; }
.st { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: var(--s2, #f1f3f9); color: var(--mut, #6b7390); white-space: nowrap; }
.st.warn { background: color-mix(in srgb, #f08c1b 15%, transparent); color: #c2410c; } .st.ac { background: color-mix(in srgb, #3b6ff5 14%, transparent); color: #2f63e6; }
.st.ok { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; } .st.bad { background: color-mix(in srgb, #e5384f 14%, transparent); color: #c0263b; }
.pay-amt { display: flex; gap: 12px; align-items: center; margin: 8px 0 12px; } .pay-amt b { display: block; font: 800 28px "Inter Tight", sans-serif; } .pay-amt span { font-size: 13px; color: var(--mut, #6b7390); }
.req-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--s2, #f1f3f9); margin-bottom: 8px; }
.req-box span { font-size: 12px; color: var(--mut, #6b7390); grid-column: 1; } .req-box b { font: 700 16px ui-monospace, Menlo, monospace; grid-column: 1; word-break: break-all; }
.req-box .btn { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 6px; } .req-box .btn svg { width: 15px; height: 15px; }
.proof-in { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, #3b6ff5 45%, transparent); color: #2f63e6; font-weight: 600; font-size: 14px; cursor: pointer; margin: 6px 0 8px; }
.proof-in svg { width: 18px; height: 18px; }
.note-in { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--s2, #f1f3f9); font: 500 15px Inter, sans-serif; color: inherit; margin-bottom: 8px; outline: 0; box-sizing: border-box; }
.note-in:focus { box-shadow: inset 0 0 0 1.5px #3b6ff5; }
.w-acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; } .w-acts .btn.line { display: inline-flex; align-items: center; gap: 6px; } .w-acts svg { width: 16px; height: 16px; }
.proof-in span { display: inline-flex; align-items: center; gap: 8px; }
/* ===== support card, ban page, language ===== */
.h-support { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border: 0; border-radius: 20px; text-align: start; font: inherit; color: inherit; cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, #3b6ff5 12%, var(--s1)), var(--s1)); box-shadow: 0 8px 24px -18px rgba(30, 45, 90, .35); }
.h-support .h-ic { width: 40px; height: 40px; padding: 9px; border-radius: 13px; background: #3b6ff5; color: #fff; flex: none; box-sizing: border-box; }
.h-support .t { flex: 1; display: grid; gap: 2px; } .h-support b { font: 700 15px "Inter Tight", sans-serif; } .h-support .t span { font-size: 12.5px; color: var(--mut, #6b7390); }
.h-support .h-arr { width: 18px; height: 18px; opacity: .5; }
.pm-opt.on { box-shadow: inset 0 0 0 2px #3b6ff5; } .pm-opt > svg { color: #3b6ff5; }
.ban-page { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: calc(24px + var(--top, 0px)) 20px calc(24px + var(--bottom, 0px));
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, #e5384f 16%, var(--bg, #f5f6fb)), var(--bg, #f5f6fb) 60%); }
.ban-card { width: min(420px, 100%); padding: 28px 22px; border-radius: 28px; background: var(--s1); box-shadow: 0 24px 60px -30px rgba(120, 20, 40, .45); text-align: center; display: grid; gap: 12px; justify-items: center; animation: banIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes banIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.ban-ic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff6b7d, #e5384f); box-shadow: 0 16px 30px -14px #e5384f; }
.ban-ic svg { width: 38px; height: 38px; }
.ban-card h1 { margin: 4px 0 0; font: 800 26px "Inter Tight", sans-serif; } .ban-sub { margin: -6px 0 4px; color: var(--mut, #6b7390); }
.ban-reason { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 16px; background: var(--s2, #f1f3f9); text-align: start; display: grid; gap: 2px; }
.ban-reason span { font-size: 12px; color: var(--mut, #6b7390); } .ban-reason b { font-size: 15px; }
.ban-note { margin: 4px 0; color: var(--mut, #6b7390); font-size: 14px; line-height: 1.45; }
.ban-card .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .ban-card .btn svg { width: 18px; height: 18px; }

/* ---------- my subscriptions / auto-renew ---------- */
.subs-grp .sub-row .t span { white-space: normal; }
.sub-row.grace .t span { color: var(--warn, #d9870f); }
.tgl { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); transition: background .2s; }
.tgl i { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s var(--spring, cubic-bezier(.2,.9,.3,1.3)); }
.tgl.on { background: var(--ac); box-shadow: none; }
.tgl.on i { transform: translateX(18px); }
.hint { font-size: 12.5px; color: var(--mut); margin: 8px 4px 0; line-height: 1.45; }
.svc-t .tag.ac { background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--ac); }

/* ---------- trial ---------- */
.trial-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 16px; text-align: start;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 16%, transparent), color-mix(in srgb, #ec4899 14%, transparent)); color: var(--fg); }
.trial-cta > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ac); color: #fff; flex: none; }
.trial-cta div { flex: 1; min-width: 0; }
.trial-cta b { display: block; font-size: 15px; }
.trial-cta small { display: block; font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.gift-btn { gap: 8px; }

/* ---------- gifts ---------- */
.gift-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 4px; padding: 26px 18px 20px; border-radius: 22px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--gc) 85%, #fff), var(--gc) 55%, color-mix(in srgb, var(--gc) 70%, #000)); box-shadow: 0 18px 40px -18px var(--gc); animation: giftIn .6s var(--spring, ease) both; }
.gc-ribbon { position: absolute; inset: 0 auto 0 50%; width: 22px; transform: translateX(-50%); background: rgba(255,255,255,.18); }
.gc-ribbon::after { content: ""; position: absolute; left: -200px; right: -200px; top: 50%; height: 22px; transform: translateY(-50%); background: rgba(255,255,255,.14); }
.gc-ic { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); animation: giftBob 2.4s ease-in-out infinite; }
.gc-ic svg { width: 26px; height: 26px; }
.gift-card b { position: relative; font: 700 20px var(--display); margin-top: 8px; }
.gc-from { position: relative; font-size: 13px; opacity: .85; }
.gc-msg { position: relative; margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.16); font-size: 14px; font-style: italic; max-width: 100%; overflow-wrap: anywhere; }
@keyframes giftIn { from { transform: scale(.92) rotate(-2deg); opacity: 0; } }
@keyframes giftBob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 0 10px; padding: 4px; border-radius: 14px; background: var(--s2); }
.seg2 button { height: 38px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--mut); }
.seg2 button.on { background: var(--s1); color: var(--fg); box-shadow: var(--sh1); }
.inp { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); color: var(--fg); font: 15px var(--text); outline: 0; resize: none; margin-bottom: 10px; }
.inp:focus { box-shadow: inset 0 0 0 1.5px var(--ac); }
.gift-refs { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.gift-refs button { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--s2); font-size: 13px; color: var(--fg); box-shadow: inset 0 0 0 1px var(--ln); }
.gift-refs button.on { background: var(--ac); color: #fff; box-shadow: none; }
.gift-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 6px; }
.gift-done h2 { margin: 8px 0 0; }
.gift-box { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ac), #ec4899); box-shadow: 0 18px 40px -16px var(--ac); animation: giftPop .7s var(--spring, ease) both; }
.gift-box svg { width: 40px; height: 40px; }
@keyframes giftPop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); } }
.gift-link { width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--s2); overflow-wrap: anywhere; font-size: 13px; }
.gift-done .actions { width: 100%; }
.gift-list { display: grid; gap: 8px; }
.gift-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--s2); }
.gift-row .gi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; background: var(--gc); }
.gift-row .t { flex: 1; min-width: 0; }
.gift-row .t b { display: block; font-size: 14.5px; }
.gift-row .t span { display: block; font-size: 12.5px; color: var(--mut); }
.gift-row .t em { display: block; font-size: 12.5px; color: var(--mut); margin-top: 3px; overflow-wrap: anywhere; }
.gift-row .gr-r { display: grid; justify-items: end; gap: 6px; }
.gift-row .st { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--mut); }
.gift-row .st.ok { color: var(--ok); } .gift-row .st.warn { color: #d9870f; }

/* ---------- help / FAQ ---------- */
.help-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); }
.help-search svg { width: 18px; height: 18px; color: var(--mut); flex: none; }
.help-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 15px var(--text); color: var(--fg); }
.help-cats { display: flex; gap: 6px; overflow-x: auto; margin: 12px -2px 4px; padding: 0 2px 2px; scrollbar-width: none; }
.help-cats button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--s2); font-size: 13.5px; font-weight: 600; color: var(--mut); }
.help-cats button.on { background: var(--fg); color: var(--bg); }
.faq { display: grid; gap: 8px; margin-top: 12px; }
.faq-i { border-radius: 16px; background: var(--s2); overflow: hidden; }
.faq-q { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; text-align: start; font-weight: 600; font-size: 14.5px; color: var(--fg); }
.faq-q .chev { margin-inline-start: auto; transition: transform .2s; flex: none; }
.faq-i.open .faq-q .chev { transform: rotate(90deg); }
.faq-ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease, ease); }
.faq-ans > * { overflow: hidden; }
.faq-i.open .faq-ans { grid-template-rows: 1fr; }
.faq-ans p { margin: 0; padding: 0 14px 10px; font-size: 14px; line-height: 1.5; color: var(--mut); white-space: pre-line; }
.faq-vote { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px; font-size: 13px; color: var(--mut); }
.faq-ans { min-height: 0; }
.faq-i:not(.open) .faq-vote { display: none; }
.faq-vote button { width: 36px; height: 32px; border-radius: 10px; background: var(--s1); font-size: 15px; }
.help-foot { margin-top: 18px; text-align: center; }
.help-foot p { margin: 0 0 10px; color: var(--mut); font-size: 13.5px; }
.help-foot .btn { gap: 8px; }
.help-foot { display: grid; gap: 10px; text-align: start; }
.help-foot p { text-align: center; margin: 0; }
.help-foot textarea { width: 100%; resize: vertical; min-height: 84px; }
.help-foot .btn svg { width: 18px; height: 18px; }
.tk-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ac-soft, rgba(59,111,245,.1)); }
.tk-card svg { width: 20px; height: 20px; flex: none; color: var(--ac); margin-top: 1px; }
.tk-card b { display: block; font-size: 14px; }
.tk-card span { display: block; font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.faq-i:not(.open) .faq-ans { display: none; }
.faq-i.open .faq-ans { display: block; animation: faqIn .22s ease both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- onboarding ---------- */
.onb { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 18px; padding: calc(var(--top, 0px) + 16px) 24px calc(var(--bottom, 0px) + 24px);
  background: radial-gradient(80% 50% at 50% 0%, var(--ac-soft), transparent 70%), var(--bg); animation: onbIn .35s ease both; }
.onb.out { opacity: 0; transition: opacity .3s; }
@keyframes onbIn { from { opacity: 0; } }
.onb-skip { justify-self: end; color: var(--mut); font-size: 14px; padding: 6px 4px; }
.onb-art { display: grid; place-items: center; }
.onb-art span { width: 140px; height: 140px; border-radius: 44px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--ac), #ec4899); box-shadow: 0 30px 60px -24px var(--ac); animation: giftPop .6s var(--spring, ease) both; }
.onb-art svg { width: 64px; height: 64px; }
.onb-t { text-align: center; }
.onb-t h2 { margin: 0 0 8px; font: 700 26px/1.2 var(--display); letter-spacing: -.02em; }
.onb-t p { margin: 0 auto; max-width: 320px; color: var(--mut); font-size: 15.5px; line-height: 1.5; }
.onb-dots { display: flex; justify-content: center; gap: 6px; }
.onb-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--ln); transition: width .25s, background .25s; }
.onb-dots i.on { width: 22px; background: var(--ac); }

/* ---------- contest ---------- */
.contest { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 20px; text-align: start; color: var(--fg);
  background: linear-gradient(120deg, color-mix(in srgb, #f59e0b 18%, var(--s1)), color-mix(in srgb, #ec4899 12%, var(--s1))); box-shadow: var(--sh1); }
.ct-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #f59e0b, #ec4899); }
.contest .t { flex: 1; min-width: 0; }
.contest .t b { display: block; font-size: 15px; }
.contest .t span { display: block; font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.ct-prize { font: 700 15px var(--display); white-space: nowrap; }
.ct-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 12px 0; }
.ct-prizes div { padding: 10px; border-radius: 14px; background: var(--s2); text-align: center; }
.ct-prizes b { display: block; font: 800 18px var(--display); }
.ct-prizes span { font-size: 12.5px; color: var(--mut); }
.ct-top { display: grid; gap: 6px; }
.ct-top div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--s2); }
.ct-top div.me { box-shadow: inset 0 0 0 1.5px var(--ac); }
.ct-top b { width: 24px; text-align: center; font-weight: 800; }
.ct-top span { flex: 1; }
.ct-top em { font-style: normal; font-size: 13px; color: var(--mut); }

/* ---------- reviews ---------- */
.stars { display: inline-flex; gap: 1px; color: var(--ln); font-size: 15px; }
.stars i { font-style: normal; }
.stars i.on { color: #f5b301; }
.stars.sm { font-size: 12px; }
.rv-link { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--s2); font-size: 13px; color: var(--fg); }
.rv-link span { color: var(--mut); }
.rv-link .chev { margin-inline-start: auto; width: 16px; height: 16px; }
.rv-sum { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.rv-sum b { font: 700 18px var(--display); }
.rv-sum span { color: var(--mut); font-size: 13px; }
.rv-form { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--s2); margin-bottom: 14px; }
.rv-form .inp { background: var(--s1); margin: 0; }
.rv-pick { display: flex; gap: 6px; justify-content: center; }
.rv-pick button { font-size: 34px; color: var(--ln); line-height: 1; transition: transform .1s, color .15s; }
.rv-pick button.on { color: #f5b301; }
.rv-pick button:active { transform: scale(1.2); }
.rv-list { display: grid; gap: 8px; }
.rv-i { padding: 12px; border-radius: 16px; background: var(--s2); }
.rv-h { display: flex; align-items: center; gap: 8px; }
.rv-h time { margin-inline-start: auto; font-size: 12px; color: var(--mut); }
.rv-i p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.rv-reply { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--s1); font-size: 13px; }
.rv-reply b { display: block; font-size: 12px; color: var(--mut); margin-bottom: 2px; }

/* stories live inside the profile card: one block instead of floating circles */
.h-bar { border-bottom: 0; background: none; margin-bottom: 6px; }
.h-prof .h-stories { margin: -16px -16px 14px; padding: 14px 16px 12px; gap: 14px; border-bottom: 1px solid var(--ln); border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 7%, transparent), transparent); }
.h-prof .h-story { width: 58px; }
.h-prof .h-story .ring { width: 54px; height: 54px; }
.h-prof .h-story .ring .h-ti { box-shadow: 0 0 0 2.5px #fff; }
[data-theme="dark"] .h-prof .h-story .ring .h-ti { box-shadow: 0 0 0 2.5px #1b2134; }
.h-prof .h-story.seen .ring { background: var(--ln); }
.h-prof .h-story .lb { font-size: 11.5px; }
.h-status { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- instructions: home entry + full page ---------- */
.h-guide { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 22px; text-align: start; color: #fff;
  background: linear-gradient(135deg, #3b7cf6 0%, #6a4ff0 100%); box-shadow: 0 14px 30px -18px rgba(59,90,240,.7); isolation: isolate; transition: transform .15s var(--ease); }
.h-guide::after { content: ""; position: absolute; z-index: -1; width: 160px; height: 160px; right: -40px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); }
.h-guide:active { transform: scale(.98); }
.hg-ic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.hg-ic svg { width: 22px; height: 22px; }
.h-guide .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.h-guide .t b { font: 700 16px var(--display); letter-spacing: -.01em; }
.h-guide .t > span { font-size: 13px; opacity: .85; }
.hg-prog { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; max-width: 180px; }
.hg-prog i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.h-guide .h-arr { color: #fff; opacity: .8; }

.reader.guide, .reader.refp { padding-bottom: calc(var(--bottom) + 96px); }
.gd-hero { position: relative; overflow: hidden; isolation: isolate; padding: 22px 20px 20px; border-radius: 26px; color: #fff; background: linear-gradient(150deg, #3b7cf6, #6a4ff0 60%, #a24be0); }
.gd-hero::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%); }
.gd-badge { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.gd-badge svg { width: 24px; height: 24px; }
.reader .gd-hero h2 { margin: 14px 0 8px; font-size: 27px; color: #fff; }
.reader .gd-hero p { font-size: 15px; line-height: 1.5; opacity: .9; }
.gd-meter { display: flex; align-items: center; gap: 10px; margin-top: 16px; font: 700 13px var(--text); }
.gd-track { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; }
.gd-track i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.reader .gd-h { font: 700 19px var(--display); letter-spacing: -.02em; margin: 26px 0 12px; }
.gd-steps { position: relative; display: grid; gap: 10px; }
.gd-step { position: relative; display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.gd-step + .gd-step::before { content: ""; position: absolute; left: 31px; top: -11px; width: 2px; height: 12px; background: var(--ln); }
.gd-n { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 14px var(--display); color: var(--ac-ink, var(--ac)); background: var(--ac-soft); }
.gd-n svg { width: 16px; height: 16px; stroke-width: 2.6; }
.gd-step.done .gd-n { background: var(--ok-soft, #e3f7ec); color: var(--ok, #18b26b); }
.gd-c { min-width: 0; }
.gd-c b { display: block; font: 700 15.5px var(--display); letter-spacing: -.01em; }
.reader .gd-c p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--mut); }
.gd-ok { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 8px; font: 700 11.5px var(--text); color: var(--ok, #18b26b); background: var(--ok-soft, #e3f7ec); }
.gd-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gd-tip { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 148px; padding: 14px; border-radius: 20px; text-align: start; color: #fff; background: var(--tb); transition: transform .15s var(--ease); }
.gd-tip:active { transform: scale(.97); }
.gd-ti { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); margin-bottom: 4px; }
.gd-ti svg { width: 19px; height: 19px; }
.gd-tip b { font: 700 15px/1.2 var(--display); letter-spacing: -.01em; }
.gd-tip > span { font-size: 12.5px; line-height: 1.35; opacity: .88; }
.gd-tip em { margin-top: auto; display: inline-flex; align-items: center; gap: 2px; font: 700 12px var(--text); font-style: normal; opacity: .9; }
.gd-tip em svg { width: 13px; height: 13px; }
.gd-help { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 14px 16px; border-radius: 20px; text-align: start; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.gd-help .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gd-help .t b { font: 700 15px var(--display); }
.gd-help .t span { font-size: 13px; color: var(--mut); }
.gd-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px calc(var(--sar) + var(--px)) calc(var(--bottom) + 14px) calc(var(--sal) + var(--px)); background: linear-gradient(transparent, var(--bg) 35%); }
.reader:not(.guide):not(.refp) .gd-cta { display: none; }
@media (min-width: 620px) { .gd-tips { grid-template-columns: repeat(3, 1fr); } .gd-cta { max-width: 560px; margin: 0 auto; } }

/* ---------- home: quick icons layout ---------- */
.h-sub { display: grid; gap: 4px; width: 100%; margin-top: 12px; padding: 11px 12px; border-radius: 16px; background: var(--s2); text-align: start; }
.h-prof-top + .h-sub { margin-top: 14px; }
.h-sub-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.h-sub-t b { display: inline-flex; align-items: center; gap: 7px; font: 700 14.5px var(--display); letter-spacing: -.01em; min-width: 0; }
.h-sub-t b svg { width: 16px; height: 16px; color: #3b6ff5; }
.h-sub-t > span { font-size: 12.5px; color: var(--mut); white-space: nowrap; }
.h-sub .h-prog { display: block; margin: 4px 0 2px; }
.h-sub .h-prog i { display: block; }
.h-sub-l2 { font-size: 12px; color: var(--mut); }
.h-sub.empty .h-sub-t { flex-direction: column; align-items: flex-start; gap: 2px; }
.h-live { width: 8px; height: 8px; border-radius: 50%; background: #18b26b; box-shadow: 0 0 0 3px #d8f5e6; flex: none; }
.h-prof .h-acts { margin-top: 12px; }
.h-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0 4px; }
.h-q { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 11.5px var(--text); color: var(--fg); min-width: 0; }
.h-q span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-q i { position: relative; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-style: normal; color: #3b6ff5;
  background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln), 0 10px 20px -16px rgba(40,60,120,.55); transition: transform .15s var(--ease); }
.h-q:active i { transform: scale(.92); }
.h-q i svg { width: 23px; height: 23px; }
.h-q.a i { color: #fff; background: linear-gradient(140deg, #3b7cf6, #6a4ff0); box-shadow: 0 12px 22px -14px rgba(59,90,240,.8); }
.h-q.r i { color: #e5384f; background: #fff1f3; box-shadow: inset 0 0 0 1px #ffd0d7; }
[data-theme="dark"] .h-q.r i { background: rgba(229,56,79,.14); box-shadow: inset 0 0 0 1px rgba(229,56,79,.3); }
.h-q i em { position: absolute; top: -6px; inset-inline-end: -10px; padding: 2px 6px; border-radius: 8px; font: 800 10px var(--text); font-style: normal; color: #fff; background: #f39a1e; box-shadow: 0 0 0 2px var(--bg); }
.h-reflink { margin-top: 10px; padding: 12px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px #f3e3cd; }
[data-theme="dark"] .h-reflink { box-shadow: inset 0 0 0 1px rgba(240,140,27,.25); }
.h-rl-k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); }
.h-rl-k svg { width: 15px; height: 15px; color: #e47b0c; }
.h-rl-k b { color: #e47b0c; }
.h-rl-k [data-act] { color: var(--fg); font-weight: 600; cursor: pointer; }
.h-reflink .h-ref-row { margin-top: 8px; }
.h-row { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 18px; text-align: start; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.h-row .t { flex: 1; min-width: 0; display: grid; gap: 1px; } .h-row .t b { font: 700 14.5px var(--display); } .h-row .t span { font-size: 12.5px; color: var(--mut); }

/* compact promo banner: one row — text left, button right */
.pr-card { min-height: 0; padding: 12px 12px 12px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; }
.pr-card b { grid-column: 1; min-width: 0; max-width: none; font-size: 15px; overflow-wrap: anywhere; }
.pr-card .tx { grid-column: 1; max-width: none; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-height: 1.35em; }
.pr-card .chip { grid-column: 2; grid-row: 1 / 3; margin: 0; height: 32px; padding: 0 9px 0 12px; }
.pr-card .art { width: 90px; height: 90px; right: -20px; top: -36px; }
.pr-card .art.a2 { width: 60px; height: 60px; right: 90px; bottom: -40px; }

/* ================= motion layer (motion.js) ================= */
.mx-ink { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, currentColor 0%, transparent 62%); opacity: .16; transform: scale(0); animation: mxInk .55s var(--ease) forwards; z-index: 0; }
.mx-ink.out { opacity: 0; transition: opacity .4s ease; }
@keyframes mxInk { to { transform: scale(1); } }
.h-btn .mx-ink, .pr-card .mx-ink, .h-q.a .mx-ink, .gd-tip .mx-ink, .fab .mx-ink, .btn:not(.line):not(.ghost) .mx-ink { background: radial-gradient(circle, #fff 0%, transparent 62%); opacity: .3; }
/* tilt cards get a moving light */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.28), transparent 55%); mix-blend-mode: soft-light; }
.gd-hero, .gd-tip { position: relative; }
/* promo: periodic shine sweep */
.pr-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-18deg); animation: mxShine 5.5s ease-in-out 1.2s infinite; }
@keyframes mxShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
/* stories: unseen rings rotate */
.h-story:not(.seen) .ring { position: relative; isolation: isolate; background: none; }
.h-story:not(.seen) .ring::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 200deg, #3b7cf6, #7b5cf0, #ff6aa8, #ffa53a, #3b7cf6); animation: rot 4s linear infinite; }
.h-story:not(.seen):active .ring::before { animation-duration: .8s; }
/* quick icons: badge breathes, guide icon glows */
.h-q i em { animation: mxBadge 2.4s var(--ease) infinite; }
@keyframes mxBadge { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } }
.h-q.a i::before { content: ""; position: absolute; inset: -4px; border-radius: 21px; border: 2px solid #6a8bff; opacity: 0; animation: mxHalo 2.8s ease-out 1s infinite; }
@keyframes mxHalo { 0% { opacity: .55; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.18); } }
.h-q i svg { transition: transform .35s var(--spring); } .h-q:hover i svg { transform: translateY(-2px) rotate(-6deg); }
/* subscription bar: flowing light */
.h-prog i { position: relative; overflow: hidden; }
.h-prog i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: mxFlow 2.6s ease-in-out 1s infinite; }
@keyframes mxFlow { 60%, 100% { transform: translateX(100%); } }
.h-live { animation: mxLive 1.8s ease-in-out infinite; }
@keyframes mxLive { 50% { box-shadow: 0 0 0 6px rgba(24,178,107,.12); } }
/* buttons: springy press */
.h-btn, .btn, .h-q i, .gr:not(.static), .pr-card, .gd-tip, .h-row, .h-sub { transition: transform .35s var(--spring), filter .2s; }
.h-btn:active, .btn:active, .h-row:active, .h-sub:active { transform: scale(.96); }
.h-btn.green { background-size: 200% 100%; }
/* counting numbers */
.mx-counting { font-variant-numeric: tabular-nums; }
/* confetti */
.mx-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
/* pull to refresh */
.mx-pull { position: fixed; z-index: 30; left: 50%; top: 2px; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; display: grid; place-items: center;
  background: var(--s1); box-shadow: 0 8px 22px -10px rgba(30,40,90,.45), inset 0 0 0 1px var(--ln); opacity: 0; pointer-events: none;
  transform-origin: top center; transform: scale(calc(.6 + var(--d, 0) * .4)); transition: opacity .2s; }
.mx-pull.on { opacity: 1; }
.mx-pull svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.mx-pull circle { fill: none; stroke-width: 2.8; }
.mx-pull .mx-track { stroke: var(--ln); }
.mx-pull .mx-progress { stroke: var(--ac); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--offset, 100); }
.mx-pull.spin .mx-progress { stroke-dasharray: 72 28; stroke-dashoffset: 0; }
.mx-pull.spin svg { animation: rot .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mx-pull.spin svg { animation: none; } }
/* sheet follows the finger */
.sheet { will-change: transform; }
/* toast springs in */
.toast { transition: transform .55s var(--spring); }
@media (prefers-reduced-motion: reduce) {
  .pr-card::before, .h-story .ring::before, .h-q i em, .h-q.a i::before, .h-prog i::after, .h-live { animation: none !important; }
}

/* ---------- referral page ---------- */
.rp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 20px 18px 16px; border-radius: 26px; color: #fff; background: linear-gradient(145deg, #ff8a3d, #ff5a8a 60%, #c04bd8); box-shadow: 0 18px 34px -20px rgba(255,90,138,.9); }
.rp-hero::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.32), transparent 70%); }
.rp-lbl { font: 700 12px var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.rp-big { font: 800 44px/1.05 var(--display); letter-spacing: -.04em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chips span { padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.18); font-size: 12px; } .rp-chips b { font-weight: 800; }
.rp-link { display: flex; gap: 8px; margin-top: 14px; }
.rp-link .h-linkbox { flex: 1; min-width: 0; margin: 0; background: rgba(255,255,255,.95); color: #1c2238; box-shadow: none; }
.rp-share { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #fff; color: #ff5a6e; }
.rp-share svg { width: 20px; height: 20px; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-side { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.rp-side.you { box-shadow: inset 0 0 0 1.5px #ffd3b0; } .rp-side.fr { box-shadow: inset 0 0 0 1.5px #cfdcff; }
.rp-who { display: flex; align-items: center; gap: 6px; font: 800 12px var(--text); letter-spacing: .04em; text-transform: uppercase; }
.rp-side.you .rp-who { color: #e86a1c; } .rp-side.fr .rp-who { color: #3b6ff5; }
.rp-who svg { width: 16px; height: 16px; }
.rp-li b { display: block; font: 700 14px/1.25 var(--display); letter-spacing: -.01em; } .rp-li span { font-size: 12px; color: var(--mut); }
.rp-tier { margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(120deg, #fff6e9, #fff); box-shadow: inset 0 0 0 1px #fde3c0; }
.rp-tier > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .rp-tier span { color: var(--mut); white-space: nowrap; }
.rp-bar { height: 7px; border-radius: 4px; background: #fbe3c4; margin-top: 8px; overflow: hidden; } .rp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffa53a, #ff5a8a); }
.rp-rules { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--s2); }
.reader .rp-rules p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mut); } .reader .rp-rules p + p { margin-top: 6px; }
.rp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp-k { display: grid; gap: 1px; padding: 10px 12px; border-radius: 16px; text-align: start; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); transition: transform .3s var(--spring), box-shadow .2s; }
.rp-k b { font: 800 20px var(--display); } .rp-k span { font-size: 11.5px; color: var(--mut); }
.rp-k.ok b { color: #18a65f; } .rp-k.warn b { color: #e8890c; } .rp-k.ac b { color: #3b6ff5; }
.rp-k.on { box-shadow: inset 0 0 0 2px var(--ac); }
.rp-list { display: grid; gap: 8px; margin-top: 10px; }
.rp-f { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); animation: rise .45s var(--ease) both; }
.rp-f .t { flex: 1; min-width: 0; display: grid; gap: 3px; } .rp-f .t b { font-size: 14.5px; } .rp-f .t b .mut { font-weight: 500; font-size: 12.5px; }
.rp-f .t > span { font-size: 12.5px; color: var(--mut); }
.rp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.rp-st { padding: 2px 8px; border-radius: 8px; font: 700 11px var(--text); background: var(--s2); color: var(--mut); }
.rp-st.ok { background: #e3f7ec; color: #12935a; } .rp-st.warn { background: #fff1dc; color: #c8740a; } .rp-st.ac { background: #eaf1ff; color: #3b6ff5; }
[data-theme="dark"] .rp-st.ok { background: rgba(24,178,107,.16); } [data-theme="dark"] .rp-st.warn { background: rgba(240,140,27,.16); } [data-theme="dark"] .rp-st.ac { background: rgba(59,111,245,.18); }
.rp-m { text-align: end; display: grid; gap: 2px; } .rp-m b { font: 800 15px var(--display); } .rp-m b.plus { color: #18a65f; } .rp-m span { font-size: 11px; color: #c8740a; }
.rp-hist { display: grid; gap: 2px; padding: 4px 12px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.rp-h { display: flex; gap: 10px; align-items: center; padding: 10px 0; } .rp-h + .rp-h { border-top: 1px solid var(--ln2, var(--ln)); }
.rp-h .t { flex: 1; min-width: 0; display: grid; } .rp-h .t b { font-size: 13.5px; } .rp-h .t span { font-size: 12px; color: var(--mut); }
.rp-hi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #e3f7ec; color: #12935a; flex: none; }
.rp-hi.hold { background: #fff1dc; color: #c8740a; } .rp-hi svg { width: 15px; height: 15px; }
.rp-h .amt.plus { color: #18a65f; font-weight: 800; }
@media (max-width: 360px) { .rp-two { grid-template-columns: 1fr; } }

/* how it works: two full-width cards, value badge + text per row */
.rp-two { grid-template-columns: 1fr; gap: 10px; }
.rp-side { gap: 0; padding: 0; overflow: hidden; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--ln), 0 10px 24px -20px rgba(40,60,120,.4); }
.rp-side.you, .rp-side.fr { box-shadow: inset 0 0 0 1px var(--ln), 0 10px 24px -20px rgba(40,60,120,.4); }
.rp-who { display: flex; align-items: center; gap: 9px; padding: 12px 14px; font: 800 12px var(--text); letter-spacing: .05em; text-transform: uppercase; }
.rp-side.you .rp-who { color: #d9631a; background: linear-gradient(90deg, #fff1e4, transparent); }
.rp-side.fr .rp-who { color: #3b6ff5; background: linear-gradient(90deg, #ebf1ff, transparent); }
[data-theme="dark"] .rp-side.you .rp-who { background: linear-gradient(90deg, rgba(255,138,61,.14), transparent); }
[data-theme="dark"] .rp-side.fr .rp-who { background: linear-gradient(90deg, rgba(59,111,245,.16), transparent); }
.rp-wi { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.rp-side.you .rp-wi { background: linear-gradient(140deg, #ff9a4d, #ff5a8a); } .rp-side.fr .rp-wi { background: linear-gradient(140deg, #3b7cf6, #6a4ff0); }
.rp-wi svg { width: 15px; height: 15px; }
.rp-li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.rp-li + .rp-li { border-top: 1px solid var(--ln); }
.rp-v { flex: none; min-width: 62px; height: 34px; padding: 0 8px; border-radius: 11px; display: grid; place-items: center; font: 800 15px var(--display); letter-spacing: -.02em; white-space: nowrap; }
.rp-side.you .rp-v { color: #d9631a; background: #fff1e4; } .rp-side.fr .rp-v { color: #3b6ff5; background: #ebf1ff; }
[data-theme="dark"] .rp-side.you .rp-v { background: rgba(255,138,61,.14); } [data-theme="dark"] .rp-side.fr .rp-v { background: rgba(59,111,245,.16); }
.rp-li > div { min-width: 0; display: grid; gap: 1px; }
.rp-li b { font: 650 14px/1.3 var(--display); letter-spacing: -.01em; } .rp-li span:not(.rp-v) { font-size: 12px; color: var(--mut); }

/* referral page: level badge, filter pills, compact friend rows */
.rp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rp-lvl { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.22); font: 800 12px var(--text); white-space: nowrap; }
.rp-tier small { display: block; margin-top: 6px; font-size: 12px; color: var(--mut); }
.rp-tier.max { background: linear-gradient(120deg, #fff4d6, #fff); }
.rp-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--px)); padding: 2px var(--px) 4px; }
.rp-pills::-webkit-scrollbar { display: none; }
.rp-p { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; font: 600 13px var(--text); color: var(--fg);
  background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); transition: background .2s, color .2s, transform .3s var(--spring); }
.rp-p b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font: 800 12px var(--text); background: var(--s2); color: var(--mut); }
.rp-p.ok b { background: #e3f7ec; color: #12935a; } .rp-p.warn b { background: #fff1dc; color: #c8740a; } .rp-p.ac b { background: #eaf1ff; color: #3b6ff5; }
.rp-p:active { transform: scale(.95); }
.rp-p.on { background: var(--fg); color: var(--bg); box-shadow: none; } .rp-p.on b { background: rgba(255,255,255,.2); color: inherit; }
.rp-list { gap: 0; margin-top: 8px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); overflow: hidden; }
.rp-list .empty { padding: 26px 16px; }
.rp-f { position: relative; border-radius: 0; box-shadow: none; background: none; padding: 12px 14px; align-items: center; }
.rp-f + .rp-f { border-top: 1px solid var(--ln); }
.rp-dot { position: absolute; left: 44px; top: 42px; width: 11px; height: 11px; border-radius: 50%; background: #c3c9d8; box-shadow: 0 0 0 2px var(--s1); }
.rp-dot.ok { background: #18b26b; } .rp-dot.warn { background: #f39a1e; } .rp-dot.ac { background: #3b6ff5; }
.rp-s { font: 700 12px var(--text) !important; color: var(--mut) !important; } .rp-s.ok { color: #12935a !important; } .rp-s.warn { color: #c8740a !important; } .rp-s.ac { color: #3b6ff5 !important; }

/* ================= form fields: visible on any background ================= */
:root { --field: #ffffff; --field-ln: rgba(22, 28, 52, .16); --field-ln-h: rgba(22, 28, 52, .28); }
[data-theme="dark"] { --field: #151b2c; --field-ln: rgba(255, 255, 255, .15); --field-ln-h: rgba(255, 255, 255, .28); }
.inp, .help-search, .promo-in input, .wd-in, .amt-field, #wdDst, #giftUser, .sheet input[type=text], .sheet input:not([type]), .sheet textarea {
  background: var(--field) !important; box-shadow: inset 0 0 0 1px var(--field-ln), 0 1px 2px rgba(16, 24, 40, .06) !important; border: 0 !important; }
.inp:focus, .help-search:focus-within, .promo-in input:focus, .sheet input:focus, .sheet textarea:focus {
  box-shadow: inset 0 0 0 1.5px var(--ac), 0 0 0 4px var(--ac-soft) !important; outline: 0; }
.help-search input, .sheet .help-search input:focus { background: none !important; box-shadow: none !important; }
.inp::placeholder, .sheet input::placeholder, .sheet textarea::placeholder { color: color-mix(in srgb, var(--mut) 85%, transparent); }

/* ================= GIFTS ================= */
/* --- the box (sizes: sm preview, md done, lg show) --- */
.gx-box { --w: 170px; --rb: color-mix(in srgb, #fff 72%, var(--a)); position: relative; width: var(--w); height: calc(var(--w) * .92); display: block; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gx-box.md { --w: 112px; } .gx-box.sm { --w: 52px; cursor: default; }
.gx-base { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; border-radius: calc(var(--w) * .09); background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: inset 0 -10px 22px -8px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.25), 0 18px 34px -16px var(--b); overflow: hidden; }
.gx-base::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 18%; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0,0,0,.08), var(--rb) 20%, #fff 50%, var(--rb) 80%, rgba(0,0,0,.08)); }
.gx-base::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%); }
.gx-lid { position: absolute; left: -6%; right: -6%; top: 10%; height: 26%; border-radius: calc(var(--w) * .07); z-index: 2; transform-origin: 30% 100%;
  background: linear-gradient(170deg, color-mix(in srgb, #fff 18%, var(--a)), var(--a) 60%, var(--b)); box-shadow: 0 8px 14px -6px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.3); }
.gx-lid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; transform: translateX(-50%); background: linear-gradient(90deg, var(--rb), #fff 50%, var(--rb)); }
.gx-bow { position: absolute; left: 50%; bottom: 92%; width: 64%; height: 70%; transform: translateX(-50%); }
.gx-bow b { position: absolute; bottom: 0; width: 50%; height: 100%; border: calc(var(--w) * .055) solid var(--rb); border-radius: 60% 60% 45% 45%; background: color-mix(in srgb, #fff 25%, transparent); box-shadow: inset 0 -4px 6px rgba(0,0,0,.08); }
.gx-bow b:first-child { left: 2%; transform: rotate(-28deg); transform-origin: 100% 100%; }
.gx-bow b:last-child { right: 2%; transform: rotate(28deg); transform-origin: 0 100%; }
.gx-bow::after { content: ""; position: absolute; left: 50%; bottom: -10%; width: 26%; height: 34%; transform: translateX(-50%); border-radius: 40%; background: radial-gradient(circle at 35% 30%, #fff, var(--rb) 70%); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.gx-box.bob { animation: gxBob 2.6s ease-in-out infinite; }
@keyframes gxBob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
.gx-box.shake { animation: gxShake .45s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes gxShake { 10%, 90% { transform: rotate(-4deg) scale(1.02); } 20%, 80% { transform: rotate(7deg) scale(1.04); } 30%, 50%, 70% { transform: rotate(-9deg) scale(1.05); } 40%, 60% { transform: rotate(9deg) scale(1.05); } }

/* --- full-screen show --- */
.gx { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; gap: 10px; color: #fff; overflow: hidden;
  padding: calc(var(--top, 0px) + 18px) calc(var(--sar, 0px) + 20px) calc(var(--bottom, 0px) + 22px) calc(var(--sal, 0px) + 20px);
  background: radial-gradient(120% 70% at 50% 42%, color-mix(in srgb, var(--a) 60%, #120f2a), #0b0a18 72%); opacity: 0; transition: opacity .35s ease; }
.gx.on { opacity: 1; } .gx.out { opacity: 0; transform: scale(1.03); transition: opacity .4s ease, transform .4s ease; }
.gx-x { position: absolute; top: calc(var(--top, 0px) + 14px); right: calc(var(--sar, 0px) + 14px); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); z-index: 3; }
.gx-x svg { width: 18px; height: 18px; }
.gx-glow { position: absolute; left: 50%; top: 44%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 70%, #fff) 0%, transparent 60%); opacity: .35; filter: blur(10px); animation: gxPulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes gxPulse { 50% { opacity: .55; transform: scale(1.06); } }
.gx-rays { position: absolute; left: 50%; top: 44%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none; opacity: .08; transform: scale(.6);
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.9) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%);
  animation: rot 24s linear infinite; transition: opacity .6s ease, transform 1.2s cubic-bezier(.22,1,.36,1); }
.gx.open .gx-rays { opacity: .38; transform: scale(1); }
.gx-spark { position: absolute; inset: 0; pointer-events: none; }
.gx-spark i { position: absolute; left: var(--x); bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px color-mix(in srgb, var(--a) 60%, #fff); opacity: 0;
  animation: gxRise 4.5s linear var(--d) infinite; }
.gx-spark i:nth-child(3n) { width: 3px; height: 3px; animation-duration: 6s; } .gx-spark i:nth-child(4n) { animation-duration: 3.6s; }
@keyframes gxRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-105vh) scale(1.1); opacity: 0; } }
.gx-head { z-index: 2; margin-top: 8px; }
.gx-from { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); font-size: 13.5px; }
.gx-from img, .gx-from i { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 800 13px var(--display); font-style: normal; background: linear-gradient(140deg, var(--a), var(--b)); }
.gx-stage { position: relative; z-index: 2; align-self: center; width: 100%; max-width: 380px; height: 330px; display: grid; place-items: center; }
.gx-stage .gx-box { position: absolute; left: 50%; top: 52%; margin: calc(var(--w) * -.46) 0 0 calc(var(--w) * -.5); filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.gx-shadow { position: absolute; left: 50%; top: calc(52% + 92px); width: 150px; height: 18px; margin-left: -75px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(8px); transition: opacity .6s; }
.gx-item { position: relative; z-index: 3; opacity: 0; transform: translateY(70px) scale(.3); pointer-events: none; }
.gx.open .gx-item { animation: gxItem 1s cubic-bezier(.34,1.4,.5,1) .38s forwards; }
@keyframes gxItem { 0% { opacity: 0; transform: translateY(70px) scale(.3) rotate(-8deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(-6px) scale(1) rotate(0); } }
.gx.open .gx-lid { animation: gxLid .85s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes gxLid { 0% { transform: none; } 30% { transform: translateY(-40px) rotate(-8deg); } 100% { transform: translate(-90px, -260px) rotate(-48deg); opacity: 0; } }
.gx.open .gx-base { animation: gxBase .7s ease-in .55s forwards; } .gx.open .gx-box { animation: none; cursor: default; }
@keyframes gxBase { to { transform: translateY(70px) scale(.85); opacity: 0; } }
.gx.open .gx-shadow { opacity: 0; }
.gx.open::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, #fff, transparent 55%); opacity: 0; animation: gxFlash .7s ease-out .3s; pointer-events: none; z-index: 4; }
@keyframes gxFlash { 20% { opacity: .85; } 100% { opacity: 0; } }
.gx-text { z-index: 2; text-align: center; min-height: 72px; }
.gx-text h2 { margin: 0; font: 800 28px/1.15 var(--display); letter-spacing: -.03em; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.gx-text p { margin: 6px 0 0; font-size: 15px; opacity: .8; }
.gx.told .gx-text h2 { animation: gxPop .6s cubic-bezier(.34,1.4,.5,1); }
@keyframes gxPop { from { transform: scale(.85); opacity: 0; } }
.gx-after { z-index: 2; width: 100%; max-width: 420px; display: grid; gap: 10px; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.gx.done .gx-after { opacity: 1; transform: none; pointer-events: auto; }
.gx-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.gx-note span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.16); } .gx-note svg { width: 15px; height: 15px; }
.gx-note p { margin: 3px 0 0; font: italic 500 15.5px/1.45 var(--text); min-height: 1.45em; }
.gx-btns { display: grid; gap: 8px; }
.gx-btns .btn { height: 50px; } .gx-btns .btn:not(.line) { background: #fff; color: #1c1f33; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.gx-btns .btn.line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); background: rgba(255,255,255,.06); }

/* --- what is inside --- */
.gi-core { display: grid; place-items: center; }
.gi-plan { width: 200px; display: grid; justify-items: center; gap: 6px; padding: 20px 16px 16px; border-radius: 26px; color: #1c1f33; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.6); }
.gi-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, #fff 20%, var(--pc)), var(--pc)); box-shadow: 0 14px 26px -12px var(--pc); }
.gi-ic svg { width: 38px; height: 38px; } .gi-ic.sm { width: 40px; height: 40px; border-radius: 13px; } .gi-ic.sm svg { width: 22px; height: 22px; }
.gi-plan b { font: 800 19px/1.2 var(--display); text-align: center; } .gi-plan small { font-size: 12.5px; color: #6b7290; text-align: center; }
.gi-coin { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 0; color: #7a4a00;
  background: radial-gradient(circle at 32% 28%, #fff6c9, #ffd45a 38%, #f0a51e 70%, #c97d06); box-shadow: inset 0 0 0 8px rgba(255,255,255,.35), inset 0 -10px 20px rgba(150,80,0,.35), 0 30px 50px -18px rgba(0,0,0,.6);
  animation: giSpin 3.2s ease-in-out infinite; }
.gi-coin span { font: 900 40px/1 var(--display); letter-spacing: -.03em; text-shadow: 0 2px 0 rgba(255,255,255,.5); } .gi-coin small { font: 800 11.5px var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
@keyframes giSpin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(18deg) scale(1.03); } }
.gi-ticket { position: relative; width: 230px; display: grid; justify-items: center; gap: 2px; padding: 22px 18px 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff4f8b 60%, #b84bdc); box-shadow: 0 30px 60px -22px rgba(0,0,0,.6);
  -webkit-mask: radial-gradient(circle 13px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.gi-ticket::before { content: "СЕРТИФИКАТ"; font: 800 10.5px var(--text); letter-spacing: .18em; opacity: .85; }
.gi-ticket b { font: 900 54px/1 var(--display); letter-spacing: -.04em; } .gi-ticket span { font: 700 13.5px var(--text); } .gi-ticket small { font-size: 12px; opacity: .85; }
.gi-polaroid { width: 210px; padding: 10px 10px 34px; border-radius: 6px; background: #fff; transform: rotate(-4deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.gi-polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.gi-core.with-photo { position: absolute; right: -36px; bottom: -40px; transform: scale(.58) rotate(6deg); transform-origin: 100% 100%; }

/* --- compose sheet --- */
.gk-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.gk-tabs button { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; font: 700 12.5px var(--text); color: var(--fg); background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); transition: transform .3s var(--spring), box-shadow .2s, background .2s; }
.gk-tabs i { font-size: 22px; font-style: normal; }
.gk-tabs button.on { background: var(--s1); box-shadow: inset 0 0 0 2px var(--ac), 0 10px 20px -14px var(--ac); }
.gk-tabs button:active { transform: scale(.95); }
.gk-prev { margin-bottom: 12px; }
.gk-mini { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; height: 110px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--a) 55%, #1a1638), #120f22); }
.gk-mini .gx-box { animation: gxBob 2.6s ease-in-out infinite; } .gk-arrow { color: rgba(255,255,255,.5); font-size: 20px; }
.gk-inside { transform: scale(.42); width: 70px; height: 80px; display: grid; place-items: center; }
.gk-thumb { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 2px solid #fff; transform: rotate(6deg); }
.gk-plans { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--px)) 12px; padding: 2px var(--px) 4px; }
.gk-plans::-webkit-scrollbar { display: none; }
.gk-plans button { flex: none; width: 128px; display: grid; justify-items: start; gap: 4px; padding: 12px; border-radius: 16px; text-align: start; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); transition: box-shadow .2s, transform .3s var(--spring); }
.gk-plans button.on { box-shadow: inset 0 0 0 2px var(--pc), 0 10px 22px -14px var(--pc); } .gk-plans button:active { transform: scale(.96); }
.gk-plans b { font: 700 13.5px/1.2 var(--display); } .gk-plans small { font-size: 11.5px; color: var(--mut); }
.gk-plans .gi-ic.sm { background: linear-gradient(145deg, color-mix(in srgb, #fff 20%, var(--pc)), var(--pc)); }
.gk-amts { display: flex; flex-wrap: wrap; gap: 6px; }
.gk-amts button { height: 40px; padding: 0 16px; border-radius: 12px; font: 800 15px var(--display); background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.gk-amts button.on { background: var(--fg); color: var(--bg); box-shadow: none; }
.gk-amt-in { display: flex; align-items: center; height: 40px; padding: 0 0 0 12px; border-radius: 12px; background: var(--field, var(--s1)); box-shadow: inset 0 0 0 1px var(--field-ln, var(--ln)); flex: 1 1 90px; }
.gk-amt-in span { color: var(--mut); font-weight: 700; } .gk-amt-in input { width: 100%; height: 100%; border: 0; background: none; outline: 0; padding: 0 10px 0 4px; font: 700 15px var(--text); color: var(--fg); }
.gk-disc { display: grid; gap: 3px; padding: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #ff8a3d, #ff4f8b 60%, #b84bdc); margin-bottom: 4px; }
.gk-disc b { font: 800 17px var(--display); } .gk-disc span { font-size: 12.5px; opacity: .92; }
.gk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.gk-l { font: 600 13.5px var(--text); color: var(--mut); }
.gk-themes { display: flex; gap: 7px; }
.gk-themes button { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, var(--a), var(--b)); box-shadow: 0 0 0 2px var(--s1), 0 0 0 3px transparent; transition: box-shadow .2s, transform .3s var(--spring); }
.gk-themes button.on { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px var(--a); transform: scale(1.1); }
.gk-addph { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; font: 700 13px var(--text); color: var(--ac); border: 1.5px dashed color-mix(in srgb, var(--ac) 45%, var(--ln)); cursor: pointer; }
.gk-addph svg { width: 16px; height: 16px; }
.gk-ph { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mut); }
.gk-ph img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.gk-ph button { width: 26px; height: 26px; border-radius: 50%; background: var(--s2); color: var(--mut); font-size: 16px; }
.gk-ph.busy .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ln); border-top-color: var(--ac); animation: rot .8s linear infinite; }
.gift-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 34px; }
.gift-done .gx-box { margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .gx-box.bob, .gi-coin, .gx-spark i, .gx-rays, .gx-glow { animation: none !important; } }
.gx-head { max-width: calc(100% - 52px); justify-self: start; } .gx-from { max-width: 100%; } .gx-from b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx.open .gx-rays { opacity: .26; }

/* ================= invite card & recap ================= */
.ic-prev { display: grid; place-items: center; padding: 14px; border-radius: 22px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); }
.ic-prev canvas { width: auto; max-width: 100%; max-height: 46vh; border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(20,24,60,.6); }
.ic-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.ic-ctrl .seg2 { flex: 1 1 200px; margin: 0; }
.ic-acts { display: grid; gap: 8px; }
.rp-card { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; margin-top: 10px; border-radius: 14px; color: #fff; font: 700 13.5px var(--text); background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.rp-card svg { width: 17px; height: 17px; }
/* recap slides (inside the story viewer) */
.rc-big { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.rc-big b { font: 900 clamp(64px, 22vw, 108px)/1 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rc-big span { font: 800 24px var(--display); opacity: .9; }
.rc-art { font-size: 72px; line-height: 1; margin: 8px 0 10px; animation: rcArt 2.4s ease-in-out infinite; }
@keyframes rcArt { 50% { transform: translateY(-8px) rotate(-6deg); } }
.rc-svc { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; margin: 6px 0 14px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, #fff 22%, var(--sc)), var(--sc)); box-shadow: 0 20px 40px -16px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.25); }
.rc-svc svg { width: 50px; height: 50px; }
.rc-ring { width: 132px; height: 132px; border-radius: 50%; margin: 4px 0 6px; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.18) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); animation: rcRing 1.2s cubic-bezier(.22,1,.36,1); }
@keyframes rcRing { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rc-grid div { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.14); }
.rc-grid b { display: block; font: 900 26px var(--display); letter-spacing: -.02em; } .rc-grid span { font-size: 12.5px; opacity: .88; }
.rc-acts { display: grid; gap: 8px; margin-top: 16px; } .rc-acts .sv-cta { margin-top: 0; } .sv-cta.ghost { background: rgba(255,255,255,.16); color: #fff; }

/* ================= stage 3: freeze, certificate, documents, split payment ================= */
.fz-btn { flex: none; height: 32px; min-width: 32px; padding: 0 9px; border-radius: 10px; font: 700 12.5px var(--text); color: #2b8ef0; background: #e8f3ff; box-shadow: inset 0 0 0 1px #cfe6ff; margin-inline-end: 8px; }
.fz-btn.on { color: #fff; background: linear-gradient(140deg, #5ab7ff, #2b8ef0); box-shadow: none; }
[data-theme="dark"] .fz-btn:not(.on) { background: rgba(43,142,240,.16); box-shadow: none; }
.sub-row.frozen .qi { filter: saturate(.3); } .sub-row.frozen .t span { color: #2b8ef0; }
.fz-art { height: 110px; display: grid; place-items: center; margin: 6px 0 12px; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #e8f6ff, #cfe8ff 60%, #b9dcff); overflow: hidden; position: relative; }
.fz-art::before, .fz-art::after { content: "❄"; position: absolute; color: #fff; font-size: 22px; opacity: .8; animation: fzSnow 4s linear infinite; left: 20%; top: -20px; }
.fz-art::after { left: 74%; font-size: 16px; animation-delay: 1.6s; }
@keyframes fzSnow { to { transform: translateY(150px) rotate(180deg); } }
.fz-art span { font-size: 56px; animation: rcArt 3s ease-in-out infinite; }
[data-theme="dark"] .fz-art { background: radial-gradient(circle at 50% 40%, #1d3550, #142538 70%); }
.fz-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.fz-days button { display: grid; gap: 0; padding: 9px 4px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); transition: transform .3s var(--spring); }
.fz-days b { font: 800 19px var(--display); } .fz-days small { font-size: 11px; color: var(--mut); }
.fz-days button.on { background: linear-gradient(140deg, #5ab7ff, #2b8ef0); color: #fff; box-shadow: 0 10px 20px -12px #2b8ef0; } .fz-days button.on small { color: rgba(255,255,255,.85); }
.fz-days button:active { transform: scale(.94); }
.fz-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fz-sum div { padding: 10px 12px; border-radius: 14px; background: var(--s2); } .fz-sum span { display: block; font-size: 12px; color: var(--mut); } .fz-sum b { font: 700 15px var(--display); }
.w-cert { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 18px; text-align: start; background: linear-gradient(120deg, #fff6e9, var(--s1) 70%); box-shadow: inset 0 0 0 1px #fde3c0; }
[data-theme="dark"] .w-cert { background: var(--s1); box-shadow: inset 0 0 0 1px rgba(240,140,27,.3); }
.w-cert > span:first-child { font-size: 24px; } .w-cert .t { flex: 1; display: grid; } .w-cert .t b { font: 700 14.5px var(--display); } .w-cert .t span { font-size: 12.5px; color: var(--mut); }
.w-cert .chev { width: 16px; height: 16px; color: var(--dim); }
.cert-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #ff8a3d, #ff4f8b 60%, #b84bdc); box-shadow: 0 18px 34px -20px rgba(255,79,139,.9);
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.cert-card + .actions { margin-block-start: 16px; }
.cert-card > span { font-size: 30px; padding-left: 8px; }
.cert-in { flex: 1; min-width: 0; height: 52px; border: 0; border-radius: 14px; padding: 0 14px; background: rgba(255,255,255,.95) !important; color: #1c1f33; font: 800 20px var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; outline: 0; box-shadow: none !important; }
.lnk-b { display: inline-flex; align-items: center; gap: 5px; color: var(--ac) !important; font-weight: 700; } .lnk-b svg { width: 14px; height: 14px; }
.tx.has-doc { cursor: pointer; } .tx.has-doc:active { background: var(--s2); }
.amt .doc-l { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 2px; font: 600 11px var(--text); color: var(--ac); } .amt .doc-l svg { width: 11px; height: 11px; }
.st-opts { display: grid; gap: 8px; }
.st-opts button { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; border-radius: 16px; text-align: start; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.st-opts b { font: 700 15px var(--display); } .st-opts span { grid-column: 1; font-size: 12.5px; color: var(--mut); } .st-opts .chev { grid-row: 1 / 3; grid-column: 2; width: 16px; height: 16px; color: var(--dim); }
.split-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--ln); transition: background .2s, box-shadow .2s; }
.split-pay.on { background: color-mix(in srgb, #18b26b 10%, var(--s1)); box-shadow: inset 0 0 0 1.5px #18b26b; }
.split-pay .t { flex: 1; display: grid; } .split-pay b { font: 700 14.5px var(--display); } .split-pay span { font-size: 12.5px; color: var(--mut); }

/* ================= flash sale ================= */
.pr-card.sale { background: linear-gradient(120deg, var(--sc, #ff4f8b), color-mix(in srgb, var(--sc, #ff4f8b) 55%, #ffb23d)); box-shadow: 0 14px 24px -16px var(--sc, #ff4f8b); }
.pr-card.sale .chip { font-variant-numeric: tabular-nums; }
.sale-strip { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 2px; padding: 12px 14px; border-radius: 18px; text-align: start; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #ffb23d)); box-shadow: 0 14px 26px -18px var(--sc); }
.sale-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-18deg); animation: mxShine 4.5s ease-in-out infinite; }
.ss-fire { font-size: 26px; animation: rcArt 1.6s ease-in-out infinite; }
.sale-strip .t { flex: 1; min-width: 0; display: grid; } .sale-strip b { font: 800 15px var(--display); } .sale-strip .t span { font-size: 12.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-time { display: grid; justify-items: end; padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,.16); }
.ss-time small { font-size: 10.5px; opacity: .85; } .ss-time b { font: 800 16px var(--mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sale-p { color: #e5384f; } s.sale-old { display: block; font-size: 11px; font-weight: 500; color: var(--mut); }

/* ---------------- service status ---------------- */
.st-banner, .st-help, .st-hero, .st-inc, .st-row { --stc: var(--ok); }
:is(.st-banner, .st-help, .st-hero, .st-inc, .st-row, .st-chip).bad { --stc: var(--bad); }
:is(.st-banner, .st-help, .st-hero, .st-inc, .st-row, .st-chip).warn { --stc: #e09a00; }
:is(.st-banner, .st-help, .st-hero, .st-inc, .st-row, .st-chip).ac { --stc: var(--ac); }
.st-dot { position: relative; width: 12px; height: 12px; flex: none; display: grid; place-items: center; }
.st-dot i, .st-dot::before { position: absolute; inset: 0; border-radius: 50%; background: var(--stc); }
.st-dot::before { content: ""; animation: stPulse 1.8s ease-out infinite; }
.ok .st-dot::before { animation: none; opacity: 0; }
@keyframes stPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
.st-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 2px; padding: 12px 14px; border-radius: 18px; text-align: start;
  background: color-mix(in srgb, var(--stc) 11%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stc) 30%, transparent); }
.st-banner .t, .st-help .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.st-banner b { font: 700 14.5px var(--display); color: color-mix(in srgb, var(--stc) 70%, var(--fg)); }
.st-banner .t span, .st-help .t span { font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-banner .h-arr, .st-help .h-arr { width: 18px; height: 18px; color: var(--mut); flex: none; }
.st-help { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; text-align: start; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.st-help b { font: 700 14.5px var(--display); }
.st-hero { text-align: center; padding: 26px 20px 22px; border-radius: 26px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--stc) 20%, transparent), transparent 70%), var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.st-hero h2 { margin: 14px 0 8px !important; font-size: 26px !important; }
.st-hero p { font-size: 14.5px !important; color: var(--mut); line-height: 1.5 !important; }
.st-big { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; }
.st-big i, .st-big::before, .st-big::after { position: absolute; border-radius: 50%; background: var(--stc); }
.st-big i { inset: 18px; box-shadow: 0 0 0 7px color-mix(in srgb, var(--stc) 25%, transparent); }
.st-big::before, .st-big::after { content: ""; inset: 18px; animation: stRing 2.4s ease-out infinite; }
.st-big::after { animation-delay: 1.2s; }
@keyframes stRing { from { transform: scale(1); opacity: .45; } to { transform: scale(2.9); opacity: 0; } }
.st-list { display: grid; gap: 10px; margin-top: 12px; }
.st-inc { padding: 14px 16px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); display: grid; gap: 4px; border-inline-start: 4px solid var(--stc); }
.st-inc.done { --stc: var(--ok); opacity: .85; }
.st-inc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.st-chip { --stc: var(--ok); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--stc); background: color-mix(in srgb, var(--stc) 14%, transparent); }
.st-when { font-size: 12px; color: var(--mut); }
.st-inc b { font: 700 15.5px var(--display); }
.st-svc { font-size: 12.5px; color: var(--mut); } .st-svc em { font-style: normal; color: var(--ac); font-weight: 600; }
.reader .st-inc p { font-size: 14px; line-height: 1.5; margin-top: 4px; color: var(--fg); }
.st-svcs { display: grid; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.st-row + .st-row { box-shadow: inset 0 1px 0 var(--ln); }
.st-row .t { flex: 1; min-width: 0; display: grid; } .st-row .t b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .st-row .t span { font-size: 12px; color: var(--ac); }
.st-lv { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--stc); white-space: nowrap; }
.st-lv i { width: 8px; height: 8px; border-radius: 50%; background: var(--stc); }
.tag.st-bad { color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); }
.tag.st-warn { color: #e09a00; box-shadow: inset 0 0 0 1px color-mix(in srgb, #e09a00 45%, transparent); }
.tag.st-ac { color: var(--ac); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 45%, transparent); }
.reader.stp { padding-bottom: calc(var(--bottom) + 40px); }

/* ---------------- favourites ---------------- */
.svc-head > div { flex: 1; min-width: 0; }
.fav-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--s2); color: var(--mut); cursor: pointer; transition: color .2s, background .2s; }
.fav-btn svg { width: 22px; height: 22px; fill: none; transition: fill .2s; }
.fav-btn.on { color: #ff3b6b; background: color-mix(in srgb, #ff3b6b 12%, transparent); } .fav-btn.on svg { fill: currentColor; }
.svc-ic { position: relative; }
.fav-dot { position: absolute; inset-inline-end: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #ff3b6b; color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.fav-dot svg { width: 11px !important; height: 11px !important; fill: currentColor; stroke-width: 0; }
.dur em.seats { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ac); margin-top: 3px; }
.fam-hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--ac) 9%, transparent); font-size: 13px; line-height: 1.45; }
.fam-hint svg { width: 20px; height: 20px; flex: none; color: var(--ac); } .fam-hint b { display: block; font-size: 14px; }

/* ---------------- family card ---------------- */
.fam-card { margin-top: 10px; padding: 14px 16px; border-radius: 22px; display: grid; gap: 12px;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--fc) 16%, transparent), transparent 60%), var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.fam-card.off { opacity: .7; }
.fam-top { display: flex; align-items: center; gap: 12px; }
.fam-top .t { flex: 1; min-width: 0; display: grid; gap: 1px; } .fam-top b { font: 700 15.5px var(--display); } .fam-top .t span { font-size: 12.5px; color: var(--mut); }
.fam-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, var(--fc), color-mix(in srgb, var(--fc) 55%, #fff)); }
.fam-ic svg { width: 22px; height: 22px; }
.fam-n { font: 800 22px var(--display); } .fam-n small { font-size: 14px; color: var(--mut); font-weight: 600; }
.fam-seats { display: flex; gap: 8px; flex-wrap: wrap; }
.fam-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--fc, #7c5cff), color-mix(in srgb, var(--fc, #7c5cff) 50%, #fff)); }
.fam-ava img { width: 100%; height: 100%; object-fit: cover; }
.fam-ava.empty { background: none; color: var(--mut); box-shadow: inset 0 0 0 1.5px var(--ln); border: 0; }
.fam-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .fam-act .mut { font-size: 13px; }
.fam-act .btn svg { width: 16px; height: 16px; }
.fam-list .fam-ava { --fc: var(--ac); }
.fam-seats { align-items: center; } .fam-ava { height: 36px !important; min-height: 0; align-self: center; line-height: 1; }
.fam-rm { color: var(--bad) !important; }
.fam-ava.empty { padding: 0 !important; margin: 0; min-height: 0; text-align: center; }
.dur em.seats { display: inline-flex; align-items: center; gap: 4px; } .dur em.seats svg { width: 13px; height: 13px; }

/* ---------------- upsell at checkout ---------------- */
#upsellBox:empty { display: none; }
#upsellBox { display: grid; gap: 8px; margin-top: 12px; }
.ups { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; text-align: start; border: 0; cursor: pointer; color: inherit; font: inherit;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ok) 12%, var(--s1)), var(--s1)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 35%, transparent); animation: rise .5s var(--ease) both; }
.ups.pack { background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 12%, var(--s1)), var(--s1)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 35%, transparent); }
.ups-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ok); color: #fff; }
.ups.pack .ups-ic { background: var(--ac); }
.ups-ic svg { width: 19px; height: 19px; }
.ups .t { flex: 1; min-width: 0; display: grid; gap: 2px; } .ups .t b { font-size: 13.5px; line-height: 1.3; } .ups .t span { font-size: 12px; color: var(--mut); }
.ups em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ok); white-space: nowrap; } .ups.pack em { color: var(--ac); }

/* ---------------- giveaways and channel bonus on home ---------------- */
.gv-card, .cb-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.gv-card { background: linear-gradient(120deg, color-mix(in srgb, #ffb23d 18%, var(--s1)), var(--s1)); }
.gv-ic { font-size: 28px; animation: rcArt 2.4s ease-in-out infinite; }
.cb-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #229ed9; color: #fff; } .cb-ic svg { width: 19px; height: 19px; }
.gv-card .t, .cb-card .t { flex: 1; min-width: 0; display: grid; gap: 2px; } .gv-card .t b, .cb-card .t b { font: 700 14.5px var(--display); } .gv-card .t span, .cb-card .t span { font-size: 12.5px; color: var(--mut); }
.gv-in { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); }
.cb-card .btn.sm, .gv-card .btn.sm { flex: none; }
.cb-card { flex-wrap: wrap; } .cb-card .t { flex: 1 1 calc(100% - 52px); } .cb-card .btn.sm { flex: 1 1 0; }

/* ---------- right-to-left (Arabic): mirrored arrows, switches, slide-ins; scripts that need room ---------- */
[dir="rtl"] svg[data-i="chev"], [dir="rtl"] svg[data-i="arrow"], [dir="rtl"] svg[data-i="back"], [dir="rtl"] .nw .arr { scale: -1 1; }
[dir="rtl"] .news-card::after { transform: translateY(-50%) rotate(-135deg); }
[dir="rtl"] .switch input:checked + i::after, [dir="rtl"] .tgl.on i { transform: translateX(-18px); }
[dir="rtl"] .view.thread { transform: translateX(-100%); }
[dir="rtl"] .nw:active .arr { transform: translateX(-4px); }
[dir="rtl"] .num, [dir="rtl"] .bal, [dir="rtl"] input[type="number"], [dir="rtl"] input[inputmode="decimal"] { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] body { font-family: var(--text, system-ui), "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
html[lang="hi"] body { font-family: var(--text, system-ui), "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", sans-serif; }
html[lang="ar"] .lbl, html[lang="hi"] .lbl { letter-spacing: 0; text-transform: none; }
html[lang="hi"] p, html[lang="hi"] .body, html[lang="ar"] p, html[lang="ar"] .body { line-height: 1.6; }

/* small icon buttons keep a finger-sized hit area (44px) without changing their look */
.h-copy { position: relative; }
.h-copy::after { content: ""; position: absolute; inset: -10px; }
.fz-sum b small { display: block; margin-top: 2px; font: 500 12px var(--font, inherit); } .fz-sum b.bad { color: var(--bad); }

/* ---------- wave 4: loyalty, achievements, paying together ---------- */
.loy { margin: 14px 0 0; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 22%, var(--s1)), var(--s1) 70%); box-shadow: var(--sh1), inset 0 0 0 1px color-mix(in srgb, var(--lc) 30%, transparent); cursor: pointer; display: grid; gap: 10px; }
.loy-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .loy-h .t { flex: 1; min-width: 0; display: grid; }
.loy-h small { font-size: 12px; color: var(--mut); } .loy-h b { font: 800 18px var(--display); color: var(--fg); }
.loy-b { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lc); color: #fff; flex: none; box-shadow: 0 8px 18px -10px var(--lc); } .loy-b svg { width: 20px; height: 20px; }
.loy-chip { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--lc, var(--ac)) 16%, transparent); color: color-mix(in srgb, var(--lc, var(--ac)) 80%, var(--fg)); white-space: nowrap; }
.loy-bar, .ach-bar, .sp-bar, .sp-mini { height: 8px; border-radius: 99px; background: var(--s2); overflow: hidden; }
.loy-bar i, .ach-bar i, .sp-bar i, .sp-mini i { display: block; height: 100%; border-radius: inherit; background: var(--lc, var(--ac)); transition: width .6s var(--spring, ease); }
.loy-f { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mut); } .loy-f b { color: var(--fg); } .loy-f svg { width: 16px; height: 16px; color: var(--ok, #2fb170); }
.lv-list { display: grid; gap: 10px; margin-top: 14px; }
.lv-card { padding: 12px 14px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); display: grid; gap: 6px; }
.lv-card.on { box-shadow: inset 0 0 0 2px var(--lc); background: color-mix(in srgb, var(--lc) 9%, var(--s1)); } .lv-card.past { opacity: .75; }
.lv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .lv-top b { font: 800 16px var(--display); } .lv-top em { margin-inline-start: auto; font-style: normal; font-size: 12.5px; color: var(--mut); }
.lv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lc); flex: none; }
.lp { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; } .lp span { color: var(--mut); } .lp b { display: inline-flex; align-items: center; } .lp svg { width: 16px; height: 16px; color: var(--ok, #2fb170); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-top: 14px; }
.ach { position: relative; display: grid; gap: 6px; align-content: start; padding: 14px 12px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); }
.ach:not(.got) .ach-ic { filter: grayscale(1); opacity: .55; }
.ach.got { background: linear-gradient(160deg, var(--ac-soft), var(--s1) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 35%, transparent); }
.ach.new::after { content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad, #f0524f); }
.ach-ic { font-size: 30px; line-height: 1; } .ach b { font-size: 14px; line-height: 1.25; } .ach small { font-size: 12px; color: var(--mut); line-height: 1.35; }
.ach-n { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ach-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok, #2fb170); font-weight: 600; } .ach-ok svg { width: 14px; height: 14px; }
.ach-r { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--ok, #2fb170) 15%, transparent); color: var(--ok, #2fb170); }
.sp-card { padding: 16px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 18%, var(--s1)), var(--s1) 75%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 25%, transparent); display: grid; gap: 10px; }
.sp-card .sp-bar i { background: var(--sc); }
.sp-sum { display: flex; align-items: baseline; gap: 8px; } .sp-sum b { font: 800 28px var(--display); } .sp-sum span { color: var(--mut); }
.sp-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--mut); }
.sp-parts { display: grid; margin-top: 12px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); padding: 0 14px; }
.sp-parts div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: 14px; } .sp-parts div + div { border-top: 1px solid var(--ln2); }
.sp-parts em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ac-soft); color: var(--ac); margin-inline-start: 4px; }
.sp-opts b { font-size: 16px; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; } .sp-row + .sp-row { border-top: 1px solid var(--ln2); }
.sp-row .t { flex: 1; min-width: 0; display: grid; gap: 3px; } .sp-row .t span { font-size: 12.5px; color: var(--mut); } .sp-row em { font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sp-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 18%, transparent); color: var(--sc); flex: none; } .sp-ic svg { width: 20px; height: 20px; }
.sp-mini { height: 5px; margin-top: 3px; } .sp-mini i { background: var(--ac); }
.sp-cancel { display: block; width: 100%; padding: 12px; margin-top: 2px; border: 0; background: none; color: var(--bad, #e5484d); font: 600 15px var(--font, inherit); cursor: pointer; border-radius: 12px; }
.sp-cancel:active { background: color-mix(in srgb, var(--bad, #e5484d) 10%, transparent); }
/* partner cabinet */
.pt-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.pt-k div { padding: 10px 8px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); display: grid; gap: 2px; text-align: center; min-width: 0; }
.pt-k span { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-k b { font: 800 16px var(--display); }
.pt-card { margin-top: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(150deg, var(--ac-soft), var(--s1) 70%); box-shadow: inset 0 0 0 1px var(--ln); display: grid; gap: 10px; }
.pt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; } .pt-row span { color: var(--mut); } .pt-row b { font: 800 18px var(--display); }
.pt-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 56px; }
.pt-bars i { height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--ac); } .pt-bars i.z { background: var(--s2); }
.pt-list { display: grid; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); padding: 0 6px 0 14px; }
.pt-li { display: flex; align-items: center; gap: 8px; padding: 10px 0; } .pt-li + .pt-li { border-top: 1px solid var(--ln2); }
.pt-li .t { flex: 1; min-width: 0; display: grid; gap: 2px; } .pt-li .t span { font-size: 12px; color: var(--mut); }
.pt-li code { font-size: 12px; color: var(--ac); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-cp { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--mut); flex: none; } .pt-cp:active { background: var(--s2); } .pt-cp svg { width: 18px; height: 18px; }
/* stage 3: engagement cards, quiz, wheel, savings */
.en-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); cursor: pointer; }
.en-card .t { flex: 1; min-width: 0; display: grid; gap: 2px; } .en-card .t b { font: 700 14.5px var(--display); } .en-card .t span { font-size: 12.5px; color: var(--mut); }
.en-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; } .en-ic svg { width: 22px; height: 22px; }
.en-ic.q { background: linear-gradient(140deg, #7c5cff, #ff6aa8); } .en-ic.w { background: linear-gradient(140deg, #f0a020, #ff6aa8); }
.mini-wheel { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#fff 0 25%, rgba(255,255,255,.45) 0 50%, #fff 0 75%, rgba(255,255,255,.45) 0); animation: mw 6s linear infinite; } @keyframes mw { to { transform: rotate(360deg); } }
.en-go { font-size: 13px; font-weight: 700; color: var(--ac); }
.qz-dots { display: flex; gap: 6px; margin-top: 8px; } .qz-dots i { flex: 1; height: 4px; border-radius: 99px; background: var(--s2); } .qz-dots i.on { background: var(--ac); } .qz-dots i.done { background: color-mix(in srgb, var(--ac) 45%, var(--s2)); }
.qz-opts { display: grid; gap: 8px; } .qz-opts button { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: start; min-height: 52px; padding: 12px 14px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); font: 600 15px var(--font, inherit); color: var(--fg); }
.qz-opts button:active { transform: scale(.98); background: var(--ac-soft); } .qz-opts .chev { width: 16px; height: 16px; color: var(--mut); flex: none; }
.qz-back { margin-top: 6px; color: var(--mut); }
.qz-res { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 16px; margin-top: 10px; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 20%, var(--s1)), var(--s1) 75%); }
.qz-res b { font: 800 22px var(--display); } .qz-res span { font-size: 13.5px; color: var(--mut); }
.qz-svc { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--sc); color: #fff; box-shadow: 0 14px 28px -16px var(--sc); } .qz-svc svg { width: 32px; height: 32px; }
.qz-offer { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--ok, #2fb170) 12%, var(--s1)); }
.qz-offer svg { width: 22px; height: 22px; color: var(--ok, #2fb170); flex: none; } .qz-offer div { display: grid; } .qz-offer span { font-size: 12.5px; color: var(--mut); }
.wh { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 16px auto 4px; }
.wh-rot { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 18px 40px -22px rgba(0,0,0,.5), 0 0 0 6px var(--s1), 0 0 0 7px var(--ln); overflow: hidden; }
.wh-svg { width: 100%; height: 100%; display: block; } .wh-svg text { fill: #fff; font: 800 15px var(--display); paint-order: stroke; stroke: rgba(0,0,0,.18); stroke-width: 2px; }
.wh-hub { fill: var(--s1); stroke: var(--ln); stroke-width: 2; }
.wh-ptr { position: absolute; top: -6px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--fg); z-index: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.sv-big { font: 800 44px var(--display); letter-spacing: -.02em; color: var(--ok, #2fb170); margin-top: 6px; }
.sv-lines { display: grid; gap: 12px; margin-top: 12px; } .sv-h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; } .sv-h span { color: var(--mut); }
.sv-lines .loy-bar i { background: var(--ok, #2fb170); }
.ach-sh { position: absolute; bottom: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ac); } .ach-sh svg { width: 17px; height: 17px; } .ach-sh:active { background: var(--ac-soft); }
.card-prev { display: grid; justify-items: center; gap: 12px; width: 100%; padding: 16px; } .card-prev img { max-width: min(100%, 360px); max-height: 74vh; border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.card-prev p { margin: 0; color: rgba(255,255,255,.8); font-size: 13.5px; text-align: center; }
/* knowledge base */
.kb-list { display: grid; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); padding: 0 12px; margin: 12px 0; }
.kb-a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-align: start; width: 100%; } .kb-a + .kb-a { border-top: 1px solid var(--ln2); }
.kb-a .t { flex: 1; min-width: 0; display: grid; gap: 2px; } .kb-a .t b { font-size: 14.5px; color: var(--fg); } .kb-a .t span { font-size: 12.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-a .chev { width: 16px; height: 16px; color: var(--mut); flex: none; }
.kb-body { font-size: 15px; line-height: 1.6; color: var(--fg); } .kb-body p { margin: 0 0 12px; }
.kb-vote { margin-top: 8px; }

/* freeze: start date */
.fz-lbl { margin: 12px 2px 6px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.fz-start { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; padding: 4px 6px 6px; scroll-padding-inline: 6px; scroll-snap-type: x proximity; }
.fz-start::-webkit-scrollbar { display: none; }
.fz-start button { flex: none; display: grid; min-width: 60px; padding: 8px 6px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--ln); scroll-snap-align: start; transition: transform .3s var(--spring); }
.fz-start b { font: 800 18px var(--display); } .fz-start small { font-size: 11px; color: var(--mut); white-space: nowrap; }
.fz-start button.on { background: linear-gradient(140deg, #5ab7ff, #2b8ef0); color: #fff; box-shadow: 0 10px 20px -12px #2b8ef0; } .fz-start button.on small { color: rgba(255,255,255,.85); }
.fz-start button:active { transform: scale(.94); }
.fz-q { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 13px; color: var(--mut); }
.fz-q b { padding: 3px 9px; border-radius: 10px; background: var(--s2); color: var(--fg); font-weight: 700; }

#v-home.on, #v-home.on > .in { transition: none; animation: none; }

.view-section { display: contents; }
:is(#profileAccount, #profileSettings) > .view-section:not(:first-child) > .gr { border-top: 1px solid var(--ln2); }
#v-home { overscroll-behavior-y: none; }
#homeBody { transform: translateY(var(--pull-distance, 0px)); transition: transform .18s ease-out; }
#v-home.pull-dragging #homeBody { transition: none; }
@media (prefers-reduced-motion: reduce) { #homeBody { transition: none; } }

/* Keep editable text readable when WebKit brings up the touch keyboard. */
@media (pointer: coarse) {
  .search input, .inputbar textarea, .input, .textarea, .select, .chips-input input,
  .promo-in input, .help-search input, .gk-amt-in input, .fdd .fdd-in { font-size: 16px; }
}

@media (pointer: coarse) { .reader .sq, .story .sq { min-width: 44px; min-height: 44px; } }

#sheet { height: min(680px, calc(100% - var(--top) - 24px)); }
#sheetIn { min-height: 0; flex: 1; display: flex; flex-direction: column; }
#sheetIn > * { flex-shrink: 0; }
#sheetIn > .actions:last-child, #sheetIn > .btn.block:last-child {
  position: sticky; bottom: 0; z-index: 1; margin-top: auto;
  box-shadow: 0 -6px 0 0 var(--s1), 0 6px 0 0 var(--s1);
}
#sheetIn > .actions:last-child { background: var(--s1); }
#sheet .grab { position: relative; touch-action: none; }
#sheet .grab::after { content: ""; position: absolute; inset: -10px -24px -12px; }
