/* VaultPrime brand palette: navy, metallic gold, and silver. */
:root {
  color-scheme: dark;
  --vp-navy-rgb: 8 15 25;
  --vp-navy: rgb(var(--vp-navy-rgb));
  --vp-panel-rgb: 16 27 42;
  --vp-panel: rgb(var(--vp-panel-rgb));
  --vp-raised-rgb: 23 37 55;
  --vp-raised: rgb(var(--vp-raised-rgb));
  --vp-gold-rgb: 220 181 99;
  --vp-gold: rgb(var(--vp-gold-rgb));
  --vp-gold-light-rgb: 246 218 151;
  --vp-gold-light: rgb(var(--vp-gold-light-rgb));
  --vp-gold-soft-rgb: 44 38 28;
  --vp-gold-soft: rgb(var(--vp-gold-soft-rgb));
  --vp-gold-line-rgb: 104 86 51;
  --vp-gold-line: rgb(var(--vp-gold-line-rgb));
  --vp-silver-rgb: 232 237 244;
  --vp-silver: rgb(var(--vp-silver-rgb));
  --vp-muted-rgb: 164 177 194;
  --vp-muted: rgb(var(--vp-muted-rgb));
  --vp-border-rgb: 47 62 81;
  --vp-border: rgb(var(--vp-border-rgb));
  --vp-danger-rgb: 255 145 151;
  --vp-danger: rgb(var(--vp-danger-rgb));
  --vp-danger-soft-rgb: 53 27 36;
  --vp-danger-soft: rgb(var(--vp-danger-soft-rgb));
  --vp-danger-line-rgb: 117 61 73;
  --vp-danger-line: rgb(var(--vp-danger-line-rgb));
  --vp-warning-rgb: 238 199 117;
  --vp-warning: rgb(var(--vp-warning-rgb));
  --vp-warning-soft-rgb: 49 39 23;
  --vp-warning-soft: rgb(var(--vp-warning-soft-rgb));
  --vp-white-rgb: 255 255 255;
  --vp-white: rgb(var(--vp-white-rgb));
  --vp-shadow-rgb: 0 0 0;
  --vp-shadow: rgb(var(--vp-shadow-rgb));
}

:root {
  --ev-gold: var(--vp-gold);
  --ev-gold-dark: var(--vp-gold-light);
  --ev-gold-soft: var(--vp-gold-soft);
  --ev-gold-line: var(--vp-gold-line);
  --ev-black: var(--vp-navy);
  --ev-ink: var(--vp-silver);
  --ev-muted: var(--vp-muted);
  --ev-soft: var(--vp-panel);
  --ev-white: var(--vp-panel);
  --ev-surface: var(--vp-raised);
  --ev-border: var(--vp-border);
  --ev-border-strong: var(--vp-border);
  --ev-danger: var(--vp-danger);
  --ev-warning: var(--vp-warning);
  --ev-radius: 8px;
  --ev-shadow: 0 24px 60px rgb(var(--vp-shadow-rgb) / 0.07);
  --ev-shadow-soft: 0 12px 30px rgb(var(--vp-shadow-rgb) / 0.055);
  --ev-shadow-card: 0 10px 24px rgb(var(--vp-shadow-rgb) / 0.045);
  --ev-shadow-lift: 0 16px 34px rgb(var(--vp-shadow-rgb) / 0.075);
  --ev-focus: 0 0 0 0.2rem rgb(var(--vp-gold-rgb) / 0.16);
  --ev-speed: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ev-ink);
  background: var(--ev-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.45;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .mobile-nav {
  display: none;
}

.deposit-confirm-modal,
.withdraw-confirm-modal {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.deposit-confirm-shell,
.deposit-confirm-panel,
.withdraw-confirm-shell,
.withdraw-confirm-panel {
  min-height: 100vh;
  min-height: 100dvh;
}

.deposit-confirm-panel,
.withdraw-confirm-panel {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.deposit-confirm-actions,
.withdraw-confirm-actions {
  flex: 0 0 auto;
}

.landing-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--vp-silver);
  background:
    radial-gradient(circle at 14% 0%, rgb(var(--vp-gold-rgb) / 0.16), transparent 32%),
    linear-gradient(180deg, rgb(var(--vp-gold-soft-rgb) / 0.82), rgb(var(--vp-silver-rgb) / 0) 310px),
    var(--ev-white);
  box-shadow: var(--ev-shadow);
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 10px;
  background: rgb(var(--vp-panel-rgb) / 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(var(--vp-border-rgb) / 0.7);
}

.landing-brand,
.landing-nav {
  display: inline-flex;
  align-items: center;
}

.landing-brand {
  gap: 10px;
  min-width: 0;
  color: var(--vp-silver);
  font-weight: 900;
  text-decoration: none;
}

.landing-nav {
  gap: 8px;
  flex: 0 0 auto;
}

.landing-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--ev-white);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.landing-nav .landing-nav-cta {
  border-color: var(--ev-gold);
  background: var(--ev-gold);
}

.landing-hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: end;
  padding: 18px 18px 28px;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(var(--vp-silver-rgb) / 0) 48%, rgb(var(--vp-panel-rgb) / 0.92) 70%, var(--ev-white) 100%),
    radial-gradient(circle at 50% 22%, rgb(var(--vp-gold-rgb) / 0.14), transparent 38%);
  pointer-events: none;
}

.landing-hero-media {
  position: absolute;
  inset: 12px 0 auto;
  height: 385px;
  display: grid;
  place-items: start center;
  pointer-events: none;
}

.landing-hero-media img {
  width: min(92%, 370px);
  max-height: 382px;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgb(var(--vp-shadow-rgb) / 0.12));
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 355px;
}

.landing-kicker,
.landing-section-label {
  margin: 0 0 9px;
  color: var(--ev-gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2 {
  margin: 0;
  color: var(--vp-silver);
  font-weight: 900;
  letter-spacing: 0;
}

.landing-hero h1 {
  font-size: 3rem;
  line-height: 0.96;
}

.landing-hero p:not(.landing-kicker),
.landing-section p {
  margin: 12px 0 0;
  color: var(--ev-muted);
  font-size: 0.95rem;
  line-height: 1.48;
  font-weight: 650;
}

.landing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.landing-actions .btn-ev {
  min-height: 50px;
  text-decoration: none;
}

.landing-secondary {
  border-color: var(--ev-border);
  background: var(--ev-white);
  box-shadow: 0 8px 18px rgb(var(--vp-shadow-rgb) / 0.035);
}

.landing-section {
  padding: 0 18px 28px;
}

.landing-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-highlights article {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: rgb(var(--vp-panel-rgb) / 0.98);
  box-shadow: var(--ev-shadow-card);
}

.landing-highlights svg {
  width: 22px;
  height: 22px;
  color: var(--ev-gold-dark);
}

.landing-highlights strong {
  display: block;
  margin-top: 10px;
  color: var(--vp-silver);
  font-size: 0.8rem;
  line-height: 1.1;
  font-weight: 900;
}

.landing-highlights span {
  display: block;
  margin-top: 6px;
  color: var(--ev-muted);
  font-size: 0.68rem;
  line-height: 1.28;
  font-weight: 650;
}

.landing-product,
.landing-steps,
.landing-final {
  margin: 0 18px 28px;
  padding: 18px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: linear-gradient(180deg, var(--ev-white), var(--ev-surface));
  box-shadow: var(--ev-shadow-card);
}

.landing-product {
  display: grid;
  gap: 16px;
}

.landing-section h2 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.landing-check-list,
.landing-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-check-list li,
.landing-step-list article {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.landing-check-list i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--ev-radius);
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
}

.landing-check-list svg {
  width: 14px;
  height: 14px;
}

.landing-check-list span {
  color: var(--vp-silver);
  font-size: 0.86rem;
  line-height: 1.32;
  font-weight: 780;
}

.landing-step-list {
  margin-top: 16px;
}

.landing-step-list article {
  padding-top: 12px;
  border-top: 1px solid var(--ev-border);
}

.landing-step-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.landing-step-list article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--ev-radius);
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-step-list strong {
  color: var(--vp-silver);
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 900;
}

.landing-step-list p {
  margin-top: 4px;
  font-size: 0.78rem;
}

.landing-final {
  margin-bottom: 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgb(var(--vp-gold-rgb) / 0.15), transparent 44%),
    linear-gradient(180deg, var(--ev-white), var(--ev-surface));
}

.landing-onboard {
  min-height: auto;
  align-items: center;
  display: flex;
  padding: 54px 18px 34px;
}

.landing-onboard::before {
  background:
    radial-gradient(circle at 50% 0%, rgb(var(--vp-gold-rgb) / 0.18), transparent 40%),
    linear-gradient(180deg, rgb(var(--vp-panel-rgb) / 0.72), var(--ev-white) 100%);
}

.landing-onboard .landing-hero-copy {
  max-width: none;
  text-align: center;
}

.landing-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.landing-progress span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ev-gold-line);
}

.landing-progress .active {
  width: 28px;
  background: var(--ev-gold);
}

.landing-onboard .landing-kicker {
  margin-bottom: 8px;
}

.landing-onboard h1 {
  max-width: 360px;
  margin: 0 auto;
  font-size: 2.55rem;
  line-height: 0.98;
}

.landing-onboard p:not(.landing-kicker) {
  max-width: 350px;
  margin: 12px auto 0;
  font-size: 0.9rem;
}

.landing-onboard .landing-actions {
  max-width: 360px;
  margin-right: auto;
  margin-left: auto;
}

.landing-onboard-steps {
  margin-top: 0;
}

.landing-onboard-steps .landing-step-list article > span {
  color: var(--ev-gold-dark);
  font-size: 0;
}

.landing-onboard-steps .landing-step-list article > span svg {
  width: 16px;
  height: 16px;
}

.landing-onboard-steps + .landing-final {
  margin-top: -8px;
}

.landing-onboarding-page {
  background:
    radial-gradient(circle at 50% -8%, rgb(var(--vp-gold-rgb) / 0.18), transparent 30%),
    linear-gradient(180deg, rgb(var(--vp-gold-soft-rgb) / 0.72), rgb(var(--vp-silver-rgb) / 0) 260px),
    var(--ev-white);
}

.onboard-main {
  display: grid;
  gap: 18px;
  padding: 18px 18px 34px;
}

.onboard-hero-card,
.onboard-path-card {
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background:
    radial-gradient(circle at 50% 0%, rgb(var(--vp-gold-rgb) / 0.11), transparent 42%),
    linear-gradient(180deg, var(--ev-white), var(--ev-surface));
  box-shadow: var(--ev-shadow-card);
}

.onboard-hero-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 440px;
  align-content: center;
  padding: 22px 18px;
  overflow: hidden;
  text-align: center;
}

.onboard-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ev-gold), rgb(var(--vp-gold-rgb) / 0));
}

.onboard-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.onboard-progress-row .landing-progress {
  margin: 0;
}

.onboard-progress-row > span {
  color: var(--ev-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.onboard-product-pill {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--ev-gold-line);
  border-radius: var(--ev-radius);
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.onboard-product-pill svg {
  width: 15px;
  height: 15px;
}

.onboard-hero-card h1 {
  max-width: 330px;
  margin: 0 auto;
  color: var(--vp-silver);
  font-size: 2.75rem;
  line-height: 0.96;
  font-weight: 900;
}

.onboard-hero-card p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--ev-muted);
  font-size: 0.95rem;
  line-height: 1.48;
  font-weight: 680;
}

