: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; }
#content:focus,
#content:focus-visible,
.screen:focus,
.screen:focus-visible {
  outline: 0 !important;
  box-shadow: none;
}
@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: 12px; padding: 19px 20px 17px; }
.card-back.world-card { overflow: hidden; border: 1px solid rgba(216,223,235,.18); background: radial-gradient(circle at 82% 8%,rgba(146,160,184,.18),transparent 34%),linear-gradient(145deg,#1b2029 0%,#0d1016 58%,#080a0e 100%); color: #f4f6fa; box-shadow: 0 24px 58px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.1); }
.card-back.world-card::before { position: absolute; right: 18px; bottom: -44px; width: 118px; height: 118px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; box-shadow: inset 0 0 0 24px rgba(255,255,255,.02); }
.card-back.has-world-details { gap: 10px; padding: 17px 20px 15px; }
.hosted-card-heading { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; color: rgba(231,235,242,.64); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hosted-card-heading::after { color: rgba(255,255,255,.92); content: "Mastercard"; font-size: 10px; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.hosted-card-number { position: relative; z-index: 2; display: grid; gap: 5px; padding: 11px 36px 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; background: transparent; }
.hosted-card-number small,.hosted-card-meta small { color: rgba(218,223,232,.48); font-size: 8px; font-weight: 650; letter-spacing: .04em; }
.hosted-card-number b { overflow: hidden; color: #f8f9fc; font-size: 17px; font-weight: 660; font-variant-numeric: tabular-nums; letter-spacing: .075em; text-overflow: ellipsis; white-space: nowrap; }
.hosted-card-meta { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.hosted-card-meta > span { position: relative; display: grid; gap: 4px; min-width: 0; padding: 2px 38px 2px 0; border: 0; border-radius: 0; background: transparent; }
.hosted-card-meta > span + span { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.11); }
.hosted-card-meta b { color: #f8f9fc; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.hosted-card-copy { position: absolute; top: 50%; right: 3px; width: 28px; height: 28px; padding: 0; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.055); color: #fff; font-size: 0; }
.hosted-card-copy::before,.hosted-card-copy::after { position: absolute; width: 8px; height: 10px; border: 1px solid rgba(238,241,246,.76); border-radius: 2px; content: ""; }
.hosted-card-copy::before { top: 9px; left: 8px; }
.hosted-card-copy::after { top: 6px; left: 11px; background: #141820; }
.hosted-card-copy:active { background: rgba(255,255,255,.13); }
.hosted-card-reveal { position: relative; z-index: 2; min-height: 36px; margin-top: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.92); color: #0d1016; font-size: 11px; font-weight: 800; }
.hosted-card-reveal:active { background: #fff; }
.hosted-card-hide { position: relative; z-index: 2; align-self: flex-start; margin-top: auto; padding: 4px 0; border: 0; background: transparent; color: rgba(222,227,235,.58); font-size: 9px; font-weight: 700; }
.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; }
.cardos-flow { display:grid; gap:16px; padding:4px 0 6px; }
.cardos-flow .eyebrow { margin:0; color:#7887a2; font-size:10px; letter-spacing:.14em; }
.cardos-flow h2 { margin:0; font-size:30px; line-height:1.04; }
.card-topup-flow { width:100%; padding-bottom:4px; }
.card-topup-flow label { display:grid; gap:8px; color:#c5ccda; font-size:12px; font-weight:750; }
.card-topup-flow label small { color:var(--muted); font-size:10px; font-weight:500; line-height:1.45; }
.topup-card-picker { min-width:0; margin:2px 0 1px; }
.topup-card-picker-head { position:relative; display:flex; align-items:center; justify-content:center; min-height:27px; margin-bottom:11px; text-align:center; }
.topup-card-picker-head strong { font-size:14px; letter-spacing:-.15px; }
.topup-card-picker-head span { position:absolute; right:0; padding:4px 7px; border:1px solid rgba(255,255,255,.07); border-radius:9px; background:rgba(255,255,255,.03); color:#778196; font-size:9px; font-variant-numeric:tabular-nums; }
.topup-card-viewport { width:100%; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-behavior:smooth; scroll-snap-type:x mandatory; scrollbar-width:none; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; }
.topup-card-viewport::-webkit-scrollbar { display:none; }
.topup-card-track { display:flex; gap:12px; width:max-content; padding:0 18px 3px 0; }
.topup-card-slide { flex:0 0 min(341px,calc(100vw - 52px)); width:min(341px,calc(100vw - 52px)); min-height:0; aspect-ratio:1.586/1; padding:20px; border-radius:27px; scroll-snap-align:start; scroll-snap-stop:always; box-shadow:0 22px 48px rgba(0,0,0,.32); transform:translateZ(0); transition:filter 180ms ease,transform 180ms ease; }
.topup-card-slide[aria-pressed="false"] { filter:brightness(.82) saturate(.82); transform:scale(.975); }
.topup-card-slide:active { transform:scale(.985); }
.topup-card-slide .kind { align-items:baseline; gap:8px; }
.topup-card-slide .kind small { color:rgba(18,26,44,.62); font-size:8px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.topup-card-slide .amount { font-size:25px; }
.topup-card-footer { display:flex; flex-direction:column; align-items:center; gap:5px; min-height:30px; padding-top:7px; }
.topup-card-footer small { color:#687388; font-size:9px; }
.topup-card-dots { display:flex; gap:6px; }
.topup-card-dots i { width:6px; height:6px; border-radius:50%; background:#3d4657; transition:width 180ms ease,background 180ms ease; }
.topup-card-dots i.active { width:17px; border-radius:99px; background:#6d8fff; box-shadow:0 0 11px rgba(86,124,255,.5); }
.card-topup-flow .quiet-action { border-color:transparent; background:transparent; color:#8993a6; box-shadow:none; }
.card-topup-summary,.card-topup-receipt { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.card-topup-summary > span,.card-topup-receipt { padding:16px; border:1px solid rgba(255,255,255,.08); border-radius:18px; background:#202633; }
.card-topup-summary small,.card-topup-summary b { display:block; }
.card-topup-summary small { margin-bottom:7px; color:var(--muted); font-size:10px; }
.card-topup-summary b { overflow-wrap:anywhere; color:#fff; font-size:19px; }
.card-topup-receipt { display:flex; align-items:center; justify-content:space-between; grid-template-columns:none; }
.card-topup-receipt span { color:var(--muted); }
.card-topup-receipt strong { color:var(--success); font-size:27px; }
.card-topup-flow[data-cardos-topup-state="active"] h2,.card-topup-flow[data-cardos-topup-state="active"] > .eyebrow { text-align:center; }
@media (max-width:360px) {
  .card-topup-summary { grid-template-columns:1fr; }
  .card-topup-flow h2 { font-size:27px; }
}
.cardos-lead { margin:0; color:#aeb7c8; line-height:1.55; }
.cardos-price,.cardos-credit { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px 18px; border:1px solid rgba(255,255,255,.08); border-radius:19px; background:#202633; }
.cardos-price span,.cardos-credit span { color:#aeb7c8; font-size:13px; }
.cardos-price strong { color:#fff; font-size:28px; }
.cardos-consent { display:grid; grid-template-columns:24px 1fr; align-items:start; gap:12px; padding:15px; border:1px solid rgba(92,130,232,.20); border-radius:18px; background:rgba(55,104,255,.08); color:#e6eaf2; font-size:13px; line-height:1.45; }
.cardos-consent input { width:22px; min-height:22px; margin:0; padding:0; border-radius:7px; accent-color:#3768ff; }
.cardos-amount { display:grid; justify-items:center; gap:5px; padding:22px 16px; border:1px solid rgba(101,137,230,.17); border-radius:22px; background:linear-gradient(145deg,#242b3a,#191e29); }
.cardos-amount small { color:#8e9aaf; font-size:11px; text-transform:uppercase; letter-spacing:.09em; }
.cardos-amount strong { color:#fff; font-size:40px; letter-spacing:-1.6px; }
.cardos-amount strong span { color:#8490a5; font-size:15px; letter-spacing:.02em; }
.cardos-payment-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cardos-payment-grid div { display:grid; gap:5px; padding:13px 14px; border:1px solid rgba(255,255,255,.07); border-radius:16px; background:#202530; }
.cardos-payment-grid small,.cardos-address small { color:#8490a4; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.cardos-payment-grid b { color:#f1f4f9; font-size:13px; }
.cardos-qr { width:min(70vw,240px); aspect-ratio:1; margin:2px auto; padding:9px; border-radius:22px; background:#fff; box-shadow:0 18px 45px rgba(0,0,0,.28); }
.cardos-address { display:grid; gap:9px; padding:15px; border:1px solid rgba(255,255,255,.08); border-radius:18px; background:#202530; }
.cardos-address code { overflow-wrap:anywhere; color:#f5f7fb; font-size:12px; line-height:1.45; }
.cardos-address button { min-height:42px; border:1px solid rgba(95,130,224,.18); border-radius:13px; background:rgba(55,104,255,.10); color:#8fb0ff; font-weight:750; }
.cardos-status-orb { position:relative; display:grid; place-items:center; width:78px; height:78px; margin:4px auto 0; border-radius:28px; background:#242b38; color:#fff; font-size:38px; }
.cardos-status-orb.waiting::before,.cardos-status-orb.issuing::before { content:""; width:30px; height:30px; border:3px solid #606b80; border-top-color:#6f9bff; border-radius:50%; animation:spin .9s linear infinite; }
.cardos-status-orb.ready { background:rgba(54,210,139,.13); color:#45d99a; }
.cardos-flow[data-cardos-state="awaiting_payment"] h2,.cardos-flow[data-cardos-state="funded"] h2,.cardos-flow[data-cardos-state="issuing"] h2,.cardos-flow[data-cardos-state="active"] h2 { padding-right:0; text-align:center; }
.cardos-flow[data-cardos-state="awaiting_payment"] > .cardos-lead,.cardos-flow[data-cardos-state="funded"] > .cardos-lead,.cardos-flow[data-cardos-state="issuing"] > .cardos-lead,.cardos-flow[data-cardos-state="active"] > .cardos-lead { text-align:center; }
.cardos-progress { display:flex; justify-content:center; gap:9px; padding:22px; }
.cardos-progress i { width:9px; height:9px; border-radius:50%; background:#658cff; animation:cardos-pulse 1.2s ease-in-out infinite; }
.cardos-progress i:nth-child(2) { animation-delay:.16s; }.cardos-progress i:nth-child(3) { animation-delay:.32s; }
@keyframes cardos-pulse { 0%,100% { opacity:.25; transform:translateY(0); } 50% { opacity:1; transform:translateY(-7px); } }
.cardos-ready-card { display:grid; gap:28px; min-height:190px; padding:24px; border:1px solid rgba(255,255,255,.14); border-radius:25px; background:radial-gradient(circle at 90% 0,rgba(85,120,190,.20),transparent 38%),linear-gradient(145deg,#202630,#090c12 70%); color:#fff; box-shadow:0 22px 50px rgba(0,0,0,.34); }
.cardos-ready-card span { font-weight:800; letter-spacing:.11em; }.cardos-ready-card b { font-size:20px; letter-spacing:.08em; }.cardos-ready-card strong { justify-self:end; align-self:end; }
html[data-theme="light"] .cardos-price,html[data-theme="light"] .cardos-credit,html[data-theme="light"] .cardos-payment-grid div,html[data-theme="light"] .cardos-address { border-color:#e1e6ef; background:#f3f5f9; }
html[data-theme="light"] .cardos-price strong,html[data-theme="light"] .cardos-amount strong,html[data-theme="light"] .cardos-payment-grid b,html[data-theme="light"] .cardos-address code { color:#151b27; }
html[data-theme="light"] .cardos-amount { border-color:#dbe2ef; background:linear-gradient(145deg,#fff,#edf1f7); }
html[data-theme="light"] .cardos-consent { color:#202838; }
@media (prefers-reduced-motion:reduce) { .cardos-status-orb::before,.cardos-progress i { animation:none!important; } }
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; width:80px; min-width:0; height:56px; overflow:hidden; 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:11px; font-weight:900; font-style:italic; letter-spacing:-.15px; white-space:nowrap; }
.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; }
.home-open-card { margin:2px 0 24px; }
.home-open-card > button { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:10px; width:100%; min-height:58px; padding:0 18px; border:1px solid rgba(255,255,255,.07); border-radius:18px; background:rgba(255,255,255,.025); color:#f4f6fb; text-align:left; }
.home-open-card-plus { color:#7596ff; font-size:21px; font-weight:350; line-height:1; }
.home-open-card strong { font-size:15px; font-weight:700; letter-spacing:-.15px; }
.home-open-card b { color:#778196; font-size:18px; font-weight:400; }
.home-open-card > button:active { background:rgba(255,255,255,.05); }
.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; }
.home-card-carousel .card-back.world-card { gap:8px; padding:16px 20px 14px; }
.home-card-carousel .hosted-card-number { padding-top:8px; padding-bottom:10px; }
.home-card-carousel .hosted-card-reveal { flex:0 0 32px; width:100%; min-height:32px; margin:4px 0 2px; }

.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; }
}

/* Premium card onboarding — 2026-09-01 */
.onboarding {
  justify-content:flex-start;
  gap:0;
  padding:calc(22px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 82% 5%,rgba(48,94,230,.35),transparent 31%),
    radial-gradient(circle at 12% 76%,rgba(31,63,154,.22),transparent 36%),
    linear-gradient(180deg,#070a12 0%,#090d18 52%,#05070c 100%);
}
.welcome-brand { display:flex; align-items:center; gap:10px; }
.welcome-brand span { display:grid; place-items:center; width:38px; height:38px; border-radius:13px; background:#f7f8fb; color:#101522; font-size:18px; font-weight:900; box-shadow:0 10px 28px rgba(0,0,0,.25); }
.welcome-brand b { font-size:12px; font-weight:850; letter-spacing:.18em; }
.onboarding-copy { margin-top:clamp(25px,7vh,58px); }
.onboarding-copy .eyebrow { margin-bottom:12px; color:#8692aa; }
.onboarding-copy h1 { max-width:360px; margin:0 0 13px; font-size:clamp(43px,12.5vw,62px); font-weight:760; line-height:.96; letter-spacing:-2.4px; }
.onboarding-copy > p:last-child { max-width:330px; margin:0; color:#929db2; font-size:14px; line-height:1.45; }
.welcome-card { position:relative; isolation:isolate; width:min(100%,360px); aspect-ratio:1.586/1; margin:clamp(22px,4.8vh,38px) auto 17px; padding:21px; overflow:hidden; border:1px solid rgba(255,255,255,.15); border-radius:28px; background:radial-gradient(circle at 86% 10%,rgba(88,128,255,.3),transparent 34%),linear-gradient(142deg,#18233e 0%,#0b1222 47%,#03060c 100%); box-shadow:0 30px 70px rgba(0,0,0,.44),inset 0 1px 0 rgba(255,255,255,.1); transform:rotate(-1.2deg); }
.welcome-card::before,.welcome-card::after { position:absolute; border:1px solid rgba(177,194,225,.11); border-radius:50%; content:""; }
.welcome-card::before { right:-68px; bottom:-106px; width:260px; height:260px; box-shadow:0 0 0 34px rgba(146,169,217,.025),0 0 0 68px rgba(146,169,217,.018); }
.welcome-card::after { top:-100px; left:48%; width:220px; height:220px; }
.welcome-card-shine { position:absolute; inset:0; z-index:-1; background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.07) 50%,transparent 62%); transform:translateX(-35%); }
.welcome-card-brand { display:block; font-size:11px; font-weight:850; letter-spacing:.16em; }
.welcome-card-chip { display:block; width:41px; height:31px; margin-top:clamp(32px,8vh,52px); border:1px solid rgba(31,39,55,.35); border-radius:9px; background:linear-gradient(135deg,#f7f8f9,#9ea7b6); box-shadow:inset 0 0 0 1px rgba(255,255,255,.5); }
.welcome-card strong,.welcome-card > b { position:absolute; bottom:20px; }
.welcome-card strong { left:21px; color:#aab4c6; font-size:10px; font-weight:650; letter-spacing:.06em; }
.welcome-card > b { right:21px; font-size:17px; letter-spacing:-.5px; }
.cardos-welcome-benefits { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin:0 auto 16px; }
.cardos-welcome-benefits span { padding:7px 10px; border:1px solid rgba(255,255,255,.08); border-radius:999px; background:rgba(255,255,255,.035); color:#aab3c4; font-size:9px; font-weight:650; }
.cardos-welcome-benefits span::before { margin-right:6px; color:#6e92ff; content:"✓"; }
.onboarding > .primary { width:100%; min-height:56px; margin-top:auto; border-radius:19px; background:#f6f8fc; color:#111827; font-size:15px; }
.onboarding > small { margin-top:11px; color:#707b90; font-size:10px; }

.sheet.cardos-flow-sheet { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; min-height:100dvh; max-height:100dvh; margin:0; padding:calc(18px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom)); border:0; border-radius:0; background:radial-gradient(circle at 95% -5%,rgba(47,91,214,.22),transparent 31rem),linear-gradient(180deg,#0c111c,#080b12 72%); color:#f5f7fb; box-shadow:none; }
.sheet.cardos-flow-sheet::backdrop { background:#070a10; backdrop-filter:none; }
.cardos-flow-sheet .sheet-handle { display:none; }
.cardos-flow-sheet .sheet-close { position:fixed; top:calc(17px + env(safe-area-inset-top)); right:17px; z-index:10; width:28px; height:28px; padding:0; border:0; border-radius:0; background:transparent; color:#aab4c6; font-size:25px; font-weight:300; line-height:1; backdrop-filter:none; }
.cardos-flow-sheet #sheet-content { width:min(100%,480px); min-height:100%; margin:0 auto; }
.cardos-flow { display:flex; flex-direction:column; gap:15px; min-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding:0 0 4px; animation:cardos-flow-in 300ms ease both; }
@keyframes cardos-flow-in { from { opacity:0; transform:translateY(10px); } }
.cardos-stepper { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; width:100%; margin:2px auto 12px; padding:0 38px; box-sizing:border-box; }
.cardos-stepper span { position:relative; display:grid; grid-template-columns:22px auto; align-items:center; justify-content:start; gap:7px; color:#566176; font-size:9px; font-weight:750; }
.cardos-stepper span:not(:last-child)::after { position:absolute; top:10px; right:1px; width:calc(100% - 76px); height:1px; background:rgba(255,255,255,.09); content:""; }
.cardos-stepper i { display:grid; place-items:center; width:22px; height:22px; border:1px solid rgba(255,255,255,.09); border-radius:50%; background:#111725; color:#69758b; font-size:9px; font-style:normal; }
.cardos-stepper span[data-active="true"] { color:#e9edf5; }
.cardos-stepper span[data-active="true"] i { border-color:rgba(117,152,255,.5); background:#426de9; color:white; box-shadow:0 0 0 5px rgba(66,109,233,.1); }
.cardos-flow-heading { padding-right:36px; }
.cardos-flow-heading.centered { padding-right:0; text-align:center; }
.cardos-flow-heading .eyebrow { margin:0 0 8px; color:#7285aa; font-size:9px; }
.cardos-flow-heading h2 { margin:0; padding:0; font-size:clamp(28px,8vw,37px); font-weight:690; line-height:1.02; letter-spacing:-1.2px; }
.cardos-flow-heading > p:last-child { max-width:390px; margin:10px 0 0; color:#8994a8; font-size:13px; line-height:1.5; }
.cardos-flow-heading.centered > p:last-child { margin-right:auto; margin-left:auto; }
.cardos-product-card { position:relative; isolation:isolate; min-height:196px; padding:21px; overflow:hidden; border:1px solid rgba(255,255,255,.14); border-radius:27px; background:radial-gradient(circle at 88% 6%,rgba(78,119,240,.25),transparent 34%),linear-gradient(142deg,#182542,#0b1222 50%,#03060b); box-shadow:0 25px 58px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08); }
.cardos-product-card::after { position:absolute; right:-76px; bottom:-106px; z-index:-1; width:260px; height:260px; border:1px solid rgba(157,180,224,.12); border-radius:50%; box-shadow:0 0 0 36px rgba(145,168,216,.023),0 0 0 72px rgba(145,168,216,.015); content:""; }
.cardos-product-brand { display:block; font-size:11px; font-weight:850; letter-spacing:.16em; }
.cardos-product-chip { display:block; width:39px; height:29px; margin-top:45px; border-radius:8px; background:linear-gradient(135deg,#f8fafc,#8994a7); box-shadow:inset 0 0 0 1px rgba(255,255,255,.7); }
.cardos-product-card small { position:absolute; bottom:21px; left:21px; color:#8f9caf; font-size:10px; font-weight:650; }
.cardos-product-card strong { position:absolute; right:21px; bottom:19px; font-size:17px; letter-spacing:-.4px; }
.cardos-product-features { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cardos-product-features span { display:grid; grid-template-columns:29px 1fr; align-items:center; gap:9px; min-height:63px; padding:11px; border:1px solid rgba(255,255,255,.06); border-radius:17px; background:rgba(255,255,255,.03); }
.cardos-product-features i { display:grid; place-items:center; width:29px; height:29px; border-radius:10px; background:rgba(76,113,224,.13); color:#7699ff; font-size:8px; font-style:normal; font-weight:800; }
.cardos-product-features b { color:#b8c1d0; font-size:10px; line-height:1.35; }
.cardos-price { display:flex; align-items:center; justify-content:space-between; min-height:70px; padding:15px 17px; border:1px solid rgba(255,255,255,.07); border-radius:19px; background:linear-gradient(145deg,#171d2a,#10151f); }
.cardos-price span { max-width:60%; color:#8994a8; font-size:11px; line-height:1.35; }
.cardos-price strong { font-size:29px; font-variant-numeric:tabular-nums; }
.cardos-price-note,.cardos-amount-note { margin:-5px 2px 0; color:#687489; font-size:10px; line-height:1.45; }
.cardos-consent { display:grid; grid-template-columns:23px 1fr; align-items:start; gap:11px; padding:14px 15px; border:1px solid rgba(93,129,233,.17); border-radius:17px; background:rgba(53,91,197,.075); color:#c6cedc; font-size:12px; line-height:1.45; }
.cardos-consent input { width:21px; min-height:21px; margin:0; accent-color:#4775f0; }
.cardos-primary-action { min-height:56px; margin-top:auto; border-radius:18px; background:linear-gradient(180deg,#4778ff,#3562dc); box-shadow:0 15px 35px rgba(41,83,209,.28),inset 0 1px 0 rgba(255,255,255,.18); font-size:14px; }
.cardos-invoice-hero { display:grid; justify-items:center; gap:5px; padding:18px 16px 17px; border:1px solid rgba(103,139,238,.16); border-radius:23px; background:radial-gradient(circle at 50% 0,rgba(68,108,229,.15),transparent 66%),linear-gradient(145deg,#171e2c,#10151f); text-align:center; box-shadow:0 16px 38px rgba(0,0,0,.18); }
.cardos-invoice-hero > small { color:#7a869b; font-size:9px; font-weight:750; letter-spacing:.11em; text-transform:uppercase; }
.cardos-invoice-hero > strong { font-size:clamp(42px,12vw,56px); font-weight:680; font-variant-numeric:tabular-nums; letter-spacing:-2.2px; line-height:1; }
.cardos-invoice-hero > div { display:flex; align-items:center; gap:8px; }
.cardos-invoice-hero > div > span { color:#aab4c4; font-size:13px; font-weight:800; letter-spacing:.08em; }
.cardos-network-badge { padding:5px 8px; border:1px solid rgba(96,143,255,.28); border-radius:999px; background:rgba(67,111,229,.13); color:#82a4ff; font-size:9px; letter-spacing:.08em; }
.cardos-payment-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cardos-payment-meta > span { display:grid; gap:4px; min-height:58px; padding:12px 13px; border:1px solid rgba(255,255,255,.055); border-radius:16px; background:rgba(255,255,255,.028); }
.cardos-payment-meta small,.cardos-address-copy small { color:#6e798e; font-size:8px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.cardos-payment-meta b { font-size:11px; font-variant-numeric:tabular-nums; }
.cardos-qr-shell { display:grid; justify-items:center; gap:8px; width:max-content; max-width:100%; margin:0 auto; padding:10px 10px 8px; border-radius:24px; background:#f7f9fc; box-shadow:0 20px 50px rgba(0,0,0,.32); }
.cardos-qr { display:block; width:min(51vw,198px); aspect-ratio:1; margin:0; padding:0; border-radius:15px; background:#fff; box-shadow:none; }
.cardos-qr-shell span { color:#182033; font-size:9px; font-weight:850; letter-spacing:.1em; }
.cardos-address-copy { display:grid; grid-template-columns:minmax(0,1fr) 82px; align-items:stretch; gap:8px; padding:8px; border:1px solid rgba(255,255,255,.06); border-radius:18px; background:rgba(255,255,255,.028); }
.cardos-address-copy > span { display:grid; min-width:0; gap:6px; padding:5px 5px 5px 7px; }
.cardos-address-copy code { display:block; max-height:34px; overflow:hidden; color:#dce2ed; font-size:10px; line-height:1.55; overflow-wrap:anywhere; }
.cardos-address-copy button { display:grid; place-items:center; gap:3px; min-height:58px; padding:6px; border:1px solid rgba(99,136,236,.15); border-radius:13px; background:rgba(63,101,211,.11); color:#83a3fa; }
.cardos-address-copy button i { position:relative; width:15px; height:15px; border:1.5px solid currentColor; border-radius:3px; font-style:normal; }
.cardos-address-copy button i::after { position:absolute; top:-4px; left:3px; width:10px; height:10px; border:1.5px solid currentColor; border-radius:3px; background:#172038; content:""; }
.cardos-address-copy button b { font-size:8px; }
.cardos-payment-warning { display:grid; grid-template-columns:35px 1fr; gap:11px; padding:13px; border:1px solid rgba(255,174,66,.16); border-radius:17px; background:rgba(193,112,21,.065); }
.cardos-payment-warning > span { display:grid; place-items:center; width:35px; height:35px; border-radius:12px; background:rgba(255,163,45,.12); color:#ffb34f; font-size:17px; font-weight:850; }
.cardos-payment-warning b { color:#ebd6b8; font-size:11px; }
.cardos-payment-warning p { margin:4px 0 0; color:#9d8c76; font-size:9px; line-height:1.45; }
.cardos-payment-status { display:grid; grid-template-columns:35px 1fr; align-items:center; gap:11px; padding:13px; border:1px solid rgba(100,139,239,.13); border-radius:17px; background:rgba(55,91,191,.065); }
.cardos-status-pulse { width:12px; height:12px; margin:auto; border-radius:50%; background:#6f95ff; box-shadow:0 0 0 0 rgba(111,149,255,.32); animation:cardos-status-pulse 1.5s ease-out infinite; }
@keyframes cardos-status-pulse { 70% { box-shadow:0 0 0 11px rgba(111,149,255,0); } 100% { box-shadow:0 0 0 0 rgba(111,149,255,0); } }
.cardos-payment-status b,.cardos-payment-status small { display:block; }
.cardos-payment-status b { font-size:11px; }
.cardos-payment-status small { margin-top:4px; color:#7f8ba0; font-size:9px; }
.cardos-issuing-receipt { display:grid; grid-template-columns:49px 1fr; gap:13px; align-items:center; padding:15px; border:1px solid rgba(77,209,145,.14); border-radius:20px; background:rgba(38,153,103,.075); }
.cardos-issuing-receipt > span { display:grid; place-items:center; width:49px; height:49px; border-radius:16px; background:rgba(70,208,145,.13); color:#55d99b; font-size:22px; }
.cardos-issuing-receipt small,.cardos-issuing-receipt b { display:block; }
.cardos-issuing-receipt small { color:#6a9a83; font-size:8px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.cardos-issuing-receipt b { margin-top:3px; font-size:15px; }
.cardos-issuing-receipt p { margin:4px 0 0; color:#80a493; font-size:10px; line-height:1.4; }
.cardos-issuing-card { position:relative; display:flex; flex-direction:column; justify-content:space-between; width:min(100%,345px); aspect-ratio:1.586/1; margin:18px auto 12px; padding:22px; overflow:hidden; border:1px solid rgba(255,255,255,.14); border-radius:28px; background:radial-gradient(circle at 87% 8%,rgba(75,117,238,.25),transparent 34%),linear-gradient(142deg,#1b2949,#0b1222 48%,#03060b); box-shadow:0 28px 64px rgba(0,0,0,.38); animation:cardos-card-breathe 2.6s ease-in-out infinite; }
.cardos-issuing-card::after { position:absolute; right:-72px; bottom:-102px; width:250px; height:250px; border:1px solid rgba(157,180,224,.12); border-radius:50%; box-shadow:0 0 0 34px rgba(145,168,216,.02),0 0 0 68px rgba(145,168,216,.014); content:""; }
.cardos-issuing-card span { font-size:11px; font-weight:850; letter-spacing:.16em; }
.cardos-issuing-card i { display:block; width:40px; height:29px; border-radius:8px; background:linear-gradient(135deg,#f8fafc,#8b96a9); }
.cardos-issuing-card strong { align-self:flex-end; font-size:17px; }
@keyframes cardos-card-breathe { 50% { transform:translateY(-5px); box-shadow:0 34px 72px rgba(0,0,0,.44); } }
.cardos-progress { display:flex; justify-content:center; gap:7px; padding:5px 0 10px; }
.cardos-progress i { width:7px; height:7px; border-radius:50%; background:#658cff; animation:cardos-pulse 1.2s ease-in-out infinite; }
.cardos-progress i:nth-child(2) { animation-delay:.16s; }.cardos-progress i:nth-child(3) { animation-delay:.32s; }
.cardos-ready-mark,.cardos-terminal-icon { display:grid; place-items:center; width:76px; height:76px; margin:22px auto 4px; border-radius:26px; }
.cardos-ready-mark { background:rgba(54,210,139,.12); color:#52d99a; font-size:34px; }
.cardos-ready-mark.waiting { background:rgba(74,111,222,.12); color:#7d9eff; }
.cardos-ready-mark.waiting svg { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.cardos-kyc-actions { position:sticky; bottom:calc(-22px - env(safe-area-inset-bottom)); z-index:5; display:grid; gap:10px; margin:auto -20px calc(-22px - env(safe-area-inset-bottom)); padding:22px 20px calc(18px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,rgba(8,11,18,0),#080b12 22%); }
.cardos-kyc-actions button { min-height:58px; margin:0; }
.cardos-terminal-icon { border:1px solid rgba(255,176,67,.13); background:rgba(187,111,26,.07); color:#ffb24b; font-size:31px; }
.cardos-ready-card { display:flex; flex-direction:column; justify-content:space-between; min-height:200px; padding:22px; border:1px solid rgba(255,255,255,.14); border-radius:27px; background:radial-gradient(circle at 88% 8%,rgba(76,118,238,.23),transparent 35%),linear-gradient(142deg,#1b2949,#0b1222 48%,#03060b); color:#fff; box-shadow:0 25px 58px rgba(0,0,0,.35); }
.cardos-ready-card span { font-size:11px; font-weight:850; letter-spacing:.16em; }
.cardos-ready-card b { margin-top:auto; font-size:19px; letter-spacing:.09em; }
.cardos-ready-card strong { align-self:flex-end; font-size:17px; }

.cardos-reference-hero { padding:6px 38px 0 0; }
.cardos-reference-hero .eyebrow { margin:0 0 10px; color:#7185ad; font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.cardos-reference-hero h2 { max-width:390px; margin:0; font-size:clamp(34px,9.4vw,44px); font-weight:720; line-height:1.01; letter-spacing:-1.65px; }
.cardos-reference-hero > p:last-child { max-width:390px; margin:13px 0 0; color:#939db0; font-size:14px; line-height:1.48; }
.cardos-reference-access { display:flex; align-items:center; gap:10px; width:max-content; max-width:100%; padding:10px 14px; border:1px solid rgba(83,211,151,.14); border-radius:999px; background:rgba(45,157,107,.08); color:#c9d8d1; }
.cardos-reference-access span { display:grid; place-items:center; width:22px; height:22px; border-radius:8px; background:#3dcc8c; color:#092118; font-size:12px; font-weight:900; }
.cardos-reference-access b { font-size:12px; }
.cardos-reference-card { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; width:min(100%,390px); aspect-ratio:1.586/1; margin:6px auto 2px; padding:22px; overflow:hidden; border:1px solid rgba(255,255,255,.15); border-radius:29px; background:radial-gradient(circle at 82% 4%,rgba(75,121,255,.32),transparent 34%),linear-gradient(142deg,#1b2949,#0b1222 50%,#03060b); box-shadow:0 28px 65px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.09); }
.cardos-reference-card::after { position:absolute; right:-76px; bottom:-108px; z-index:-1; width:270px; height:270px; border:1px solid rgba(157,180,224,.13); border-radius:50%; box-shadow:0 0 0 38px rgba(145,168,216,.023),0 0 0 76px rgba(145,168,216,.015); content:""; }
.cardos-reference-card span { font-size:12px; font-weight:850; letter-spacing:.16em; }
.cardos-reference-card i { display:block; width:42px; height:31px; margin-top:35px; border-radius:9px; background:linear-gradient(135deg,#fbfcfd,#929dae); box-shadow:inset 0 0 0 1px rgba(255,255,255,.72); }
.cardos-reference-card small { margin-top:auto; color:#8d99ad; font-size:10px; font-weight:650; }
.cardos-reference-card strong { position:absolute; right:22px; bottom:20px; font-size:18px; }
.cardos-reference-facts { display:grid; grid-template-columns:1fr 1fr; gap:1px; overflow:hidden; border:1px solid rgba(255,255,255,.055); border-radius:21px; background:rgba(255,255,255,.045); }
.cardos-reference-facts > div { display:grid; gap:7px; min-height:81px; padding:16px; background:#171c29; }
.cardos-reference-facts > div:last-child { text-align:right; }
.cardos-reference-facts small { color:#828da1; font-size:10px; }
.cardos-reference-facts strong { font-size:22px; font-variant-numeric:tabular-nums; }
.cardos-reference-facts-stacked { display:block; }
.cardos-reference-facts-stacked > div { display:flex; align-items:center; justify-content:space-between; min-height:58px; padding:13px 16px; text-align:left!important; }
.cardos-reference-facts-stacked strong { font-size:14px; }
.cardos-reference-terms,.cardos-reference-rules { display:grid; gap:0; padding-top:8px; }
.cardos-reference-terms > .eyebrow,.cardos-reference-rules > .eyebrow { margin:0 0 10px 2px; color:#68748a; font-size:10px; letter-spacing:.11em; text-transform:uppercase; }
.cardos-reference-terms > div,.cardos-reference-rules > div { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:55px; padding:12px 16px; border-bottom:1px solid rgba(255,255,255,.045); background:#171c29; }
.cardos-reference-terms > div:first-of-type,.cardos-reference-rules > div:first-of-type { border-radius:20px 20px 0 0; }
.cardos-reference-terms > div:last-child,.cardos-reference-rules > div:last-child { border-bottom:0; border-radius:0 0 20px 20px; }
.cardos-reference-terms span { color:#8994a7; font-size:12px; }
.cardos-reference-terms b { font-size:12px; }
.cardos-reference-terms > div:first-of-type b { color:#4ed79a; }
.cardos-reference-rules > div { justify-content:flex-start; }
.cardos-reference-rules i { display:grid; flex:0 0 29px; place-items:center; width:29px; height:29px; border-radius:50%; background:#242b3c; color:#8793a9; font-size:10px; font-style:normal; font-weight:750; }
.cardos-reference-rules span { color:#9aa4b6; font-size:12px; line-height:1.4; }
.cardos-sticky-action { position:sticky; bottom:calc(-22px - env(safe-area-inset-bottom)); z-index:5; margin:0 -20px calc(-22px - env(safe-area-inset-bottom)); padding:16px 20px calc(18px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,rgba(8,11,18,0),#080b12 24%); }
.cardos-sticky-action .cardos-primary-action { margin:0; }
.cardos-sticky-action .cardos-primary-action:disabled { background:#252b38; color:#687286; box-shadow:none; cursor:not-allowed; opacity:1; }
.cardos-reference-payment-head { display:grid; gap:22px; padding-top:4px; }
.cardos-reference-card-icon { position:relative; display:grid; place-items:start; width:82px; height:58px; padding:11px; overflow:hidden; border:1px solid rgba(255,255,255,.14); border-radius:17px; background:radial-gradient(circle at 88% 5%,rgba(79,126,255,.45),transparent 42%),linear-gradient(145deg,#1b2949,#080d18); box-shadow:0 14px 30px rgba(0,0,0,.28); }
.cardos-reference-card-icon span { font-size:15px; font-weight:900; }
.cardos-reference-card-icon b { align-self:end; justify-self:end; color:#dce5f7; font-size:7px; }
.cardos-reference-summary { display:grid; gap:0; padding:7px 17px; border:1px solid rgba(255,255,255,.06); border-radius:21px; background:#171c29; }
.cardos-reference-summary > div { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:51px; }
.cardos-reference-summary span { color:#8792a6; font-size:12px; }
.cardos-reference-summary b { font-size:12px; text-align:right; }
.cardos-reference-summary hr { width:100%; height:1px; margin:3px 0; border:0; background:repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0 14px,transparent 14px 25px); }
.cardos-reference-summary-total strong { font-size:15px; }
.cardos-reference-summary-total strong:last-child { font-size:17px; font-variant-numeric:tabular-nums; }

html[data-theme="light"] .sheet.cardos-flow-sheet { background:radial-gradient(circle at 95% -5%,rgba(55,104,255,.12),transparent 31rem),linear-gradient(180deg,#f7f9fd,#eef2f8 76%); color:#141a27; }
html[data-theme="light"] .cardos-flow-sheet .sheet-close { background:transparent; color:#667085; }
html[data-theme="light"] .cardos-kyc-actions { background:linear-gradient(180deg,rgba(238,242,248,0),#eef2f8 22%); }
html[data-theme="light"] .cardos-flow-heading > p:last-child,html[data-theme="light"] .cardos-price-note,html[data-theme="light"] .cardos-amount-note { color:#69758a; }
html[data-theme="light"] .cardos-stepper span { color:#8993a5; }
html[data-theme="light"] .cardos-stepper span[data-active="true"] { color:#202a3c; }
html[data-theme="light"] .cardos-stepper i { border-color:#dbe1eb; background:#eef2f7; }
html[data-theme="light"] .cardos-product-features span,html[data-theme="light"] .cardos-price,html[data-theme="light"] .cardos-invoice-hero,html[data-theme="light"] .cardos-payment-meta > span,html[data-theme="light"] .cardos-address-copy { border-color:#dfe5ef; background:#fff; box-shadow:0 12px 30px rgba(43,57,85,.08); }
html[data-theme="light"] .cardos-product-features b,html[data-theme="light"] .cardos-price strong,html[data-theme="light"] .cardos-invoice-hero > strong,html[data-theme="light"] .cardos-payment-meta b,html[data-theme="light"] .cardos-address-copy code { color:#172033; }
html[data-theme="light"] .cardos-consent { color:#334058; }
html[data-theme="light"] .cardos-address-copy button i::after { background:#eef3ff; }
html[data-theme="light"] .cardos-payment-warning { border-color:#efd9bb; background:#fff8ee; }
html[data-theme="light"] .cardos-payment-warning b { color:#6b4b21; }
html[data-theme="light"] .cardos-payment-warning p { color:#876b47; }
html[data-theme="light"] .cardos-payment-status { border-color:#dbe4fb; background:#eef3ff; }
html[data-theme="light"] .cardos-payment-status b { color:#23304a; }

@media (max-height:740px) {
  .onboarding { padding-top:calc(14px + env(safe-area-inset-top)); }
  .onboarding-copy { margin-top:18px; }
  .onboarding-copy h1 { font-size:41px; }
  .welcome-card { width:min(83%,315px); margin:15px auto 11px; border-radius:23px; }
  .welcome-card-chip { margin-top:25px; }
  .cardos-welcome-benefits { margin-bottom:10px; }
  .cardos-flow { gap:11px; }
  .cardos-flow-heading h2 { font-size:27px; }
  .cardos-flow-heading > p:last-child { margin-top:7px; font-size:11px; }
  .cardos-product-card { min-height:166px; }
  .cardos-product-chip { margin-top:30px; }
  .cardos-product-features span { min-height:55px; }
  .cardos-qr { width:min(42vw,165px); }
  .cardos-payment-warning { padding:10px; }
  .cardos-issuing-card { width:min(88%,310px); margin-top:8px; }
}
@media (max-width:360px) {
  .cardos-stepper { width:calc(100% - 44px); }
  .cardos-stepper span { grid-template-columns:20px auto; gap:5px; font-size:8px; }
  .cardos-stepper i { width:20px; height:20px; }
  .cardos-stepper span:not(:last-child)::after { display:none; }
  .cardos-product-features { grid-template-columns:1fr; }
  .cardos-address-copy { grid-template-columns:minmax(0,1fr) 70px; }
  .cardos-address-copy button b { font-size:7px; }
}

@media (prefers-reduced-motion: reduce) {
  .cardos-flow,.cardos-status-pulse,.cardos-issuing-card,.cardos-progress i { animation:none!important; }
}

@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; }
}

/* Mobile stability and motion polish */
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
.app-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
main, .screen, .screen > *, .row > *, .split > * { min-width: 0; }
svg, img { max-width: 100%; }
.screen.active { animation: screen-enter 240ms cubic-bezier(.2,.75,.25,1) both; }
@keyframes screen-enter {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
button {
  touch-action: manipulation;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
button:active:not(:disabled) { transform: scale(.975); }
.topbar {
  position: relative;
  top: auto;
  background: transparent;
}
.bottom-nav {
  padding-right: max(8px, env(safe-area-inset-right));
  padding-bottom: max(env(safe-area-inset-bottom), 7px);
  padding-left: max(8px, env(safe-area-inset-left));
}
.bottom-nav button { overflow: hidden; }
.nav-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet {
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet[open] { animation: sheet-enter 260ms cubic-bezier(.2,.78,.25,1) both; }
@keyframes sheet-enter {
  from { opacity: .65; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.card-offer-head {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 112px);
}
.card-offer-head > span {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-offer-tags { flex-wrap: wrap; }
.card-offer dl div { min-width: 0; }
.card-offer dd { max-width: 56%; overflow-wrap: anywhere; }

@media (max-width: 360px) {
  .stories-rail, .home-card-carousel { margin-right: -15px; margin-left: -15px; }
  .stories-strip, .carousel-heading, .carousel-footer { padding-right: 15px; padding-left: 15px; }
  .card-market-intro h3 { font-size: 23px; white-space: normal; }
  .card-offer { padding: 21px 17px 17px; }
  .card-offer-head { grid-template-columns: minmax(0, 1fr) minmax(88px, 102px); gap: 10px; }
  .card-offer-head > span { font-size: 13px; }
  .card-offer-tags span { padding: 6px 9px; }
  .service-primary { grid-template-columns: 50px minmax(0, 1fr) 12px; gap: 11px; padding: 15px; }
  .service-primary-icon { width: 50px; height: 50px; }
  .service-primary em { white-space: normal; }
  .referral-card { padding-right: 18px; padding-left: 18px; }
  .referral-actions { grid-template-columns: 1fr; }
  .onboarding { padding-right: 18px; padding-left: 18px; }
  .onboarding-cards { transform: scale(.92); transform-origin: left center; }
}

@media (max-width: 330px) {
  .bottom-nav { padding-right: 3px; padding-left: 3px; }
  .bottom-nav button { font-size: 8px; }
  .nav-glyph { width: 34px; }
  .quick-actions span { width: 46px; height: 46px; border-radius: 16px; }
  .card-offer-head { grid-template-columns: 1fr; }
  .card-offer-head > span { width: 104px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card-wide { min-height: 142px; }
}

/* Global motion language: quick feedback, calm transitions, no delayed actions. */
:root {
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 340ms;
  --motion-ease: cubic-bezier(.22, .8, .25, 1);
  --motion-spring: cubic-bezier(.2, .9, .25, 1.2);
}

button,
[role="button"],
summary,
input,
select,
textarea,
.operation-row,
.service-card,
.support-menu-row,
.wallet-card,
.history-item {
  -webkit-tap-highlight-color: transparent;
  transition-property: transform, opacity, color, background-color, border-color, box-shadow, filter;
  transition-duration: var(--motion-fast);
  transition-timing-function: var(--motion-ease);
}

button:active:not(:disabled),
[role="button"]:active,
summary:active {
  transform: scale(.975);
}

.motion-press {
  animation: motion-press 280ms var(--motion-ease);
}

@keyframes motion-press {
  0% { filter: brightness(1); }
  42% { filter: brightness(1.13); transform: scale(.965); }
  100% { filter: brightness(1); }
}

.screen.active > * {
  animation: motion-content-in var(--motion-base) var(--motion-ease) both;
}
.screen.active > :nth-child(2) { animation-delay: 24ms; }
.screen.active > :nth-child(3) { animation-delay: 48ms; }
.screen.active > :nth-child(n+4) { animation-delay: 68ms; }

#sheet-content > * {
  animation: motion-content-in var(--motion-base) var(--motion-ease) both;
}

.sheet[open]:not(.currency-sheet) {
  animation: motion-sheet-in var(--motion-slow) var(--motion-ease) both;
}
.sheet[open]::backdrop {
  animation: motion-backdrop-in var(--motion-base) ease-out both;
}
.sheet.is-closing {
  pointer-events: none;
  animation: motion-sheet-out 180ms ease-in both !important;
}
.sheet.is-closing::backdrop {
  animation: motion-backdrop-out 180ms ease-in both;
}

.toast:not([hidden]) {
  animation: motion-toast-in 260ms var(--motion-spring) both;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(88,128,255,.52);
  box-shadow: 0 0 0 4px rgba(88,128,255,.10);
  transform: translateY(-1px);
}

@keyframes motion-content-in {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to { opacity: 1; transform: none; }
}
@keyframes motion-sheet-in {
  from { opacity: 0; transform: translateY(34px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes motion-sheet-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(24px) scale(.99); }
}
@keyframes motion-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes motion-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes motion-toast-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* Compact top-up workspace inspired by native payment sheets. */
.sheet.cardos-flow-sheet.topup-flow-sheet {
  padding: calc(14px + env(safe-area-inset-top)) 20px calc(14px + env(safe-area-inset-bottom));
  background: #07090e;
}
.topup-flow-sheet .sheet-close { top: calc(14px + env(safe-area-inset-top)); right: 20px; width: 38px; height: 38px; border-radius: 14px; background: #171a20; font-size: 22px; }
.topup-form-redesign,.topup-loading { gap: 14px; min-height: calc(var(--topup-stable-height, 100svh) - 30px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.topup-back-label { align-self: flex-start; min-height: 38px; padding: 0 13px; border: 0; border-radius: 14px; background: #171a20; color: #f1f3f7; font-size: 14px; font-weight: 750; }
.topup-form-redesign h2,.topup-loading h2 { margin: 10px 0 4px; padding: 0; font-size: 28px; letter-spacing: -.7px; }
.topup-form-redesign .topup-card-picker { margin: 2px -20px 0; }
.topup-loading .topup-card-picker { margin: 2px -20px 0; }
.topup-form-redesign .topup-card-picker-head { justify-content: space-between; min-height: 20px; margin: 0; padding: 0 20px 9px; }
.topup-form-redesign .topup-card-picker-head strong { color: #747b89; font-size: 10px; font-weight: 650; }
.topup-form-redesign .topup-card-picker-head span { position: static; }
.topup-loading .topup-card-picker-head { justify-content: space-between; min-height: 20px; margin: 0; padding: 0 20px 9px; }
.topup-loading .topup-card-picker-head strong { color: #747b89; font-size: 10px; font-weight: 650; }
.topup-loading .topup-card-track { padding: 11px calc((min(100vw, 620px) - min(341px, calc(100vw - 52px))) / 2) 2px; }
.topup-loading .topup-card-footer { min-height: 17px; padding-top: 7px; }
.topup-form-redesign .topup-card-track { gap: 12px; padding: 0 calc((min(100vw, 620px) - min(341px, calc(100vw - 52px))) / 2) 2px; }
.topup-form-redesign .topup-card-slide { flex: 0 0 min(341px,calc(100vw - 52px)); width: min(341px,calc(100vw - 52px)); max-width: none; height: 196px; min-height: 196px; aspect-ratio: auto; margin: 0; padding: 20px; border: 0; border-radius: 25px; background: #eef2fa url("/static/ladno-visa.jpg?v=3") center/cover no-repeat; color: #121a2c; box-shadow: 0 22px 48px rgba(0,0,0,.32); text-align: left; scroll-snap-align: center; scroll-snap-stop: always; }
.topup-form-redesign .topup-card-slide .kind { align-items: baseline; gap: 8px; text-shadow: none; }
.topup-form-redesign .topup-card-slide .kind small { color: rgba(18,26,44,.62); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.topup-card-summary,.topup-card-balance { display: flex; align-items: center; justify-content: space-between; }
.topup-card-summary span,.topup-card-summary small,.topup-card-summary b,.topup-card-balance small,.topup-card-balance strong { display: block; }
.topup-card-summary small { margin-bottom: 5px; color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.topup-card-summary b { color: #fff; font-size: 14px; }
.topup-card-summary i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: rgba(255,255,255,.1); color: #fff; font-size: 23px; font-style: normal; }
.topup-card-balance { align-items: end; margin-top: 19px; }
.topup-card-balance small { color: rgba(255,255,255,.67); font-size: 10px; }
.topup-card-balance strong { color: #fff; font-size: 29px; letter-spacing: -.8px; }
.topup-form-redesign .topup-card-footer { min-height: 17px; padding-top: 7px; }
.topup-methods { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 19px; background: #15171b; }
.topup-methods > div { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-width: 0; min-height: 48px; border-radius: 15px; color: #69717e; }
.topup-methods > div.active { background: #24272e; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.topup-methods span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 50%; background: #17795d; color: #d9fff2; font-size: 11px; font-weight: 850; }
.topup-methods .disabled span { border-radius: 9px; background: #252831; color: #7d8490; font-size: 8px; }
.topup-methods b { font-size: 13px; }
.topup-payment-panel { overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 23px; background: #15171b; }
.topup-amount-panel { gap: 7px !important; padding: 17px 18px 15px; border: 0; border-radius: 0; background: transparent; }
.topup-amount-panel > span { color: #8a909c; font-size: 11px; }
.topup-amount-panel input { min-height: 40px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 31px; font-weight: 800; appearance: textfield; -moz-appearance: textfield; }
.topup-amount-panel input::-webkit-outer-spin-button,.topup-amount-panel input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.topup-amount-panel input::placeholder { color: #626976; font-size: 18px; font-weight: 650; opacity: 1; }
.topup-amount-panel input:focus { transform: none; box-shadow: none; }
.topup-amount-panel small { color: #626976 !important; }
.topup-rate-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 8px; padding: 14px 18px; border: 0; border-top: 1px solid rgba(255,255,255,.06); border-radius: 0; background: #111318; }
.topup-rate-panel > span { min-width: 0; }
.topup-rate-panel > span:last-child { text-align: right; }
.topup-rate-panel .topup-network > span { min-width: 0; text-align: left; }
.topup-rate-panel small,.topup-rate-panel b { display: block; }
.topup-rate-panel small { margin-bottom: 6px; color: #707784; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.topup-rate-panel b { color: #eef1f6; font-size: 12px; }
.topup-rate-panel .topup-network { display: flex; align-items: center; gap: 9px; min-width: 0; text-align: left; }
.trc20-mark { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: #ef233c; }
.trc20-mark svg { width: 21px; height: 21px; fill: #fff; }
.topup-form-actions { position: static; display: grid; gap: 7px; margin-top: auto; padding-top: 18px; background: linear-gradient(180deg,rgba(7,9,14,0),#07090e 22%); }
.topup-form-actions .primary { min-height: 58px; border-radius: 20px; font-size: 16px; }
.topup-cancel { min-height: 38px; border: 0; background: transparent; color: #747c89; font-weight: 750; }
.topup-skeleton { position: relative; overflow: hidden; border-radius: 22px; background: #14171d; }
.topup-skeleton::after { position: absolute; inset: 0; background: linear-gradient(100deg,transparent 25%,rgba(255,255,255,.06) 50%,transparent 75%); content: ""; transform: translateX(-100%); animation: topup-shimmer 1.1s infinite; }
.topup-skeleton-count { width: 34px; height: 22px; border-radius: 9px; }
.topup-skeleton-card { flex: 0 0 min(341px,calc(100vw - 52px)); width: min(341px,calc(100vw - 52px)); height: 196px; border-radius: 25px; }
.topup-skeleton-tabs { height: 58px; }
.topup-skeleton-field { height: 188px; }
.topup-skeleton-action { height: 58px; margin-top: auto; }
@keyframes topup-shimmer { to { transform: translateX(100%); } }
@media (max-width: 360px) {
  .topup-form-redesign h2,.topup-loading h2 { font-size: 25px; }
  .topup-amount-panel { padding: 14px 15px; }
  .topup-rate-panel { padding: 12px 15px; }
  .topup-rate-panel b { font-size: 10px; }
}

/* Card catalogue + issue details — compact reference-led redesign */
.card-market-nav { min-height:38px; margin:0 0 6px; }
.card-market-nav h2 { font-size:24px; font-weight:780; letter-spacing:-.75px; }
.card-market-intro { margin:0 0 22px; }
.card-market-intro .card-stack-art { width:112px; height:84px; margin-bottom:8px; transform:rotate(-3deg) scale(.86); }
.card-market-intro h3 { max-width:340px; margin-bottom:7px; font-size:25px; line-height:1.08; letter-spacing:-.85px; white-space:normal; }
.card-market-intro p { max-width:310px; color:#7f8798; font-size:12px; }
.card-market-catalog { gap:15px; }
.card-offer { padding:20px 18px 17px; border-color:rgba(255,255,255,.075); border-radius:24px; background:linear-gradient(145deg,#202533,#171b26); box-shadow:0 15px 34px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.035); }
.card-offer-head { grid-template-columns:minmax(0,1fr) 88px; gap:12px; }
.card-offer-head h3 { margin-bottom:7px; font-size:19px; line-height:1.16; }
.card-offer-head p { color:#8e96a7; font-size:11px; line-height:1.42; }
.card-offer-head > span { position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; width:88px; height:61px; padding:10px; border:1px solid rgba(255,255,255,.13); border-radius:15px; background:radial-gradient(circle at 85% 5%,rgba(68,123,255,.48),transparent 40%),linear-gradient(145deg,#172b56,#080c15); box-shadow:0 13px 27px rgba(0,0,0,.3); color:#fff; font-style:normal; }
.card-offer-metal .card-offer-head > span { background:radial-gradient(circle at 15% 0,rgba(224,233,249,.22),transparent 42%),linear-gradient(145deg,#374152,#10141c 60%,#06080c); }
.card-offer-head > span small { color:#d8e2f4; font-size:6px; font-weight:850; letter-spacing:.12em; }
.card-offer-head > span b { align-self:flex-end; font-size:12px; font-style:italic; }
.card-offer-tags { gap:6px; margin:15px 0 19px; }
.card-offer-tags span { padding:6px 9px; color:#dfe4ee; font-size:9px; }
.card-offer-specs { gap:0!important; margin:0 0 16px!important; padding:4px 0; }
.card-offer-specs div { min-height:36px; }
.card-offer-specs dt { color:#81899a; font-size:11px; }
.card-offer-specs dd { max-width:62%; color:#f3f5f8; font-size:12px; }
.card-offer-pricing { display:grid; grid-template-columns:.72fr 1.28fr; gap:1px; margin:0 -18px 15px; overflow:hidden; border-top:1px solid rgba(255,255,255,.055); border-bottom:1px solid rgba(255,255,255,.055); background:rgba(255,255,255,.05); }
.card-offer-pricing > span { display:grid; gap:5px; min-height:65px; padding:13px 18px; background:#191e2a; }
.card-offer-pricing > span:last-child { text-align:right; }
.card-offer-pricing small { color:#7f889a; font-size:9px; }
.card-offer-pricing b { color:#f7f8fb; font-size:14px; line-height:1.18; }
.card-offer > button { min-height:50px; border-radius:14px; background:linear-gradient(180deg,#278cff,#1675e7); box-shadow:0 12px 26px rgba(18,112,235,.22); font-size:14px; }

.cardos-flow[data-cardos-state="eligible"] { gap:14px; }
.cardos-flow[data-cardos-state="eligible"] > .cardos-stepper { display:none; }
.cardos-flow[data-cardos-state="eligible"] .cardos-reference-hero { padding-top:7px; }
.cardos-reference-hero h2 { font-size:clamp(29px,8.2vw,38px); line-height:1.04; }
.cardos-reference-hero > p:last-of-type { margin-top:9px; font-size:12px; }
.cardos-detail-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.cardos-detail-tags span { padding:7px 10px; border:1px solid rgba(255,255,255,.06); border-radius:999px; background:rgba(255,255,255,.055); color:#dce2ed; font-size:9px; font-weight:750; }
.cardos-reference-access { padding:8px 12px; }
.cardos-reference-access span { width:25px; height:25px; }
.cardos-reference-card { margin-top:0; border-radius:26px; }
.cardos-reference-card[data-variant="wallet"] { background:radial-gradient(circle at 12% 0,rgba(221,232,249,.23),transparent 42%),radial-gradient(circle at 92% 8%,rgba(42,104,239,.18),transparent 34%),linear-gradient(145deg,#293446,#0c111a 62%,#040609); }
.cardos-reference-facts > div { min-height:74px; }
.cardos-reference-facts-stacked > div { min-height:53px; }
.cardos-reference-terms > div,.cardos-reference-rules > div { background:#171c29; }
.cardos-reference-terms b { max-width:54%; text-align:right; }
.cardos-reference-terms .positive-value { color:#45d996!important; }
.cardos-reference-rules span { color:#a3adbd; }
.cardos-payment-warning { background:rgba(177,106,25,.075); }
.cardos-sticky-action { padding-top:18px; }

html[data-theme="light"] .card-offer-pricing > span { background:#f5f7fb; }
html[data-theme="light"] .card-offer-pricing small { color:#6f798b; }
html[data-theme="light"] .card-offer-pricing b { color:#171d2b; }
html[data-theme="light"] .cardos-detail-tags span { border-color:#dfe5ef; background:#fff; color:#3d485c; }

@media (max-width:360px) {
  .card-market-intro h3 { font-size:22px; }
  .card-offer { padding-right:16px; padding-left:16px; }
  .card-offer-head { grid-template-columns:minmax(0,1fr) 80px; }
  .card-offer-head > span { width:80px; height:56px; }
  .card-offer-pricing { margin-right:-16px; margin-left:-16px; }
  .card-offer-pricing > span { padding-right:14px; padding-left:14px; }
}

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