/* Solvex mini app. Two themes: data-theme="dark" (deep, near black) and "light". */
@font-face {
  font-family: "Solvex Display";
  src: url("fonts/unbounded-800.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root, :root[data-theme="dark"] {
  --bg: #08080c;
  --bar: #08080c;
  --card: #121219;
  --card-2: #1b1b24;
  --field: #121219;
  --press: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f2f1f7;
  --text-2: #d6d4e0;
  --muted: #8a889b;
  --muted-2: #545263;
  --accent: #9a8bff;
  --accent-soft: rgba(143, 125, 255, .15);
  --btn: #7c69ff;
  --btn-2: #5d4ef2;
  --btn-glow: rgba(124, 105, 255, .35);
  --green: #3fd18b;
  --green-soft: rgba(63, 209, 139, .14);
  --red: #ff5b6b;
  --red-text: #ff7c88;
  --red-soft: rgba(255, 91, 107, .14);
  --badge-out: #4b4a5c;
  --sheet: #0e0e14;
  --overlay: rgba(0, 0, 0, .62);
  --float-bg: rgba(24, 24, 32, .97);
  --float-shadow: 0 16px 48px rgba(0, 0, 0, .55);
  --skel-a: #111118;
  --skel-b: #1c1c26;
  --glow-1: rgba(124, 105, 255, .18);
  --glow-2: rgba(255, 110, 170, .09);
  --grab: rgba(255, 255, 255, .16);
  --glass: rgba(18, 18, 26, .5);
  --glass-line: rgba(255, 255, 255, .08);
  --key-bg: rgba(255, 255, 255, .09);
  --key-press: rgba(255, 255, 255, .22);
  --dot-line: rgba(255, 255, 255, .55);
  --lock-shade: linear-gradient(180deg, rgba(8, 8, 12, .5) 0%, rgba(8, 8, 12, .72) 55%, rgba(8, 8, 12, .86) 100%);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f2f8;
  --bar: #f3f2f8;
  --card: #ffffff;
  --card-2: #e9e7f2;
  --field: #ffffff;
  --press: rgba(18, 18, 26, .06);
  --line: rgba(18, 18, 26, .08);
  --line-strong: rgba(18, 18, 26, .16);
  --text: #12121a;
  --text-2: #2c2b38;
  --muted: #6e6c80;
  --muted-2: #a3a1b3;
  --accent: #6a55f5;
  --accent-soft: rgba(106, 85, 245, .1);
  --btn: #7362ff;
  --btn-2: #5a48ee;
  --btn-glow: rgba(106, 85, 245, .28);
  --green: #18a865;
  --green-soft: rgba(24, 168, 101, .1);
  --red: #e5484d;
  --red-text: #d93a40;
  --red-soft: rgba(229, 72, 77, .1);
  --badge-out: #9997aa;
  --sheet: #f6f5fa;
  --overlay: rgba(18, 18, 26, .38);
  --float-bg: rgba(255, 255, 255, .98);
  --float-shadow: 0 16px 48px rgba(30, 20, 80, .16);
  --skel-a: #e6e4ee;
  --skel-b: #f4f3f8;
  --glow-1: rgba(106, 85, 245, .14);
  --glow-2: rgba(255, 110, 170, .1);
  --grab: rgba(18, 18, 26, .16);
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(18, 18, 26, .06);
  --key-bg: rgba(255, 255, 255, .62);
  --key-press: rgba(255, 255, 255, .95);
  --dot-line: rgba(18, 18, 26, .45);
  --lock-shade: linear-gradient(180deg, rgba(243, 242, 248, .55) 0%, rgba(243, 242, 248, .78) 55%, rgba(243, 242, 248, .9) 100%);
  color-scheme: light;
}
:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --display: "Solvex Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --app-h: 100%;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* theme switch: a circle grows from the button (View Transitions), else a quick cross-fade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-fade, .theme-fade * { transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s !important; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body {
  font: 15px/1.38 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.ic { display: inline-grid; place-items: center; flex: none; }
.ic svg { width: 18px; height: 18px; }

#app { position: fixed; left: 0; right: 0; top: 0; height: var(--app-h); overflow: hidden; }
#app.reveal { animation: reveal .55s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: scale(.96); } }
body.locked #app { visibility: hidden; }

/* ------------------------------------------------------------ boot */
.boot { position: absolute; inset: 0; display: grid; place-items: center; }
.boot-logo {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #9b7bff 0%, #5b5cf0 100%); box-shadow: 0 14px 40px rgba(91, 92, 240, .4);
  font: 800 40px/1 var(--display); animation: bootPulse 1.4s ease-in-out infinite;
}
@keyframes bootPulse { 50% { transform: scale(.92); opacity: .75; } }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
.btn .spinner { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- views */
.view {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--bg); overflow: hidden; will-change: transform;
}
.view.enter { animation: viewIn .32s var(--ease) both; }
.view.leave { animation: viewOut .32s var(--ease) both; pointer-events: none; }
.view.leave-fade { animation: fadeOut .3s both; pointer-events: none; }
.view.enter-back { animation: viewBackIn .32s var(--ease) both; }
.view.leave-back { animation: viewBackOut .28s var(--ease) both; pointer-events: none; z-index: 2; }
@keyframes viewIn { from { transform: translateX(100%); box-shadow: -20px 0 40px rgba(0, 0, 0, .35); } to { transform: none; } }
@keyframes viewOut { to { transform: translateX(-28%); filter: brightness(.7); } }
@keyframes viewBackIn { from { transform: translateX(-28%); filter: brightness(.7); } to { transform: none; filter: none; } }
@keyframes viewBackOut { from { transform: none; } to { transform: translateX(100%); } }
.view.fade { animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { width: 0; height: 0; }

.topbar {
  flex: none; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px;
  background: var(--bar); position: relative; z-index: 3;
}
.topbar-title { font-size: 17px; font-weight: 650; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); transition: background .15s, color .15s, transform .15s;
}
.icon-btn:active { background: var(--press); transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.round { background: var(--card-2); color: var(--text-2); }
.back-btn { margin-left: -8px; color: var(--text); }

.theme-btn { position: relative; color: var(--text-2); background: var(--card-2); overflow: hidden; }
.theme-btn svg { position: absolute; inset: 9px; width: 22px; height: 22px; transition: transform .5s var(--spring), opacity .3s; }
.theme-btn .sun { color: #f5b301; }
:root[data-theme="dark"] .theme-btn .sun, :root:not([data-theme]) .theme-btn .sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="light"] .theme-btn .moon { transform: rotate(90deg) scale(.4); opacity: 0; }

/* ---------------------------------------------------- premium emoji */
.pe {
  --s: 20px; display: inline-block; width: var(--s); height: var(--s); flex: none;
  vertical-align: -0.22em; position: relative; line-height: 1;
}
.pe > svg { opacity: 0; transition: opacity .25s; }
.pe.ready > svg { opacity: 1; }
.pe.fb { font-size: calc(var(--s) * .86); text-align: center; line-height: var(--s); }
.pe.tint svg [fill]:not([fill="none"]) { fill: currentColor; }
.pe.tint svg [stroke]:not([stroke="none"]) { stroke: currentColor; }

/* ------------------------------------------------- logo and avatars */
.logo-s {
  --l: 40px; position: relative; width: var(--l); height: var(--l); border-radius: calc(var(--l) * .3); flex: none;
  display: inline-grid; place-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #9b7bff 0%, #5b5cf0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 14px rgba(91, 92, 240, .3);
}
.logo-s::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 20% 12%, rgba(255, 255, 255, .38), transparent 62%); }
.logo-s b { position: relative; font: 800 calc(var(--l) * .54) / 1 var(--display); margin-top: calc(var(--l) * .03); }
.logo-s.round { border-radius: 50%; }
.ava {
  --a: 54px; position: relative; width: var(--a); height: var(--a); flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 650; font-size: calc(var(--a) * .4);
  transition: transform .15s;
}
.ava > img, .ava > .ava-in { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ava > .ava-in { display: grid; place-items: center; }
.ava > .logo-s { --l: var(--a); }
.g0 { background: linear-gradient(160deg, #ff885e, #ff516a); }
.g1 { background: linear-gradient(160deg, #ffcd6a, #ffa85c); }
.g2 { background: linear-gradient(160deg, #82b1ff, #665fff); }
.g3 { background: linear-gradient(160deg, #a0de7e, #54cb68); }
.g4 { background: linear-gradient(160deg, #53edd6, #28c9b7); }
.g5 { background: linear-gradient(160deg, #72d5fd, #2a9ef1); }
.g6 { background: linear-gradient(160deg, #e0a2f3, #d669ed); }

/* ----------------------------------------------------------- quote */
.quote {
  position: relative; padding: 8px 12px 9px 13px; border-radius: 8px; overflow: hidden;
  background: var(--q-bg, var(--accent-soft)); font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word;
}
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--q-bar, var(--accent)); }
.quote .pe { margin-right: 5px; }
.quote b { display: block; font-weight: 650; color: var(--q-bar, var(--accent)); font-size: 13.5px; }
.quote.red { --q-bg: var(--red-soft); --q-bar: var(--red); }
.state .quote { max-width: 340px; width: 100%; text-align: left; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 15px; font-weight: 650; font-size: 15.5px;
  background: var(--card-2); color: var(--text); transition: transform .15s, background .2s, opacity .2s, box-shadow .2s;
  position: relative; overflow: hidden; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, var(--btn), var(--btn-2)); color: #fff; box-shadow: 0 10px 26px var(--btn-glow); }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 55%);
}
.btn.danger { background: var(--red-soft); color: var(--red-text); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: none; }
.btn.wide { width: 100%; }
.btn.big { height: 56px; font-size: 16.5px; border-radius: 18px; }
.btn[disabled] { opacity: .42; pointer-events: none; box-shadow: none; }
.btn .pe { --s: 22px; }
.btn .ic svg { width: 20px; height: 20px; }
.link-btn { color: var(--accent); font-weight: 650; padding: 2px 0; }
.link-btn:active { opacity: .6; }

.bottom-bar {
  flex: none; padding: 10px 16px calc(12px + var(--safe-b)); background: var(--bar); position: relative; z-index: 3;
}
.bottom-bar .skip { margin-top: 4px; height: 44px; }

/* ---------------------------------------------------------- toggles */
.switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s; }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .32s var(--spring);
}
.switch.on { background: var(--green); box-shadow: none; }
.switch.on::after { transform: translateX(20px); }

/* ======================================================= LOCK SCREEN */
#lock { position: fixed; inset: 0; z-index: 40; display: none; overflow: hidden; background: var(--bg); }
#lock.on { display: block; }
#lock.enter { animation: fadeIn .3s both; }
#lock.leaving { pointer-events: none; }
#lock.leaving .lock-stage { animation: lockOut .42s var(--ease) both; }
#lock.leaving .lock-bg, #lock.leaving .lock-shade { animation: fadeOut .42s .05s both; }
#lock.leaving { background: transparent; }
@keyframes lockOut { to { opacity: 0; transform: scale(1.06); } }
.lock-bg { position: absolute; inset: 0; }
.lock-shade { position: absolute; inset: 0; background: var(--lock-shade); }
.lock-stage { position: absolute; inset: 0; }
.lock-page {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 24px calc(18px + var(--safe-b)); overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;            /* a desktop scrollbar would push the pad to the left */
}
.lock-page::-webkit-scrollbar { display: none; }
.lock-page.in { animation: pageIn .36s var(--ease) both; }
.lock-page.out { animation: pageOut .36s var(--ease) both; pointer-events: none; }
.lock-page.in-back { animation: pageBackIn .36s var(--ease) both; }
.lock-page.out-back { animation: pageBackOut .36s var(--ease) both; pointer-events: none; }
@keyframes pageIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes pageOut { to { opacity: 0; transform: translateX(-40px); } }
@keyframes pageBackIn { from { opacity: 0; transform: translateX(-40px); } }
@keyframes pageBackOut { to { opacity: 0; transform: translateX(40px); } }

/* wallpapers: a photo, or a drawn gradient */
.wall { position: absolute; inset: 0; overflow: hidden; background: #241b3d; }
.wall img, .wall video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: 0; transition: opacity .5s; display: block; }
.wall.ready img, .wall.ready video { opacity: 1; }
.wall.blur img { filter: blur(34px) saturate(1.35); transform: scale(1.3); }
.wall.blur:not(:has(img)) { filter: blur(26px) saturate(1.2); transform: scale(1.3); }
.w-aurora { background: radial-gradient(70% 90% at 15% 110%, #18c98e 0%, transparent 60%), radial-gradient(60% 80% at 90% -10%, #3c6dff 0%, transparent 60%), radial-gradient(50% 60% at 60% 50%, #7b3fe4 0%, transparent 70%), #0b1024; }
.w-neon { background: radial-gradient(60% 80% at 0% 0%, #ff3d8b 0%, transparent 60%), radial-gradient(70% 90% at 100% 100%, #6c3cff 0%, transparent 60%), radial-gradient(40% 50% at 80% 10%, #ffb03a 0%, transparent 70%), #1b0b2e; }
.w-ocean { background: radial-gradient(80% 90% at 10% 100%, #00c2d1 0%, transparent 60%), radial-gradient(70% 80% at 100% 0%, #1d4fd8 0%, transparent 65%), linear-gradient(160deg, #0a2a6b, #04122e); }
.w-peach { background: radial-gradient(70% 90% at 0% 0%, #ffd29a 0%, transparent 60%), radial-gradient(70% 90% at 100% 100%, #ff6f91 0%, transparent 60%), linear-gradient(135deg, #ff9a6b, #c94b7c); }
.w-graphite { background: radial-gradient(80% 70% at 85% 0%, rgba(255, 255, 255, .16) 0%, transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px), linear-gradient(150deg, #34343f, #121218); }

/* ---- the PIN pad */
.pin { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; margin: auto 0; }
.pin-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pin-who .ava { box-shadow: 0 0 0 3px var(--glass-line), 0 10px 30px rgba(0, 0, 0, .3); margin-bottom: 12px; animation: popIn .5s var(--spring) both; }
.pin-ic { margin-bottom: 8px; }
.pin-ic .pe { --s: 56px; }
.pin-title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.pin-title.swap { animation: fadeUp .3s var(--ease) both; }
.pin-sub { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.pin-sub:empty { display: none; }
.pin-dots { display: flex; gap: 18px; margin: 24px 0 8px; height: 16px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dot-line); transition: background .15s, border-color .15s; }
.pin-dots i.on { background: var(--text); border-color: var(--text); }
.pin-dots i.pop { animation: dotPop .28s var(--spring); }
@keyframes dotPop { 50% { transform: scale(1.35); } }
.pin-dots.wait i { animation: dotWave .9s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes dotWave { 40% { transform: translateY(-6px); } }
.pin-dots.ok i, .pin-dots.all i { background: var(--green); border-color: var(--green); transition-delay: calc(var(--i) * 50ms); }
.pin-dots.err i { background: var(--red); border-color: var(--red); }
.pin-dots.shake { animation: shake .45s; }
.pin-msg { min-height: 20px; margin-bottom: 6px; color: var(--muted); font-size: 14px; text-align: center; max-width: 300px; }
.pin-msg[data-kind="err"] { color: var(--red-text); }
.pin-msg.in { animation: fadeUp .25s var(--ease) both; }
.pin-keys {
  --k: clamp(60px, min(19.5vw, 9.6vh), 78px);
  display: grid; grid-template-columns: repeat(3, var(--k)); gap: clamp(10px, 1.8vh, 16px) clamp(20px, 7vw, 30px); margin-top: 4px;
}
.pin-key {
  width: var(--k); height: var(--k); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--key-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .2s, transform .12s; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.pin-key b { font-weight: 450; font-size: calc(var(--k) * .42); line-height: 1; }
.pin-key small { font-size: 9px; letter-spacing: .16em; font-weight: 650; color: var(--muted); margin-top: 3px; height: 10px; }
.pin-key:active { background: var(--key-press); transform: scale(.93); transition-duration: .05s; }
.pin-key.fn { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--text); }
.pin-key.fn:active { background: var(--key-bg); }
.pin-key.fn svg { width: 30px; height: 30px; }
.pin-key.bio svg { width: 34px; height: 34px; color: var(--accent); }
.pin-key.gone { visibility: hidden; }
.pin.off .pin-key { opacity: .32; pointer-events: none; }
.pin-foot { min-height: 40px; margin-top: 14px; display: flex; align-items: center; justify-content: center; text-align: center; }
.pin-note { margin: 0; color: var(--muted); font-size: 13px; max-width: 280px; }

/* ---- first launch */
.welcome { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; margin: auto 0; }
.welcome-hero { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.welcome-glow { position: absolute; inset: -34px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 125, 255, .6), transparent 64%); animation: glow 3.6s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.12); opacity: .7; } }
.logo-s.hero { border-radius: 30px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 50px rgba(91, 92, 240, .5); animation: heroIn .8s var(--spring) both, float 4.2s 1s ease-in-out infinite; }
@keyframes heroIn { from { opacity: 0; transform: scale(.4) rotate(-14deg); } }
@keyframes float { 50% { transform: translateY(-6px); } }
.welcome-title { margin: 8px 0 2px; font: 800 38px/1.1 var(--display); letter-spacing: .01em; animation: fadeUp .5s .15s var(--ease) both; }
.welcome-sub { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; animation: fadeUp .5s .2s var(--ease) both; }
.welcome-feats { width: 100%; display: grid; gap: 9px; }
.feat {
  --i: 0; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; text-align: left;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: fadeUp .5s calc(.28s + var(--i) * .09s) var(--ease) both;
}
.feat .pe { --s: 34px; }
.feat > div > b { display: block; font-size: 15.5px; font-weight: 650; }
.feat > div > span { display: block; margin-top: 1px; color: var(--muted); font-size: 13.5px; }
.welcome-num { margin-top: 18px; display: flex; flex-direction: column; gap: 3px; animation: fadeUp .5s .6s var(--ease) both; }
.welcome-num > span { color: var(--muted); font-size: 13px; }
.num { font: 800 22px/1.2 var(--display); letter-spacing: .05em; }
.welcome-foot { width: 100%; margin-top: 22px; animation: fadeUp .5s .7s var(--ease) both; }

.bio-offer, .lock-info { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; margin: auto 0; }
.bio-offer h2, .lock-info h2 { margin: 0 0 8px; font-size: 23px; font-weight: 700; }
.bio-offer p, .lock-info p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.lock-info .em { color: var(--text); font-weight: 650; word-break: break-all; }
.lock-info > .pe { margin-bottom: 14px; animation: popIn .5s var(--spring) both; }
.lock-info .mail-letter { margin-bottom: 12px; }
.lock-info .otp { margin-top: 22px; }
.lock-info .spam { margin-top: 16px; text-align: left; }
.lock-actions { width: 100%; display: grid; gap: 6px; margin-top: 24px; }
.bio-art { position: relative; width: 142px; height: 142px; display: grid; place-items: center; margin-bottom: 22px; }
.bio-ring { position: absolute; inset: 0; border-radius: 42px; background: linear-gradient(140deg, #9b7bff, #5b5cf0); box-shadow: 0 20px 50px var(--btn-glow); animation: heroIn .7s var(--spring) both; }
.bio-ic { position: relative; color: #fff; width: 82px; height: 82px; animation: fadeIn .4s .3s both; }
.bio-ic svg { width: 82px; height: 82px; stroke-width: 1.4; }
.bio-scan { position: absolute; left: 26px; right: 26px; top: 30px; height: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 16px 2px rgba(255, 255, 255, .8); animation: scan 2.4s .6s ease-in-out infinite both; }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: 1; } 50% { transform: translateY(80px); } }

/* changing the PIN: the same pad over the app */
.pin-over { position: absolute; inset: 0; overflow: hidden; background: var(--bg); animation: fadeIn .28s both; }
.pin-over.out { animation: fadeOut .24s both; }
.pin-over-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px 24px calc(18px + var(--safe-b)); overflow-y: auto; }
.pin-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--key-bg); color: var(--text); }

/* =============================================================== HOME */
.home-scroll { padding-bottom: calc(26px + var(--safe-b)); }
.home-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px 4px; }
.home-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.home-me:active .ava { transform: scale(.94); }
.home-hello { min-width: 0; }
.home-hello > span { display: block; font-size: 13px; color: var(--muted); }
.home-hello b { display: block; font-size: 16.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the balance card */
.bcard {
  --rx: 0deg; --ry: 0deg; position: relative; margin: 12px 16px 0; aspect-ratio: 1.586; max-height: 330px;
  border-radius: 26px; overflow: hidden; color: #fff; isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .1);
  animation: cardIn .7s var(--ease) both;
}
:root[data-theme="light"] .bcard { box-shadow: 0 22px 44px -18px rgba(40, 20, 90, .45), inset 0 0 0 1px rgba(255, 255, 255, .15); }
@keyframes cardIn { from { opacity: 0; transform: perspective(900px) rotateX(14deg) translateY(18px) scale(.96); } }
.bcard.tilting { transition: transform .1s linear; }
.bcard-wall { position: absolute; inset: 0; z-index: -2; }
.bcard-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(165deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .12) 40%, rgba(0, 0, 0, .58) 100%); }
.bcard-shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: radial-gradient(55% 45% at var(--gx, 25%) var(--gy, 0%), rgba(255, 255, 255, .2), transparent 70%); }
.bcard-shine::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-18deg);
}
.bcard.shine-go .bcard-shine::after, .bcard:not(.mini) .bcard-shine::after { animation: shine 1.2s .5s var(--ease) both; }
.bcard.shine-go .bcard-shine::after { animation-delay: 0s; }
@keyframes shine { from { left: -70%; } to { left: 130%; } }
.bcard-in { position: absolute; inset: 0; padding: 18px 20px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.bc-top, .bc-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; font: 800 17px/1 var(--display); letter-spacing: .02em; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.glass-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .15s, background .2s;
}
.glass-btn:active { transform: scale(.9); background: rgba(255, 255, 255, .28); }
.glass-btn svg { width: 20px; height: 20px; }
.bc-label { font-size: 13.5px; font-weight: 650; opacity: .88; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.bc-amount { margin-top: 3px; font: 800 clamp(27px, 8.8vw, 40px)/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); min-height: 1.15em; }
.bc-amount.swap { animation: fadeUp .3s var(--ease) both; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.money .kop { font-size: .6em; opacity: .85; }
.money .cur { font-size: .72em; opacity: .9; }
.money.dots { letter-spacing: .1em; }
.bc-skel { display: inline-block; width: 160px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .2); animation: bootPulse 1.2s infinite; vertical-align: middle; }
.bc-num {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 14px; color: #fff;
  background: rgba(0, 0, 0, .24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 650; font-size: 14px; letter-spacing: .04em; transition: transform .15s;
}
.bc-num:active { transform: scale(.95); }
.bc-num .ic svg { width: 15px; height: 15px; opacity: .8; }
.bc-nfc svg { width: 26px; height: 26px; opacity: .85; display: block; }

.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 18px 10px 4px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--text-2); animation: fadeUp .5s var(--ease) both; }
.act:nth-child(2) { animation-delay: .05s; } .act:nth-child(3) { animation-delay: .1s; } .act:nth-child(4) { animation-delay: .15s; }
.act-ic { width: 58px; height: 58px; border-radius: 21px; display: grid; place-items: center; background: var(--card-2); color: var(--accent); transition: transform .15s; }
.act-ic .pe { --s: 27px; }
.act:first-child .act-ic { background: linear-gradient(160deg, var(--btn), var(--btn-2)); color: #fff; box-shadow: 0 10px 24px var(--btn-glow); }
.act:active .act-ic { transform: scale(.9); }

.section { margin-top: 20px; padding: 0 16px; animation: fadeUp .5s .1s var(--ease) both; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 9px; }
.section-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.cards-empty { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1.5px dashed var(--line-strong); }
.ce-card { width: 58px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); flex: none; }
.ce-card svg { width: 24px; height: 24px; }
.ce-text b { display: block; font-size: 15px; font-weight: 650; }
.ce-text > span { display: block; margin-top: 1px; color: var(--muted); font-size: 13.5px; }

.ops { background: var(--card); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; padding: 4px 0; }
.tx-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; transition: background .15s; }
.tx-row:active { background: var(--press); }
.tx-row.anim { animation: rowIn .5s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: var(--accent-soft); } }
.tx-ava { position: relative; flex: none; }
.tx-badge {
  position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  border: 2.5px solid var(--card); color: #fff; background: var(--badge-out);
}
.tx-badge.in { background: var(--green); }
.tx-badge svg { width: 11px; height: 11px; }
.tx-badge.big { width: 28px; height: 28px; border-width: 3px; border-color: var(--sheet); right: -4px; bottom: -4px; }
.tx-badge.big svg { width: 15px; height: 15px; }
.tx-main { flex: 1; min-width: 0; }
.tx-title { font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { margin-top: 1px; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-right { flex: none; text-align: right; }
.tx-amt { font-weight: 700; font-size: 15.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx-amt.in { color: var(--green); }
.tx-time { margin-top: 2px; color: var(--muted); font-size: 12.5px; }

.empty { padding: 26px 20px 22px; text-align: center; }
.empty .pe { --s: 84px; animation: float 3.6s ease-in-out infinite; }
.empty h4 { margin: 12px 0 4px; font-size: 16.5px; font-weight: 700; }
.empty p { margin: 0 auto; max-width: 280px; color: var(--muted); font-size: 14px; }

.skel { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.skel i, .skel-tile { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--skel-a) 0%, var(--skel-b) 50%, var(--skel-a) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skel .s-ava { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.skel .s-lines { flex: 1; display: grid; gap: 7px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================ HISTORY */
.month { padding: 12px 16px 4px; }
.month-title { margin: 0 2px 8px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.month-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt { padding: 13px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); min-width: 0; animation: fadeUp .45s var(--ease) both; }
.mt > span { display: block; color: var(--muted); font-size: 13px; }
.mt b { display: block; margin-top: 5px; font: 800 18px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt.in b { color: var(--green); }
.hist { padding: 2px 0 18px; }
.day { position: sticky; top: 0; z-index: 1; padding: 14px 18px 6px; font-size: 14px; font-weight: 700; background: var(--bg); }
.hist .tx-row { padding: 10px 16px; }
.hist .tx-badge { border-color: var(--bg); }
.more { display: grid; place-items: center; min-height: 36px; padding-bottom: 16px; }

/* receipt */
.receipt { text-align: center; padding: 4px 0 0; }
.r-ava { position: relative; width: 72px; margin: 4px auto 10px; }
.r-title { color: var(--muted); font-size: 14.5px; font-weight: 650; }
.r-amount { margin-top: 4px; font: 800 34px/1.2 var(--display); }
.r-amount.in { color: var(--green); }
.r-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 11px 4px 8px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 650; }
.r-status .ic svg { width: 15px; height: 15px; stroke-width: 2.8; }
.kv { display: grid; margin-top: 16px; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); text-align: left; }
.kv > div { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv .k { flex: none; color: var(--muted); font-size: 14.5px; }
.kv .v { flex: 1; min-width: 0; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.kv.flat { background: transparent; border: 0; border-radius: 0; margin-top: 12px; }
.kv.flat > div { padding: 10px 2px; }

/* ============================================================ TRANSFER */
.tr { padding: 0 16px 20px; }
.tr-sec { margin-top: 18px; }
.tr-label { margin: 0 4px 8px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.num-field {
  display: flex; align-items: center; gap: 12px; height: 66px; padding: 0 18px; border-radius: 20px; cursor: text;
  background: var(--card); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.num-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.num-field.ok { border-color: rgba(63, 209, 139, .6); box-shadow: none; }
.num-field.err { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.num-field.shake, .amt-field.shake { animation: shake .45s; }
.num-pre { font: 800 20px/1 var(--display); color: var(--muted); }
.num-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font: 800 26px/1 var(--display); letter-spacing: .07em; color: var(--text); }
.num-input::placeholder { color: var(--muted-2); }
.who-card {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); animation: popIn .35s var(--spring) both;
}
.who-card.wait { color: var(--muted); font-size: 14px; }
.who-card.bad { color: var(--red-text); font-size: 14.5px; background: var(--red-soft); border-color: transparent; }
.who-card.bad .pe { --s: 26px; }
.who-text { flex: 1; min-width: 0; }
.who-text > b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text > span { display: block; color: var(--muted); font-size: 13px; }
.who-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; animation: pop .4s var(--spring) both; flex: none; }
.who-ok svg { width: 16px; height: 16px; stroke-width: 3; }
.peers { display: flex; gap: 10px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.peers::-webkit-scrollbar { display: none; }
.peer { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.peer > span { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer:active .ava { transform: scale(.9); }
.amt-field {
  --fs: 44px; position: relative; display: flex; align-items: baseline; justify-content: center; gap: 10px; cursor: text;
  padding: 20px 16px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.amt-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.amt-field.err { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.amt-field.bump { animation: bump .3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.02); } }
.amt-input { width: 1.2ch; min-width: 1ch; max-width: calc(100% - 40px); border: 0; outline: 0; background: transparent; padding: 0; text-align: right; font: 800 var(--fs)/1.15 var(--display); color: var(--text); transition: font-size .2s; }
.amt-input::placeholder { color: var(--muted-2); }
.amt-mirror { position: absolute; visibility: hidden; white-space: pre; font: 800 var(--fs)/1.15 var(--display); pointer-events: none; }
.amt-cur { font: 800 calc(var(--fs) * .7)/1 var(--display); color: var(--muted); transition: font-size .2s; }
.amt-note { min-height: 19px; margin-top: 8px; text-align: center; color: var(--muted); font-size: 13.5px; }
.amt-note.err { color: var(--red-text); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.chip { padding: 8px 14px; border-radius: 16px; background: var(--card-2); font-size: 13.5px; font-weight: 650; color: var(--text-2); transition: transform .15s; }
.chip:active { transform: scale(.94); }
.tr .input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 18px; border: 1.5px solid var(--line); outline: 0; background: var(--card);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.tr .input::placeholder { color: var(--muted-2); }
.tr .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* the swipe */
.swipe-bar { padding-top: 14px; }
.swipe {
  --h: 64px; position: relative; height: var(--h); border-radius: calc(var(--h) / 2); overflow: hidden; outline: none;
  background: var(--card-2); user-select: none; -webkit-user-select: none; touch-action: none;
}
.sw-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--h); border-radius: inherit; background: linear-gradient(90deg, var(--btn-2), var(--btn)); box-shadow: 0 8px 24px var(--btn-glow); }
.sw-text { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 52px; font-weight: 650; font-size: 15.5px; }
.sw-text span {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 38%, var(--text) 50%, var(--muted) 62%, var(--muted) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: textShine 2.6s linear infinite;
}
@keyframes textShine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.sw-knob {
  position: absolute; left: 5px; top: 5px; z-index: 2; width: calc(var(--h) - 10px); height: calc(var(--h) - 10px); border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--btn-2); cursor: grab; touch-action: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.sw-knob svg { width: 25px; height: 25px; }
.swipe:not(.anim):not(.drag):not(.busy):not(.done) .sw-knob { animation: nudge 3s 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(18px); } 90% { transform: translateX(0); } 95% { transform: translateX(6px); } }
.swipe.hint .sw-knob { animation: nudge2 .6s var(--ease); }
@keyframes nudge2 { 40% { transform: translateX(30px); } }
.swipe.anim .sw-knob, .swipe.anim .sw-fill { transition: transform .45s var(--spring), width .45s var(--spring), background .3s; }
.swipe.anim .sw-text { transition: opacity .3s; }
.swipe.drag .sw-knob { cursor: grabbing; }
.swipe.armed .sw-fill, .swipe.done .sw-fill { background: linear-gradient(90deg, #1fae6b, var(--green)); box-shadow: 0 8px 24px rgba(63, 209, 139, .35); }
.swipe.armed .sw-knob, .swipe.done .sw-knob { color: var(--green); }
.swipe.done .sw-knob svg { stroke-width: 3; animation: pop .4s var(--spring) both; }
.swipe.busy .sw-knob .spinner { border-color: rgba(0, 0, 0, .1); border-top-color: var(--green); }
.swipe.shake { animation: shake .45s; }

/* confirm */
.cf { padding: 0 16px 16px; display: flex; flex-direction: column; }
.cf-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 4px; }
.cf-ava { position: relative; width: 92px; height: 92px; margin-bottom: 14px; animation: popIn .5s var(--spring) both; }
.cf-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, #9b7bff, #ff7ab6, #ffc46b, #5b5cf0, #9b7bff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin 5s linear infinite;
}
.cf-name { font-size: 21px; font-weight: 700; animation: fadeUp .4s .1s var(--ease) both; }
.cf-un { margin-top: 3px; color: var(--muted); font-size: 14px; animation: fadeUp .4s .15s var(--ease) both; }
.cf-card { margin-top: 20px; padding: 18px 18px 6px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); animation: fadeUp .45s .2s var(--ease) both; }
.cf-label { color: var(--muted); font-size: 13.5px; font-weight: 650; text-align: center; }
.cf-amount { margin-top: 4px; text-align: center; font: 800 38px/1.2 var(--display); }
.cf-msg { margin-top: 12px; }

/* sent */
.done-view .scroll { display: flex; flex-direction: column; justify-content: center; }
.done-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
.done-in h2 { margin: 18px 0 6px; font-size: 22px; font-weight: 700; animation: fadeUp .45s .45s var(--ease) both; }
.done-amt { font: 800 40px/1.2 var(--display); animation: fadeUp .45s .5s var(--ease) both; }
.done-who { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 650; animation: fadeUp .45s .6s var(--ease) both; }
.done-cmt { margin-top: 14px; max-width: 320px; text-align: left; animation: fadeUp .45s .65s var(--ease) both; }

/* receive */
.recv-card { position: relative; height: 158px; margin: 4px 0 16px; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate; }
.recv-card .wall { z-index: -2; }
.recv-card .bcard-shade { z-index: -1; }
.recv-in { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.recv-in .brand { position: absolute; top: 16px; left: 18px; font-size: 15px; }
.recv-l { font-size: 13px; font-weight: 650; opacity: .88; }
.recv-in .num { font-size: 30px; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }

/* wallpapers */
.bcard.mini { width: 76%; max-width: 300px; margin: 6px auto 16px; border-radius: 20px; animation: none; }
.bcard.mini .bcard-in { padding: 14px 16px; justify-content: flex-start; gap: 16%; }
.bcard.mini .brand { font-size: 14px; }
.bcard.mini .bc-amount { font-size: 24px; }
.bcard.swap { animation: swapIn .45s var(--ease); }
@keyframes swapIn { from { opacity: .3; transform: scale(.96); } }
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wp-tile { position: relative; aspect-ratio: .8; border-radius: 16px; overflow: hidden; background: var(--card-2); border: 2px solid transparent; transition: transform .15s, border-color .2s, box-shadow .2s; }
.wp-tile:active { transform: scale(.95); }
.wp-tile img, .wp-tile .wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-tile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wp-name { position: absolute; left: 9px; bottom: 7px; font-size: 12px; font-weight: 650; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.wp-check { position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; transform: scale(0); transition: transform .3s var(--spring); }
.wp-check svg { width: 14px; height: 14px; stroke-width: 3; }
.wp-tile.on .wp-check { transform: scale(1); }
.wp-del { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wp-del svg { width: 13px; height: 13px; stroke-width: 2.6; }
.wp-tile.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 2px dashed var(--line-strong); color: var(--accent); }
.wp-plus svg { width: 28px; height: 28px; display: block; }
.wp-add-t { font-size: 13px; font-weight: 650; }
.wp-tile.add.loading .wp-plus, .wp-tile.add.loading .wp-add-t { opacity: .25; }
.wp-progress { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.wp-progress::after { content: ""; display: block; height: 100%; width: var(--p, 4%); background: var(--accent); border-radius: 2px; transition: width .2s; }
.skel-tile { aspect-ratio: .8; border-radius: 16px; }

/* ============================================================ SETTINGS */
.settings { padding: 0 16px calc(26px + var(--safe-b)); }
.set-profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0 4px; }
.set-profile h2 { margin: 12px 0 2px; font-size: 21px; font-weight: 700; }
.num-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 14px; background: var(--card-2); font-weight: 650; font-size: 14px; letter-spacing: .03em; }
.num-chip .ic svg { width: 15px; height: 15px; color: var(--muted); }
.set-group { margin-top: 20px; }
.set-title { margin: 0 6px 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.set-list { background: var(--card); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.set-row { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: left; transition: background .15s; }
.set-row:active { background: var(--press); }
.set-row + .set-row::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 1px; background: var(--line); }
.set-ic { width: 30px; display: grid; place-items: center; flex: none; }
.set-ic .pe { --s: 26px; }
.set-text { flex: 1; min-width: 0; }
.set-t { display: block; font-size: 15.5px; font-weight: 650; }
.set-s { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-chev svg { width: 18px; height: 18px; color: var(--muted-2); display: block; }
.set-row.red .set-t { color: var(--red-text); }
.set-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 13px; }

/* ============================================================ OVERLAYS */
#layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
#layer > * { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: var(--overlay); animation: fadeIn .25s both; }
.backdrop.out { animation: fadeOut .22s both; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; background: var(--sheet); color: var(--text);
  border-radius: 24px 24px 0 0; padding: 8px 16px calc(16px + var(--safe-b)); animation: sheetIn .34s var(--ease) both;
  box-shadow: var(--float-shadow), inset 0 1px 0 var(--line);
}
.sheet.out { animation: sheetOut .24s var(--ease) both; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--grab); margin: 0 auto 12px; }
.sheet h3 { margin: 2px 4px 6px; font-size: 19px; font-weight: 700; }
.sheet .sheet-text { margin: 0 4px 14px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.sheet .sheet-text.top { margin-top: 12px; }
.sheet .sheet-text.small { margin: 12px 4px 0; font-size: 12.5px; text-align: center; }
.sheet .actions { display: grid; gap: 8px; margin-top: 14px; }
.receipt-sheet .actions { margin-top: 16px; }

.toast {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); max-width: calc(100% - 28px); width: max-content;
  display: flex; align-items: center; gap: 10px; padding: 10px 15px 10px 12px; border-radius: 16px; font-size: 14.5px; font-weight: 550;
  background: var(--float-bg); color: var(--text); border: 1px solid var(--line); box-shadow: var(--float-shadow);
  animation: toastIn .35s var(--spring) both; pointer-events: none !important;
}
.toast.out { animation: toastOut .25s var(--ease) both; }
.toast .pe { --s: 26px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -12px); } }
.net-pill {
  position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 16px; font-size: 13.5px; background: var(--float-bg); border: 1px solid var(--line);
  box-shadow: var(--float-shadow); animation: fadeUp .3s var(--ease) both; pointer-events: none !important; white-space: nowrap;
}
.net-pill.out { animation: fadeOut .25s both; }

.state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 26px; animation: fadeUp .5s var(--ease) both; }
.state .pe { --s: 110px; margin-bottom: 14px; }
.state h2 { margin: 0 0 8px; font-size: 21px; }
.state p { margin: 0 0 16px; color: var(--muted); max-width: 320px; }

@keyframes pop { from { transform: scale(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* the done mark */
.done-mark { position: relative; width: 132px; height: 132px; }
.done-mark svg { width: 132px; height: 132px; overflow: visible; display: block; }
.done-mark .bg { fill: var(--green-soft); transform-box: fill-box; transform-origin: center; animation: pop .55s var(--spring) both; }
.done-mark .ring { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327;
  transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); animation: draw .65s .1s var(--ease) forwards; }
.done-mark .tick { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 72; stroke-dashoffset: 72; animation: draw .4s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti i {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 11px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: confetti 1.1s calc(.5s + var(--d)) cubic-bezier(.15, .7, .3, 1) both;
}
@keyframes confetti {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
}

/* ============================================================== E-MAIL */
.mail-hero { position: relative; height: 190px; display: grid; place-items: center; margin-top: 2px; }
.mail-hero::before {
  content: ""; position: absolute; inset: -40px -20px 0; pointer-events: none;
  background: radial-gradient(42% 55% at 50% 48%, var(--glow-1), transparent 72%), radial-gradient(30% 40% at 75% 20%, var(--glow-2), transparent 70%);
}
.plane-box { position: relative; width: 240px; height: 200px; flex: none; }
.plane-box svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28)); }
:root[data-theme="light"] .plane-box svg { filter: drop-shadow(0 8px 18px rgba(40, 20, 110, .18)); }
.plane-ph { width: 240px; }
.plane-fly { position: fixed; z-index: 70; pointer-events: none !important; }
.plane-box polygon { stroke-width: .7; stroke-linejoin: round; }
.plane-box .paper { transform-box: view-box; transform-origin: 120px 100px; }
.plane-box.idle .paper { animation: paperFloat 4.2s ease-in-out infinite; }
@keyframes paperFloat { 50% { transform: translateY(-6px) rotate(-1.6deg); } }
.plane-box .paper-shadow { transform-box: view-box; transform-origin: 120px 178px; transition: opacity .35s; }
.plane-box.idle .paper-shadow { animation: shadowFloat 4.2s ease-in-out infinite; }
.plane-box.flying .paper-shadow { opacity: 0; }
@keyframes shadowFloat { 50% { transform: scale(.86); opacity: .65; } }
.plane-box .hover { transform-box: view-box; transform-origin: 120px 104px; }
.plane-box.hovering .hover { animation: planeHover 1.3s ease-in-out infinite; }
@keyframes planeHover { 50% { transform: translate(2px, -6px) rotate(-3deg); } }
.plane-deco { transition: opacity .16s; }
.plane-box.folding .plane-deco { opacity: 0; }
.plane-box .stamp { fill: rgba(124, 105, 255, .14); stroke: #7c69ff; stroke-width: 1.2; stroke-dasharray: 2 1.6; }
.plane-box .stamp-s { font: 800 11px var(--display); fill: #7c69ff; }
.plane-box .p-to { font: 600 6.5px -apple-system, "Segoe UI", Roboto, sans-serif; fill: #a09cb3; letter-spacing: .02em; }
.plane-box .p-email { font: 650 7.6px -apple-system, "Segoe UI", Roboto, sans-serif; fill: #4b3fc2; }
.plane-box .p-lines { stroke: #e8e5f2; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.plane-box .p-sign { stroke: #c2bcda; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.plane-box .trail { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 7.5; transition: opacity .45s; }

.mail-body { padding: 0 18px 22px; text-align: center; }
.scroll.mail-done { display: flex; flex-direction: column; justify-content: center; padding-bottom: 48px; }
.mail-body h2 { margin: 4px 0 8px; font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.mail-body .lead { margin: 0 auto 20px; max-width: 350px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.mail-body .lead .em { color: var(--text); font-weight: 650; word-break: break-all; }
.mail-body .field, .mail-body .quote { text-align: left; }
.mail-body .quote { margin-top: 12px; font-size: 14px; }
.mail-body .quote .pe { --s: 18px; }
.stage-in { animation: stageIn .42s var(--ease) both; }
.stage-back { animation: stageBack .42s var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stageBack { from { opacity: 0; transform: translateX(-28px); } }
.field { display: grid; gap: 6px; }
.field-label { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-weight: 650; padding: 0 4px; }
.mail-field { position: relative; }
.mail-field .input {
  width: 100%; height: 54px; padding: 0 46px; border-radius: 16px; border: 1.5px solid var(--line); outline: 0; background: var(--card);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.mail-field .input::placeholder { color: var(--muted-2); }
.mail-field .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mail-at { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--muted); transition: color .2s; pointer-events: none; }
.mail-at svg { width: 22px; height: 22px; display: block; }
.mail-field:focus-within .mail-at { color: var(--accent); }
.mail-ok {
  position: absolute; right: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; transform: scale(0); transition: transform .35s var(--spring); pointer-events: none;
}
.mail-ok svg { width: 15px; height: 15px; stroke-width: 3.2; }
.mail-field.valid .mail-ok { transform: scale(1); }
.mail-field.valid .input { border-color: rgba(63, 209, 139, .55); }
.mail-field.valid .input:focus { box-shadow: 0 0 0 4px var(--green-soft); }
.mail-field.invalid .input { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.mail-field.invalid .mail-at { color: var(--red-text); }
.mail-field.shake { animation: shake .45s; }
.mail-msg { min-height: 22px; margin-top: 6px; padding: 0 4px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; text-align: left; }
.mail-msg[data-kind="err"] { color: var(--red-text); animation: fadeUp .25s var(--ease) both; }
.mail-msg[data-kind="err"] .pe { --s: 18px; }
.mail-msg.center { justify-content: center; text-align: center; flex-wrap: wrap; }
.mail-fix {
  display: inline-flex; align-items: center; gap: 0; padding: 4px 11px; border-radius: 14px; font-size: 13.5px; white-space: pre;
  background: var(--accent-soft); color: var(--accent); animation: pop .35s var(--spring) both;
}
.mail-fix b { font-weight: 700; }
.mail-letter .pe { --s: 96px; animation: letterIn .6s var(--spring) both; }
.mail-letter.bump .pe { animation: letterBump .55s var(--spring); }
@keyframes letterIn { from { transform: translateY(26px) scale(.4); opacity: 0; } }
@keyframes letterBump { 40% { transform: translateY(-10px) scale(1.08); } }

.otp { position: relative; display: flex; justify-content: center; gap: 10px; margin: 4px auto 6px; width: max-content; cursor: text; }
.otp-cell {
  --i: 0; position: relative; width: 58px; height: 66px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card); border: 1.5px solid var(--line); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: border-color .2s, background .25s, box-shadow .2s, color .2s; transition-delay: calc(var(--i) * 60ms);
}
.lock-info .otp-cell { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.otp-cell.active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transition-delay: 0s; }
.otp-cell .caret { position: absolute; width: 2px; height: 30px; border-radius: 1px; background: var(--accent); opacity: 0; }
.otp-cell.active .caret { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.otp-cell.pop span { animation: digitIn .32s var(--spring) both; }
@keyframes digitIn { from { transform: translateY(10px) scale(.5); opacity: 0; } }
.otp.checking .otp-cell { animation: otpWave .9s ease-in-out infinite; animation-delay: calc(var(--i) * 110ms); border-color: var(--accent); }
@keyframes otpWave { 30% { transform: translateY(-6px); } 60% { transform: none; } }
.otp.ok .otp-cell { border-color: var(--green); background: var(--green-soft); color: var(--green); animation: okPop .4s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes okPop { 50% { transform: scale(1.1); } }
.otp.err { animation: shake .45s; }
.otp.err .otp-cell { border-color: var(--red); background: var(--red-soft); color: var(--red-text); transition-delay: 0s; }
.otp-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; outline: none; background: transparent;
  color: transparent; caret-color: transparent; font-size: 16px; padding: 0;
}
.otp-input::selection { background: transparent; }
.resend { margin-top: 10px; min-height: 24px; font-size: 14.5px; color: var(--muted); display: flex; justify-content: center; align-items: center; }
.resend b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 650; margin-left: 4px; }
.spam { margin-top: 18px; animation: fadeUp .5s var(--ease) both; }

.mail-card { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mail-card .pe { --s: 34px; }
.mc-text { min-width: 0; text-align: left; }
.mc-text .em { font-weight: 650; font-size: 15.5px; word-break: break-all; }
.mc-ok { display: flex; align-items: center; gap: 3px; margin-top: 1px; font-size: 13px; color: var(--green); }
.mc-ok svg { width: 15px; height: 15px; }

/* ===================================================== greeting after the PIN */
.greet { display: flex; flex-direction: column; align-items: center; text-align: center; margin: auto 0; }
.greet-ava { position: relative; width: 92px; height: 92px; margin-bottom: 20px; animation: greetIn .7s var(--spring) both; }
.greet-glow { position: absolute; inset: -26px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 125, 255, .55), transparent 66%); animation: glow 2.4s ease-in-out infinite; }
.greet-ava .ava { box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 14px 40px rgba(0, 0, 0, .35); }
.greet-hi { font-size: 17px; color: var(--text-2); font-weight: 550; animation: fadeUp .5s .15s var(--ease) both; }
.greet-name { margin-top: 4px; font: 800 30px/1.15 var(--display); letter-spacing: .01em; max-width: 92vw; overflow-wrap: anywhere; animation: greetName .6s .25s var(--spring) both; }
@keyframes greetIn { from { opacity: 0; transform: scale(.5); } }
@keyframes greetName { from { opacity: 0; transform: translateY(14px) scale(.92); filter: blur(4px); } }

/* ============================================================ the paper check */
.receipt-scroll { padding: 14px 16px 24px; }
.paper {
  position: relative; max-width: 380px; margin: 0 auto; padding: 24px 22px 30px; background: #fff; color: #18181c;
  border-radius: 6px 6px 0 0; font: 12.6px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .01em; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); animation: paperIn .55s var(--ease) both;
  -webkit-user-select: text; user-select: text;
}
:root[data-theme="light"] .paper { box-shadow: 0 18px 40px -16px rgba(40, 20, 90, .25), 0 0 0 1px rgba(18, 18, 26, .05); }
@keyframes paperIn { from { opacity: 0; transform: translateY(-16px) scaleY(.96); transform-origin: top; } }
.paper::after {                      /* the torn edge at the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 6.5px, #fff 6.5px) 0 0 / 13px 13px repeat-x,
              linear-gradient(45deg, transparent 6.5px, #fff 6.5px) 0 0 / 13px 13px repeat-x;
}
.paper.loading { min-height: 420px; display: grid; place-items: center; }
.paper.loading .spinner { border-color: #e6e4ee; border-top-color: #5b4ff0; }
.paper .empty h4, .paper .empty p { color: #18181c; }
.p-brand { display: flex; align-items: center; justify-content: center; gap: 9px; font: 800 19px/1 var(--display); color: #18181c; margin-bottom: 14px; }
.p-brand .logo-s { box-shadow: none; }
.pc { text-align: center; }
.pl { text-transform: uppercase; overflow-wrap: anywhere; }
.pl.pt { text-align: center; font-weight: 700; font-size: 13px; }
.pgap { height: 13px; }
.pgap.big { height: 20px; }
.stamp {
  margin: 30px 4px 0; padding: 10px 10px 14px; border: 3px solid #5b4ff0; color: #5b4ff0; text-align: center;
  display: flex; flex-direction: column; gap: 6px; transform: rotate(-1.2deg); animation: stampIn .5s .35s var(--spring) both;
}
.stamp b { font-size: 12px; letter-spacing: .06em; }
.stamp span { font-size: 25px; line-height: 1.1; font-weight: 400; letter-spacing: -.005em; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-8deg) scale(1.35); } }
.pfoot { margin-top: 26px; text-align: center; font-size: 10.5px; line-height: 1.45; color: #78787f; text-transform: uppercase; }
.receipt-bar .btn .pe { --s: 22px; }
.receipt-row { display: flex; gap: 6px; margin-top: 4px; }
.receipt-row .btn { flex: 1; height: 44px; font-size: 14.5px; padding: 0 8px; }
.receipt-row .btn .pe { --s: 20px; }

/* "Оплата" coming soon */
.soon { text-align: center; padding: 8px 4px 2px; }
.soon-ic { width: 104px; height: 104px; margin: 6px auto 14px; border-radius: 34px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--btn), var(--btn-2)); box-shadow: 0 16px 40px var(--btn-glow); animation: heroIn .6s var(--spring) both; }
.soon-ic .pe { --s: 60px; }
.soon h3 { margin: 0 0 6px !important; }
.soon .sheet-text { margin: 0 auto 16px !important; max-width: 300px; }

/* ===================================================== wallpaper catalog */
.wp-tile.seen { border-color: var(--line-strong); }
.wp-tile.off img, .wp-tile.off .wall { opacity: .45; }
.wp-kind { position: absolute; left: 7px; top: 7px; padding: 2px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); letter-spacing: .02em; }
.wp-price { position: absolute; right: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 6px;
  border-radius: 10px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.wp-price .pe { --s: 13px; }
.wp-hidden { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 3px 9px; border-radius: 9px; font-size: 11.5px;
  font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); }
.wp-name small { display: block; font-size: 10.5px; font-weight: 600; opacity: .85; }
.wp-buy { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); }
.wp-buy.pop-in { animation: fadeUp .3s var(--ease) both; }
.wp-buy-t { flex: 1; min-width: 0; }
.wp-buy-t b { display: block; font-size: 15.5px; }
.wp-buy-t span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.wp-buy .btn { width: auto; flex: none; height: 46px; font-size: 14.5px; padding: 0 16px; }

/* ================================================================== admin */
.admin { padding: 0 16px calc(26px + var(--safe-b)); }
.ad-hero { display: flex; align-items: center; gap: 14px; padding: 14px 4px 6px; }
.ad-hero > div > b { display: block; font: 800 20px/1.2 var(--display); }
.ad-hero > div > span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.admin > .set-title { margin-top: 16px; }
.ad-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-stat { --i: 0; min-height: 104px; padding: 12px 13px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); min-width: 0;
  animation: fadeUp .45s calc(var(--i) * 50ms) var(--ease) both; }
.ad-stat.skel-tile { aspect-ratio: auto; border: 0; }
.ad-stat-top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.ad-stat b { display: block; margin-top: 9px; font: 800 19px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-stat-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-search { flex: none; padding: 4px 16px 10px; background: var(--bar); }
.search-box { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box .ic svg { width: 19px; height: 19px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-box input::placeholder { color: var(--muted-2); }
.ad-list { padding: 0 0 16px; }
.ad-user { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-align: left; transition: background .15s; }
.ad-user:active { background: var(--press); }
.ad-user .tx-title { display: flex; align-items: center; gap: 6px; }
.ad-user .tx-title > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tag { flex: none; display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 700; background: var(--card-2); color: var(--muted); }
.tag.red { background: var(--red-soft); color: var(--red-text); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.big { padding: 3px 10px; font-size: 12px; border-radius: 10px; }
.ad-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.ad-ban { margin-top: 14px; }
.ad-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.ad-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 650; color: var(--text-2); text-align: center; transition: transform .15s; }
.ad-act:active { transform: scale(.94); }
.ad-act .pe { --s: 26px; color: var(--accent); }
.ad-act.green .pe { color: var(--green); }
.ad-act.red { color: var(--red-text); }
.ad-act.red .pe { color: var(--red-text); }
.ad-card .kv { margin-top: 16px; }
.ad-ops-t { margin-top: 22px !important; }
.boot-in { min-height: 50vh; display: grid; place-items: center; }
.empty.small { padding: 16px; }
.tx-row.static { cursor: default; }
.tx-row.static:active { background: none; }
.icon-btn.spin-once svg { animation: spin .6s var(--ease); }
.field-input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 15px; border: 1.5px solid var(--line); outline: 0; background: var(--card);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field-input::placeholder { color: var(--muted-2); }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-input.area { height: auto; min-height: 90px; padding: 12px 14px; resize: none; display: block; margin-top: 4px; }
.ad-lbl { margin: 14px 0 6px; }
.sheet .amt-field { margin-top: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 15px; background: var(--card-2); }
.seg-b { height: 40px; border-radius: 11px; font-weight: 650; font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg-b.on { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.ad-price { position: relative; margin-top: 8px; }
.ad-price span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.ad-drop { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 16px;
  border: 2px dashed var(--line-strong); color: var(--accent); font-weight: 650; font-size: 14.5px; overflow: hidden; }
.ad-drop span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-drop .ic svg { width: 24px; height: 24px; }
.ad-note { color: var(--muted); font-size: 13px; margin: 10px 4px 14px; line-height: 1.45; }
.ad-walls { padding: 12px 16px calc(26px + var(--safe-b)); }
.switch-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 4px 4px; text-align: left; }
.sr-text { flex: 1; min-width: 0; }
.sr-title { font-size: 15.5px; font-weight: 650; }
.sr-sub { margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.btn.del { color: var(--red-text); margin-top: 4px; }

@media (min-width: 640px) {
  #app, #lock { max-width: 640px; margin: 0 auto; }
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