.onboard-actions {
  width: 100%;
  max-width: 350px;
  margin: 4px auto 0;
}

.onboard-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.onboard-snapshot article {
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: rgb(var(--vp-panel-rgb) / 0.98);
  box-shadow: 0 8px 18px rgb(var(--vp-shadow-rgb) / 0.035);
  text-align: center;
}

.onboard-snapshot svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 9px;
  color: var(--ev-gold-dark);
}

.onboard-snapshot strong,
.onboard-snapshot span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboard-snapshot strong {
  color: var(--vp-silver);
  font-size: 0.8rem;
  font-weight: 900;
}

.onboard-snapshot span {
  margin-top: 4px;
  color: var(--ev-muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.onboard-path-card {
  padding: 18px;
}

.onboard-section-heading h2 {
  margin: 0;
  color: var(--vp-silver);
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 900;
}

.onboard-step-list article {
  padding-top: 14px;
}

.onboard-step-list article > span {
  width: 34px;
  height: 34px;
  color: var(--ev-gold-dark);
  font-size: 0.86rem;
  background: var(--ev-gold-soft);
}

.onboard-step-list strong {
  font-size: 0.92rem;
}

.onboard-step-list p {
  font-size: 0.78rem;
}

.onboard-footnote {
  margin: 0;
  color: var(--ev-muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.onboard-footnote a {
  color: var(--ev-gold-dark);
  font-weight: 900;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

/* Tailwind CDN is the primary utility layer; these mirror only the utilities used by the static template. */
.hidden {
  display: none !important;
}

.fixed {
  position: fixed !important;
}

.top-0 {
  top: 0 !important;
}

.left-1\/2 {
  left: 50% !important;
}

.\-translate-x-1\/2 {
  transform: translateX(-50%) !important;
}

.flex {
  display: flex !important;
}

.inline-flex {
  display: inline-flex !important;
}

.items-center {
  align-items: center !important;
}

.justify-between {
  justify-content: space-between !important;
}

.justify-center {
  justify-content: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 0.75rem !important;
}

.w-full {
  width: 100% !important;
}

.m-0 {
  margin: 0 !important;
}

.m-auto {
  margin: auto !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-3 {
  margin-top: 0.75rem !important;
}

.mt-6 {
  margin-top: 1.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.p-3 {
  padding: 0.75rem !important;
}

.px-4 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.pb-1 {
  padding-bottom: 0.25rem !important;
}

.text-center {
  text-align: center !important;
}

.text-sm {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

.font-semibold {
  font-weight: 600 !important;
}

.text-slate-950 {
  color: var(--vp-silver) !important;
}

.bg-wallet-panel {
  background-color: var(--ev-white) !important;
}

.overflow-x-auto {
  overflow-x: auto !important;
  scrollbar-width: none;
}

.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.wallet-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--ev-gold);
}

.wallet-switch .wallet-check-input {
  width: 2.3rem;
  height: 1.25rem;
}

.btn-close {
  width: 0.9rem;
  height: 0.9rem;
  border: 0;
  opacity: 0.7;
  background: transparent;
}

.btn-close::before {
  content: "x";
  color: var(--vp-silver);
  font-weight: 800;
}

.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgb(var(--vp-gold-soft-rgb) / 0.72), rgb(var(--vp-silver-rgb) / 0) 210px),
    var(--ev-white);
  box-shadow: var(--ev-shadow);
  position: relative;
  overflow-x: hidden;
}

.app-main {
  padding: 22px 18px 148px;
}

.auth-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(var(--vp-gold-soft-rgb) / 0.95) 0%, rgb(var(--vp-panel-rgb) / 0.98) 42%, rgb(var(--vp-raised-rgb) / 1) 100%),
    var(--ev-white);
}

.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-screen::before {
  opacity: 0.72;
  background-image:
    url("data:image/svg+xml,%3Csvg width='430' height='780' viewBox='0 0 430 780' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 214H118L158 162L218 248L273 188L330 211H402' stroke='%23dcb563' stroke-opacity='.18' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M24 520H92L129 478L176 548L228 498L285 530H402' stroke='%23f6da97' stroke-opacity='.11' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='158' cy='162' r='4' fill='%23dcb563' fill-opacity='.24'/%3E%3Ccircle cx='218' cy='248' r='4' fill='%23dcb563' fill-opacity='.18'/%3E%3Ccircle cx='273' cy='188' r='4' fill='%23dcb563' fill-opacity='.2'/%3E%3Crect x='42' y='318' width='64' height='7' rx='3.5' fill='%23dcb563' fill-opacity='.08'/%3E%3Crect x='42' y='338' width='108' height='7' rx='3.5' fill='%23f6da97' fill-opacity='.06'/%3E%3Crect x='278' y='92' width='86' height='7' rx='3.5' fill='%23dcb563' fill-opacity='.07'/%3E%3Crect x='250' y='704' width='118' height='7' rx='3.5' fill='%23f6da97' fill-opacity='.055'/%3E%3C/svg%3E"),
    linear-gradient(rgb(var(--vp-gold-light-rgb) / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--vp-gold-light-rgb) / 0.04) 1px, transparent 1px);
  background-position: center top, center top, center top;
  background-repeat: repeat-y, repeat, repeat;
  background-size: min(100vw, 430px) auto, 32px 32px, 32px 32px;
  animation: authFintechDrift 18s ease-in-out infinite alternate;
}

.auth-screen::after {
  inset: -18% -12%;
  opacity: 0.72;
  background:
    linear-gradient(115deg, transparent 0 20%, rgb(var(--vp-gold-rgb) / 0.12) 34%, rgb(var(--vp-gold-rgb) / 0.03) 46%, transparent 58% 100%),
    linear-gradient(205deg, transparent 0 48%, rgb(var(--vp-gold-light-rgb) / 0.08) 58%, transparent 70% 100%);
  transform: translateX(-10%);
  animation: authLightSweep 14s ease-in-out infinite alternate;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  padding: 28px 22px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: rgb(var(--vp-panel-rgb) / 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--ev-shadow-lift);
}

@keyframes authFintechDrift {
  from {
    transform: translate3d(0, -10px, 0);
  }
  to {
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes authLightSweep {
  from {
    transform: translate3d(-10%, -2%, 0);
  }
  to {
    transform: translate3d(8%, 3%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen::before,
  .auth-screen::after {
    animation: none;
  }
}

.brand-lockup,
.app-header,
.row-center,
.stat-card,
.transaction-row,
.setting-row,
.profile-panel,
.method-row,
.history-row {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--ev-radius);
  color: var(--vp-navy);
  background: linear-gradient(180deg, var(--vp-gold-light), var(--ev-gold));
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 12px 22px rgb(var(--vp-gold-rgb) / 0.22);
}

.brand-mark img,
.logo-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--vp-navy);
  border-radius: inherit;
}

.brand-full-logo {
  display: block;
  width: min(190px, 100%);
  height: auto;
  margin: 0 auto;
}

.auth-brand-center {
  justify-content: center;
  text-align: center;
}

.auth-brand-center > div {
  width: 100%;
}

.brand-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.08;
  font-weight: 800;
}

.brand-subtitle,
.header-subtitle,
.muted,
.tiny-label,
.form-hint,
.small-meta {
  color: var(--ev-muted);
}

.brand-subtitle,
.header-subtitle {
  margin: 2px 0 0;
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 600;
}

.app-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.app-title {
  margin: 0;
  color: var(--vp-silver);
  font-size: 1.42rem;
  line-height: 1.08;
  font-weight: 850;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.nav-icon,
.row-icon,
.action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: rgb(var(--vp-panel-rgb) / 0.94);
  box-shadow: 0 1px 0 rgb(var(--vp-shadow-rgb) / 0.04), 0 8px 18px rgb(var(--vp-shadow-rgb) / 0.035);
  transition:
    transform var(--ev-speed),
    border-color var(--ev-speed),
    background var(--ev-speed),
    color var(--ev-speed),
    box-shadow var(--ev-speed);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--ev-gold-line);
  background: var(--ev-gold-soft);
  box-shadow: var(--ev-shadow-soft);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.98);
}

.icon-btn.dark {
  color: var(--vp-silver);
  border-color: var(--ev-black);
  background: var(--ev-black);
  box-shadow: 0 14px 28px rgb(var(--vp-shadow-rgb) / 0.2);
}

.icon-btn.dark:hover,
.icon-btn.dark:focus-visible {
  color: var(--vp-silver);
  border-color: var(--vp-raised);
  background: var(--vp-raised);
}

.section-stack {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.section-heading h2 {
  margin: 0;
  color: var(--vp-silver);
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 800;
}

.section-link {
  color: var(--ev-gold-dark);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color var(--ev-speed), opacity var(--ev-speed);
}

.section-heading .section-link {
  margin-right: 6px;
}

.balance-panel {
  position: relative;
  padding: 24px 20px 20px;
  overflow: hidden;
  color: var(--vp-silver);
  border-radius: var(--ev-radius);
  border: 1px solid rgb(var(--vp-silver-rgb) / 0.08);
  background:
    radial-gradient(circle at 18% 0%, rgb(var(--vp-gold-rgb) / 0.46), rgb(var(--vp-gold-rgb) / 0) 31%),
    radial-gradient(circle at 94% 12%, rgb(var(--vp-gold-light-rgb) / 0.32), rgb(var(--vp-gold-light-rgb) / 0) 31%),
    linear-gradient(145deg, var(--vp-navy) 0%, var(--vp-navy) 56%, var(--vp-navy) 100%),
    var(--ev-black);
  box-shadow: 0 24px 48px rgb(var(--vp-shadow-rgb) / 0.24);
}

.balance-panel > * {
  position: relative;
  z-index: 1;
}

.balance-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgb(var(--vp-silver-rgb) / 0.08), rgb(var(--vp-silver-rgb) / 0) 34%),
    repeating-linear-gradient(90deg, rgb(var(--vp-silver-rgb) / 0.025) 0 1px, transparent 1px 34px);
  opacity: 0.8;
}

.balance-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ev-gold), var(--vp-gold-light));
}

.balance-label {
  margin: 0 0 8px;
  color: rgb(var(--vp-silver-rgb) / 0.76);
  font-size: 0.8rem;
  font-weight: 700;
}

.balance-amount {
  margin: 0;
  font-size: clamp(2.05rem, 8.6vw, 2.58rem);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.balance-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.balance-meta span {
  display: block;
  color: rgb(var(--vp-silver-rgb) / 0.64);
  font-size: 0.72rem;
  font-weight: 600;
}

.balance-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--vp-silver);
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.action-tile {
  min-height: 88px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 6px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: linear-gradient(180deg, var(--ev-white), var(--ev-surface));
  box-shadow: 0 1px 0 rgb(var(--vp-shadow-rgb) / 0.025), 0 8px 18px rgb(var(--vp-shadow-rgb) / 0.025);
  transition:
    transform var(--ev-speed),
    border-color var(--ev-speed),
    background var(--ev-speed),
    box-shadow var(--ev-speed);
}

.action-tile:hover,
.action-tile:focus-visible {
  border-color: var(--ev-gold-line);
  box-shadow: var(--ev-shadow-soft);
  transform: translateY(-2px);
}

