:root {
  --canvas: #070914;
  --canvas-soft: #0b0e1a;
  --panel: #151925;
  --panel-high: #1c2130;
  --panel-soft: #222838;
  --paper: #f7f8fc;
  --ink: #f7f8fc;
  --ink-dark: #090b11;
  --muted: #929aac;
  --muted-dark: #697184;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #3768ff;
  --blue-bright: #5880ff;
  --cobalt: #1737b8;
  --midnight: #101f73;
  --silver: #c9d0dc;
  --success: #36d28b;
  --danger: #ff5b72;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(88, 128, 255, 0.5);
  outline-offset: 3px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(40px, 11vw, 50px); line-height: 0.98; letter-spacing: -1.8px; }
h2 { margin-bottom: 10px; font-size: 36px; line-height: 1.02; letter-spacing: -1px; }
h3 { margin-bottom: 12px; font-size: 20px; letter-spacing: -0.3px; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.spaced-top { margin-top: 14px; }
.centered-note { margin-top: 14px; text-align: center; }
.full { width: 100%; }

.app-shell {
  min-height: 100dvh;
  padding: calc(10px + env(safe-area-inset-top)) 0 calc(96px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 86% -8%, rgba(55, 104, 255, 0.18), transparent 27rem),
    var(--canvas);
}
main { width: 100%; max-width: 620px; margin: 0 auto; }
.screen { display: none; padding: 10px 20px 42px; animation: rise 220ms ease both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.topbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 10px;
  padding: 0 20px;
}
.logo, .icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}
.logo { background: var(--paper); color: var(--ink-dark); }
.icon-button { margin-left: auto; }
.runtime-badge, .test-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 10px;
  border: 1px solid rgba(88, 128, 255, 0.22);
  border-radius: 999px;
  background: rgba(55, 104, 255, 0.13);
  color: #aebfff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 10px;
  color: #aeb8cb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.screen-heading { margin: 18px 0 24px; }
