@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0B1020; --ink-2: #131A33; --ink-3: #1C2447;
  --bg: #F4F6FB; --panel: #FFFFFF; --line: #E6E9F2; --line-2: #D6DBE8;
  --text: #121631; --muted: #667085; --faint: #98A2B3;
  --blue: #2F6BFF; --violet: #8A4DFF; --grad: linear-gradient(120deg, #4F8CFF 0%, #9B5CFF 100%);
  --ok: #12B76A; --ok-bg: #E7F8EF; --err: #F04438; --err-bg: #FEECEB; --warn: #F79009; --warn-bg: #FFF3E0; --info-bg: #EAF0FF;
  --font-ui: 'Sora', system-ui, -apple-system, Segoe UI, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --chart-text: #667085; --chart-grid: rgba(18,22,49,.08); --chart-strong: #121631; --chart-tip: #0B1020;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 2px rgba(18,22,49,.04), 0 8px 24px -12px rgba(18,22,49,.12);
  --sidebar: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-ui); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.mono { font-family: var(--font-mono); font-size: .93em; }
.hidden { display: none !important; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
::selection { background: #C9D8FF; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ================= LOGO ================= */
.vy-logo { display: inline-flex; align-items: center; gap: 10px; }
.vy-word { font-weight: 700; letter-spacing: -.02em; font-size: 20px; line-height: 1; color: #fff; display: inline-flex; }
.vy-word-pay { background: linear-gradient(120deg, #5EA0FF 0%, #7C6CFF 50%, #B25CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vy-word-split i { font-style: normal; display: inline-block; opacity: 0; transform: translateY(14px) rotateX(-60deg); animation: letterIn .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.9s + var(--i) * .07s); }
.vy-word-split .vy-word-pay i { animation-delay: calc(1.35s + var(--i) * .08s); background: linear-gradient(120deg, #5EA0FF 0%, #7C6CFF 50%, #B25CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vy-word-split .vy-word-pay { background: none; color: #fff; }
@keyframes letterIn { to { opacity: 1; transform: none; } }
.vy-mark { overflow: visible; }
.vy-mark .vy-rail { stroke-dasharray: 140; stroke-dashoffset: 0; }
.vy-mark.vy-anim .vy-pulse { stroke-dasharray: 28 140; stroke-dashoffset: 168; animation: vyPulse 2.8s cubic-bezier(.6,.05,.3,1) infinite; }
.vy-mark.vy-anim .vy-coin-glow { animation: vyGlow 2.8s ease-in-out infinite; transform-origin: 50px 74px; }
.vy-mark.vy-anim .vy-coin { animation: vyCoin 2.8s ease-in-out infinite; transform-origin: 50px 74px; }
.vy-mark.vy-anim .vy-orbit { animation: orbitSpin 18s linear infinite; transform-origin: 50px 52px; }
.vy-mark.vy-anim .vy-sat { animation: orbitSpin 6s linear infinite; transform-origin: 50px 52px; }
.vy-mark.vy-anim .vy-sat2 { animation-duration: 9s; animation-direction: reverse; }
.vy-mark.vy-anim .vy-halo { animation: haloBreathe 2.8s ease-in-out infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes haloBreathe { 0%,100% { opacity: .18; } 60% { opacity: .42; } }
@keyframes vyPulse { 0% { stroke-dashoffset: 168; opacity: 0; } 8% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 75%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes vyGlow { 0%, 45% { transform: scale(.6); opacity: .15; } 62% { transform: scale(2); opacity: .7; } 100% { transform: scale(.6); opacity: .15; } }
@keyframes vyCoin { 0%, 50% { transform: scale(1); } 62% { transform: scale(1.4); } 78%, 100% { transform: scale(1); } }
.boot .vy-mark .vy-rail, .boot .vy-mark .vy-rail-hi { stroke-dashoffset: 140; stroke-dasharray: 140; animation: vyDraw 1.2s .15s cubic-bezier(.4,0,.2,1) forwards; }
.boot .vy-mark .vy-orbit { stroke-dasharray: 230; stroke-dashoffset: 230; animation: vyDraw 1.6s .4s ease-out forwards, orbitSpin 18s 2s linear infinite; }
.boot .vy-mark .vy-coin, .boot .vy-mark .vy-coin-glow { opacity: 0; animation: coinDrop .6s 1.1s cubic-bezier(.2,.8,.2,1) forwards, vyCoin 2.8s 1.8s ease-in-out infinite; transform-origin: 50px 74px; }
.boot .vy-mark .vy-sat { opacity: 0; animation: fadeIn .8s 1.5s forwards, orbitSpin 6s 1.5s linear infinite; transform-origin: 50px 52px; }
.boot .vy-mark .vy-halo { opacity: 0; animation: fadeIn .8s 1.5s forwards, haloBreathe 2.8s 2.3s ease-in-out infinite; }
.boot .vy-mark rect { opacity: 0; animation: plateIn .7s ease-out forwards; transform-origin: 50px 50px; }
@keyframes vyDraw { to { stroke-dashoffset: 0; } }
@keyframes coinDrop { from { opacity: 0; transform: translateY(-18px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes plateIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ================= BOOT ================= */
#boot { position: fixed; inset: 0; z-index: 100; background: radial-gradient(ellipse at 50% 40%, #151C3E 0%, #0B1020 55%, #05070F 100%); display: grid; place-items: center; color: #fff; overflow: hidden; transition: opacity .6s ease, visibility .6s, transform .6s ease; }
#boot.done { opacity: 0; visibility: hidden; transform: scale(1.04); }
#boot .stage { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; z-index: 2; }
#boot .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.35) 0%, rgba(124,108,255,0) 65%); animation: glowPulse 3s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
#boot .vy-word { font-size: 38px; perspective: 400px; }
#boot .tag { color: #9AA4C2; font-size: 14px; letter-spacing: .04em; min-height: 20px; opacity: 0; animation: fadeUp .5s 1.9s ease forwards; }
#boot .tag b { color: #C9D2F0; font-weight: 500; }
#boot .bar { width: 240px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; opacity: 0; animation: fadeIn .4s 1.6s forwards; }
#boot .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5EA0FF, #7C6CFF, #B25CFF); animation: bootBar 2s 1.7s cubic-bezier(.7,0,.3,1) forwards; box-shadow: 0 0 12px #7C6CFF; }
@keyframes bootBar { to { width: 100%; } }
#boot .ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(155,92,255,.16); animation: ringSpin 14s linear infinite; }
#boot .ring:after { content: ''; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: #B25CFF; box-shadow: 0 0 14px #B25CFF; }
#boot .ring.r2 { width: 780px; height: 780px; animation-duration: 26s; animation-direction: reverse; opacity: .6; border-style: dashed; }
#boot .ring.r3 { width: 1100px; height: 1100px; animation-duration: 44s; opacity: .35; }
#boot .stars { position: absolute; inset: 0; }
#boot .stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; animation: twinkle var(--d) var(--t) ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.5); } 50% { opacity: .9; transform: scale(1.2); } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#boot .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); transform: perspective(600px) rotateX(55deg) translateY(120px) scale(2); transform-origin: 50% 100%; animation: gridMove 6s linear infinite; }
@keyframes gridMove { to { background-position: 0 48px, 0 0; } }
#boot .aurora { opacity: .55; }
#boot .ripples { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
#boot .ripples i { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 1.5px solid rgba(124,108,255,.55); box-shadow: 0 0 30px rgba(124,108,255,.25), inset 0 0 30px rgba(94,160,255,.15); opacity: 0; animation: ripple 3.2s var(--t) cubic-bezier(.1,.6,.3,1) infinite; }
@keyframes ripple { 0% { transform: scale(.4); opacity: 0; } 12% { opacity: .9; } 100% { transform: scale(7); opacity: 0; } }
#boot .shooting { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#boot .shooting i { position: absolute; top: var(--y); left: var(--x); width: 160px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 60%, #B25CFF); border-radius: 2px; transform: rotate(-32deg); opacity: 0; filter: drop-shadow(0 0 6px #B25CFF); animation: shoot 2.4s var(--t) ease-out infinite; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-32deg) translateX(0); } 6% { opacity: 1; } 32% { opacity: 0; transform: rotate(-32deg) translateX(-620px); } 100% { opacity: 0; transform: rotate(-32deg) translateX(-620px); } }
#boot .sweep { position: absolute; left: -30%; top: 0; width: 60%; height: 100%; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.045) 50%, transparent 70%); transform: skewX(-12deg); animation: sweep 4.5s 1s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { left: -60%; } 100% { left: 130%; } }
#boot .hex { position: absolute; width: 1400px; height: 1400px; background-image: radial-gradient(circle, rgba(124,108,255,.28) 1.2px, transparent 1.8px); background-size: 38px 38px; mask-image: radial-gradient(circle, #000 0%, transparent 55%); animation: hexDrift 30s linear infinite; opacity: .8; }
@keyframes hexDrift { to { transform: rotate(360deg); } }

/* ================= LOGIN ================= */
#login { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff; }
#boot .aurora, #login .aurora { position: absolute; inset: -20%; filter: blur(70px) saturate(1.2); opacity: .75; }
#boot .aurora i, #login .aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
#boot .aurora .a1, #login .aurora .a1 { width: 55vw; height: 55vw; left: -10%; top: -10%; background: radial-gradient(circle, #2F6BFF 0%, transparent 62%); animation: drift1 22s ease-in-out infinite; }
#boot .aurora .a2, #login .aurora .a2 { width: 50vw; height: 50vw; right: -10%; top: 5%; background: radial-gradient(circle, #8A4DFF 0%, transparent 62%); animation: drift2 26s ease-in-out infinite; }
#boot .aurora .a3, #login .aurora .a3 { width: 45vw; height: 45vw; left: 25%; bottom: -25%; background: radial-gradient(circle, #16B8D9 0%, transparent 62%); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12vw, 14vh) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8vw, -12vh) scale(1.2); } }
#login .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
#login .beam { position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; transform: translate(-50%,-50%); background: conic-gradient(from 0deg, transparent 0 82%, rgba(155,92,255,.18) 90%, transparent 100%); animation: beam 16s linear infinite; pointer-events: none; }
@keyframes beam { to { transform: translate(-50%,-50%) rotate(360deg); } }
.login-layout { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; width: min(1040px, 94vw); }
.login-hero { animation: fadeUp .8s .1s both; }
.login-hero .vy-logo { margin-bottom: 18px; gap: 16px; } .login-hero .vy-word { font-size: 40px; }
.hero-line { border: 0; height: 1px; background: linear-gradient(90deg, rgba(124,108,255,.7), rgba(255,255,255,.08) 70%, transparent); margin: 0 0 26px; width: 100%; max-width: 440px; }
.login-hero h2 { font-size: 46px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 0 0 18px; color: #fff; min-height: 2.2em; }
.login-hero h2 .type { background: linear-gradient(120deg, #5EA0FF, #B25CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero h2 .caret { display: inline-block; width: 3px; height: .9em; background: #B25CFF; vertical-align: -.08em; margin-left: 4px; animation: caret 1s steps(2) infinite; border-radius: 2px; }
@keyframes caret { 50% { opacity: 0; } }
.login-hero p { color: #A5AFCA; font-size: 15px; line-height: 1.6; max-width: 440px; margin: 0 0 28px; }
.login-hero .feats { display: flex; flex-direction: column; gap: 12px; }
.login-hero .feat { display: flex; align-items: center; gap: 12px; color: #C9D2F0; font-size: 13.5px; opacity: 0; animation: featIn .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.6s + var(--i) * .18s); }
@keyframes featIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.login-hero .feat b { width: 30px; height: 30px; border-radius: 9px; background: rgba(124,108,255,.18); border: 1px solid rgba(124,108,255,.35); display: grid; place-items: center; color: #C3B5FF; font-size: 13px; flex: none; }
.login-wrap { position: relative; width: min(440px, 92vw); perspective: 1200px; justify-self: end; }
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particles i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9), rgba(124,108,255,0)); opacity: 0; animation: rise var(--d) var(--t) linear infinite; left: var(--x); }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } 100% { transform: translateY(-110vh); opacity: 0; } }
@media (max-width: 900px) { .login-layout { grid-template-columns: 1fr; gap: 26px; } .login-hero h2 { font-size: 30px; min-height: 0; } .login-hero .feats, .login-hero p { display: none; } .login-hero .vy-logo { margin-bottom: 14px; } .login-wrap { justify-self: center; } }

.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px; animation: fadeUp .7s .1s both; }
.login-brand .vy-word { font-size: 28px; }
.login-brand p { margin: 0; color: #A5AFCA; font-size: 13.5px; }
.card-3d { transform-style: preserve-3d; transition: transform .15s ease-out; }
.login-card { position: relative; background: rgba(19,26,51,.72); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 30px 30px 26px; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); animation: cardIn .8s .25s cubic-bezier(.2,.8,.2,1) both; }
.login-card:before { content: ''; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; background: linear-gradient(140deg, rgba(79,140,255,.7), rgba(155,92,255,.05) 40%, rgba(155,92,255,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; animation: borderSpin 6s linear infinite; }
@keyframes borderSpin { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px) rotateX(8deg); } to { opacity: 1; transform: none; } }
.login-card h1 { font-size: 21px; margin-bottom: 4px; }
.login-card .sub { color: #A5AFCA; margin: 0 0 22px; font-size: 13.5px; }
.fl { position: relative; margin-bottom: 14px; }
.login-card .fl, .login-card .btn-primary, .login-card .otp, .login-card .method-pill { animation: fieldIn .55s cubic-bezier(.2,.8,.2,1) both; }
.login-card .fl:nth-of-type(1) { animation-delay: .45s; } .login-card .fl:nth-of-type(2) { animation-delay: .55s; } .login-card .btn-primary { animation-delay: .7s; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fl input { width: 100%; height: 58px; padding: 22px 46px 8px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(11,16,32,.55); color: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.fl input:focus { outline: none; border-color: #6F8BFF; box-shadow: 0 0 0 4px rgba(79,140,255,.18); background: rgba(11,16,32,.8); }
.fl label { position: absolute; left: 16px; top: 19px; color: #8E98B8; font-size: 14.5px; pointer-events: none; transition: all .18s ease; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label { top: 9px; font-size: 11px; color: #A9B6FF; letter-spacing: .02em; }
.fl .eye { position: absolute; right: 12px; top: 17px; width: 26px; height: 26px; border: 0; background: transparent; color: #8E98B8; cursor: pointer; border-radius: 6px; display: grid; place-items: center; }
.fl .eye:hover { color: #fff; }
.fl .lock { position: absolute; right: 14px; top: 20px; color: #6F7AA0; }
.btn-primary { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; position: relative; overflow: hidden; transition: transform .12s, box-shadow .2s, filter .2s; box-shadow: 0 12px 30px -10px rgba(122,108,255,.8); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 16px 36px -10px rgba(122,108,255,.95); }
.btn-primary:active { transform: translateY(1px) scale(.995); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-primary .sheen { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 3.2s 1.2s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.login-links { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 0; font-size: 13px; }
.login-links a, .login-links button { color: #A9B6FF; background: none; border: 0; padding: 0; cursor: pointer; }
.login-links a:hover, .login-links button:hover { color: #fff; }
.login-err { background: rgba(240,68,56,.15); border: 1px solid rgba(240,68,56,.4); color: #FFB4AE; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; animation: shake .4s; }
.login-ok { background: rgba(18,183,106,.15); border: 1px solid rgba(18,183,106,.4); color: #8EF0C0; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.otp { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 18px; }
.otp input { width: 100%; height: 60px; text-align: center; font: 600 24px var(--font-mono); border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(11,16,32,.6); color: #fff; caret-color: #9B5CFF; transition: border-color .15s, box-shadow .15s, transform .1s; }
.otp input:focus { outline: none; border-color: #6F8BFF; box-shadow: 0 0 0 4px rgba(79,140,255,.18); transform: translateY(-1px); }
.otp input.filled { border-color: rgba(155,92,255,.7); }
.method-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 12.5px; color: #C3CBE6; margin-bottom: 18px; }
.method-pill b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 11px; }
.login-foot { text-align: center; color: #6F7AA0; font-size: 12px; margin-top: 22px; animation: fadeUp .7s .6s both; }
.view-anim { animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pw-meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin: -6px 0 14px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--err); transition: width .3s, background .3s; }

/* ================= APP SHELL ================= */
#app { display: none; min-height: 100vh; }
#app.ready { display: grid; grid-template-columns: var(--sidebar) 1fr; animation: fadeUp .4s ease both; }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #0B1020 0%, #121A38 100%); color: #C7CDE3; display: flex; flex-direction: column; padding: 18px 14px; z-index: 5; }
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.sidebar .brand .vy-logo { gap: 12px; } .sidebar .brand .vy-word { font-size: 27px; }
.sidebar .role { display: none; }
.sidebar .role-x { display: inline-block; margin: 8px 0 0 50px; font-size: 10.5px; color: #8E98B8; background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 999px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #C7CDE3; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(122,108,255,.16); color: #fff; }
.nav a.active:before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 14px #8A4DFF; }
.nav a .badge { margin-left: auto; font-size: 10.5px; background: #F04438; color: #fff; padding: 1px 7px; border-radius: 999px; }
.sidebar .me { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.sidebar .me .av { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.sidebar .me .who { flex: 1; min-width: 0; }
.sidebar .me .who b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .me .who span { font-size: 11.5px; color: #8E98B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar .me button { border: 0; background: rgba(255,255,255,.06); color: #C7CDE3; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.sidebar .me button:hover { background: rgba(240,68,56,.25); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 4; background: rgba(244,246,251,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; gap: 14px; }
.topbar h1 { font-size: 18px; }
.topbar .crumb { color: var(--muted); font-size: 12.5px; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.clock { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.content { padding: 24px 28px 44px; }
.page { max-width: 1280px; margin: 0 auto; }
.page { animation: viewIn .3s ease both; }
.menu-btn { display: none; }

/* ================= COMPONENTS ================= */
.grid { display: grid; gap: 16px; align-items: stretch; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g32 { grid-template-columns: 3fr 2fr; } .g21 { grid-template-columns: 2fr 1fr; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card .hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 52px; }
.card .hd h3 { font-size: 14px; }
.card .hd .sub { color: var(--muted); font-size: 12px; line-height: 1.3; }
.card .hd > .btn { margin-left: auto; }
.card .hd .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card .bd { padding: 18px; }
.kpi { padding: 20px 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 110px; }
.kpi .lb { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .v { font-family: var(--font-mono); font-weight: 700; font-size: 27px; margin-top: 8px; letter-spacing: -.02em; line-height: 1.1; }
.kpi .d { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.kpi .d.up { color: var(--ok); } .kpi .d.down { color: var(--err); }
.kpi canvas { position: absolute; right: 12px; bottom: 10px; width: 90px; height: 34px; opacity: .9; }
.kpi:after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.kpi:hover:after { opacity: 1; }
.chart-box { height: 280px; position: relative; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 500; transition: all .15s; }
.seg button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(18,22,49,.12); }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn:hover { border-color: #B9C2D8; background: #FAFBFF; }
.btn.p { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.p:hover { background: #1C2447; }
.btn.grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 18px -8px rgba(122,108,255,.7); }
.btn.grad:hover { filter: brightness(1.05); }
.btn.danger { color: var(--err); border-color: #F7C1BD; } .btn.danger:hover { background: var(--err-bg); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.btn.icon { width: 36px; padding: 0; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.success, .pill.live, .pill.approved, .pill.active, .pill.sent, .pill.reversed, .pill.verified, .pill.paid { background: var(--ok-bg); color: #0E8F55; }
.pill.failed, .pill.suspended, .pill.rejected, .pill.upheld, .pill.disabled, .pill.cancelled { background: var(--err-bg); color: #C0322A; }
.pill.pending, .pill.created, .pill.review, .pill.submitted, .pill.received, .pill.representment_submitted, .pill.with_issuing_bank, .pill.uploaded { background: var(--warn-bg); color: #B25E00; }
.pill.expired, .pill.onboarding, .pill.withdrawn, .pill.inactive { background: #EEF0F5; color: #5B6478; }
.pill.test { background: var(--info-bg); color: #2A56C6; } .pill.live-mode { background: var(--ok-bg); color: #0E8F55; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #FAFBFE; white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; } .tbl tbody tr:hover { background: #F8F9FD; }
.tbl tr.click { cursor: pointer; }
.tbl th.r, .tbl td.r, table.tbl th.r, table.tbl td.r { text-align: right !important; }
.tbl th.c, .tbl td.c, table.tbl th.c, table.tbl td.c { text-align: center !important; }
.tbl td.c .sub { text-align: center; }
.tbl .num, .tbl td.r, .tbl th.r { font-variant-numeric: tabular-nums; }
.tbl td.r .sub { text-align: right; }
.tbl td.num, .tbl th.num { font-variant-numeric: tabular-nums; }
.tbl td:last-child, .tbl th:last-child { white-space: nowrap; }
.tbl .sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tbl tr.flash td { animation: rowFlash 1.6s ease; }
@keyframes rowFlash { from { background: #EAF0FF; } to { background: transparent; } }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; min-height: 34px; }
.toolbar .sp { flex: 1; }
.toolbar .chip { line-height: 26px; }
.f { margin-bottom: 14px; }
.f label { display: block; font-size: 12.5px; font-weight: 500; color: #3B4260; margin-bottom: 6px; line-height: 18px; height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f label input[type=checkbox] { vertical-align: -2px; }
.f label small { color: var(--faint); font-weight: 400; }
.f input, .f select, .f textarea, .in { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.f textarea { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.f .help { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.f input[readonly] { background: #F8F9FD; color: #3B4260; }
.in.sm { height: 34px; width: auto; }
.row { display: flex; gap: 12px; align-items: flex-start; } .row > * { flex: 1; min-width: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; cursor: pointer; font-size: 13.5px; }
.tabs button.active { color: var(--text); border-color: var(--violet); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); line-height: 1.5; } .kv dd { margin: 0; word-break: break-word; line-height: 1.5; }
.note { padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.note.info { background: var(--info-bg); color: #24408F; } .note.warn { background: var(--warn-bg); color: #8A4B00; } .note.ok { background: var(--ok-bg); color: #0E6B42; } .note.err { background: var(--err-bg); color: #A12A22; }
.secret { display: flex; gap: 8px; align-items: center; }
.secret code { flex: 1; font-family: var(--font-mono); font-size: 12.5px; background: #F5F6FA; border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.steps div { flex: 1; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; gap: 9px; align-items: center; }
.steps div b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--line-2); color: #3B4260; }
.steps div.done b { background: var(--ok); color: #fff; } .steps div.now { background: var(--info-bg); color: #24408F; border-color: #C9D8FF; } .steps div.now b { background: var(--grad); color: #fff; }
.pre { font-family: var(--font-mono); font-size: 12px; background: var(--ink); color: #DDE3F5; padding: 14px 16px; border-radius: 10px; overflow-x: auto; white-space: pre; line-height: 1.55; }
.pre .c { color: #7C86A8; } .pre .k { color: #9EC3FF; } .pre .s { color: #B6F5D0; }
.doc h2 { font-size: 18px; margin: 28px 0 10px; } .doc h2:first-child { margin-top: 0; } .doc h3 { font-size: 14.5px; margin: 20px 0 8px; } .doc p { margin: 8px 0; color: #3B4260; } .doc table.tbl { margin: 8px 0 14px; }
.doc code { font-family: var(--font-mono); font-size: 12.5px; background: #EEF0F5; padding: 1px 6px; border-radius: 5px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 7px; background: #EEF0F5; font-size: 11.5px; font-family: var(--font-mono); line-height: 1.4; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13px; }
.timeline li:before { content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px #EEE6FF; }
.timeline li:after { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child:after { display: none; }
.timeline .t { color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); }
.drop { border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--info-bg); color: #24408F; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.12); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, #EEF0F5 25%, #F7F8FB 50%, #EEF0F5 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: 6px; height: 14px; }
@keyframes skel { to { background-position: -200% 0; } }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(11,16,32,.55); backdrop-filter: blur(4px); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--panel); border-radius: 18px; width: min(680px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: modalIn .25s cubic-bezier(.2,.8,.2,1); }
.modal.wide { width: min(980px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .hd { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal .hd h3 { font-size: 15px; flex: 1; }
.modal .hd .x { border: 0; background: var(--bg); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; color: var(--muted); }
.modal .bd { padding: 20px 22px; }
.modal .ft { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: #FAFBFE; border-radius: 0 0 18px 18px; }
/* Toast */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); animation: toastIn .3s cubic-bezier(.2,.8,.2,1); display: flex; gap: 10px; align-items: center; max-width: 380px; }
.toast.err { background: #B42318; } .toast.ok { background: #0E8F55; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* TPS monitor */
.tps-hero { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: stretch; }
.svgwrap { padding: 12px 16px 8px; } .svgwrap svg { display: block; }
.tps-gauge { height: 220px; } .tps-gauge canvas { width: 100%; height: 100%; }
.tps-strip { height: 260px; padding: 14px 18px 10px; } .tps-strip canvas { width: 100%; height: 100%; display: block; }
.tps-gauge { height: 260px; }
.feed { max-height: 420px; overflow: auto; }
.feed .ev { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; animation: viewIn .3s ease; }
.feed .ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.feed .ev.success i { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .feed .ev.failed i, .feed .ev.expired i { background: var(--err); } .feed .ev.created i { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.feed .ev .t { margin-left: auto; font-family: var(--font-mono); color: var(--muted); font-size: 11.5px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18,183,106,.6); animation: livePulse 1.6s infinite; margin-right: 6px; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.6); } 100% { box-shadow: 0 0 0 9px rgba(18,183,106,0); } }
.big-num { font-family: var(--font-mono); font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.pager span { flex: 1; }
.pager:empty { display: none; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g32, .g21, .g3 { grid-template-columns: 1fr; } .tps-hero { grid-template-columns: 1fr; } .kv { grid-template-columns: 130px 1fr; } }
@media (max-width: 820px) {
  #app.ready { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; } .topbar { padding: 12px 16px; } .g4, .g2 { grid-template-columns: 1fr; } .row { flex-direction: column; } .kv { grid-template-columns: 1fr; }
  .login-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ================= PG ROUTING ================= */
.route-list { display: flex; flex-direction: column; }
.route-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); transition: background .15s; }
.route-row:hover { background: var(--bg); }
.route-row.off { opacity: .55; }
.route-row .pri { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-mono); }
.route-row.off .pri { background: #C4CAD9; }
.route-row .who b { display: block; font-size: 14px; }
.route-row .stat { text-align: right; }
.route-row .stat .num { display: block; font-weight: 600; }
.route-row .acts { display: flex; gap: 4px; }
@media (max-width: 700px) { .route-row { grid-template-columns: 32px 1fr; } .route-row .stat { text-align: left; } }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; cursor: pointer; background: #fff; }
.daypick input { width: auto; height: auto; }
.checklist { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.checklist label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; }
.checklist input { width: auto; height: auto; }
tr.off td { opacity: .55; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3B4260; margin: 4px 0 16px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; }
.f input[type=file] { padding: 7px 10px; line-height: 22px; }

/* ---- onboard layout ---- */
.onboard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.onboard .sec { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.onboard .sec small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.onboard .actions { margin-top: 6px; }
.row3 { display: flex; gap: 12px; align-items: flex-start; } .row3 > * { flex: 1; min-width: 0; }
@media (max-width: 1000px) { .onboard { grid-template-columns: 1fr; } .row3 { flex-direction: column; gap: 0; } }
/* consistent select height across browsers */
.f select, select.in { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236F7AA0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
/* PG routing table */
.tbl .pri { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #fff; font-weight: 700; font-family: var(--font-mono); font-size: 12px; }
tr.off .pri { background: #C4CAD9; }
.tbl .acts { display: flex; gap: 4px; justify-content: flex-end; }
.sidebar a.brand { text-decoration: none; color: inherit; cursor: pointer; }

.row4 { display: flex; gap: 12px; align-items: flex-start; } .row4 > * { flex: 1; min-width: 0; }
@media (max-width: 1000px) { .row4 { flex-wrap: wrap; } .row4 > * { flex: 1 1 46%; } }
.onboard-legacy {}
.fee-preview { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 4px 0 4px; }
.fee-preview .lbl { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.fee-preview .fee-row { display: flex; gap: 28px; flex-wrap: wrap; }
.fee-preview .fee-row span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.fee-preview .fee-row b { font-family: var(--font-mono); font-size: 18px; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ---- TPS panel (static, no canvas) ---- */
.tps-now .bd { text-align: center; padding: 14px 16px 0; }
#g-gauge svg { display: block; margin: 0 auto; max-width: 260px; }
.tps-big { font-family: var(--font-mono); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -.03em; background: linear-gradient(120deg,#4F8CFF,#9B5CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tps-cap { color: var(--muted); font-size: 13px; margin-top: 6px; }
.tps-sub { display: flex; gap: 22px; justify-content: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.tps-sub b { font-family: var(--font-mono); color: var(--text); margin-left: 4px; }
.tps-split { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.tps-split .seg { text-align: center; padding: 14px 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.tps-split .seg .n { font-family: var(--font-mono); font-weight: 700; font-size: 28px; }
.tps-split .seg .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tps-split .ok .n { color: #0EA5A4; } .tps-split .bad .n { color: #F59E0B; } .tps-split .amt .n { color: var(--text); font-size: 22px; }
.tps-ratio { height: 10px; border-radius: 6px; background: #F1D9AE; overflow: hidden; margin: 18px 0 8px; }
.tps-ratio .bar { height: 100%; background: #0EA5A4; border-radius: 6px; width: 0; transition: none; }
.tps-ratio-lbl { text-align: center; font-size: 12.5px; color: var(--muted); }
.tps-ratio-lbl span { font-family: var(--font-mono); font-weight: 600; color: var(--text); }

/* ---- API docs ---- */
.apidoc .api-steps { display: flex; flex-direction: column; gap: 22px; }
.apidoc .api-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.apidoc .api-step > b { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; margin-top: 2px; }
.apidoc h4 { font-size: 15px; margin: 4px 0 6px; }
.apidoc p { margin: 0 0 10px; color: #3B4260; font-size: 13.5px; line-height: 1.55; }
.apidoc .tbl { margin: 8px 0 12px; } .apidoc .tbl td, .apidoc .tbl th { padding: 8px 12px; font-size: 12.5px; } .apidoc .tbl td:first-child { color: var(--muted); white-space: nowrap; }
.apidoc .mono { font-family: var(--font-mono); font-size: 12.5px; }
.codeblock { position: relative; margin: 8px 0 12px; }
.codeblock pre { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; background: var(--ink); color: #DDE3F5; padding: 14px 16px; border-radius: 10px; overflow-x: auto; white-space: pre; margin: 0; }
.codeblock > .btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }
.codeblock > .btn:hover { background: rgba(255,255,255,.2); }
.apidoc .errtbl { table-layout: fixed; width: 100%; }
.apidoc .errtbl th:nth-child(1), .apidoc .errtbl td:nth-child(1) { width: 60px; white-space: nowrap; color: var(--text); font-family: var(--font-mono); }
.apidoc .errtbl th:nth-child(2), .apidoc .errtbl td:nth-child(2) { width: 46%; white-space: normal; }
.apidoc .errtbl td:nth-child(3) { white-space: normal; color: #3B4260; }
.apidoc .errtbl .chip { margin: 2px 4px 2px 0; font-size: 11px; }
.apidoc .tbl td, .apidoc .tbl th { white-space: normal; vertical-align: top; }
.apidoc .tbl td:first-child { white-space: normal; }
.apidoc .tbl { table-layout: auto; }
.apidoc details.alt { margin: 4px 0 10px; } .apidoc details.alt summary { cursor: pointer; font-size: 12.5px; color: #4F8CFF; font-weight: 600; margin-bottom: 6px; }
#g-tps { padding: 10px 14px 6px; }

/* ---- Mobile / low-power: drop the expensive GPU effects (blur filters, particle layers, 3D tilt) ---- */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  #boot .aurora, #boot .hex, #boot .grid, #boot .stars, #boot .sweep, #boot .ripples, #boot .shooting, #boot .ring, #boot .glow,
  #login .aurora, #login .grid, #login .beam, #login .particles { display: none !important; }
  #boot { background: #0B1020; }
  #login { background: radial-gradient(ellipse at 30% 20%, #1A2350 0%, #0B1020 60%); }
  .card-3d { transform: none !important; }
  .login-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #121A38; }
  .modal-bg { backdrop-filter: none; }
  .vy-mark.vy-anim .vy-pulse, .vy-mark.vy-anim .vy-coin-glow, .vy-mark.vy-anim .vy-sat, .vy-mark.vy-anim .vy-sat2, .vy-mark.vy-anim .vy-halo { animation: none !important; }
  .vy-mark [filter] { filter: none !important; }
  .login-card .fl, .login-card .btn-primary, .login-card .otp, .login-card .method-pill, .login-hero .feat, .vy-word-split i { animation-duration: .01s !important; animation-delay: 0s !important; }
}