.action-tile:active {
  transform: translateY(0) scale(0.99);
}

.action-icon,
.row-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ev-radius);
  color: var(--ev-gold-dark);
  background: linear-gradient(180deg, var(--ev-gold-soft), var(--vp-raised));
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.08);
}

.action-tile span {
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  justify-content: space-between;
  gap: 12px;
  min-height: 94px;
  padding: 15px 14px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: linear-gradient(180deg, var(--ev-white), var(--ev-surface));
  box-shadow: 0 1px 0 rgb(var(--vp-shadow-rgb) / 0.025), 0 8px 18px rgb(var(--vp-shadow-rgb) / 0.025);
  transition: border-color var(--ev-speed), box-shadow var(--ev-speed), transform var(--ev-speed);
}

.stat-card:hover {
  border-color: var(--ev-border-strong);
  box-shadow: var(--ev-shadow-card);
  transform: translateY(-1px);
}

.stat-card h3,
.compact-card h3 {
  margin: 0;
  color: var(--ev-muted);
  font-size: 0.76rem;
  line-height: 1.15;
  font-weight: 760;
}

.stat-card strong,
.compact-card strong {
  display: block;
  margin-top: 6px;
  color: var(--vp-silver);
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.trend-up {
  color: var(--ev-gold-dark);
}

.trend-down {
  color: var(--ev-danger);
}

.chart-card,
.form-panel,
.list-panel,
.compact-card {
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: linear-gradient(180deg, var(--ev-white), var(--ev-surface));
  box-shadow: var(--ev-shadow-card);
}

.chart-card,
.form-panel,
.list-panel {
  padding: 17px 16px;
}

.compact-card {
  padding: 14px;
}

.bar-chart {
  height: 138px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
  gap: 8px;
  padding-top: 14px;
}

.line-chart {
  height: 150px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--ev-radius);
  background: linear-gradient(180deg, rgb(var(--vp-gold-soft-rgb) / 0.55), rgb(var(--vp-silver-rgb) / 0));
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.chart-grid line {
  stroke: var(--vp-border);
  stroke-width: 1;
}

.line-area {
  fill: url("#earningsArea");
}

.line-path {
  fill: none;
  stroke: var(--ev-gold);
  stroke-width: 4.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 10px rgb(var(--vp-gold-rgb) / 0.18));
}

.line-points circle {
  fill: var(--ev-white);
  stroke: var(--ev-gold);
  stroke-width: 3;
  filter: drop-shadow(0 5px 8px rgb(var(--vp-gold-rgb) / 0.22));
}

.bar {
  height: 100%;
  min-height: 0;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--vp-raised), var(--vp-raised));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.05);
}

.bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--value);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--vp-gold), var(--ev-gold));
  box-shadow: 0 -6px 12px rgb(var(--vp-gold-rgb) / 0.14);
  transition: height 240ms ease;
}

.chart-axis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 10px;
  color: var(--ev-muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-align: center;
}

.transaction-list,
.settings-list,
.history-list {
  display: grid;
  gap: 11px;
}

.transaction-row,
.history-row,
.setting-row,
.method-row {
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: rgb(var(--vp-panel-rgb) / 0.96);
  box-shadow: 0 1px 0 rgb(var(--vp-shadow-rgb) / 0.02), 0 6px 16px rgb(var(--vp-shadow-rgb) / 0.024);
  transition:
    transform var(--ev-speed),
    border-color var(--ev-speed),
    background var(--ev-speed),
    box-shadow var(--ev-speed);
}

.transaction-row:hover,
.history-row:hover,
.setting-row:hover,
.method-row:hover {
  border-color: var(--ev-border-strong);
  background: var(--ev-white);
  box-shadow: var(--ev-shadow-soft);
  transform: translateY(-1px);
}

.transaction-row > div,
.history-row > div,
.setting-row > div,
.method-row > div {
  min-width: 0;
  flex: 1 1 auto;
}

.row-title {
  margin: 0;
  color: var(--vp-silver);
  font-size: 0.91rem;
  line-height: 1.18;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-subtitle {
  margin: 4px 0 0;
  color: var(--ev-muted);
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 550;
}

.row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.row-meta .row-subtitle {
  margin: 0;
}

.amount-positive,
.status-success {
  color: var(--ev-gold-dark);
}

.amount-negative,
.status-danger {
  color: var(--ev-danger);
}

.amount-neutral {
  color: var(--vp-silver);
}

.row-amount {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  font-weight: 850;
  font-size: 0.94rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 780;
  background: var(--ev-gold-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.08);
}

.status-pill.status-success {
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.1);
}

.status-pill.status-danger {
  color: var(--ev-danger);
  background: var(--vp-danger-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--vp-danger-rgb) / 0.12);
}

.status-pending {
  color: var(--ev-warning);
  background: var(--vp-warning-soft);
}

.wallet-label {
  color: var(--vp-silver);
  font-size: 0.78rem;
  font-weight: 750;
}

.wallet-input,
.wallet-select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--ev-white);
  font-size: 0.94rem;
  font-weight: 600;
  transition: border-color var(--ev-speed), box-shadow var(--ev-speed), background var(--ev-speed);
}

.wallet-input:focus,
.wallet-select:focus {
  border-color: var(--ev-gold);
  box-shadow: var(--ev-focus);
  outline: 0;
}

.wallet-input.wallet-input-error {
  border-color: var(--vp-danger-line) !important;
  box-shadow: 0 0 0 0.2rem rgb(var(--vp-danger-rgb) / 0.12) !important;
}

.wallet-input[type="number"] {
  -moz-appearance: textfield;
}

.wallet-input[type="number"]::-webkit-outer-spin-button,
.wallet-input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.choice-card {
  position: relative;
}

.choice-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 1px 0 rgb(var(--vp-panel-rgb) / 0.92);
  transition: opacity var(--ev-speed);
}

.choice-input:checked + .choice-card::after {
  opacity: 1;
}

.choice-check svg {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--ev-speed), transform var(--ev-speed);
}

.choice-input:checked + .choice-card-green .choice-icon,
.choice-input:checked + .choice-card-green .choice-check {
  border-color: var(--ev-gold) !important;
  background: var(--ev-gold) !important;
  color: var(--vp-navy) !important;
}

.choice-input:checked + .choice-card-dark .choice-icon,
.choice-input:checked + .choice-card-dark .choice-check {
  border-color: var(--ev-black) !important;
  background: var(--ev-black) !important;
  color: var(--vp-silver) !important;
}

.choice-input:checked + .choice-card .choice-check svg {
  opacity: 1;
  transform: scale(1);
}

.choice-input:focus-visible + .choice-card {
  border-color: var(--ev-gold);
  box-shadow: var(--ev-shadow-card), var(--ev-focus);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .wallet-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: var(--ev-radius);
  color: var(--ev-muted);
  background: transparent;
  transition: color var(--ev-speed), background var(--ev-speed);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
}

.amount-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amount-chip,
.filter-chip {
  min-height: 40px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--ev-white);
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    transform var(--ev-speed),
    border-color var(--ev-speed),
    background var(--ev-speed),
    color var(--ev-speed),
    box-shadow var(--ev-speed);
}

.amount-chip.active,
.amount-chip:hover,
.filter-chip.active,
.filter-chip:hover {
  border-color: var(--ev-gold);
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.08);
}

.amount-chip:active,
.filter-chip:active {
  transform: scale(0.98);
}

.history-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
}

.history-filter-row .filter-chip {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 6px;
  white-space: nowrap;
  font-size: 0.72rem;
}

.icon-btn.dark.active {
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.16), 0 12px 24px rgb(var(--vp-gold-rgb) / 0.12);
}

.history-date-panel {
  margin-top: -4px;
}

.history-date-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background:
    linear-gradient(180deg, rgb(var(--vp-panel-rgb) / 0.98), rgb(var(--vp-raised-rgb) / 0.98));
  box-shadow: var(--ev-shadow-card);
}

.history-date-card .row-icon {
  flex: 0 0 auto;
}

.history-date-field {
  min-width: 0;
  flex: 1 1 auto;
}

.history-date-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--ev-white);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.03);
}

.history-date-value svg {
  width: 16px;
  height: 16px;
  color: var(--ev-gold-dark);
}

.history-calendar {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background:
    radial-gradient(circle at 18% 0%, rgb(var(--vp-gold-rgb) / 0.08), transparent 34%),
    linear-gradient(180deg, var(--ev-white), var(--ev-surface));
  box-shadow: var(--ev-shadow-card);
}

.history-calendar-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.history-calendar-head strong {
  color: var(--vp-silver);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.calendar-nav {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--ev-gold-dark);
  background: var(--ev-white);
  box-shadow: 0 8px 16px rgb(var(--vp-shadow-rgb) / 0.04);
}

.calendar-nav svg {
  width: 17px;
  height: 17px;
}

.calendar-nav:disabled {
  cursor: not-allowed;
  color: var(--vp-muted);
  background: var(--vp-raised);
  box-shadow: none;
}

.history-calendar-weekdays,
.history-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.history-calendar-weekdays {
  margin-top: 12px;
  color: var(--ev-muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
}

.history-calendar-grid {
  margin-top: 7px;
}

.history-calendar-grid button {
  display: grid;
  min-width: 0;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
  transition: color var(--ev-speed), background var(--ev-speed), border-color var(--ev-speed), transform var(--ev-speed);
}

.history-calendar-grid button:hover,
.history-calendar-grid button:focus-visible {
  border-color: var(--ev-gold-line);
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
}

.history-calendar-grid button.selected {
  border-color: var(--ev-gold);
  color: var(--vp-navy);
  background: var(--ev-gold);
  box-shadow: 0 10px 20px rgb(var(--vp-gold-rgb) / 0.22);
}

.history-calendar-grid button.today:not(.selected) {
  border-color: var(--ev-gold-line);
  color: var(--ev-gold-dark);
}

.history-calendar-grid button.outside {
  color: var(--vp-muted);
}

.history-calendar-grid button:disabled {
  cursor: not-allowed;
  color: var(--vp-muted);
  background: transparent;
}

.history-calendar-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.calendar-action {
  min-height: 36px;
  flex: 1 1 0;
  border: 1px solid var(--ev-gold);
  border-radius: var(--ev-radius);
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-action.muted {
  border-color: var(--ev-border);
  color: var(--ev-muted);
  background: var(--ev-white);
}

.btn-ev {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ev-gold);
  border-radius: var(--ev-radius);
  color: var(--vp-navy);
  background: var(--ev-gold);
  font-weight: 850;
  box-shadow: 0 12px 24px rgb(var(--vp-gold-rgb) / 0.18);
  transition:
    transform var(--ev-speed),
    filter var(--ev-speed),
    background var(--ev-speed),
    box-shadow var(--ev-speed);
}

.btn-ev:hover,
.btn-ev:focus-visible {
  color: var(--vp-silver);
  background: var(--vp-gold-light);
  border-color: var(--vp-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgb(var(--vp-gold-rgb) / 0.22);
}

.btn-ev:active,
.btn-ev-dark:active,
.btn-ghost:active {
  transform: translateY(0) scale(0.99);
}

.btn-ev-dark {
  color: var(--vp-silver);
  background: var(--ev-black);
  border-color: var(--ev-black);
  box-shadow: 0 12px 24px rgb(var(--vp-shadow-rgb) / 0.16);
}

.btn-ev-dark:hover,
.btn-ev-dark:focus-visible {
  color: var(--vp-silver);
  background: var(--vp-raised);
  border-color: var(--vp-raised);
}

.btn-ghost {
  min-height: 44px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--ev-white);
  font-weight: 760;
  transition: transform var(--ev-speed), border-color var(--ev-speed), background var(--ev-speed), box-shadow var(--ev-speed);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ev-border-strong);
  background: var(--vp-raised);
  box-shadow: var(--ev-shadow-card);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.divider-text {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--ev-muted);
  font-size: 0.78rem;
}