.screen-heading > p:last-child { max-width: 34rem; }
.heading-row, .panel-head, .row, .split { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.heading-row .icon-button { flex: 0 0 auto; }
.panel-head { margin: 0 2px 14px; }
.panel-head h3 { margin-bottom: 0; }
.text-button {
  border: 0;
  background: transparent;
  color: #8e9bc2;
  font-size: 13px;
  font-weight: 750;
}

.home-hero {
  position: relative;
  min-height: 466px;
  padding: 30px 0 0;
  overflow: hidden;
}
.balance-label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.balance-label span { padding: 4px 7px; border-radius: 999px; background: rgba(55, 104, 255, 0.14); color: #9fb4ff; font-size: 9px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.balance { margin: 0; color: var(--ink); font-size: clamp(42px, 12vw, 56px); font-weight: 850; }
.hero-slogan { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.card-stack {
  position: relative;
  height: 252px;
  margin-top: 26px;
  padding: 0 4px;
  overflow: hidden;
  perspective: 1200px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.card-stack-hint { position: relative; z-index: 5; margin: 7px 8px 0; color: #8d96aa; font-size: 10px; line-height: 1.45; text-align: center; }
.bank-card-shell {
  position: absolute;
  top: 0;
  left: 4px;
  width: calc(100% - 8px);
  max-width: 360px;
  height: 214px;
  transform-style: preserve-3d;
  transition: transform 300ms cubic-bezier(.22,.8,.25,1), opacity 260ms ease, filter 260ms ease;
  will-change: transform;
}
.bank-card-shell[data-position="active"] { z-index: 3; transform: translate3d(0, 36px, 34px) rotate(-.7deg) scale(.985); opacity: 1; filter: brightness(1); }
.bank-card-shell[data-position="back"] { z-index: 1; transform: translate3d(8px, 2px, -18px) rotate(1.2deg) scale(.965); opacity: .96; filter: brightness(.93); }
.card-stack.is-dragging .bank-card-shell { transition: none; }
.card-stack.is-dragging .bank-card-shell[data-position="active"] { transform: translate3d(var(--swipe-x),36px,34px) rotate(calc(var(--swipe-x) * .025deg)) scale(.985); }
.card-stack.is-dragging .bank-card-shell[data-position="back"] { transform: translate3d(calc(8px - var(--swipe-x) * .12),2px,-18px) rotate(1.2deg) scale(.965); }
.card-stack.is-snapback .bank-card-shell { transition-duration: 200ms; transition-timing-function: cubic-bezier(.2,.75,.3,1); }
.bank-card-shell[data-position="back"]::before { content: ""; position: absolute; top: -8px; right: 0; left: 0; height: 48px; z-index: 6; border-radius: 24px 24px 8px 8px; pointer-events: auto; }
.bank-card-shell[data-position="back"]::after { content: "Нажмите"; position: absolute; top: 13px; right: 13px; z-index: 7; padding: 5px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(7,9,20,.34); color: rgba(255,255,255,.74); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.bank-card-shell:focus-visible { outline: 3px solid rgba(88,128,255,.6); outline-offset: 5px; border-radius: 27px; }
.card-rotator { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 560ms cubic-bezier(.2,.78,.2,1); }
.bank-card-shell[data-flipped="true"] .card-rotator { transform: rotateY(180deg); }
.card-rotator > .bank-card { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-back { transform: rotateY(180deg); justify-content: flex-start; gap: 11px; padding: 17px 18px; }
.test-card-warning { align-self: flex-start; padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(0,0,0,.18); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.test-card-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 7px; width: 100%; }
.test-card-field { position: relative; min-width: 0; min-height: 56px; padding: 9px 44px 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(4,8,25,.18); }
.test-card-field small, .test-card-field b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test-card-field small { margin-bottom: 5px; color: rgba(255,255,255,.65); font-size: 8px; }
.test-card-field b { font-size: 10px; letter-spacing: .025em; }
.test-card-field:nth-child(1) b { font-size: 8px; letter-spacing: 0; }
.test-card-field:nth-child(4) b { font-size: 7px; letter-spacing: 0; }
.copy-card-value { position: absolute; top: 8px; right: 7px; bottom: 8px; width: 34px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.1); color: white; font-size: 0; }
.copy-card-value::before, .copy-card-value::after { content: ""; position: absolute; width: 9px; height: 11px; border: 1px solid rgba(255,255,255,.85); border-radius: 2px; }
.copy-card-value::before { top: 12px; left: 10px; }
.copy-card-value::after { top: 9px; left: 13px; background: rgba(255,255,255,.08); }
.test-card-hint { margin-top: auto; color: rgba(255,255,255,.58); font-size: 8px; text-align: center; }
.clipboard-fallback { position: fixed; top: -1000px; left: -1000px; width: 1px; height: 1px; }
.card-stack.is-switching[data-direction="next"] .bank-card-shell[data-position="active"] { animation: card-in-from-right 300ms cubic-bezier(.22,.8,.25,1); }
.card-stack.is-switching[data-direction="previous"] .bank-card-shell[data-position="active"] { animation: card-in-from-left 300ms cubic-bezier(.22,.8,.25,1); }
.card-stack.is-switching[data-direction="next"] .bank-card-shell[data-position="back"] { animation: card-out-left 300ms cubic-bezier(.22,.8,.25,1); }
.card-stack.is-switching[data-direction="previous"] .bank-card-shell[data-position="back"] { animation: card-out-right 300ms cubic-bezier(.22,.8,.25,1); }
@keyframes card-in-from-right { 0% { transform: translate3d(44px,30px,28px) rotate(2.2deg) scale(.97); opacity: .86; } 100% { transform: translate3d(0,30px,34px) rotate(-.5deg) scale(.985); opacity: 1; } }
@keyframes card-in-from-left { 0% { transform: translate3d(-44px,30px,28px) rotate(-2.2deg) scale(.97); opacity: .86; } 100% { transform: translate3d(0,30px,34px) rotate(-.5deg) scale(.985); opacity: 1; } }
@keyframes card-out-left { 0% { transform: translate3d(0,30px,34px) rotate(-.5deg) scale(.985); opacity: 1; } 100% { transform: translate3d(-44px,2px,-18px) rotate(-2deg) scale(.965); opacity: .82; } }
@keyframes card-out-right { 0% { transform: translate3d(0,30px,34px) rotate(-.5deg) scale(.985); opacity: 1; } 100% { transform: translate3d(44px,2px,-18px) rotate(2deg) scale(.965); opacity: .82; } }

.bank-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 25px;
  color: white;
  text-align: left;
  box-shadow: var(--shadow);
}
.local-card { background: linear-gradient(138deg, #0c0e13 0%, #1b202b 55%, #313949 100%); }
.world-card { background: linear-gradient(138deg, #0e237b 0%, #2756ed 53%, #5880ff 100%); }
.card-face.local-card { background:#11151d url("/static/ladno-mir.jpg?v=3") center/cover no-repeat; }
.card-face.world-card { background:#eef2fa url("/static/ladno-visa.jpg?v=3") center/cover no-repeat; color:#121a2c; }
.card-face { border-color:transparent; background-clip:padding-box; box-shadow:0 24px 58px rgba(0,0,0,.32); }
.card-face .orbit-lines, .card-face .brand-seam { display:none; }
.bank-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 66%); transform: translateX(-65%); opacity: .55; }
.card-face::after { display:none; }
.card-top { position: relative; z-index: 2; align-items: flex-start; }
.kind { display: flex; align-items: center; gap: 10px; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: 0.13em; line-height: 1.3; text-shadow:0 1px 12px rgba(0,0,0,.22); }
.kind i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(0,0,0,.14); font-size: 17px; font-style: normal; font-weight: 850; }
.kind b { font-size: 12px; }
.status { padding: 6px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(0,0,0,.16); font-size: 9px; font-weight: 750; }
.card-number { position: relative; z-index: 2; font-size: 14px; font-weight: 650; letter-spacing: .12em; }
.bank-card .amount { position: relative; z-index: 2; font-size: 23px; font-weight: 800; letter-spacing: -.3px; }
.card-bottom { position:relative; z-index:2; display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.card-network { font-size:18px; font-weight:850; letter-spacing:-.5px; }
.card-face.world-card .status { border-color:rgba(18,26,44,.13); background:rgba(255,255,255,.38); color:#182137; }
.card-face.world-card .kind { text-shadow:none; }
.orbit-lines { position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; bottom: -130px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-lines::before, .orbit-lines::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.orbit-lines::before { inset: 26px; }
.orbit-lines::after { inset: 56px; }
.brand-seam { position: absolute; top: 0; bottom: 0; left: 61%; width: 2px; background: linear-gradient(transparent, rgba(255,255,255,.42), transparent); opacity: .72; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 4px 0 22px; }
.quick-actions button { min-width: 0; border: 0; background: transparent; color: #dfe3ee; font-size: 10px; font-weight: 650; }
.quick-actions span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 8px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel-high); color: #74a0ff; font-size: 25px; box-shadow: 0 10px 28px rgba(0,0,0,.17); }
.quick-actions svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.money-tiles, .profile-grid, .action-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.money-tiles { margin-bottom: 28px; }
.money-tiles button, .profile-grid > div, .action-pair button { min-height: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 25px; background: var(--panel-high); color: var(--ink); text-align: left; }
.money-tiles button:first-child { background: linear-gradient(145deg, #1c2029, #272e3a); }
.money-tiles button:last-child { background: linear-gradient(145deg, #182866, #234dcf); }
.money-tiles span, .money-tiles small { display: block; color: #a6aec0; font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.money-tiles b { display: block; margin: 26px 0 7px; font-size: clamp(20px, 6vw, 27px); letter-spacing: -.6px; }
.history-preview { margin-top: 2px; }

.panel, .history-surface, .support-note, .quote {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0,0,0,.13);
}
.panel + .panel, .profile-panel + .profile-panel { margin-top: 14px; }
.stack { display: grid; gap: 0; }
.card-deck { display: grid; gap: 15px; margin-bottom: 18px; }
.card-deck .bank-card { width: 100%; min-height: 220px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 66px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.setting:last-child { border-bottom: 0; }
.setting span { min-width: 0; }
.setting strong, .setting small { display: block; }
.setting strong { font-size: 15px; }
.setting small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.setting > b { flex: 0 0 auto; max-width: 42%; color: #9db2ff; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.setting > b:not(.small) { white-space: nowrap; }

.scan-focus { position: relative; padding: 34px 22px 22px; overflow: hidden; border: 1px solid rgba(88,128,255,.28); border-radius: 32px; background: linear-gradient(145deg, #1737b8, #3768ff 62%, #6e8fff); box-shadow: 0 26px 60px rgba(23,55,184,.28); text-align: center; }
.scan-focus h3 { margin: 18px 0 8px; font-size: 25px; }
.scan-focus p:not(.eyebrow) { margin-bottom: 22px; color: #dce5ff; font-size: 13px; }
.scan-mark { position: relative; width: 146px; height: 146px; margin: 0 auto 20px; border-radius: 42px; background: rgba(4,12,46,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.scan-mark b { display: grid; place-items: center; height: 100%; font-size: 48px; }

.services-heading { margin:18px 2px 21px; }
.services-heading h2 { margin:5px 0 8px; font-size:34px; letter-spacing:-1.1px; }
.services-heading > p:last-child { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.service-primary { display:grid; grid-template-columns:56px minmax(0,1fr) 14px; align-items:center; gap:14px; width:100%; min-height:116px; padding:18px; overflow:hidden; border:1px solid rgba(116,155,255,.38); border-radius:27px; background:radial-gradient(circle at 88% 0,rgba(138,187,255,.48),transparent 38%),linear-gradient(135deg,#17379f,#3268ef 58%,#6a96ff); color:#fff; text-align:left; box-shadow:0 22px 50px rgba(31,79,202,.27); }
.service-primary:active { transform:scale(.988); }
.service-primary-icon,.service-icon { display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.1); }
.service-primary-icon { width:56px; height:56px; border-radius:19px; box-shadow:inset 0 1px 0 rgba(255,255,255,.16); }
.service-primary svg,.service-card svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.service-primary > span:nth-child(2) { min-width:0; }
.service-primary small,.service-primary strong,.service-primary em { display:block; }
.service-primary small { margin-bottom:5px; color:#cbd9ff; font-size:8px; font-weight:850; letter-spacing:.09em; }
.service-primary strong { font-size:18px; letter-spacing:-.25px; }
.service-primary em { margin-top:5px; overflow:hidden; color:#e4ebff; font-size:10px; font-style:normal; line-height:1.35; white-space:nowrap; text-overflow:ellipsis; }
.service-primary > b { font-size:28px; font-weight:350; opacity:.82; }
.services-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin:25px 3px 11px; }
.services-section-head h3 { margin:0; font-size:17px; letter-spacing:-.25px; }
.services-section-head span { color:var(--muted); font-size:9px; }
.services-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding-bottom:14px; }
.service-card { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; min-height:169px; padding:15px; overflow:hidden; border:1px solid rgba(255,255,255,.065); border-radius:23px; background:linear-gradient(145deg,#1a202d,#121722); box-shadow:0 14px 34px rgba(0,0,0,.15); }
.service-card::after { content:""; position:absolute; z-index:-1; width:120px; height:120px; right:-48px; bottom:-54px; border-radius:50%; background:var(--service-glow,rgba(61,104,255,.13)); filter:blur(8px); }
.service-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.service-icon { width:42px; height:42px; border-radius:14px; color:var(--service-color,#7da2ff); }
.service-icon svg { width:21px; height:21px; }
.service-soon { padding:5px 7px; border:1px solid rgba(255,255,255,.07); border-radius:999px; background:rgba(255,255,255,.035); color:#8792a8; font-size:7px; font-weight:800; letter-spacing:.04em; }
.service-card h3 { margin:18px 0 6px; font-size:14px; letter-spacing:-.15px; }
.service-card p { margin:0; color:#8f99ad; font-size:10px; line-height:1.45; }
.service-crypto { --service-color:#6e9cff; --service-glow:rgba(46,99,255,.23); }
.service-gift { --service-color:#81c9ff; --service-glow:rgba(66,184,255,.18); }
.service-games { --service-color:#a8b6ff; --service-glow:rgba(91,113,255,.19); }
.service-stars { --service-color:#69a8ff; --service-glow:rgba(42,129,255,.2); }
.service-aml { --service-color:#72d5c4; --service-glow:rgba(40,190,165,.16); }
.service-card-wide { grid-column:1/-1; min-height:132px; }
.service-card-wide > div:last-child { max-width:76%; }
html[data-theme="light"] .service-card { border-color:#dfe5ef; background:linear-gradient(145deg,#fff,#f2f5fa); box-shadow:0 14px 34px rgba(47,66,101,.09); }
html[data-theme="light"] .service-card h3 { color:#121a2c; }
html[data-theme="light"] .service-card p { color:#69758a; }
html[data-theme="light"] .service-icon { border-color:rgba(39,81,175,.09); background:rgba(64,111,220,.07); }
html[data-theme="light"] .service-soon { border-color:#dfe5ef; background:#f6f8fc; color:#7c8799; }
.scan-mark i { position: absolute; width: 34px; height: 34px; border-color: white; border-style: solid; }
.scan-mark i:nth-child(1) { top: 16px; left: 16px; border-width: 4px 0 0 4px; border-radius: 9px 0 0; }
.scan-mark i:nth-child(2) { top: 16px; right: 16px; border-width: 4px 4px 0 0; border-radius: 0 9px 0 0; }
.scan-mark i:nth-child(3) { bottom: 16px; left: 16px; border-width: 0 0 4px 4px; border-radius: 0 0 0 9px; }
.scan-mark i:nth-child(4) { right: 16px; bottom: 16px; border-width: 0 4px 4px 0; border-radius: 0 0 9px; }
.action-pair { margin-top: 13px; }
.action-pair button { display: grid; align-content: start; min-height: 145px; }
.action-pair span { color: #72a0ff; font-size: 25px; }
.action-pair strong { margin-top: 22px; font-size: 16px; }
.action-pair small { margin-top: 6px; color: var(--muted); }

.history-heading { position:relative; margin:4px 0 18px; padding:18px 18px 17px; overflow:hidden; border:1px solid rgba(93,132,255,.14); border-radius:25px; background:radial-gradient(circle at 88% 12%,rgba(55,104,255,.20),transparent 42%),linear-gradient(145deg,rgba(24,31,51,.96),rgba(12,16,28,.96)); box-shadow:0 18px 38px rgba(0,0,0,.20); }
.history-heading::after { content:""; position:absolute; right:-28px; bottom:-52px; width:130px; height:130px; border:1px solid rgba(107,145,255,.12); border-radius:50%; }
.history-heading h2 { margin-bottom:5px; font-size:34px; letter-spacing:-1.1px; }
.history-heading .eyebrow { color:#8eabff; }
.history-heading .icon-button { position:relative; z-index:1; border-color:rgba(119,151,255,.20); background:rgba(16,23,39,.70); color:#86a8ff; }
.history-subtitle { margin:0; color:#7f899d; font-size:11px; }
.history-filters { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:0 0 16px; padding:5px; border:1px solid rgba(255,255,255,.055); border-radius:17px; background:rgba(16,21,34,.82); }
.history-filters button { min-width:0; min-height:39px; padding:8px 7px; border:0; border-radius:12px; background:transparent; color:#7f899d; font-size:11px; font-weight:750; }
.history-filters button[aria-pressed="true"] { background:linear-gradient(145deg,#315ed9,#477cff); color:#fff; box-shadow:0 8px 18px rgba(45,90,220,.28); }
.history-surface { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.operation-list { margin: 0; padding: 0; list-style: none; }
.operation { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; border-bottom: 1px solid var(--line); }
.operation:last-child { border-bottom: 0; }
.op-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 15px; background: var(--panel-high); color: #8aacff; font-size: 14px; font-weight: 800; }
.op-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.history-surface .operation-list { display:grid; gap:9px; }
.history-surface .operation { min-height:76px; padding:12px 13px; border:1px solid rgba(255,255,255,.055); border-radius:19px; background:linear-gradient(145deg,rgba(25,31,46,.96),rgba(15,20,31,.96)); box-shadow:0 10px 24px rgba(0,0,0,.14); }
.history-surface .op-icon { background:linear-gradient(145deg,#1f2d4c,#172137); color:#7fa3ff; box-shadow:inset 0 0 0 1px rgba(113,150,255,.10); }
.history-surface .op-icon.income { background:rgba(44,179,119,.12); color:#55d99b; }
.history-surface .operation > strong:not(.credit) { color:#f1f4fb; }
.operation span:nth-child(2) { min-width: 0; }
.operation strong { font-size: 13px; }
.operation span:nth-child(2) strong, .operation small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operation small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.operation > strong { text-align: right; white-space: nowrap; }
.operation .credit { color: var(--success); }
.support-note { margin-top: 16px; }
.support-note p { margin-bottom: 14px; }

.profile-head { display: flex; align-items: center; gap: 18px; padding: 26px 2px 24px; }
.profile-head h2 { margin-bottom: 6px; font-size: 29px; }
.profile-head p:last-child { margin: 0; color: var(--muted); }
.profile-monogram { display: grid; flex: 0 0 auto; place-items: center; width: 78px; height: 78px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: linear-gradient(145deg, #315cff, #122875); font-size: 34px; font-weight: 850; box-shadow: 0 18px 38px rgba(23,55,184,.3); }
.profile-grid { margin-bottom: 14px; }
.profile-grid > div { display: flex; flex-direction: column; justify-content: flex-end; }
.profile-grid strong, .profile-grid small { display: block; }
.profile-grid strong { margin-top: 24px; font-size: 17px; }
.profile-grid small { margin-top: 5px; color: var(--muted); }
.tile-mark { align-self: flex-start; padding: 8px 10px; border-radius: 12px; background: linear-gradient(145deg, #8e99ad, #525b6d); color: white; font-size: 12px; font-weight: 850; }
.tile-mark.verified { background: linear-gradient(145deg, #bde948, #68ba31); color: #17300c; font-size: 17px; }
.profile-panel { margin-bottom: 14px; }
.referral-card { position: relative; isolation: isolate; overflow: hidden; margin: 24px 0 18px; padding: 25px 22px 21px; border: 1px solid rgba(125,160,255,.35); border-radius: 30px; background: radial-gradient(circle at 100% 0, rgba(64,112,255,.42), transparent 43%), linear-gradient(145deg, #10182b, #090d17 68%); box-shadow: 0 22px 50px rgba(0,0,0,.28); }
.referral-card .eyebrow { margin: 0 0 7px; color: #9cb6ff; }
.referral-card h3 { max-width: 72%; margin: 0; color: #fff; font-size: 29px; line-height: 1.05; letter-spacing: -.75px; }
.referral-subtitle { max-width: 78%; margin: 10px 0 20px; color: #b7c2d9; font-size: 14px; line-height: 1.45; }
.referral-orb { position: absolute; z-index: -1; top: 17px; right: 13px; display: grid; place-items: center; width: 83px; height: 83px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: linear-gradient(145deg, #6e98ff, #224ed5); box-shadow: 0 14px 35px rgba(43,90,235,.48), inset 0 1px 0 rgba(255,255,255,.4); color: white; transform: rotate(8deg); }
.referral-orb span { font-size: 35px; font-weight: 850; }
.referral-orb i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #bddd47; box-shadow: 0 0 14px rgba(189,221,71,.8); }
.referral-orb i:first-of-type { right: -6px; bottom: 9px; }
.referral-orb i:last-of-type { top: -7px; left: 9px; width: 7px; height: 7px; }
.referral-earned { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.065); }
.referral-earned span { color: #aeb9ce; font-size: 13px; }
.referral-earned strong { color: white; font-size: 22px; }
.referral-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 16px; }
.referral-stats > span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.045); }
.referral-stats strong { color: white; font-size: 20px; }
.referral-stats small { color: #9ba8bf; font-size: 11px; }
.referral-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 9px; }
.referral-actions button { min-height: 49px; padding: 10px 12px; font-size: 13px; }
.referral-actions .secondary { border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.07); color: white; }
.referral-actions button:disabled { opacity: .45; }
.referral-rule { margin: 14px 2px 0; color: #7f8ba2; font-size: 11px; line-height: 1.45; }
html[data-theme="light"] .referral-card { border-color: #cdd9ff; background: radial-gradient(circle at 100% 0, rgba(71,119,255,.19), transparent 44%), linear-gradient(145deg, #fff, #edf2ff); box-shadow: 0 20px 44px rgba(31,68,154,.14); }
html[data-theme="light"] .referral-card h3, html[data-theme="light"] .referral-earned strong, html[data-theme="light"] .referral-stats strong { color: #10182a; }
html[data-theme="light"] .referral-subtitle, html[data-theme="light"] .referral-earned span, html[data-theme="light"] .referral-stats small { color: #5e6b82; }
html[data-theme="light"] .referral-earned { border-color: #dce4f7; background: rgba(255,255,255,.7); }
html[data-theme="light"] .referral-stats > span { background: rgba(213,224,249,.48); }
html[data-theme="light"] .referral-actions .secondary { border-color: #ccd7ee; background: rgba(255,255,255,.76); color: #1a2740; }
html[data-theme="light"] .referral-rule { color: #748097; }
.profile-support { margin: 26px 0 18px; }
.profile-support > h3 { margin: 0 0 11px 4px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.support-menu { overflow: hidden; border: 1px solid var(--line); border-radius: 27px; background: var(--panel); box-shadow: 0 16px 40px rgba(0,0,0,.13); }
.support-menu-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 14px; width: 100%; min-height: 82px; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.support-menu-row:last-child { border-bottom: 0; }
.support-menu-row:active { background: rgba(88,128,255,.08); }
.support-menu-row strong { min-width: 0; font-size: 18px; font-weight: 650; letter-spacing: -.25px; }
.support-menu-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, #697386, #3e4656); color: #f5f7fb; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.support-menu-icon svg { width: 25px; height: 25px; fill: currentColor; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.support-menu-icon svg path:first-child { fill: currentColor; stroke: none; }
.support-menu-icon svg path + path { fill: none; stroke: var(--canvas); stroke-width: 1.8; }
.support-menu-chevron { color: var(--muted); font-size: 34px; font-weight: 300; line-height: 1; text-align: right; }
.faq-sheet > .muted { margin: 8px 0 20px; line-height: 1.5; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-high); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--muted); font-size: 24px; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.primary, .secondary, .danger {
  min-height: 52px;
  padding: 13px 18px;
  border: 0;
  border-radius: 18px;
  font-weight: 800;
}
.primary { background: var(--blue); color: white; box-shadow: 0 12px 26px rgba(55,104,255,.25); }
.primary.light { background: white; color: #14204e; box-shadow: none; }
.secondary { background: var(--panel-high); color: #b9c7ff; }
.danger { background: rgba(255,91,114,.12); color: #ff8093; }

.empty { padding: 26px 6px; color: var(--muted); text-align: center; }
.empty b { display: block; color: var(--ink); }
.empty p { margin: 8px 0 0; font-size: 12px; }
.quote { display: grid; gap: 12px; margin: 16px 0; background: var(--panel-high); }
.quote .row { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.quote .row:last-child { padding-bottom: 0; border-bottom: 0; }
.quote span { color: var(--muted); font-size: 12px; }

.onboarding { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(30px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)); overflow: hidden; background: radial-gradient(circle at 76% 8%, #3768ff 0, #1737b8 25%, #070914 65%); }
.onboarding[hidden] { display: none; }
.brand-orb { position: absolute; top: 10%; right: 8%; display: grid; place-items: center; width: 154px; height: 154px; border: 1px solid rgba(255,255,255,.24); border-radius: 54px; background: rgba(255,255,255,.08); font-size: 70px; font-weight: 900; transform: rotate(7deg); backdrop-filter: blur(15px); }
.onboarding-copy { position: relative; z-index: 2; }
.onboarding-copy h1 { margin: 14px 0; font-size: clamp(48px, 15vw, 72px); }
.onboarding-copy > p:last-child { color: #c3cbed; }
.onboarding-cards { position: relative; height: 112px; margin: 16px 0 24px; }
.mini-card { position: absolute; width: 190px; height: 110px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 21px; color: white; font-size: 10px; letter-spacing: .1em; box-shadow: var(--shadow); }
.mini-card b { display: block; margin-top: 34px; font-size: 13px; }
.mini-card.local-card { left: 0; z-index: 2; transform: rotate(-5deg); }
.mini-card.world-card { left: 125px; transform: rotate(7deg); }
.onboarding > small { margin-top: 12px; color: #a9b2cb; text-align: center; }

.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); min-height: calc(72px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(18,22,34,.94); box-shadow: 0 -14px 34px rgba(0,0,0,.24); backdrop-filter: blur(22px); }
.bottom-nav button { position: relative; display: grid; align-content: center; justify-items: center; gap: 3px; min-width: 0; min-height: 58px; padding: 3px 1px; border: 0; background: transparent; color: #788194; font-size: 9.5px; font-weight: 700; letter-spacing: -.01em; transition: color .18s ease, transform .18s ease; }
.bottom-nav button:active { transform: scale(.96); }
.nav-glyph { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 13px; transition: background .18s ease, box-shadow .18s ease; }
.nav-glyph svg { width: 23px; height: 23px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button[aria-current="page"] { color: #6591ff; }
.bottom-nav button[aria-current="page"] .nav-glyph { background: rgba(55,104,255,.13); box-shadow: inset 0 0 0 1px rgba(101,145,255,.08); }
.bottom-nav .pay-nav { margin-top: 0; }
.bottom-nav .pay-nav .nav-glyph { width: 38px; height: 34px; margin-bottom: 0; border: 0; border-radius: 13px; background: transparent; color: inherit; box-shadow: none; }
.bottom-nav .pay-nav[aria-current="page"] .nav-glyph { background: rgba(55,104,255,.13); box-shadow: inset 0 0 0 1px rgba(101,145,255,.08); }

.loading-layer { position: fixed; inset: 0; z-index: 70; display: grid; align-content: center; justify-items: center; gap: 13px; background: rgba(7,9,20,.88); color: #c9d0dc; backdrop-filter: blur(16px); }
.loading-layer[hidden] { display: none; }
.spinner { width: 38px; height: 38px; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--blue-bright); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 18px; bottom: calc(100px + env(safe-area-inset-bottom)); left: 18px; z-index: 80; max-width: 500px; margin: auto; padding: 15px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #242a38; color: white; box-shadow: var(--shadow); text-align: center; }

.sheet { width: min(100% - 18px, 560px); max-height: 88dvh; margin: auto auto 8px; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); overflow: auto; border: 1px solid rgba(255,255,255,.11); border-radius: 30px; background: #171b27; color: var(--ink); box-shadow: 0 -20px 80px rgba(0,0,0,.55); }
.sheet::backdrop { background: rgba(2,3,8,.7); backdrop-filter: blur(8px); }
.sheet-handle { width: 40px; height: 5px; margin: 0 auto 22px; border-radius: 999px; background: #495164; }
.sheet-close { position: absolute; top: 14px; right: 15px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--panel-high); color: white; font-size: 25px; }
.sheet.currency-sheet { width:100vw; max-width:620px; min-height:76dvh; max-height:88dvh; margin:auto auto 0; padding:12px 20px calc(24px + env(safe-area-inset-bottom)); border-right:0; border-bottom:0; border-left:0; border-radius:28px 28px 0 0; background:linear-gradient(180deg,#121722 0%,#0e121b 100%); box-shadow:0 -24px 90px rgba(0,0,0,.78); animation:currency-sheet-up 280ms cubic-bezier(.22,.8,.25,1); }
.sheet.currency-sheet::backdrop { background:rgba(2,3,8,.78); backdrop-filter:blur(10px); }
.currency-sheet .sheet-handle { width:38px; height:4px; margin-bottom:20px; background:#4a5365; }
.currency-sheet .sheet-close { top:17px; right:17px; width:32px; height:32px; background:transparent; color:#c9d0de; font-size:22px; }
@keyframes currency-sheet-up { from { opacity:.55; transform:translateY(70px); } to { opacity:1; transform:translateY(0); } }
.sheet h2 { padding-right: 42px; font-size: 30px; }
.sheet .bank-card { width: 100%; margin: 12px 0 18px; }
label { display: grid; gap: 8px; color: #bbc2d1; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: #222735; color: white; font-size: 16px; }
textarea { min-height: 110px; resize: vertical; }
.receipt { text-align: center; }
.receipt-mark { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 27px; background: rgba(54,210,139,.14); color: var(--success); font-size: 37px; }

.sheet.payment-result-sheet { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; min-height:100dvh; max-height:100dvh; margin:0; padding:calc(48px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom)); overflow:auto; border:0; border-radius:0; background:radial-gradient(circle at 50% -8%,rgba(30,175,132,.17),transparent 38%),linear-gradient(180deg,#071315 0%,#070914 58%,#060711 100%); box-shadow:none; }
.payment-result-sheet::backdrop { background:#070915; backdrop-filter:none; }
.payment-result-sheet .sheet-handle { display:none; }
.payment-result-sheet .sheet-close { top:calc(10px + env(safe-area-inset-top)); right:16px; z-index:3; width:38px; height:38px; background:rgba(255,255,255,.065); color:#dce3ee; font-size:23px; }
.payment-result { display:flex; flex-direction:column; width:min(100%,480px); min-height:calc(100dvh - 66px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin:auto; color:#f7f8fc; animation:payment-result-in 360ms ease both; }
.payment-result-summary { display:grid; justify-items:center; gap:7px; padding:18px 0 20px; text-align:center; }
.payment-card-glyph { position:relative; display:grid; place-items:center; width:72px; height:72px; margin-bottom:8px; border-radius:25px; background:rgba(255,255,255,.08); color:#7e899a; animation:payment-success-pop 560ms cubic-bezier(.18,.9,.24,1.25) both; }
.payment-card-glyph::before { content:""; width:31px; height:22px; border:3px solid currentColor; border-radius:6px; }
.payment-card-glyph::after { content:""; position:absolute; width:25px; height:3px; border-radius:3px; background:currentColor; transform:translateY(-5px); }
.payment-card-glyph span { position:absolute; width:8px; height:4px; border-radius:3px; background:currentColor; transform:translate(-8px,7px); }
.payment-result-summary .eyebrow { margin:2px 0 6px; color:#7f8b9f; font-size:10px; font-weight:760; letter-spacing:.16em; }
.payment-result-amount { font-size:clamp(42px,12vw,56px); font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-2.2px; line-height:.98; }
.payment-result-source { margin-top:3px; color:#8d96a8; font-size:14px; font-weight:560; letter-spacing:.035em; }
.payment-success-card { display:grid; justify-items:center; gap:7px; padding:23px 20px 24px; border:1px solid rgba(255,255,255,.075); border-radius:24px; background:linear-gradient(145deg,rgba(29,34,50,.94),rgba(20,24,38,.94)); text-align:center; box-shadow:0 18px 50px rgba(0,0,0,.24); animation:payment-success-card-up 480ms 80ms cubic-bezier(.2,.8,.2,1) both; }
.payment-success-icon { width:58px; height:58px; margin-bottom:2px; overflow:visible; filter:drop-shadow(0 8px 18px rgba(54,210,139,.18)); }
.payment-success-icon circle { fill:var(--success); stroke:none; transform-origin:center; animation:payment-success-pop 520ms 180ms cubic-bezier(.18,.9,.24,1.25) both; }
.payment-success-icon path { fill:none; stroke:#0d2730; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:42; stroke-dashoffset:42; animation:payment-check-draw 440ms 500ms ease forwards; }
.payment-success-card h2 { margin:0; padding:0; font-size:clamp(25px,7vw,31px); font-weight:700; line-height:1.06; letter-spacing:-.65px; }
.payment-success-card p { margin:4px 0 0; color:#dfe4ee; font-size:15px; font-weight:540; }
.payment-success-card small { margin-top:2px; color:#818b9d; font-size:12px; line-height:1.35; }
.payment-result-actions { display:grid; gap:9px; margin-top:auto; padding-top:18px; }
.payment-result-actions button { min-height:54px; border-radius:18px; font-size:15px; font-weight:700; letter-spacing:-.1px; }
.payment-result-actions .primary { box-shadow:0 12px 30px rgba(55,104,255,.24); }
.payment-result-actions .secondary { border:1px solid rgba(87,122,235,.15); background:rgba(55,104,255,.09); color:#6f9bff; box-shadow:none; }
@keyframes payment-result-in { from { opacity:0; } to { opacity:1; } }
@keyframes payment-success-card-up { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes payment-success-pop { from { opacity:0; transform:scale(.55); } to { opacity:1; transform:scale(1); } }
@keyframes payment-check-draw { to { stroke-dashoffset:0; } }
html[data-theme="light"] .sheet.payment-result-sheet { background:radial-gradient(circle at 50% 0,rgba(55,104,255,.15),transparent 40%),linear-gradient(180deg,#edf2ff,#f7f8fc 58%); }
html[data-theme="light"] .payment-result { color:#111827; }
html[data-theme="light"] .payment-result-sheet .sheet-close { background:rgba(17,24,39,.07); color:#344054; }
html[data-theme="light"] .payment-card-glyph { background:rgba(55,104,255,.09); color:#65728a; }
html[data-theme="light"] .payment-success-card { border-color:#dde3ef; background:#fff; box-shadow:0 22px 58px rgba(40,55,90,.13); }
html[data-theme="light"] .payment-success-card p { color:#293245; }
@media (max-height:740px) { .sheet.payment-result-sheet { padding-top:calc(42px + env(safe-area-inset-top)); } .payment-result-summary { padding:8px 0 13px; } .payment-success-icon { width:50px; height:50px; } .payment-result-amount { font-size:40px; } .payment-success-card { padding:18px; } .payment-result-actions { padding-top:12px; } .payment-result-actions button { min-height:50px; } }
@media (prefers-reduced-motion:reduce) { .payment-result,.payment-card-glyph,.payment-success-card,.payment-success-icon circle,.payment-success-icon path { animation:none!important; } .payment-success-icon path { stroke-dashoffset:0; } }

/* Compact reference-driven home dashboard */
.home-hero { min-height: 384px; padding-top: 14px; }
.home-welcome { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.home-welcome .eyebrow { margin:0 0 3px; color:#70798d; font-size:9px; }
.home-welcome strong { display:block; max-width:235px; overflow:hidden; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.home-welcome > span { padding:7px 10px; border:1px solid rgba(88,128,255,.18); border-radius:999px; background:rgba(55,104,255,.08); color:#91a8fb; font-size:8px; font-weight:800; letter-spacing:.1em; }
.balance-summary { display:flex; align-items:end; justify-content:space-between; gap:14px; }
.balance-summary > div { min-width:0; }
.balance-summary > button { display:grid; flex:0 0 auto; place-items:center; width:62px; height:62px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(145deg,#181d2a,#10141f); color:white; box-shadow:0 12px 32px rgba(0,0,0,.2); }
.balance-summary > button span { font-size:20px; font-weight:850; line-height:1; }
.balance-summary > button small { color:var(--muted); font-size:8px; }
.balance { font-size:clamp(34px,9.8vw,45px); letter-spacing:-1.4px; }
.home-hero .card-stack { height:220px; margin-top:15px; }
.home-hero .bank-card-shell { height:188px; }
.home-hero .bank-card-shell[data-position="active"] { transform:translate3d(0,30px,34px) rotate(-.5deg) scale(.985); }
.home-hero .card-stack.is-dragging .bank-card-shell[data-position="active"] { transform:translate3d(var(--swipe-x),30px,34px) rotate(calc(var(--swipe-x) * .025deg)) scale(.985); }
.home-hero .bank-card { min-height:188px; padding:19px; }
.quick-actions { gap:7px; margin:8px 0 20px; }
.quick-actions span { width:52px; height:52px; margin-bottom:7px; border-radius:18px; background:linear-gradient(145deg,#1d2332,#151a27); font-size:23px; }
.wallet-overview { display:block; margin-bottom:27px; }
.wallet-overview > button { min-width:0; padding:15px; border:1px solid var(--line); border-radius:21px; background:var(--panel); color:white; text-align:left; }
.wallet-overview > button > span { display:flex; align-items:center; gap:7px; color:#9ca5b8; font-size:9px; font-weight:800; letter-spacing:.09em; }
.wallet-overview > button > b { display:block; margin-top:13px; overflow:hidden; font-size:18px; letter-spacing:-.35px; text-overflow:ellipsis; white-space:nowrap; }
.wallet-dot { width:8px; height:8px; border-radius:50%; background:#aab2c2; }
.world-dot { background:#4d76ff; box-shadow:0 0 12px rgba(77,118,255,.7); }
.wallet-overview .rate-row { position:relative; display:grid; grid-template-columns:1fr auto 38px; align-items:center; width:100%; min-height:96px; padding:17px 17px 17px 18px; overflow:hidden; border:1px solid rgba(96,128,255,.2); border-radius:25px; background:radial-gradient(circle at 82% 0,rgba(62,103,255,.22),transparent 44%),linear-gradient(135deg,#181e2c,#111620); box-shadow:0 15px 36px rgba(0,0,0,.18); color:white; text-align:left; }
.wallet-overview .rate-row::after { content:""; position:absolute; right:-36px; bottom:-72px; width:150px; height:150px; border:1px solid rgba(102,137,255,.12); border-radius:50%; }
.rate-title { position:relative; z-index:1; display:flex; align-items:center; gap:7px; }
.rate-title i { display:grid; place-items:center; min-width:38px; height:26px; padding:0 8px; border:1px solid rgba(255,255,255,.08); border-radius:9px; background:rgba(255,255,255,.04); color:#cbd4e7; font-size:9px; font-style:normal; font-weight:850; letter-spacing:.08em; }
.rate-title em { color:#5f7fe3; font-size:12px; font-style:normal; }
.rate-title small { position:absolute; top:37px; left:0; display:flex; align-items:center; gap:6px; width:max-content; color:#727d91; font-size:8px; }
.rate-title small b { width:5px; height:5px; margin:0; border-radius:50%; background:#48ca84; box-shadow:0 0 8px rgba(72,202,132,.6); }
.rate-value { position:relative; z-index:1; display:block; padding-right:14px; text-align:right; }
.rate-value small { display:block; color:#6f7a8e; font-size:8px; }
.rate-value b { display:block; margin-top:3px; font-size:24px; letter-spacing:-.7px; }
.rate-row > strong { position:relative; z-index:1; display:grid; place-items:center; width:38px; height:38px; border-radius:13px; background:#5279f4; box-shadow:0 8px 20px rgba(48,88,221,.35); color:white; font-size:17px; }
.history-preview { padding-bottom:12px; }

/* Rebuilt clean home header */
.stories-rail { position:relative; max-width:none; margin:4px -20px 12px; overflow:hidden; }
.stories-strip { display:flex; gap:8px; max-width:100%; margin:0; padding:5px 20px 9px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; scroll-padding-inline:20px; scroll-snap-type:x proximity; }
.stories-strip::-webkit-scrollbar { display:none; }
.stories-edge { position:absolute; top:3px; bottom:6px; z-index:5; display:block; width:15px; opacity:1; pointer-events:none; transition:opacity 140ms ease; }
.stories-edge-left { left:0; background:linear-gradient(90deg,rgba(7,9,20,.82) 0,rgba(7,9,20,.38) 48%,transparent 100%); }
.stories-edge-right { right:0; background:linear-gradient(270deg,rgba(7,9,20,.82) 0,rgba(7,9,20,.38) 48%,transparent 100%); }
.stories-rail.at-start .stories-edge-left,.stories-rail.at-end .stories-edge-right { opacity:0; }
.story-tile { position:relative; flex:0 0 96px; width:96px; height:98px; padding:10px 9px; overflow:hidden; border:2px solid #178fff; border-radius:18px; color:white; scroll-snap-align:start; text-align:left; box-shadow:inset 0 0 0 3px rgba(239,248,255,.86),0 7px 18px rgba(0,0,0,.16); }
.story-tile::after { content:""; position:absolute; right:-24px; bottom:-30px; width:92px; height:92px; border:1px solid rgba(255,255,255,.18); border-radius:50%; box-shadow:0 0 0 16px rgba(255,255,255,.035); }
.story-tile span,.story-tile strong { position:relative; z-index:2; display:block; }
.story-tile span { max-width:78px; overflow:hidden; color:rgba(255,255,255,.72); font-size:5.5px; font-weight:850; letter-spacing:.08em; white-space:nowrap; text-overflow:ellipsis; }
.story-tile strong { display:-webkit-box; max-width:78px; margin-top:6px; overflow:hidden; font-size:10px; line-height:1.12; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.story-tile > b { position:absolute; right:8px; bottom:6px; z-index:2; color:rgba(255,255,255,.94); font-size:17px; letter-spacing:-1px; }
.story-tile:not(.seen),.story-tile.seen { border-color:#178fff; box-shadow:inset 0 0 0 3px rgba(239,248,255,.86),0 7px 18px rgba(0,0,0,.16); filter:none; }
.story-blue { background:linear-gradient(145deg,#168eff,#3159e8); }
.story-graphite { background:linear-gradient(145deg,#252c3b,#111722); }
.story-cyan { background:linear-gradient(145deg,#17a9d5,#2864db); }
.story-violet { background:linear-gradient(145deg,#8758ef,#4534aa); }
body.story-open { overflow:hidden; }
.story-viewer { position:fixed; inset:0; z-index:120; padding:calc(10px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)); background:#05070d; animation:story-view-in 180ms ease-out; }
@keyframes story-view-in { from { opacity:0; transform:scale(.985); } }
.story-progress { position:absolute; top:calc(18px + env(safe-area-inset-top)); right:18px; left:18px; z-index:5; display:flex; gap:5px; }
.story-progress i { flex:1; height:3px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.28); }
.story-progress i b { display:block; width:0; height:100%; border-radius:inherit; background:white; }
.story-progress i.done b { width:100%; }
.story-progress i.active b { animation:story-timer 6s linear forwards; }
@keyframes story-timer { to { width:100%; } }
.story-close { position:absolute; top:calc(32px + env(safe-area-inset-top)); right:20px; z-index:7; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:rgba(7,10,18,.24); color:white; font-size:29px; backdrop-filter:blur(10px); }
.story-slide { position:relative; display:flex; flex-direction:column; width:100%; height:100%; padding:94px 28px 24px; overflow:hidden; border-radius:28px; color:white; }
.story-slide::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 42%,rgba(2,5,14,.52)); pointer-events:none; }
.story-copy { position:relative; z-index:3; max-width:330px; }
.story-copy small { color:rgba(255,255,255,.72); font-size:10px; font-weight:850; letter-spacing:.12em; }
.story-copy h2 { margin:14px 0 13px; font-size:clamp(32px,10vw,46px); line-height:.98; letter-spacing:-1.5px; }
.story-copy p { max-width:295px; margin:0; color:rgba(255,255,255,.76); font-size:14px; line-height:1.45; }
.story-orbit { position:absolute; right:-72px; bottom:72px; width:310px; height:310px; border:1px solid rgba(255,255,255,.18); border-radius:50%; box-shadow:0 0 0 54px rgba(255,255,255,.035),0 0 0 108px rgba(255,255,255,.025); }
.story-orbit i { position:absolute; width:58px; height:58px; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:rgba(255,255,255,.08); backdrop-filter:blur(8px); }
.story-orbit i:first-child { top:12px; left:22px; }
.story-orbit i:nth-child(2) { right:25px; bottom:40px; }
.story-orbit > b { position:absolute; top:105px; left:72px; color:white; font-size:62px; }
.story-cta { position:relative; z-index:6; display:flex; align-items:center; justify-content:space-between; width:100%; min-height:52px; margin-top:auto; padding:0 18px; border-radius:16px; background:white; color:#101521; font-size:13px; font-weight:850; }
.story-zone { position:absolute; top:78px; bottom:82px; z-index:4; width:38%; background:transparent; }
.story-zone-prev { left:8px; }
.story-zone-next { right:8px; }
.topbar { height:58px; }
.topbar-brand { display:grid; gap:1px; padding:0; border:0; background:transparent; color:white; text-align:left; }
.topbar-brand strong { font-size:12px; letter-spacing:.14em; }
.topbar-brand small { color:#747d90; font-size:9px; }
.home-hero { min-height:410px; padding-top:14px; }
.home-welcome { display:block; margin:4px 0 13px; }
.home-welcome p { margin:0 0 3px; color:#70798d; font-size:10px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.home-welcome strong { display:block; max-width:100%; overflow:hidden; font-size:19px; letter-spacing:-.2px; text-overflow:ellipsis; white-space:nowrap; }
.balance-panel { position:relative; padding:17px 18px 16px; overflow:hidden; border:1px solid rgba(255,255,255,.085); border-radius:24px; background:linear-gradient(135deg,#171c29 0%,#111623 58%,#0e1732 100%); box-shadow:0 18px 44px rgba(0,0,0,.22); }
.balance-panel::after { content:""; position:absolute; right:-38px; bottom:-62px; width:160px; height:160px; border:1px solid rgba(88,128,255,.15); border-radius:50%; box-shadow:0 0 0 28px rgba(88,128,255,.035),0 0 0 56px rgba(88,128,255,.025); }
.balance-panel-top { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; color:#929bad; font-size:11px; }
.balance-panel-top i { display:grid; place-items:center; width:27px; height:27px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(255,255,255,.04); color:#dce3f4; font-size:12px; font-style:normal; font-weight:850; }
.balance-panel .balance { position:relative; z-index:1; margin:8px 0 5px; font-size:clamp(34px,9.5vw,43px); letter-spacing:-1.5px; }
.balance-panel > p { position:relative; z-index:1; margin:0; color:#747e91; font-size:10px; }
.home-hero .card-stack { height:218px; margin-top:12px; }
.home-hero .card-stack-hint { margin-top:3px; }

/* Approved option B: quiet balance-first home */
.home-hero { min-height:360px; padding-top:14px; }
.minimal-balance { padding:5px 1px 0; }
.minimal-balance-head { display:flex; align-items:center; justify-content:space-between; }
.minimal-balance-head span { color:#8f97a8; font-size:11px; }
.minimal-balance-head small { color:#697286; font-size:8px; font-weight:800; letter-spacing:.11em; }
.minimal-balance .balance { margin:7px 0 5px; font-size:clamp(38px,10.7vw,48px); letter-spacing:-1.7px; }
.minimal-balance > p { margin:0; color:#70798c; font-size:10px; }
.compact-card-stack { margin-top:19px; }
.compact-card-stack .card-stack { height:204px; margin:0; padding:0; overflow:hidden; }
.compact-card-stack .bank-card-shell { left:4px; width:calc(100% - 8px); height:176px; }
.compact-card-stack .bank-card-shell[data-position="active"] { transform:translate3d(0,25px,34px) rotate(-.4deg) scale(.985); }
.compact-card-stack .bank-card-shell[data-position="back"] { transform:translate3d(8px,2px,-18px) rotate(1deg) scale(.963); }
.compact-card-stack .card-stack.is-dragging .bank-card-shell[data-position="active"] { transform:translate3d(var(--swipe-x),25px,34px) rotate(calc(var(--swipe-x) * .025deg)) scale(.985); }
.compact-card-stack .bank-card { min-height:176px; padding:17px 18px; border-radius:23px; }
.compact-card-stack .card-number { font-size:13px; }
.compact-card-stack .bank-card .amount { font-size:22px; }
.home-hero > .card-stack-hint { margin:5px 4px 0; font-size:9px; }

/* Mbank-reference dashboard adapted to LADNO */
.home-hero { min-height:auto; padding-top:15px; }
.reference-dashboard { display:block; }
.balance-tile { position:relative; min-width:0; min-height:128px; padding:18px 19px; overflow:hidden; border:1px solid rgba(255,255,255,.09); border-radius:26px; background:radial-gradient(circle at 88% 15%,rgba(55,104,255,.22),transparent 38%),linear-gradient(145deg,#191e2b,#10141e); color:white; box-shadow:0 18px 42px rgba(0,0,0,.2); text-align:left; }
.balance-tile::after { content:""; position:absolute; right:-42px; bottom:-84px; width:190px; height:190px; border:1px solid rgba(101,135,255,.13); border-radius:50%; box-shadow:0 0 0 28px rgba(85,119,255,.025),0 0 0 56px rgba(85,119,255,.018); }
.balance-tile > .balance-head { position:relative; z-index:3; display:flex; align-items:center; justify-content:space-between; color:#929bac; font-size:11px; }
.balance-currency-trigger { display:flex; align-items:center; gap:10px; min-width:72px; min-height:32px; padding:0 12px 0 15px; border:1px solid rgba(145,166,218,.14); border-radius:16px; background:linear-gradient(180deg,rgba(27,34,51,.8),rgba(10,14,24,.72)); color:#e6ebf6; box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 7px 18px rgba(0,0,0,.13); font-size:10px; font-weight:850; letter-spacing:.07em; }
.balance-currency-trigger:active { transform:scale(.97); background:rgba(19,25,39,.92); }
.balance-tile i { position:relative; z-index:2; display:grid; place-items:center; width:28px; height:28px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(255,255,255,.035); color:#dce4f7; font-size:12px; font-style:normal; font-weight:850; }
.balance-tile .balance-currency-trigger i { display:flex; align-items:center; justify-content:flex-end; width:14px; height:14px; padding-left:9px; border:0; border-left:1px solid rgba(153,169,201,.14); border-radius:0; background:none; color:#8290a9; font-size:10px; font-weight:700; }
.balance-tile h1 { position:relative; z-index:2; margin:14px 0 10px; overflow:hidden; font-size:clamp(34px,9.5vw,43px); letter-spacing:-1.5px; text-overflow:ellipsis; white-space:nowrap; }
.balance-tile p { position:relative; z-index:2; display:flex; gap:16px; margin:0; color:#7f899d; font-size:9px; }
.balance-tile p span { white-space:nowrap; }
.currency-picker { min-height:calc(76dvh - 72px); padding:0 0 4px; }
.currency-picker-head { padding-right:38px; }
.currency-picker-head h3 { margin:0 0 20px; font-size:21px; letter-spacing:-.45px; }
.currency-search { display:flex; grid-template-columns:auto 1fr; align-items:center; gap:10px; min-height:50px; padding:0 15px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:#181d29; color:#6d788d; }
.currency-search input { width:100%; border:0; outline:0; background:transparent; color:white; font:inherit; }
.currency-search input::placeholder { color:#5e687b; }
.currency-group-title { margin:22px 4px 10px; color:#697489; font-size:9px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.currency-list { overflow:hidden; border:1px solid rgba(255,255,255,.065); border-radius:19px; background:#181d29 !important; color:white; box-shadow:0 10px 30px rgba(0,0,0,.12); }
.currency-option { appearance:none; display:grid; grid-template-columns:42px 1fr auto 18px; align-items:center; gap:11px; width:100%; min-height:69px; padding:9px 16px 9px 13px; border:0; border-radius:0; background:#181d29 !important; color:white !important; text-align:left; -webkit-appearance:none; }
.currency-option:active { background:#1c2230 !important; }
.currency-option + .currency-option { border-top:1px solid rgba(255,255,255,.055); }
.currency-option[hidden] { display:none; }
.currency-flag { display:grid; place-items:center; width:38px; height:38px; border:1px solid rgba(255,255,255,.07); border-radius:50%; background:#202737; font-size:22px; }
.currency-option span b,.currency-option span small { display:block; }
.currency-option span b { font-size:14px; letter-spacing:.02em; }
.currency-option span small { margin-top:4px; color:#7b8598 !important; font-size:10px; }
.currency-option em { color:#657087; font-size:12px; font-style:normal; }
.currency-option > i { width:15px; height:15px; border:1px solid #3c4659; border-radius:50%; }
.currency-option[aria-pressed="true"] > i { border:4px solid #5f84ff; box-shadow:0 0 10px rgba(79,116,255,.4); }

.quick-actions { margin:18px 0 22px; }
.cashflow-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:-2px 0 24px; }
.cashflow-summary > button { min-width:0; padding:16px 15px 15px; border:1px solid rgba(255,255,255,.055); border-radius:20px; background:linear-gradient(145deg,#171c28,#10141d); box-shadow:0 10px 24px rgba(0,0,0,.15); text-align:left; }
.cashflow-summary > button:active { transform:scale(.985); }
.cashflow-summary > button > span { display:block; color:#8b94a8; font-size:11px; }
.cashflow-summary > button > strong { display:block; margin-top:9px; overflow:hidden; color:#f7f9ff; font-size:20px; letter-spacing:-.6px; white-space:nowrap; text-overflow:ellipsis; }
.cashflow-summary > button > i { display:block; height:6px; margin-top:14px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.045); }
.cashflow-summary > button > i > b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#4fd58a,#6ce7a2); }
.cashflow-summary > button:nth-child(2) > i > b { background:linear-gradient(90deg,#ff9c26,#ffbd42); }
.cashflow-summary .w0 { width:0; }
.cashflow-summary .w10 { width:10%; }
.cashflow-summary .w20 { width:20%; }
.cashflow-summary .w30 { width:30%; }
.cashflow-summary .w40 { width:40%; }
.cashflow-summary .w50 { width:50%; }
.cashflow-summary .w60 { width:60%; }
.cashflow-summary .w70 { width:70%; }
.cashflow-summary .w80 { width:80%; }
.cashflow-summary .w90 { width:90%; }
.cashflow-summary .w100 { width:100%; }
.cards-hub-head { margin:2px 0 25px; }
.cards-hub-head .eyebrow { margin-bottom:8px; }
.cards-hub-head h2 { margin:0; font-size:30px; letter-spacing:-1px; }
.cards-hub-head > p:last-child { max-width:320px; margin:9px 0 0; color:#7f889c; font-size:12px; line-height:1.45; }
.cards-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.cards-section-head h3 { margin:0; font-size:17px; letter-spacing:-.25px; }
.cards-section-head > span,.cards-section-head > small { padding:5px 9px; border:1px solid rgba(255,255,255,.06); border-radius:999px; background:rgba(255,255,255,.025); color:#778095; font-size:9px; font-weight:750; }
.cards-owned { margin:0 -20px 25px; }
.cards-owned > .cards-section-head { padding:0 20px; }
.cards-owned-scroll { display:flex; gap:11px; padding:0 20px 6px; overflow-x:auto; scrollbar-width:none; scroll-padding-inline:20px; scroll-snap-type:x mandatory; }
.cards-owned-scroll::-webkit-scrollbar { display:none; }
.cards-owned-scroll .bank-card { flex:0 0 305px; width:305px; min-height:0; aspect-ratio:1.586/1; padding:19px; border-radius:23px; scroll-snap-align:start; box-shadow:0 16px 34px rgba(0,0,0,.22); }
.cards-owned-scroll .bank-card .amount { font-size:21px; }
.cards-owned-scroll .bank-card .kind i { width:31px; height:31px; border-radius:10px; }
.cards-scroll-hint { margin:4px 20px 0; color:#5f687a; font-size:9px; text-align:center; }
.cards-services { margin-bottom:27px; }
.cards-service-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cards-service-grid button { display:flex; align-items:center; gap:12px; min-width:0; min-height:79px; padding:13px; border:1px solid rgba(255,255,255,.055); border-radius:20px; background:linear-gradient(145deg,#171c28,#10141d); color:#eef2fa; text-align:left; box-shadow:0 10px 24px rgba(0,0,0,.13); }
.cards-service-grid button:active { transform:scale(.985); }
.cards-service-grid button > i { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border:1px solid rgba(116,155,255,.14); border-radius:13px; background:rgba(64,103,217,.13); color:#7fa8ff; font-size:18px; font-style:normal; font-weight:750; }
.cards-service-grid span { min-width:0; }
.cards-service-grid b,.cards-service-grid small { display:block; }
.cards-service-grid b { font-size:12px; }
.cards-service-grid small { margin-top:4px; overflow:hidden; color:#737d91; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.cards-market { margin-bottom:22px; }
.market-card-product { display:grid; grid-template-columns:78px minmax(0,1fr) 14px; align-items:center; gap:13px; width:100%; min-height:112px; margin-bottom:10px; padding:13px; border:1px solid rgba(255,255,255,.055); border-radius:23px; background:#131824; color:#f5f7fc; text-align:left; }
.market-card-product:active { transform:scale(.99); }
.market-card-art { display:flex; align-items:flex-end; justify-content:flex-end; width:78px; aspect-ratio:1.586/1; padding:7px; border:1px solid rgba(255,255,255,.13); border-radius:12px; background-position:center; background-size:cover; box-shadow:0 9px 18px rgba(0,0,0,.2); }
.market-card-art b { color:#fff; font-size:9px; font-weight:850; }
.market-mir { background-image:url("/static/ladno-mir.jpg?v=3"); }
.market-visa { background-image:url("/static/ladno-visa.jpg?v=3"); }
.market-card-copy { min-width:0; }
.market-card-copy > small,.market-card-copy > strong,.market-card-copy > em { display:block; }
.market-card-copy > small { color:#69748a; font-size:8px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.market-card-copy > strong { margin:6px 0 8px; font-size:13px; line-height:1.25; }
.market-card-copy > em { width:max-content; padding:4px 7px; border-radius:999px; background:rgba(75,211,138,.09); color:#63d99a; font-size:8px; font-style:normal; font-weight:800; }
.market-card-product > i { color:#596378; font-size:22px; font-style:normal; }
.cards-future { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; margin-bottom:20px; padding:15px; border:1px dashed rgba(113,137,194,.16); border-radius:21px; background:rgba(25,31,45,.46); }
.cards-future > span { display:grid; width:42px; height:42px; place-items:center; border-radius:14px; background:rgba(91,126,222,.1); color:#779dff; font-size:20px; }
.cards-future strong { font-size:12px; }
.cards-future p { margin:4px 0 0; color:#6e788c; font-size:9px; line-height:1.35; }
.cards-future > i { padding:5px 8px; border-radius:999px; background:rgba(255,255,255,.035); color:#687286; font-size:8px; font-style:normal; font-weight:800; }

/* Premium Card Hub */
.cards-hub-head { display:flex; align-items:flex-end; justify-content:space-between; margin:2px 0 18px; }
.cards-hub-head .eyebrow { margin:0 0 5px; color:#6f7c95; font-size:8px; }
.cards-hub-head h2 { margin:0; font-size:32px; letter-spacing:-1.25px; }
.cards-hub-head > span { margin-bottom:4px; padding:6px 10px; border:1px solid rgba(255,255,255,.06); border-radius:999px; background:rgba(255,255,255,.025); color:#788297; font-size:9px; font-weight:750; }
.cards-hero { position:relative; }
.cards-hero .bank-card { width:100%; min-height:0; aspect-ratio:1.586/1; padding:21px; border-radius:27px; box-shadow:0 22px 48px rgba(0,0,0,.28); }
.cards-hero .bank-card .amount { font-size:25px; }
.cards-kind-switch { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:11px 0 26px; padding:4px; border:1px solid rgba(255,255,255,.055); border-radius:17px; background:#111620; }
.cards-kind-switch button { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:0 13px; border:0; border-radius:13px; background:transparent; color:#687387; text-align:left; }
.cards-kind-switch button[aria-pressed="true"] { background:#20283a; color:#f3f6fc; box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 5px 15px rgba(0,0,0,.16); }
.cards-kind-switch span { font-size:11px; font-weight:850; letter-spacing:.04em; }
.cards-kind-switch small { color:inherit; font-size:9px; font-weight:650; opacity:.72; }
.cards-services { margin-bottom:27px; }
.cards-services > h3 { margin:0 0 13px; font-size:17px; }
.cards-service-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.cards-service-grid button { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:8px; min-width:0; min-height:76px; padding:0; border:0; background:transparent; color:#ccd3e1; text-align:center; box-shadow:none; }
.cards-service-grid button > i { display:grid; flex:0 0 50px; width:50px; height:50px; place-items:center; border:1px solid rgba(114,144,218,.12); border-radius:17px; background:linear-gradient(145deg,#1b2231,#141a26); color:#7ca3ff; box-shadow:0 10px 24px rgba(0,0,0,.15); font-size:19px; font-style:normal; }
.cards-service-grid button > span { overflow:hidden; width:100%; color:#b8c0d0; font-size:9px; font-weight:700; white-space:nowrap; text-overflow:ellipsis; }
.cards-market { margin-bottom:17px; }
.cards-market-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cards-market-head h3 { margin:0; font-size:17px; }
.cards-market-head span { color:#687388; font-size:9px; font-weight:650; }
.market-card-product { grid-template-columns:68px minmax(0,1fr) 12px; gap:12px; min-height:88px; margin-bottom:8px; padding:10px 12px 10px 10px; border-color:rgba(255,255,255,.045); border-radius:20px; background:linear-gradient(145deg,rgba(24,30,43,.96),rgba(16,21,31,.96)); }
.market-card-art { width:68px; padding:0; border-radius:11px; }
.market-card-copy > small { font-size:7px; }
.market-card-copy > strong { margin:5px 0 6px; font-size:12px; }
.market-card-copy > em { padding:3px 6px; font-size:7px; }
.market-card-product > i { font-size:18px; }
.cards-future { grid-template-columns:38px minmax(0,1fr) auto; gap:11px; margin-bottom:22px; padding:12px; border-color:rgba(113,137,194,.11); border-radius:18px; background:rgba(19,25,37,.42); }
.cards-future > span { width:38px; height:38px; border-radius:12px; font-size:17px; }
.cards-future strong { font-size:11px; }
.cards-future p { margin-top:3px; font-size:8px; }
.cards-future > i { padding:4px 7px; font-size:7px; }

/* Card market — reference-led layout */
.card-market-nav { display:flex; align-items:center; justify-content:center; min-height:46px; margin:-2px 0 18px; }
.card-market-nav h2 { margin:0; font-size:22px; letter-spacing:-.55px; }
.card-market-intro { display:flex; flex-direction:column; align-items:center; margin:0 -5px 30px; text-align:center; }
.card-stack-art { position:relative; width:138px; height:108px; margin:0 auto 14px; transform:rotate(-2deg); filter:drop-shadow(0 20px 24px rgba(22,67,207,.16)); }
.card-stack-art::before,.card-stack-art i { position:absolute; width:91px; height:63px; border:2px solid rgba(236,242,255,.9); border-radius:17px; background:linear-gradient(145deg,#17368f,#0c1d57); content:""; }
.card-stack-art::before { top:7px; left:22px; transform:rotate(8deg); opacity:.86; }
.card-stack-art i { top:27px; left:26px; background:linear-gradient(145deg,#4382ff,#123ec0); box-shadow:0 15px 32px rgba(27,83,255,.3),inset 0 1px 0 rgba(255,255,255,.24); }
.card-stack-art b { position:absolute; z-index:2; right:22px; bottom:23px; display:grid; width:28px; height:28px; place-items:center; border-radius:9px; background:#f5f7fb; color:#0d2f91; box-shadow:0 5px 12px rgba(0,0,0,.2); font-size:13px; }
.card-market-intro h3 { margin:0 0 9px; font-size:26px; line-height:1.08; letter-spacing:-.85px; white-space:nowrap; }
.card-market-intro p { max-width:330px; margin:0; color:#858c9d; font-size:13px; line-height:1.42; }
.card-market-catalog { display:grid; gap:18px; padding-bottom:18px; }
.card-offer { position:relative; overflow:hidden; padding:24px 20px 19px; border:1px solid rgba(255,255,255,.06); border-radius:28px; background:linear-gradient(150deg,#252938 0%,#1c202d 72%); box-shadow:0 20px 50px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.025); }
.card-offer-world::before { position:absolute; top:-75px; right:-68px; width:190px; height:190px; border-radius:50%; background:radial-gradient(circle,rgba(104,61,220,.17),transparent 68%); content:""; pointer-events:none; }
.card-offer-head { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 80px; gap:13px; align-items:start; }
.card-offer-head h3 { margin:0 0 10px; max-width:220px; font-size:20px; line-height:1.13; letter-spacing:-.55px; }
.card-offer-head p { margin:0; color:#8c92a2; font-size:12px; line-height:1.48; }
.card-offer-head > span { display:grid; height:56px; place-items:center; border-radius:16px; background:linear-gradient(145deg,#8b52e8,#5730b7); color:white; box-shadow:0 12px 26px rgba(97,52,196,.22),inset 0 1px 0 rgba(255,255,255,.15); font-size:20px; font-weight:900; font-style:italic; }
.card-offer-local .card-offer-head > span { background:linear-gradient(145deg,#191d25,#050608); font-size:16px; font-style:normal; }
.card-offer-tags { display:flex; gap:7px; margin:18px 0 22px; }
.card-offer-tags span { padding:7px 11px; border:1px solid rgba(255,255,255,.035); border-radius:999px; background:rgba(255,255,255,.055); color:#d9dde7; font-size:10px; font-weight:700; }
.card-offer dl { display:grid; gap:14px; margin:0 0 21px; }
.card-offer dl div { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.card-offer dt { color:#9298a7; font-size:12px; }
.card-offer dd { margin:0; color:#f5f7fb; font-size:13px; font-weight:650; text-align:right; }
.card-offer > button { position:relative; width:100%; min-height:54px; border:0; border-radius:15px; background:linear-gradient(180deg,#3298ff,#2484ed); color:white; font-size:15px; font-weight:850; box-shadow:0 13px 30px rgba(25,119,245,.24),inset 0 1px 0 rgba(255,255,255,.16); }

.home-card-carousel { margin:0 -20px 18px; overflow:hidden; }
.carousel-heading { position:relative; display:flex; align-items:center; justify-content:center; min-height:24px; padding:0 20px 13px; text-align:center; }
.carousel-heading strong { font-size:17px; letter-spacing:-.25px; }
.carousel-heading span { position:absolute; right:20px; min-width:34px; padding:4px 7px; border:1px solid rgba(255,255,255,.06); border-radius:9px; background:rgba(255,255,255,.025); color:#778196; font-size:9px; text-align:center; }
.carousel-viewport { position:relative; height:202px; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-behavior:smooth; scroll-snap-type:x mandatory; scroll-padding-inline:calc((100% - min(341px, calc(100vw - 52px))) / 2); scrollbar-width:none; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; }
.carousel-viewport::-webkit-scrollbar { display:none; }
.home-card-carousel .card-stack { display:flex; gap:12px; width:max-content; height:202px; margin:0; padding-inline:calc((min(100vw, 620px) - min(341px, calc(100vw - 52px))) / 2); overflow:visible; perspective:none; touch-action:pan-x pan-y; }
.home-card-carousel .bank-card-shell { position:relative; top:0; left:0; flex:0 0 min(341px, calc(100vw - 52px)); width:min(341px, calc(100vw - 52px)); max-width:none; height:196px; opacity:1; filter:none; transform:none !important; transition:none; scroll-snap-align:center; scroll-snap-stop:always; }
.home-card-carousel .bank-card-shell[data-position="active"] { z-index:3; }
.home-card-carousel .bank-card-shell[data-position="back"] { z-index:1; }
.home-card-carousel .bank-card-shell[data-position="back"]::before { top:0; right:0; bottom:0; left:0; height:auto; border-radius:25px; }
.home-card-carousel .bank-card-shell[data-position="back"]::after { display:none; }
.home-card-carousel .bank-card { min-height:196px; padding:20px; }

.carousel-footer { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:29px; padding:3px 20px 0; text-align:center; }
.carousel-dots { position:relative; display:flex; gap:8px; width:27px; height:7px; }
.carousel-dots i { width:7px; height:7px; border-radius:50%; background:#3e4658; }
.carousel-dots b { position:absolute; top:0; left:0; width:7px; height:7px; border-radius:50%; background:#6086ff; box-shadow:0 0 12px rgba(79,116,255,.55); transform:translate3d(calc(var(--carousel-progress,0) * 15px),0,0); will-change:transform; }
.carousel-footer small { color:#697489; font-size:9px; letter-spacing:.01em; }
.wallet-overview { margin-bottom:27px; }

/* Theme selector and Premium Soft White */
.theme-setting { align-items:center; }
.theme-selector { display:grid; grid-template-columns:1fr 1fr; flex:0 0 174px; gap:3px; padding:3px; border:1px solid var(--line); border-radius:14px; background:var(--canvas-soft); }
.theme-choice { min-height:36px; padding:7px 10px; border:0; border-radius:10px; background:transparent; color:var(--muted); font-size:10px; font-weight:800; }
.theme-choice[aria-pressed="true"] { background:var(--panel-high); color:var(--ink); box-shadow:0 3px 10px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.05); }

html[data-theme="light"] {
  --canvas:#f4f6fa;
  --canvas-soft:#edf1f7;
  --panel:#ffffff;
  --panel-high:#f8f9fc;
  --panel-soft:#edf1f7;
  --paper:#111827;
  --ink:#141927;
  --ink-dark:#ffffff;
  --muted:#70798b;
  --muted-dark:#7d8697;
  --line:rgba(27,39,64,.09);
  --surface-2:#e9edf4;
  --accent:#3768ff;
  --shadow:0 20px 48px rgba(43,57,85,.13);
  color-scheme:light;
}
html[data-theme="light"],
html[data-theme="light"] body { background:var(--canvas); color:var(--ink); }
html[data-theme="light"] .app-shell { background:radial-gradient(circle at 86% -8%,rgba(55,104,255,.10),transparent 25rem),var(--canvas); }
html[data-theme="light"] .logo { border-color:rgba(17,24,39,.08); background:#111827; color:#fff; box-shadow:0 7px 18px rgba(23,34,57,.13); }
html[data-theme="light"] .icon-button { background:#fff; color:#263149; box-shadow:0 8px 22px rgba(42,56,85,.08); }
html[data-theme="light"] .topbar-brand { color:#141927; }
html[data-theme="light"] .topbar-brand small,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .cards-hub-head .eyebrow { color:#778196; }
html[data-theme="light"] .runtime-badge,
html[data-theme="light"] .test-chip { border-color:rgba(55,104,255,.14); background:#e9efff; color:#315bd6; }
html[data-theme="light"] .stories-edge-left { background:linear-gradient(90deg,rgba(244,246,250,.95),rgba(244,246,250,.42),transparent); }
html[data-theme="light"] .stories-edge-right { background:linear-gradient(270deg,rgba(244,246,250,.95),rgba(244,246,250,.42),transparent); }
html[data-theme="light"] .balance-tile { border-color:rgba(40,62,105,.08); background:radial-gradient(circle at 88% 15%,rgba(55,104,255,.12),transparent 40%),linear-gradient(145deg,#fff,#f7f9fd); color:#111827; box-shadow:0 18px 42px rgba(45,61,91,.10); }
html[data-theme="light"] .balance-tile > .balance-head,
html[data-theme="light"] .balance-tile p { color:#758096; }
html[data-theme="light"] .balance-currency-trigger { border-color:rgba(55,82,135,.11); background:linear-gradient(180deg,#fff,#f0f3f8); color:#263149; box-shadow:inset 0 1px 0 #fff,0 7px 18px rgba(53,68,99,.08); }
html[data-theme="light"] .balance-tile .balance-currency-trigger i { border-left-color:rgba(65,83,119,.14); color:#6e7a90; }
html[data-theme="light"] .balance-tile i { border-color:rgba(37,56,92,.09); background:rgba(255,255,255,.65); color:#315bd6; }
html[data-theme="light"] .quick-actions button { color:#404a5d; }
html[data-theme="light"] .quick-actions span { border-color:rgba(33,49,79,.08); background:linear-gradient(145deg,#fff,#edf1f7); color:#3768ff; box-shadow:0 10px 25px rgba(45,60,90,.09); }
html[data-theme="light"] .cashflow-summary > button,
html[data-theme="light"] .cards-service-grid button > i { border-color:rgba(35,52,84,.07); background:linear-gradient(145deg,#fff,#f1f4f9); box-shadow:0 10px 24px rgba(42,56,85,.08); }
html[data-theme="light"] .cashflow-summary > button > span { color:#6f798c; }
html[data-theme="light"] .cashflow-summary > button > strong { color:#182033; }
html[data-theme="light"] .cashflow-summary > button > i { background:#e8ecf3; }
html[data-theme="light"] .panel,
html[data-theme="light"] .history-surface,
html[data-theme="light"] .support-note,
html[data-theme="light"] .quote,
html[data-theme="light"] .profile-grid > div,
html[data-theme="light"] .action-pair button,
html[data-theme="light"] .wallet-overview > button { border-color:rgba(30,44,72,.08); background:#fff; color:var(--ink); box-shadow:0 14px 34px rgba(43,57,85,.08); }
html[data-theme="light"] .profile-monogram { border-color:rgba(255,255,255,.55); box-shadow:0 18px 34px rgba(35,75,191,.20); color:#fff; }
html[data-theme="light"] .theme-selector { background:#edf0f5; }
html[data-theme="light"] .theme-choice[aria-pressed="true"] { background:#fff; box-shadow:0 3px 10px rgba(35,45,65,.10); }
html[data-theme="light"] .setting > b { color:#315bd6; }
html[data-theme="light"] .secondary { background:#edf2ff; color:#315bd6; }
html[data-theme="light"] .op-icon { background:#edf2ff; color:#3768ff; }
html[data-theme="light"] .history-filters button { border-color:transparent; background:#e9edf4; color:#657084; }
html[data-theme="light"] .history-filters button[aria-pressed="true"] { background:#3768ff; color:#fff; }
html[data-theme="light"] .history-heading { border-color:rgba(55,104,255,.10); background:radial-gradient(circle at 88% 12%,rgba(55,104,255,.12),transparent 42%),linear-gradient(145deg,#fff,#f3f6fb); box-shadow:0 15px 34px rgba(43,57,85,.09); }
html[data-theme="light"] .history-heading .icon-button { border-color:rgba(55,104,255,.10); background:#fff; color:#3768ff; }
html[data-theme="light"] .history-filters { border-color:rgba(35,50,78,.07); background:#e9edf4; }
html[data-theme="light"] .history-surface .operation { border-color:rgba(31,46,75,.07); background:linear-gradient(145deg,#fff,#f5f7fb); box-shadow:0 10px 24px rgba(42,56,85,.07); }
html[data-theme="light"] .wallet-overview .rate-row { border-color:rgba(55,104,255,.11); background:radial-gradient(circle at 82% 0,rgba(62,103,255,.10),transparent 44%),linear-gradient(135deg,#fff,#f3f6fb); color:#182033; box-shadow:0 15px 34px rgba(43,57,85,.09); }
html[data-theme="light"] .rate-title i { border-color:rgba(38,57,91,.08); background:#edf1f7; color:#536078; }
html[data-theme="light"] .cards-hub-head > span,
html[data-theme="light"] .cards-section-head > span,
html[data-theme="light"] .cards-section-head > small { border-color:rgba(35,50,78,.08); background:#fff; color:#687389; }
html[data-theme="light"] .cards-kind-switch { border-color:rgba(35,50,78,.08); background:#e9edf4; }
html[data-theme="light"] .cards-kind-switch button { color:#6d7789; }
html[data-theme="light"] .cards-kind-switch button[aria-pressed="true"] { background:#fff; color:#172033; box-shadow:0 5px 15px rgba(38,52,80,.10); }
html[data-theme="light"] .cards-service-grid button { color:#3f4a5f; }
html[data-theme="light"] .cards-service-grid button > span { color:#59657a; }
html[data-theme="light"] .market-card-product,
html[data-theme="light"] .card-offer { border-color:rgba(31,46,75,.08); background:linear-gradient(145deg,#fff,#f5f7fb); color:#171d2b; box-shadow:0 18px 42px rgba(42,56,85,.09); }
html[data-theme="light"] .market-card-copy > strong,
html[data-theme="light"] .card-offer dd { color:#171d2b; }
html[data-theme="light"] .card-offer-head p,
html[data-theme="light"] .card-offer dt { color:#6f798b; }
html[data-theme="light"] .card-offer-tags span { border-color:rgba(35,50,80,.07); background:#edf1f7; color:#475268; }
html[data-theme="light"] .cards-future { border-color:rgba(61,86,139,.14); background:rgba(255,255,255,.58); }
html[data-theme="light"] .sheet { border-color:rgba(30,44,72,.10); background:#fff; color:#141927; box-shadow:0 -20px 70px rgba(39,52,78,.23); }
html[data-theme="light"] .sheet::backdrop,
html[data-theme="light"] .sheet.currency-sheet::backdrop { background:rgba(27,34,49,.42); }
html[data-theme="light"] .sheet.currency-sheet { background:linear-gradient(180deg,#fff,#f4f6fa); box-shadow:0 -24px 70px rgba(38,52,79,.24); }
html[data-theme="light"] .sheet-handle,
html[data-theme="light"] .currency-sheet .sheet-handle { background:#c8cfdb; }
html[data-theme="light"] .sheet-close,
html[data-theme="light"] .currency-sheet .sheet-close { background:#edf1f7; color:#344057; }
html[data-theme="light"] label { color:#4b566a; }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { border-color:rgba(31,46,75,.10); background:#f5f7fa; color:#171d2b; }
html[data-theme="light"] .currency-search { border-color:rgba(31,46,75,.09); background:#eef1f6; color:#6b7588; }
html[data-theme="light"] .currency-search input { background:transparent; color:#171d2b; }
html[data-theme="light"] .currency-search input::placeholder { color:#8a93a3; }
html[data-theme="light"] .currency-list { border-color:rgba(31,46,75,.08); background:#fff !important; color:#171d2b; box-shadow:0 10px 28px rgba(42,56,85,.09); }
html[data-theme="light"] .currency-option { background:#fff !important; color:#171d2b !important; }
html[data-theme="light"] .currency-option:active { background:#f2f5f9 !important; }
html[data-theme="light"] .currency-option + .currency-option { border-top-color:rgba(31,46,75,.07); }
html[data-theme="light"] .currency-flag { border-color:rgba(31,46,75,.07); background:#f0f3f7; }
html[data-theme="light"] .currency-option span small { color:#778196 !important; }
html[data-theme="light"] .bottom-nav { border-top-color:rgba(25,39,66,.09); background:rgba(255,255,255,.94); box-shadow:0 -16px 38px rgba(44,58,86,.12); }
html[data-theme="light"] .bottom-nav button { color:#7b8495; }
html[data-theme="light"] .bottom-nav button[aria-current="page"] { color:#3768ff; }
html[data-theme="light"] .bottom-nav button[aria-current="page"] .nav-glyph { background:rgba(55,104,255,.10); box-shadow:inset 0 0 0 1px rgba(55,104,255,.08); }
html[data-theme="light"] .loading-layer { background:rgba(244,246,250,.90); color:#4c586e; }
html[data-theme="light"] .spinner { border-color:rgba(38,58,96,.12); border-top-color:#3768ff; }
html[data-theme="light"] .toast { border-color:rgba(30,44,72,.09); background:#fff; color:#172033; box-shadow:0 18px 44px rgba(39,52,78,.18); }
html[data-theme="light"] .carousel-dots i { background:#cbd1dc; }
html[data-theme="light"] .carousel-footer small,
html[data-theme="light"] .card-stack-hint,
html[data-theme="light"] .cards-scroll-hint { color:#758095; }

@media (max-width: 460px) {
  .theme-setting { align-items:flex-start; flex-direction:column; gap:12px; }
  .theme-selector { width:100%; flex-basis:auto; }
}

@media (max-width: 360px) {
  .screen, .topbar { padding-right: 15px; padding-left: 15px; }
  .bank-card-shell { width: calc(100% - 8px); }
  .bank-card-shell[data-position="back"] { transform: translate3d(7px, 2px, -18px) rotate(1deg) scale(.965); }
  .quick-actions { gap: 2px; }
  .quick-actions span { width: 50px; height: 50px; }
  .operation { grid-template-columns: 40px minmax(0,1fr) auto; gap: 9px; }
  .operation > strong { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}

@media (min-width: 621px) {
  .bottom-nav { right: 50%; left: auto; width: 620px; transform: translateX(50%); border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