.divider-text::before,
.divider-text::after {
  content: "";
  height: 1px;
  background: var(--ev-border);
}

.profile-panel {
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: linear-gradient(180deg, var(--ev-white), var(--ev-surface));
  box-shadow: var(--ev-shadow-card);
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background:
    radial-gradient(circle at 28% 18%, rgb(var(--vp-gold-rgb) / 0.42), rgb(var(--vp-gold-rgb) / 0) 42%),
    var(--ev-black);
  font-weight: 850;
}

.settings-group-title {
  margin: 8px 0 10px;
  color: var(--ev-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-profile-panel {
  position: relative;
  align-items: flex-start;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgb(var(--vp-gold-rgb) / 0.15), transparent 34%),
    linear-gradient(180deg, var(--ev-white), var(--ev-surface));
}

.settings-profile-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ev-gold), rgb(var(--vp-gold-rgb) / 0));
}

.settings-avatar {
  width: 58px;
  height: 58px;
  font-size: 1rem;
  box-shadow: 0 14px 28px rgb(var(--vp-shadow-rgb) / 0.16);
}

.settings-profile-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.settings-profile-label {
  margin: 0 0 5px;
  color: var(--ev-gold-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-profile-panel .status-pill {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  flex: 0 0 auto;
}

.settings-link-row {
  position: relative;
}

.settings-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: var(--ev-radius);
  color: var(--ev-muted);
  background: rgb(var(--vp-gold-soft-rgb) / 0.68);
}

.settings-chevron svg {
  width: 17px;
  height: 17px;
}

.settings-link-row:hover .settings-chevron,
.settings-link-row:focus-visible .settings-chevron {
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
}

.settings-logout-row .row-title,
.settings-logout-row .row-subtitle,
.settings-logout-row .settings-chevron {
  color: var(--ev-danger);
}

.settings-logout-row .row-icon,
.settings-logout-row:hover .settings-chevron,
.settings-logout-row:focus-visible .settings-chevron {
  color: var(--ev-danger);
  background: var(--vp-danger-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--vp-danger-rgb) / 0.12);
}

.settings-security-card {
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: rgb(var(--vp-panel-rgb) / 0.98);
  box-shadow: var(--ev-shadow-card);
  overflow: hidden;
}

.settings-security-card[open] {
  border-color: var(--ev-gold-line);
  box-shadow: var(--ev-shadow-soft);
}

.settings-security-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.settings-security-card summary::-webkit-details-marker {
  display: none;
}

.settings-summary-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.settings-summary-copy .row-title,
.settings-summary-copy .row-subtitle {
  display: block;
}

.settings-security-card[open] .settings-chevron {
  color: var(--ev-gold-dark);
  background: var(--ev-gold-soft);
}

.settings-security-card[open] .settings-chevron svg {
  transform: rotate(180deg);
}

.settings-security-form {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px 70px;
}

.settings-security-form label {
  display: grid;
  gap: 7px;
}

.settings-security-form .wallet-input {
  min-height: 46px;
}

.password-match-error {
  margin: -4px 0 0;
  color: var(--ev-danger);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-hero-panel {
  position: relative;
  align-items: flex-start;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgb(var(--vp-gold-rgb) / 0.16), transparent 36%),
    linear-gradient(180deg, var(--ev-white), var(--ev-surface));
}

.profile-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ev-gold), rgb(var(--vp-gold-rgb) / 0));
}

.profile-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-hero-panel .status-pill {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  flex: 0 0 auto;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-meta-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.profile-meta-card .row-icon {
  width: 40px;
  height: 40px;
}

.profile-meta-card h3 {
  margin: 0;
  color: var(--ev-muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-meta-card strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--vp-silver);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label,
.profile-form-grid {
  display: grid;
  gap: 7px;
}

.profile-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-textarea {
  min-height: 96px;
  padding-top: 13px;
  resize: vertical;
}

.profile-readonly-form .wallet-input[readonly] {
  color: var(--vp-silver);
  background:
    linear-gradient(180deg, var(--ev-white), var(--vp-raised));
  cursor: default;
}

.profile-readonly-form .wallet-input[readonly]:focus {
  border-color: var(--ev-border);
  box-shadow: none;
}

.profile-readonly-form .profile-textarea[readonly] {
  resize: none;
}

.wallet-check-input:checked {
  background-color: var(--ev-gold);
  border-color: var(--ev-gold);
}

.empty-state {
  display: none;
  padding: 18px;
  text-align: center;
  color: var(--ev-muted);
  border: 1px dashed var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-white);
}

.form-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--ev-radius);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.form-message-icon {
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  place-items: center;
}

.form-message-text {
  min-width: 0;
}

.form-message-error {
  color: var(--vp-danger);
  border: 1px solid var(--vp-danger-line);
  background: var(--vp-danger-soft);
  box-shadow: 0 10px 24px rgb(var(--vp-danger-rgb) / 0.08);
}

.form-message.form-message-error,
.form-message.form-message-error .form-message-icon,
.form-message.form-message-error .form-message-text,
.form-message.form-message-error svg {
  color: var(--vp-danger);
  stroke: currentColor;
}

.form-message-success {
  color: var(--ev-gold-dark);
  border: 1px solid var(--ev-gold-line);
  background: var(--ev-gold-soft);
  box-shadow: 0 10px 24px rgb(var(--vp-gold-rgb) / 0.08);
}

.form-message.form-message-success,
.form-message.form-message-success .form-message-icon,
.form-message.form-message-success .form-message-text,
.form-message.form-message-success svg {
  color: var(--ev-gold-dark);
  stroke: currentColor;
}

.toast-container {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 1080;
  display: grid;
  width: min(calc(100% - 28px), 396px);
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 12px 11px 12px 14px;
  border-radius: var(--ev-radius);
  background: var(--ev-white);
  box-shadow: 0 18px 44px rgb(var(--vp-shadow-rgb) / 0.14);
  pointer-events: auto;
}

.toast-error {
  color: var(--vp-danger);
  border: 1px solid var(--vp-danger-line);
  background: linear-gradient(180deg, var(--vp-danger-soft), var(--vp-danger-soft));
}

.toast-success {
  color: var(--ev-gold-dark);
  border: 1px solid var(--ev-gold-line);
  background: linear-gradient(180deg, var(--vp-raised), var(--ev-gold-soft));
}

.toast-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.toast-body {
  min-width: 0;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.toast-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: inherit;
  border: 0;
  border-radius: var(--ev-radius);
  background: rgb(var(--vp-panel-rgb) / 0.65);
  cursor: pointer;
  transition: background var(--ev-speed), transform var(--ev-speed);
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgb(var(--vp-panel-rgb) / 0.95);
}

.toast-close:active {
  transform: scale(0.96);
}

@media (max-width: 576px) {
  body {
    background: var(--ev-white);
  }

  .mobile-shell {
    max-width: 430px;
    margin-left: 0;
    margin-right: auto;
    box-shadow: none;
  }

  .app-main {
    padding-inline: 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .app-title {
    font-size: 1.36rem;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .quick-grid {
    gap: 8px;
  }

  .action-tile {
    min-height: 82px;
  }

  .action-tile span {
    font-size: 0.68rem;
  }
}

/* Shared responsive component layer */
:root {
  --ev-radius: 1rem;
  --ev-shadow: 0 18px 46px rgb(var(--vp-shadow-rgb) / 0.08);
  --ev-shadow-soft: 0 10px 26px rgb(var(--vp-shadow-rgb) / 0.06);
  --ev-shadow-card: 0 6px 16px rgb(var(--vp-shadow-rgb) / 0.03);
  --ev-shadow-lift: 0 18px 36px rgb(var(--vp-shadow-rgb) / 0.10);
  --ev-focus: 0 0 0 0.2rem rgb(var(--vp-gold-rgb) / 0.16);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--vp-navy);
  color: var(--ev-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--ev-white);
  box-shadow: 0 18px 46px rgb(var(--vp-shadow-rgb) / 0.10);
  position: relative;
  overflow: hidden;
}

.app-main {
  width: 100%;
  padding: 20px 20px calc(96px + env(safe-area-inset-bottom, 0px));
}

.auth-screen {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(var(--vp-gold-soft-rgb) / 0.95) 0%, rgb(var(--vp-panel-rgb) / 0.98) 42%, rgb(var(--vp-raised-rgb) / 1) 100%),
    var(--ev-white);
}

.auth-card,
.chart-card,
.form-panel,
.list-panel,
.compact-card,
.profile-panel,
.transaction-row,
.history-row,
.setting-row,
.method-row {
  border-color: var(--ev-border);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow-card);
}

.auth-card,
.chart-card,
.form-panel,
.list-panel,
.compact-card,
.profile-panel {
  background: linear-gradient(180deg, var(--ev-white), var(--ev-surface));
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 22px;
  background: rgb(var(--vp-panel-rgb) / 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--ev-shadow-lift);
}

.brand-mark,
.icon-btn,
.action-icon,
.row-icon,
.nav-icon,
.avatar {
  border-radius: var(--ev-radius);
}

.brand-mark {
  background: linear-gradient(180deg, var(--vp-gold-light), var(--ev-gold));
  box-shadow: 0 12px 24px rgb(var(--vp-gold-rgb) / 0.20);
}

.app-header {
  margin-bottom: 20px;
}

.section-stack {
  gap: 16px;
}

.balance-panel {
  border-radius: var(--ev-radius);
  box-shadow: 0 18px 36px rgb(var(--vp-shadow-rgb) / 0.20);
  background:
    radial-gradient(circle at 16% 0%, rgb(var(--vp-gold-rgb) / 0.32), transparent 34%),
    radial-gradient(circle at 88% 18%, rgb(var(--vp-gold-light-rgb) / 0.28), transparent 32%),
    linear-gradient(145deg, var(--vp-navy) 0%, var(--vp-navy) 56%, var(--vp-navy) 100%);
}

.balance-panel::before {
  opacity: 0.45;
}

.wallet-input,
.wallet-select {
  min-height: 50px;
  padding: 0 14px;
  border-color: var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--ev-white);
}

.icon-btn,
.action-tile,
.stat-card,
.transaction-row,
.history-row,
.setting-row,
.method-row,
.compact-card,
.btn-ev,
.btn-ev-dark,
.btn-ghost,
.amount-chip,
.filter-chip {
  transition: transform var(--ev-speed), border-color var(--ev-speed), background var(--ev-speed), box-shadow var(--ev-speed), color var(--ev-speed);
}

.icon-btn:active,
.action-tile:active,
.stat-card:active,
.transaction-row:active,
.history-row:active,
.setting-row:active,
.method-row:active,
.compact-card:active,
.btn-ev:active,
.btn-ev-dark:active,
.btn-ghost:active,
.amount-chip:active,
.filter-chip:active {
  transform: scale(0.98);
}

.action-icon,
.row-icon {
  width: 44px;
  height: 44px;
  color: var(--ev-gold-dark);
  background: linear-gradient(180deg, var(--ev-gold-soft), var(--vp-raised));
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.08);
}

.summary-grid,
.stats-grid {
  gap: 12px;
}

.transaction-list,
.settings-list,
.history-list {
  gap: 12px;
}

.transaction-row,
.history-row,
.setting-row,
.method-row {
  min-height: 80px;
  padding: 14px;
  background: rgb(var(--vp-panel-rgb) / 0.98);
}

.row-title {
  color: var(--vp-silver);
  font-size: 0.9rem;
  font-weight: 850;
}

.row-subtitle {
  margin-top: 5px;
  color: var(--ev-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.row-amount {
  min-width: 76px;
  color: var(--vp-silver);
  font-size: 0.94rem;
  font-weight: 900;
}

.amount-positive {
  color: var(--ev-gold-dark);
}

.amount-negative {
  color: var(--ev-danger);
}

.status-pill {
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.btn-ev {
  color: var(--vp-navy);
  background: var(--ev-gold);
  border-color: var(--ev-gold);
  box-shadow: 0 10px 22px rgb(var(--vp-gold-rgb) / 0.16);
}

.btn-ev-dark {
  color: var(--vp-silver);
  background: var(--ev-black);
  border-color: var(--ev-black);
  box-shadow: 0 10px 22px rgb(var(--vp-shadow-rgb) / 0.16);
}

/* Shared user navigation: equal targets with a compact active indicator. */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 999;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  border-top: 1px solid var(--ev-border);
  background: var(--vp-panel);
  box-shadow: 0 -6px 24px rgb(var(--vp-shadow-rgb) / 0.16);
}

.mobile-nav .nav-item {
  min-width: 0;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
  border-radius: 12px;
  color: var(--ev-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color var(--ev-speed), background var(--ev-speed);
}

.mobile-nav .nav-icon {
  width: 48px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  transition: background var(--ev-speed), transform var(--ev-speed);
}

.mobile-nav .nav-icon svg {
  width: 21px;
  height: 21px;
}

.mobile-nav .nav-item.active {
  color: var(--vp-gold-light);
  font-weight: 700;
}

.mobile-nav .nav-item.active .nav-icon {
  background: rgb(var(--vp-gold-rgb) / 0.14);
  box-shadow: inset 0 0 0 1px rgb(var(--vp-gold-rgb) / 0.2);
}

.mobile-nav .nav-item:focus-visible {
  outline: 2px solid var(--vp-gold);
  outline-offset: -2px;
}

@media (hover: hover) {
  .mobile-nav .nav-item:hover {
    color: var(--vp-silver);
    background: rgb(var(--vp-silver-rgb) / 0.05);
  }
  .mobile-nav .nav-item.active:hover {
    color: var(--vp-gold-light);
  }
}

.mobile-nav .nav-item:active .nav-icon {
  transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav .nav-item,
  .mobile-nav .nav-icon {
    transition: none;
  }
}

@media (max-width: 576px) {
  body {
    background: var(--vp-navy);
  }

  .mobile-shell {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 18px 46px rgb(var(--vp-shadow-rgb) / 0.08);
  }

  .app-main {
    padding: 20px 20px calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared brand treatments and accessible interaction states. */
.btn-ev,
.landing-nav .landing-nav-cta {
  color: var(--vp-navy);
  background: linear-gradient(135deg, var(--vp-gold-light), var(--vp-gold));
  border-color: var(--vp-gold);
}
.btn-ev:hover,
.btn-ev:focus-visible {
  color: var(--vp-navy);
  background: var(--vp-gold-light);
}
.btn-ev.landing-secondary {
  color: var(--vp-silver);
  border-color: var(--vp-border);
  background: var(--vp-raised);
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--vp-gold-light);
  outline-offset: 3px;
}
::selection {
  color: var(--vp-navy);
  background: var(--vp-gold-light);
}
.wallet-input::placeholder {
  color: var(--vp-muted);
  opacity: 1;
}
.qr-surface {
  background: var(--vp-white) !important;
  color-scheme: light;
}
img.qr-surface {
  padding: 12px;
  box-sizing: border-box;
}

/* Compact selected-plan summary with a clear amount hierarchy. */
.deposit-plan-summary {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--vp-border);
  border-radius: 16px;
  background: var(--vp-panel);
}
.deposit-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.deposit-plan-header > div { min-width: 0; }
.deposit-plan-eyebrow {
  margin: 0 0 4px;
  color: var(--vp-muted);
  font-size: 11px;
  font-weight: 600;
}
.deposit-plan-header h3 {
  margin: 0;
  color: var(--vp-silver);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.deposit-plan-type {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid var(--vp-gold-line);
  border-radius: 999px;
  background: var(--vp-gold-soft);
  color: var(--vp-gold-light);
  font-size: 11px;
  font-weight: 700;
}
.deposit-plan-projection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--vp-raised);
}
.deposit-plan-projection > div { min-width: 0; max-width: 100%; }
.deposit-plan-projection p { margin: 0 0 6px; color: var(--vp-muted); font-size: 12px; }
.deposit-plan-projection strong {
  display: block;
  color: var(--vp-gold-light);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.deposit-plan-total-rate { color: var(--vp-gold-light); font-size: 12px; font-weight: 700; }
.deposit-plan-facts { margin: 14px 0 0; }
.deposit-plan-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgb(var(--vp-border-rgb) / 0.65);
}
.deposit-plan-facts > div:last-child { border-bottom: 0; }
.deposit-plan-facts dt { color: var(--vp-muted); font-size: 12px; }
.deposit-plan-facts dd {
  margin: 0;
  color: var(--vp-silver);
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
}
.deposit-plan-facts .deposit-plan-payout { color: var(--vp-gold-light); }
.deposit-plan-basis {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--vp-border);
  color: var(--vp-muted);
  font-size: 11px;
  line-height: 1.5;
}
.deposit-plan-basis svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

.deposit-method-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.deposit-method-picker .wallet-label {
  margin: 0;
}
.deposit-method-details {
  padding: 0 14px;
  border: 1px solid var(--vp-border);
  border-radius: var(--ev-radius);
  background: var(--vp-raised);
}
.deposit-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.deposit-account-row + .deposit-account-row {
  border-top: 1px solid var(--vp-border);
}
.deposit-account-row > div {
  min-width: 0;
}
.deposit-account-row .row-subtitle {
  margin: 0 0 5px;
}
.deposit-account-row strong {
  display: block;
  color: var(--vp-silver);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.deposit-account-row .icon-btn {
  flex: 0 0 auto;
  color: var(--vp-gold-light);
}
.deposit-account-row .icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.deposit-method-options {
  display: grid;
  gap: 8px;
}
.deposit-method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--vp-border);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--vp-panel);
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}
.deposit-method-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--vp-gold);
}
.deposit-method-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.deposit-method-option:has(input:checked) {
  border-color: var(--vp-gold);
  background: linear-gradient(135deg, var(--vp-gold-soft), var(--vp-panel));
}
.deposit-method-option:has(input:focus-visible) {
  outline: 2px solid var(--vp-gold-light);
  outline-offset: 2px;
}

.deposit-receipt-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px dashed var(--vp-gold-line);
  border-radius: var(--ev-radius);
  color: var(--vp-silver);
  background: var(--vp-panel);
  font: inherit;
  font-size: 0.8rem;
}
.deposit-receipt-input::file-selector-button {
  margin-right: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--vp-navy);
  background: var(--vp-gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.deposit-receipt-input::file-selector-button:hover {
  background: var(--vp-gold-light);
}

/* Dashboard actions replace the passive recent-transactions feed. */
.dashboard-tools-heading h2 {
  margin: 0;
  color: var(--vp-silver);
  font-size: 17px;
  font-weight: 800;
}
.dashboard-tools-heading p {
  margin: 4px 0 14px;
  color: var(--vp-muted);
  font-size: 12px;
}
.dashboard-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-tool {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--vp-border);
  border-radius: 16px;
  background: var(--vp-raised);
  color: var(--vp-silver);
  text-decoration: none;
}
.dashboard-tool-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--vp-gold-light);
  background: rgb(var(--vp-gold-rgb) / 0.12);
}
.dashboard-tool-label {
  color: var(--vp-muted);
  font-size: 11px;
  line-height: 1.4;
}
.dashboard-tool strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.dashboard-tool-action {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--vp-gold-light);
  font-size: 11px;
  font-weight: 700;
}
.dashboard-tool-action svg { width: 14px; height: 14px; flex-shrink: 0; }
.dashboard-invite {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--vp-gold-line);
  border-radius: 16px;
  background: linear-gradient(120deg, var(--vp-gold-soft), var(--vp-panel));
}
.dashboard-invite-details { flex: 1 1 110px; min-width: 0; }
.dashboard-invite h3 { margin: 0; font-size: 13px; font-weight: 700; }
.dashboard-invite p { margin: 3px 0 0; color: var(--vp-muted); font-size: 11px; line-height: 1.5; }
.dashboard-copy-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--vp-gold-line);
  border-radius: 10px;
  background: var(--vp-gold);
  color: var(--vp-navy);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.dashboard-copy-link svg { width: 15px; height: 15px; }
.dashboard-tool:hover { border-color: var(--vp-gold-line); }
.dashboard-copy-link:hover { background: var(--vp-gold-light); }
.dashboard-tool:focus-visible,
.dashboard-copy-link:focus-visible { outline: 2px solid var(--vp-gold-light); outline-offset: 3px; }

/* Deposit review stays compact while its details scroll on short screens. */
.deposit-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgb(var(--vp-shadow-rgb) / 0.65);
  backdrop-filter: blur(6px);
}
.deposit-confirm-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
}
.deposit-confirm-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 406px;
  min-height: 0;
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--vp-border);
  border-radius: 22px;
  background: var(--vp-panel);
  box-shadow: 0 24px 80px rgb(var(--vp-shadow-rgb) / 0.4);
}
.deposit-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 18px 18px 14px;
}
.deposit-review-header p { margin: 0 0 4px; color: var(--vp-muted); font-size: 11px; }
.deposit-review-header h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; }
.deposit-confirm-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
.deposit-review-amount { padding: 18px; border-radius: 14px; background: var(--vp-raised); }
.deposit-review-amount > p { margin: 0 0 8px; color: var(--vp-muted); font-size: 12px; }
.deposit-review-amount > strong { display: block; font-size: clamp(26px, 8vw, 34px); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.deposit-review-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.deposit-review-plan > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.deposit-review-details { margin-top: 14px; }
.deposit-review-details dl { margin: 0; }
.deposit-review-details dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; }
.deposit-review-details dt { color: var(--vp-muted); font-size: 12px; }
.deposit-review-details dd { min-width: 0; margin: 0; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.deposit-review-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 14px 0; border-top: 1px solid var(--vp-border); }
.deposit-review-total > div { min-width: 0; max-width: 100%; }
.deposit-review-total div > span { display: block; color: var(--vp-muted); font-size: 12px; }
.deposit-review-total strong { display: block; margin-top: 4px; color: var(--vp-gold-light); font-size: 22px; font-weight: 800; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.deposit-review-next { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px; border-radius: 12px; background: rgb(var(--vp-gold-rgb) / 0.06); }
.deposit-review-next h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.deposit-review-next p { margin: 0; color: var(--vp-muted); font-size: 11px; line-height: 1.6; }
.deposit-confirm-actions { flex-shrink: 0; padding: 14px 18px 10px; border-top: 1px solid var(--vp-border); background: var(--vp-panel); }
.deposit-confirm-actions .btn-ev { min-height: 48px; font-size: 13px; border-radius: 12px; }
.deposit-review-edit { display: block; width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--vp-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.deposit-review-edit:hover { color: var(--vp-silver); }
.deposit-confirm-panel button:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }

/* Withdrawal form: compact destination picker and visible wallet limits. */
.withdraw-page .section-stack { gap: 16px; }
.withdraw-balance-card { padding: 18px; border: 1px solid var(--vp-border); border-radius: 16px; background: var(--vp-navy); }
.withdraw-balance-card p { margin: 0 0 8px; color: var(--vp-muted); font-size: 12px; }
.withdraw-balance-card h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.withdraw-balance-card > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--vp-border); color: var(--vp-muted); font-size: 11px; }
.withdraw-schedule-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--vp-raised); }
.withdraw-schedule-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--vp-gold-light); margin-top: 2px; }
.withdraw-schedule-note strong { font-size: 12px; }
.withdraw-schedule-note p { margin: 3px 0 0; color: var(--vp-muted); font-size: 11px; line-height: 1.6; }
.withdraw-page [data-withdraw-form] { padding: 0; border: 0; background: transparent; box-shadow: none; }
.withdraw-form-section { padding: 16px; border: 1px solid var(--vp-border); border-radius: 14px; background: var(--vp-panel); }
.withdraw-form-section h2 { margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.withdraw-form-section .wallet-label { margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.withdraw-form-section .wallet-input { min-height: 48px; font-size: 13px; border-radius: 10px; }
.withdraw-field-help { margin: 8px 0 0; color: var(--vp-muted); font-size: 11px; line-height: 1.6; }
.withdraw-field-help strong { color: var(--vp-silver); font-weight: 600; }
.withdraw-field-error { margin: 8px 0 0; color: var(--vp-danger); font-size: 11px; line-height: 1.5; }
.withdraw-account-fields { margin-top: 16px; }
.withdraw-account-fields > div + div { margin-top: 14px; }
.withdraw-form-section .amount-picker { margin-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.withdraw-form-section .amount-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.withdraw-fee-preview { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--vp-border); }
.withdraw-fee-preview > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.withdraw-fee-preview dt { color: var(--vp-muted); font-size: 11px; }
.withdraw-fee-preview dd { margin: 0; font-size: 13px; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.withdraw-fee-preview > div:last-child dd { color: var(--vp-gold-light); }
.withdraw-page [data-open-withdraw-confirm] { min-height: 50px; border-radius: 12px; font-size: 14px; }

/* Mobile withdrawal controls: readable type, generous targets, fewer insets. */
.withdraw-page .app-main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
.withdraw-page .app-header { margin-bottom: 18px; }
.withdraw-page .app-title { font-size: 24px; }
.withdraw-page .header-subtitle { font-size: 13px; }
.withdraw-page .icon-btn { min-width: 44px; min-height: 44px; }
.withdraw-page .withdraw-form-section { padding: 14px; }
.withdraw-page .withdraw-form-section h2 { margin-bottom: 14px; font-size: 16px; line-height: 1.4; }
.withdraw-page .withdraw-form-section .wallet-label { font-size: 14px; line-height: 1.5; }
.withdraw-page .withdraw-form-section .wallet-input { width: 100%; min-width: 0; min-height: 52px; padding: 12px; font-size: 16px; line-height: 1.5; scroll-margin-block: 100px; }
.withdraw-page .withdraw-form-section select.wallet-input { padding-right: 32px; text-overflow: ellipsis; }
.withdraw-page .withdraw-field-help, .withdraw-page .withdraw-field-error { font-size: 13px; line-height: 1.6; }
.withdraw-page .withdraw-balance-card { padding: 16px; }
.withdraw-page .withdraw-balance-card p { font-size: 14px; }
.withdraw-page .withdraw-balance-card > div { font-size: 12px; line-height: 1.5; }
.withdraw-page .withdraw-schedule-note strong { font-size: 14px; }
.withdraw-page .withdraw-schedule-note p { font-size: 12px; }
.withdraw-page .withdraw-fee-preview dt { font-size: 13px; line-height: 1.5; }
.withdraw-page .withdraw-fee-preview dd { font-size: 15px; flex-shrink: 0; }
.withdraw-page .amount-chip { min-height: 44px; font-size: 14px; touch-action: manipulation; }
.withdraw-page [data-open-withdraw-confirm] { min-height: 52px; font-size: 16px; touch-action: manipulation; }
.withdraw-page input, .withdraw-page select, .withdraw-page button { -webkit-tap-highlight-color: transparent; }
.withdraw-page .wallet-input:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
@media (max-width: 360px) {
  .withdraw-page .app-main { padding-left: 12px; padding-right: 12px; }
  .withdraw-page .withdraw-form-section { padding: 12px; }
  .withdraw-page .withdraw-fee-preview > div { flex-wrap: wrap; gap: 4px 12px; }
}

/* Withdrawal review uses a bounded dialog instead of an empty full screen. */
.withdraw-confirm-modal { position: fixed; inset: 0; z-index: 1100; background: rgb(var(--vp-shadow-rgb) / 0.65); backdrop-filter: blur(6px); }
.withdraw-confirm-shell { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 100dvh; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); }
.withdraw-confirm-panel { display: flex; flex-direction: column; width: 100%; max-width: 406px; min-height: 0; max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))); padding: 0; overflow: hidden; border: 1px solid var(--vp-border); border-radius: 20px; background: var(--vp-panel); box-shadow: 0 24px 80px rgb(var(--vp-shadow-rgb) / 0.4); }
.withdraw-review-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 18px; }
.withdraw-review-header p { margin: 0 0 4px; color: var(--vp-muted); font-size: 12px; }
.withdraw-review-header h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; }
.withdraw-confirm-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
.withdraw-review-amount { padding: 16px; border-radius: 12px; background: var(--vp-raised); }
.withdraw-review-amount p { margin: 0 0 8px; color: var(--vp-muted); font-size: 13px; }
.withdraw-review-amount strong { display: block; font-size: 32px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.withdraw-review-amount > span { display: block; margin-top: 8px; color: var(--vp-muted); font-size: 12px; }
.withdraw-review-destination { margin-top: 18px; }
.withdraw-review-destination h3 { margin: 0 0 10px; color: var(--vp-muted); font-size: 12px; font-weight: 600; }
.withdraw-review-method { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.withdraw-review-method svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--vp-gold-light); }
.withdraw-review-method strong { overflow-wrap: anywhere; min-width: 0; }
.withdraw-review-destination dl { margin: 12px 0 0; }
.withdraw-review-destination dl > div { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: baseline; gap: 14px; padding: 7px 0; }
.withdraw-review-destination dt { color: var(--vp-muted); font-size: 13px; }
.withdraw-review-destination dd { margin: 0; text-align: right; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.withdraw-review-fees { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--vp-border); }
.withdraw-review-fees > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; }
.withdraw-review-fees dt { color: var(--vp-muted); font-size: 13px; }
.withdraw-review-fees dd { margin: 0; text-align: right; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.withdraw-review-net dd { color: var(--vp-gold-light); font-size: 20px; }
.withdraw-review-note { margin: 10px 0 16px; color: var(--vp-muted); font-size: 12px; line-height: 1.6; }
.withdraw-confirm-actions { flex-shrink: 0; padding: 14px 18px 8px; border-top: 1px solid var(--vp-border); background: var(--vp-panel); }
.withdraw-confirm-actions .btn-ev { min-height: 52px; font-size: 16px; border-radius: 12px; }
.withdraw-review-edit { display: block; width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--vp-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.withdraw-review-edit:hover { color: var(--vp-silver); }
.withdraw-confirm-panel button:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
@media (max-width: 360px) { .withdraw-review-net { flex-wrap: wrap; } .withdraw-review-header, .withdraw-confirm-actions { padding-left: 14px; padding-right: 14px; } .withdraw-confirm-body { padding-left: 14px; padding-right: 14px; } }

/* Deposit form sized for phone reading and touch input. */
.deposit-page .app-main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
.deposit-page .app-title { font-size: 24px; }
.deposit-page .header-subtitle { font-size: 13px; }
.deposit-page .icon-btn { min-width: 44px; min-height: 44px; }
.deposit-page .deposit-form { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 18px; }
.deposit-page .wallet-label { font-size: 14px; line-height: 1.5; font-weight: 600; }
.deposit-package-picker .choice-card { min-height: 76px; padding: 12px; box-shadow: none; }
.deposit-package-picker .choice-card .truncate { white-space: normal; overflow: visible; }
.deposit-package-picker .choice-card .text-\[14px\] { font-size: 16px; line-height: 1.4; }
.deposit-package-picker .choice-card .text-\[11px\] { font-size: 13px; line-height: 1.4; }
.deposit-page .wallet-input { min-height: 54px; width: 100%; font-size: 16px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; scroll-margin-block: 100px; }
.deposit-page .deposit-amount-help { margin: 8px 0 0; color: var(--vp-muted); font-size: 12px; line-height: 1.6; }
.deposit-page [data-amount-error] { font-size: 13px; line-height: 1.6; }
.deposit-page .amount-picker { gap: 8px; }
.deposit-page .amount-chip { min-height: 44px; padding: 8px; font-size: 13px; touch-action: manipulation; }
.deposit-page .amount-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.deposit-page .deposit-plan-summary { padding: 14px; }
.deposit-page .deposit-plan-eyebrow, .deposit-page .deposit-plan-type { font-size: 12px; }
.deposit-page .deposit-plan-header h3 { font-size: 18px; }
.deposit-page .deposit-plan-projection { margin-top: 12px; padding: 14px; }
.deposit-page .deposit-plan-projection p, .deposit-page .deposit-plan-total-rate { font-size: 13px; }
.deposit-page .deposit-plan-facts dt { font-size: 13px; line-height: 1.5; }
.deposit-page .deposit-plan-facts dd { font-size: 15px; }
.deposit-page .deposit-plan-facts > div { padding: 8px 0; gap: 12px; }
.deposit-page .deposit-plan-basis { font-size: 12px; line-height: 1.6; }
.deposit-page .deposit-method-option { min-height: 52px; padding: 12px; font-size: 14px; line-height: 1.5; }
.deposit-page .deposit-method-option input { width: 20px; height: 20px; flex-shrink: 0; }
.deposit-page .deposit-method-picker .row-subtitle { font-size: 13px; line-height: 1.6; }
.deposit-page [data-open-deposit-confirm] { min-height: 52px; font-size: 16px; border-radius: 12px; touch-action: manipulation; }
.deposit-page .wallet-input:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
.deposit-page .deposit-review-details dt, .deposit-page .deposit-review-total div > span { font-size: 13px; }
.deposit-page .deposit-review-details dd { font-size: 14px; }
.deposit-page .deposit-review-next p { font-size: 12px; }
.deposit-page .deposit-confirm-actions .btn-ev { min-height: 52px; font-size: 15px; }
@media (max-width: 360px) {
  .deposit-page .app-main { padding-left: 12px; padding-right: 12px; }
  .deposit-page .amount-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deposit-page .deposit-plan-summary { padding: 12px; }
}

/* Account entries: compact amounts, timeline, and a single progress section. */
.accounts-page .app-main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
.accounts-page .app-title { font-size: 24px; }
.accounts-page .header-subtitle { font-size: 13px; }
.accounts-page .icon-btn { min-width: 44px; min-height: 44px; }
.accounts-page .section-heading h2 { font-size: 16px; }
.account-entry-card { min-width: 0; padding: 16px; border: 1px solid var(--vp-border); border-radius: 16px; background: var(--vp-panel); }
.account-entry-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.account-entry-title { display: flex; align-items: center; gap: 10px; flex: 1 1 150px; min-width: 0; }
.account-entry-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgb(var(--vp-gold-rgb) / 0.1); color: var(--vp-gold-light); }
.account-entry-icon svg { width: 20px; height: 20px; }
.account-entry-title h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.account-entry-status { padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.account-entry-status.is-active { color: var(--vp-gold-light); background: var(--vp-gold-soft); }
.account-entry-status.is-complete { color: var(--vp-silver); background: var(--vp-raised); }
.account-entry-id { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0 16px; color: var(--vp-muted); font-size: 12px; line-height: 1.5; }
.account-entry-id span { color: var(--vp-silver); overflow-wrap: anywhere; }
.account-entry-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 14px; border-radius: 12px; background: var(--vp-raised); }
.account-entry-amounts dt { color: var(--vp-muted); font-size: 12px; line-height: 1.5; }
.account-entry-amounts dd { margin: 6px 0 0; color: var(--vp-silver); font-size: 21px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-entry-amounts .account-entry-reward { color: var(--vp-gold-light); }
.account-entry-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.account-entry-dates dt { color: var(--vp-muted); font-size: 12px; }
.account-entry-dates dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.account-growth-trend { margin: 0; padding-top: 14px; border-top: 1px solid var(--vp-border); }
.account-growth-trend figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--vp-muted); }
.account-growth-trend figcaption strong { color: var(--vp-gold-light); font-size: 12px; font-weight: 600; }
.account-trend-chart { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.account-trend-grid path { fill: none; stroke: var(--vp-border); stroke-width: 1; stroke-dasharray: 3 5; }
.account-trend-area { fill: rgb(var(--vp-gold-rgb) / 0.1); }
.account-trend-line { fill: none; stroke: var(--vp-gold); stroke-width: 3; stroke-linecap: round; }
.account-trend-projected { fill: none; stroke: var(--vp-muted); stroke-width: 2; stroke-dasharray: 5 5; opacity: 0.65; }
.account-trend-point { fill: var(--vp-gold-light); stroke: var(--vp-panel); stroke-width: 2; }
.account-trend-axis { display: flex; justify-content: space-between; gap: 12px; color: var(--vp-muted); font-size: 11px; }
.account-growth-trend > p { margin: 10px 0 0; color: var(--vp-muted); font-size: 11px; line-height: 1.6; }
.account-entry-empty { padding: 24px 16px; text-align: center; border: 1px dashed var(--vp-border); border-radius: 16px; }
.account-entry-empty > svg { margin: 0 auto 12px; color: var(--vp-gold-light); }
.account-entry-empty h3 { margin: 0; font-size: 17px; }
.account-entry-empty p { margin: 8px 0 18px; color: var(--vp-muted); font-size: 13px; line-height: 1.6; }
.account-entry-empty .btn-ev { min-height: 48px; font-size: 14px; }
@media (max-width: 360px) { .accounts-page .app-main { padding-left: 12px; padding-right: 12px; } .account-entry-card { padding: 14px; } .account-entry-amounts { padding: 12px; gap: 12px; } .account-entry-amounts dd { font-size: 19px; } }

/* Referral page prioritizes inviting and a readable member list. */
.referrals-page .app-main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
.referrals-page .app-title { font-size: 24px; }
.referrals-page .header-subtitle { font-size: 13px; }
.referrals-page .icon-btn { min-width: 44px; min-height: 44px; }
.referrals-page .section-stack { gap: 22px; }
.referral-invite-card { padding: 16px; border: 1px solid var(--vp-border); border-radius: 16px; background: var(--vp-navy); }
.referral-invite-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.referral-invite-heading h2 { margin: 0; font-size: 17px; font-weight: 700; }
.referral-invite-heading > span { color: var(--vp-muted); font-size: 12px; }
.referral-invite-heading strong { color: var(--vp-gold-light); }
.referral-invite-description { margin: 8px 0 16px; color: var(--vp-muted); font-size: 13px; line-height: 1.6; }
.referral-code-block { padding: 14px; border: 1px solid var(--vp-gold-line); border-radius: 12px; background: var(--vp-gold-soft); }
.referral-code-block span { display: block; color: var(--vp-muted); font-size: 12px; }
.referral-code-block strong { display: block; margin-top: 6px; color: var(--vp-gold-light); font-size: 26px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.referral-link-preview { margin: 10px 0 16px; color: var(--vp-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.referral-invite-actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.referral-invite-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; touch-action: manipulation; }
.referral-invite-actions svg { width: 18px; height: 18px; flex-shrink: 0; }
.referral-qr-button { border: 1px solid var(--vp-border); color: var(--vp-silver); background: var(--vp-raised); cursor: pointer; }
.referrals-page .section-heading h2 { font-size: 17px; }
.referral-member-list { margin-top: 12px; border: 1px solid var(--vp-border); border-radius: 14px; overflow: hidden; }
.referral-member { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 14px; background: var(--vp-panel); }
.referral-member + .referral-member { border-top: 1px solid var(--vp-border); }
.referral-member-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--vp-raised); color: var(--vp-muted); }
.referral-member-avatar svg { width: 18px; height: 18px; }
.referral-member-details { min-width: 0; flex: 1; }
.referral-member-details .row-title { font-size: 15px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.referral-member-details .row-subtitle { margin-top: 4px; font-size: 12px; line-height: 1.5; }
.referral-member-status { flex-shrink: 0; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.referral-member-status.is-active { color: var(--vp-gold-light); background: var(--vp-gold-soft); }
.referral-member-status.is-inactive { color: var(--vp-muted); background: var(--vp-raised); }
.referrals-page button:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
.referrals-page [data-referral-qr-modal] { overflow-y: auto; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.referrals-page [data-referral-qr-modal] [role=dialog] { border-radius: 18px; }
.referrals-page [data-referral-qr-modal] .h-\[220px\] { width: min(220px, 100%); height: auto; aspect-ratio: 1; }
.referrals-page [data-referral-qr-modal] .btn-ev, .referrals-page [data-referral-qr-modal] .btn-ghost { min-height: 48px; font-size: 14px; }
@media (max-width: 360px) { .referrals-page .app-main { padding-left: 12px; padding-right: 12px; } .referral-member { padding: 12px; gap: 8px; } .referral-member-avatar { display: none; } .referral-invite-actions { grid-template-columns: 1fr; } }

/* A focused mobile referral QR dialog with a white scan surface. */
.referral-qr-modal { position: fixed; inset: 0; z-index: 1100; background: rgb(var(--vp-shadow-rgb) / 0.65); backdrop-filter: blur(6px); }
.referral-qr-shell { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); }
.referral-qr-dialog { display: flex; flex-direction: column; width: 100%; max-width: 390px; max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))); overflow: hidden; border: 1px solid var(--vp-border); border-radius: 18px; background: var(--vp-panel); box-shadow: 0 24px 80px rgb(var(--vp-shadow-rgb) / 0.4); }
.referral-qr-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 18px 18px 12px; }
.referral-qr-header p { margin: 0 0 4px; color: var(--vp-muted); font-size: 12px; }
.referral-qr-header h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; }
.referral-qr-content { min-height: 0; overflow-y: auto; padding: 0 18px 18px; text-align: center; overscroll-behavior: contain; }
.referral-qr-content > p { margin: 0 auto 18px; max-width: 290px; color: var(--vp-muted); font-size: 13px; line-height: 1.6; }
.referral-qr-image { width: min(100%, 244px); margin: 0 auto; padding: 12px; border-radius: 12px; background: #fff; }
.referral-qr-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.referral-qr-code { margin-top: 18px; }
.referral-qr-code span { display: block; color: var(--vp-muted); font-size: 12px; }
.referral-qr-code strong { display: block; margin-top: 5px; color: var(--vp-silver); font-size: 23px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.referral-qr-actions { padding: 14px 18px 8px; flex-shrink: 0; border-top: 1px solid var(--vp-border); }
.referral-qr-actions .btn-ev { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; font-size: 15px; border-radius: 12px; }
.referral-qr-done { width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--vp-muted); font-size: 14px; cursor: pointer; }
.referral-qr-done:hover { color: var(--vp-silver); }

/* Mobile history: searchable controls and a compact transaction ledger. */
.history-page .app-main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
.history-page .app-title { font-size: 23px; }
.history-page .header-subtitle { font-size: 13px; }
.history-page .icon-btn { min-width: 44px; min-height: 44px; }
.history-page .section-stack { gap: 20px; }
.history-controls { min-width: 0; }
.history-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1px solid var(--vp-border); border-radius: 12px; background: var(--vp-navy); }
.history-search > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--vp-muted); }
.history-search input { width: 100%; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--vp-silver); font-size: 16px; }
.history-search input::placeholder { color: var(--vp-muted); }
.history-search:focus-within { border-color: var(--vp-gold); box-shadow: var(--ev-focus); }
.history-page .history-filter-row { display: flex; gap: 8px; padding: 12px 0 4px; overflow-x: auto; scrollbar-width: thin; scroll-padding-inline: 8px; }
.history-page .filter-chip { flex: 0 0 auto; min-width: 52px; min-height: 44px; padding: 10px 14px; font-size: 13px; font-weight: 600; border-radius: 999px; touch-action: manipulation; }
.history-page .section-heading h2 { font-size: 17px; }
.history-page .section-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.history-page #earningList { display: block; overflow: hidden; border: 1px solid var(--vp-border); border-radius: 14px; }
.history-page #earningList:empty { display: none; }
.history-page #earningList .history-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 82px; margin: 0; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--vp-border); border-radius: 0; box-shadow: none; background: var(--vp-panel); }
.history-page #earningList .history-row:last-child { border-bottom: 0; }
.history-page #earningList .history-row.hidden { display: none; }
.history-page #earningList .row-icon { width: 34px; height: 34px; border-radius: 10px; }
.history-page .history-entry-details { min-width: 0; }
.history-page #earningList .row-title { font-size: 14px; font-weight: 600; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.history-page #earningList .row-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; }
.history-page #earningList .row-subtitle { margin: 0; color: var(--vp-muted); font-size: 11px; line-height: 1.5; }
.history-page #earningList .row-amount { min-width: 0; max-width: 110px; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.history-page .empty-state { font-size: 14px; line-height: 1.6; padding: 24px 16px; }
.history-page button:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
.history-page .history-date-value, .history-page .calendar-nav, .history-page .calendar-action { min-height: 44px; }
@media (max-width: 360px) { .history-page .app-main { padding-left: 12px; padding-right: 12px; } .history-page #earningList .history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .history-page #earningList .row-icon { display: none; } }

/* Mobile settings: grouped rows, readable identity, and one sign-out action. */
.settings-page .app-main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
.settings-page .app-title { font-size: 24px; }
.settings-page .header-subtitle { font-size: 13px; }
.settings-page .icon-btn { min-width: 44px; min-height: 44px; }
.settings-page .section-stack { gap: 22px; }
.settings-page .settings-profile-panel { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border: 1px solid var(--vp-border); border-radius: 16px; background: var(--vp-navy); box-shadow: none; }
.settings-page .settings-profile-panel::before, .settings-page .settings-profile-panel::after { display: none; }
.settings-page .settings-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; color: var(--vp-gold-light); background: var(--vp-gold-soft); box-shadow: none; font-size: 18px; }
.settings-page .settings-profile-copy { min-width: 0; flex: 1; }
.settings-page .settings-profile-label { margin: 0 0 4px; color: var(--vp-muted); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.settings-page .settings-profile-copy .row-title { font-size: 18px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.settings-page .settings-profile-copy .row-subtitle { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.settings-page .settings-group-title { margin: 0 0 10px; color: var(--vp-muted); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.settings-page .settings-list { display: block; overflow: hidden; border: 1px solid var(--vp-border); border-radius: 14px; }
.settings-page .setting-row { min-height: 80px; margin: 0; padding: 14px; border: 0; border-radius: 0; background: var(--vp-panel); box-shadow: none; gap: 12px; }
.settings-page .setting-row + .setting-row { border-top: 1px solid var(--vp-border); }
.settings-page .setting-row > div { min-width: 0; flex: 1; }
.settings-page .row-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--vp-raised); color: var(--vp-gold-light); }
.settings-page .row-title { font-size: 15px; font-weight: 600; line-height: 1.4; white-space: normal; }
.settings-page .row-subtitle { margin-top: 4px; font-size: 12px; line-height: 1.5; white-space: normal; }
.settings-page .settings-chevron { width: 20px; height: 20px; flex-shrink: 0; background: transparent; color: var(--vp-muted); }
.settings-page .settings-link-row:hover { background: var(--vp-raised); }
.settings-page .settings-security-card { border: 0; border-radius: 0; background: var(--vp-panel); box-shadow: none; }
.settings-page .settings-security-card summary { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 14px; }
.settings-page .settings-summary-copy { min-width: 0; flex: 1; }
.settings-page .settings-security-form { padding: 16px 14px; border-top: 1px solid var(--vp-border); }
.settings-page .settings-security-form .wallet-label { font-size: 14px; }
.settings-page .settings-security-form .wallet-input { min-height: 52px; padding: 12px; font-size: 16px; border-radius: 10px; }
.settings-page .settings-security-form .btn-ev { min-height: 50px; font-size: 15px; border-radius: 10px; }
.settings-page .settings-logout-row .row-title { color: var(--vp-danger); }
.settings-page .settings-logout-row .row-subtitle { color: var(--vp-muted); }
.settings-page .settings-logout-row .row-icon { color: var(--vp-danger); background: var(--vp-danger-soft); }
.settings-page a:focus-visible, .settings-page summary:focus-visible, .settings-page button:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: -2px; }
@media (max-width: 360px) { .settings-page .app-main { padding-left: 12px; padding-right: 12px; } .settings-page .setting-row { padding: 12px; gap: 10px; } }

/* Profile editing uses a simple summary and full-width phone controls. */
.profile-page .app-main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
.profile-page .app-title { font-size: 24px; }
.profile-page .header-subtitle { font-size: 13px; }
.profile-page .icon-btn { min-width: 44px; min-height: 44px; }
.profile-page .section-stack { gap: 18px; }
.profile-page .profile-hero-panel { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--vp-border); border-radius: 14px; background: var(--vp-navy); box-shadow: none; }
.profile-page .profile-hero-panel::before, .profile-page .profile-hero-panel::after { display: none; }
.profile-page .settings-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--vp-gold-soft); color: var(--vp-gold-light); box-shadow: none; font-size: 18px; }
.profile-page .profile-hero-copy { min-width: 0; }
.profile-page .settings-profile-label { margin: 0 0 4px; font-size: 12px; font-weight: 500; color: var(--vp-muted); letter-spacing: 0; text-transform: none; }
.profile-page .profile-hero-copy .row-title { font-size: 18px; font-weight: 700; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.profile-page .profile-hero-copy .row-subtitle { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-account-info { margin: 0; padding: 0 2px; }
.profile-account-info > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; }
.profile-account-info dt { color: var(--vp-muted); font-size: 13px; }
.profile-account-info dd { margin: 0; min-width: 0; font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.profile-edit-title { margin: 0; font-size: 17px; font-weight: 700; }
.profile-edit-help { margin: 6px 0 16px; color: var(--vp-muted); font-size: 13px; line-height: 1.6; }
.profile-page .profile-form { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 16px; }
.profile-page .profile-form-grid { grid-template-columns: 1fr; gap: 16px; }
.profile-page .profile-form label { display: block; min-width: 0; }
.profile-page .profile-form .wallet-label { margin-bottom: 7px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.profile-page .profile-form .wallet-input { width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px; line-height: 1.5; border-radius: 10px; scroll-margin-block: 100px; }
.profile-page .profile-form .profile-textarea { min-height: 104px; resize: vertical; }
.profile-page .profile-form .btn-ev { min-height: 52px; margin-top: 4px; border-radius: 12px; font-size: 16px; touch-action: manipulation; }
.profile-page .wallet-input:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
@media (max-width: 360px) { .profile-page .app-main { padding-left: 12px; padding-right: 12px; } }

.dashboard-rewards { border: 1px solid var(--vp-border); border-radius: 16px; overflow: hidden; background: var(--vp-panel); }
.dashboard-reward-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 14px; }
.dashboard-reward-row + .dashboard-reward-row { border-top: 1px solid var(--vp-border); }
.dashboard-reward-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--vp-gold-light); background: var(--vp-gold-soft); }
.dashboard-reward-icon svg { width: 19px; height: 19px; }
.dashboard-reward-row h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.dashboard-reward-row p { margin: 4px 0 0; font-size: 12px; color: var(--vp-muted); }
.dashboard-reward-row strong { max-width: 112px; color: var(--vp-gold-light); text-align: right; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 360px) { .dashboard-reward-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .dashboard-reward-icon { display: none; } .dashboard-reward-row strong { font-size: 16px; } }

/* Sign-in prioritizes readable fields and working account actions. */
.login-page { background: var(--vp-navy); }
.login-page .auth-screen { width: 100%; max-width: 430px; min-height: 100dvh; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: var(--vp-panel); overflow: visible; }
.login-page .auth-screen::before, .login-page .auth-screen::after { display: none; }
.login-page .auth-card { width: 100%; padding: 12px 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.login-header { margin-bottom: 28px; }
.login-brand-icon { display: block; width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; border-radius: 12px; }
.login-brand-name { margin: 0 0 24px; color: var(--vp-gold-light); font-size: 15px; font-weight: 700; }
.login-header h1 { margin: 0; color: var(--vp-silver); font-size: 30px; line-height: 1.2; font-weight: 800; }
.login-description { margin: 10px 0 0; max-width: 310px; color: var(--vp-muted); font-size: 14px; line-height: 1.6; }
.login-page form.section-stack { gap: 20px; }
.login-page .wallet-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.login-page .wallet-input { min-height: 54px; padding: 14px; border-radius: 12px; font-size: 16px; line-height: 1.5; background: var(--vp-navy); }
.login-page .input-icon-wrap .wallet-input { padding-right: 56px; }
.login-page .password-toggle { width: 44px; height: 44px; right: 5px; border-radius: 8px; }
.login-page .btn-ev { min-height: 54px; margin-top: 4px; font-size: 16px; border-radius: 12px; touch-action: manipulation; }
.login-register { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--vp-border); text-align: center; }
.login-register p { margin: 0 0 6px; color: var(--vp-muted); font-size: 13px; }
.login-register a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--vp-gold-light); font-size: 15px; font-weight: 600; }
.login-register svg { width: 17px; height: 17px; }
.login-page input:focus-visible, .login-page button:focus-visible, .login-page a:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
@media (max-height: 650px) { .login-page .auth-screen { place-items: start center; } .login-brand-name { margin-bottom: 18px; } .login-header { margin-bottom: 22px; } }
@media (max-width: 360px) { .login-page .auth-screen { padding-left: 16px; padding-right: 16px; } }

/* Registration matches sign-in and keeps long forms comfortable on phones. */
.register-page { background: var(--vp-navy); }
.register-page .auth-screen { width: 100%; max-width: 430px; min-height: 100dvh; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: var(--vp-panel); place-items: start center; overflow: visible; }
.register-page .auth-screen::before, .register-page .auth-screen::after { display: none; }
.register-page .auth-card { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.register-header { margin-bottom: 26px; }
.register-brand-icon { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.register-brand-name { margin: 10px 0 22px; color: var(--vp-gold-light); font-size: 15px; font-weight: 700; }
.register-header h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.25; }
.register-header > p:last-child { margin: 8px 0 0; color: var(--vp-muted); font-size: 14px; line-height: 1.6; }
.register-page form.section-stack { gap: 18px; }
.register-name-fields { display: grid; grid-template-columns: 1fr; gap: 18px; }
.register-page .wallet-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.register-optional { color: var(--vp-muted); font-size: 12px; font-weight: 400; }
.register-page .wallet-input { min-height: 54px; width: 100%; padding: 14px; border-radius: 12px; background: var(--vp-navy); font-size: 16px; line-height: 1.5; scroll-margin-block: 24px; }
.register-page .input-icon-wrap .wallet-input { padding-right: 56px; }
.register-page .password-toggle { width: 44px; height: 44px; right: 5px; border-radius: 8px; }
.register-page .row-subtitle, .register-page .password-match-error { font-size: 13px; line-height: 1.5; }
.register-page .wallet-check { min-height: 44px; align-items: center; gap: 10px; }
.register-page .wallet-check-input { width: 20px; height: 20px; flex-shrink: 0; }
.register-page .wallet-check-label { padding: 8px 0; font-size: 13px; font-weight: 500; line-height: 1.6; }
.register-page .btn-ev { min-height: 54px; font-size: 16px; border-radius: 12px; touch-action: manipulation; }
.register-signin { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--vp-border); text-align: center; }
.register-signin p { margin: 0 0 6px; color: var(--vp-muted); font-size: 13px; }
.register-signin a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--vp-gold-light); font-size: 15px; font-weight: 600; }
.register-signin svg { width: 17px; height: 17px; }
.register-page input:focus-visible, .register-page button:focus-visible, .register-page a:focus-visible { outline: 2px solid var(--vp-gold); outline-offset: 2px; }
@media (max-width: 360px) { .register-page .auth-screen { padding-left: 16px; padding-right: 16px; } .register-header h1 { font-size: 25px; } }

.deposit-page .deposit-method-option { flex-wrap: wrap; gap: 10px; }
.deposit-page .deposit-method-option > span:first-of-type { flex: 1; min-width: 0; }
.deposit-page .deposit-method-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1.5; }
.deposit-page .deposit-method-badge.is-instant { color: var(--vp-gold-light); background: var(--vp-gold-soft); }
.deposit-page .deposit-method-badge.is-transfer { color: var(--vp-muted); background: var(--vp-raised); }
