:root {
  --ev-green: #10c66f;
  --ev-green-dark: #047340;
  --ev-green-soft: #eefaf4;
  --ev-green-line: #ccefdc;
  --ev-black: #040806;
  --ev-ink: #101612;
  --ev-muted: #65736b;
  --ev-soft: #ffffff;
  --ev-white: #ffffff;
  --ev-surface: #fbfdfc;
  --ev-border: #e7efe9;
  --ev-border-strong: #d7e4dc;
  --ev-danger: #dc3f45;
  --ev-warning: #d49319;
  --ev-radius: 8px;
  --ev-shadow: 0 24px 60px rgba(4, 8, 6, 0.07);
  --ev-shadow-soft: 0 12px 30px rgba(4, 8, 6, 0.055);
  --ev-shadow-card: 0 10px 24px rgba(4, 8, 6, 0.045);
  --ev-shadow-lift: 0 16px 34px rgba(4, 8, 6, 0.075);
  --ev-focus: 0 0 0 0.2rem rgba(16, 198, 111, 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;
}

.landing-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--ev-black);
  background:
    radial-gradient(circle at 14% 0%, rgba(16, 198, 111, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(238, 250, 244, 0.82), rgba(255, 255, 255, 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: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 239, 233, 0.7);
}

.landing-brand,
.landing-nav {
  display: inline-flex;
  align-items: center;
}

.landing-brand {
  gap: 10px;
  min-width: 0;
  color: var(--ev-black);
  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(--ev-black);
  background: var(--ev-white);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.landing-nav .landing-nav-cta {
  border-color: var(--ev-green);
  background: var(--ev-green);
}

.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, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.92) 70%, var(--ev-white) 100%),
    radial-gradient(circle at 50% 22%, rgba(16, 198, 111, 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 rgba(4, 8, 6, 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-green-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(--ev-black);
  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 rgba(4, 8, 6, 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: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ev-shadow-card);
}

.landing-highlights svg {
  width: 22px;
  height: 22px;
  color: var(--ev-green-dark);
}

.landing-highlights strong {
  display: block;
  margin-top: 10px;
  color: var(--ev-black);
  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-green-dark);
  background: var(--ev-green-soft);
}

.landing-check-list svg {
  width: 14px;
  height: 14px;
}

.landing-check-list span {
  color: var(--ev-black);
  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-green-dark);
  background: var(--ev-green-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-step-list strong {
  color: var(--ev-black);
  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%, rgba(16, 198, 111, 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%, rgba(16, 198, 111, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 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-green-line);
}

.landing-progress .active {
  width: 28px;
  background: var(--ev-green);
}

.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-green-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%, rgba(16, 198, 111, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(238, 250, 244, 0.72), rgba(255, 255, 255, 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%, rgba(16, 198, 111, 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-green), rgba(16, 198, 111, 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-green-line);
  border-radius: var(--ev-radius);
  color: var(--ev-green-dark);
  background: var(--ev-green-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(--ev-black);
  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: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(4, 8, 6, 0.035);
  text-align: center;
}

.onboard-snapshot svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 9px;
  color: var(--ev-green-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(--ev-black);
  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(--ev-black);
  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-green-dark);
  font-size: 0.86rem;
  background: var(--ev-green-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-green-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: #020617 !important;
}

.bg-white {
  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-green);
}

.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(--ev-black);
  font-weight: 800;
}

.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(238, 250, 244, 0.72), rgba(255, 255, 255, 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, rgba(237, 252, 245, 0.95) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(247, 250, 248, 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='%2310c66f' stroke-opacity='.18' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M24 520H92L129 478L176 548L228 498L285 530H402' stroke='%23047340' stroke-opacity='.11' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='158' cy='162' r='4' fill='%2310c66f' fill-opacity='.24'/%3E%3Ccircle cx='218' cy='248' r='4' fill='%2310c66f' fill-opacity='.18'/%3E%3Ccircle cx='273' cy='188' r='4' fill='%2310c66f' fill-opacity='.2'/%3E%3Crect x='42' y='318' width='64' height='7' rx='3.5' fill='%2310c66f' fill-opacity='.08'/%3E%3Crect x='42' y='338' width='108' height='7' rx='3.5' fill='%23047340' fill-opacity='.06'/%3E%3Crect x='278' y='92' width='86' height='7' rx='3.5' fill='%2310c66f' fill-opacity='.07'/%3E%3Crect x='250' y='704' width='118' height='7' rx='3.5' fill='%23047340' fill-opacity='.055'/%3E%3C/svg%3E"),
    linear-gradient(rgba(4, 115, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 115, 64, 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%, rgba(16, 198, 111, 0.12) 34%, rgba(16, 198, 111, 0.03) 46%, transparent 58% 100%),
    linear-gradient(205deg, transparent 0 48%, rgba(4, 115, 64, 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: rgba(255, 255, 255, 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(--ev-black);
  background: linear-gradient(180deg, #20dc82, var(--ev-green));
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 12px 22px rgba(16, 198, 111, 0.22);
}

.brand-mark img,
.logo-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  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(--ev-black);
  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(--ev-black);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(4, 8, 6, 0.04), 0 8px 18px rgba(4, 8, 6, 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-green-line);
  background: var(--ev-green-soft);
  box-shadow: var(--ev-shadow-soft);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.98);
}

.icon-btn.dark {
  color: var(--ev-white);
  border-color: var(--ev-black);
  background: var(--ev-black);
  box-shadow: 0 14px 28px rgba(4, 8, 6, 0.2);
}

.icon-btn.dark:hover,
.icon-btn.dark:focus-visible {
  color: var(--ev-white);
  border-color: #121a16;
  background: #121a16;
}

.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(--ev-black);
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 800;
}

.section-link {
  color: var(--ev-green-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(--ev-white);
  border-radius: var(--ev-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 198, 111, 0.46), rgba(16, 198, 111, 0) 31%),
    radial-gradient(circle at 94% 12%, rgba(4, 115, 64, 0.32), rgba(4, 115, 64, 0) 31%),
    linear-gradient(145deg, #07130d 0%, #040806 56%, #000000 100%),
    var(--ev-black);
  box-shadow: 0 24px 48px rgba(4, 8, 6, 0.24);
}

.balance-panel > * {
  position: relative;
  z-index: 1;
}

.balance-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 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-green), #65e69f);
}

.balance-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 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: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 600;
}

.balance-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--ev-white);
  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 rgba(4, 8, 6, 0.025), 0 8px 18px rgba(4, 8, 6, 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-green-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-green-dark);
  background: linear-gradient(180deg, var(--ev-green-soft), #e4f8ee);
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 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 rgba(4, 8, 6, 0.025), 0 8px 18px rgba(4, 8, 6, 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(--ev-black);
  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-green-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, rgba(238, 250, 244, 0.55), rgba(255, 255, 255, 0));
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.chart-grid line {
  stroke: #e7f1eb;
  stroke-width: 1;
}

.line-area {
  fill: url("#earningsArea");
}

.line-path {
  fill: none;
  stroke: var(--ev-green);
  stroke-width: 4.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 10px rgba(16, 198, 111, 0.18));
}

.line-points circle {
  fill: var(--ev-white);
  stroke: var(--ev-green);
  stroke-width: 3;
  filter: drop-shadow(0 5px 8px rgba(16, 198, 111, 0.22));
}

.bar {
  height: 100%;
  min-height: 0;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #e8f7ef, #f2fbf6);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 0.05);
}

.bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--value);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #19ce75, var(--ev-green));
  box-shadow: 0 -6px 12px rgba(16, 198, 111, 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: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(4, 8, 6, 0.02), 0 6px 16px rgba(4, 8, 6, 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(--ev-black);
  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-green-dark);
}

.amount-negative,
.status-danger {
  color: var(--ev-danger);
}

.amount-neutral {
  color: var(--ev-black);
}

.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-green-soft);
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 0.08);
}

.status-pill.status-success {
  color: var(--ev-green-dark);
  background: var(--ev-green-soft);
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 0.1);
}

.status-pill.status-danger {
  color: var(--ev-danger);
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px rgba(220, 63, 69, 0.12);
}

.status-pending {
  color: var(--ev-warning);
  background: #fff7df;
}

.wallet-label {
  color: var(--ev-black);
  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(--ev-black);
  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-green);
  box-shadow: var(--ev-focus);
  outline: 0;
}

.wallet-input.wallet-input-error {
  border-color: #f4c9cc !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 63, 69, 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 rgba(255, 255, 255, 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-green) !important;
  background: var(--ev-green) !important;
  color: var(--ev-white) !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(--ev-white) !important;
}

.choice-input:checked + .choice-card .choice-check svg {
  opacity: 1;
  transform: scale(1);
}

.choice-input:focus-visible + .choice-card {
  border-color: var(--ev-green);
  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-green-dark);
  background: var(--ev-green-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(--ev-black);
  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-green);
  color: var(--ev-green-dark);
  background: var(--ev-green-soft);
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 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-green-dark);
  background: var(--ev-green-soft);
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 0.16), 0 12px 24px rgba(16, 198, 111, 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, rgba(255, 255, 255, 0.98), rgba(251, 253, 252, 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(--ev-black);
  background: var(--ev-white);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 0.03);
}

.history-date-value svg {
  width: 16px;
  height: 16px;
  color: var(--ev-green-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%, rgba(16, 198, 111, 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(--ev-black);
  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-green-dark);
  background: var(--ev-white);
  box-shadow: 0 8px 16px rgba(4, 8, 6, 0.04);
}

.calendar-nav svg {
  width: 17px;
  height: 17px;
}

.calendar-nav:disabled {
  cursor: not-allowed;
  color: #aeb9b2;
  background: #f6faf8;
  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(--ev-black);
  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-green-line);
  color: var(--ev-green-dark);
  background: var(--ev-green-soft);
}

.history-calendar-grid button.selected {
  border-color: var(--ev-green);
  color: var(--ev-white);
  background: var(--ev-green);
  box-shadow: 0 10px 20px rgba(16, 198, 111, 0.22);
}

.history-calendar-grid button.today:not(.selected) {
  border-color: var(--ev-green-line);
  color: var(--ev-green-dark);
}

.history-calendar-grid button.outside {
  color: #aeb9b2;
}

.history-calendar-grid button:disabled {
  cursor: not-allowed;
  color: #c8d1cb;
  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-green);
  border-radius: var(--ev-radius);
  color: var(--ev-green-dark);
  background: var(--ev-green-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-green);
  border-radius: var(--ev-radius);
  color: var(--ev-black);
  background: var(--ev-green);
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(16, 198, 111, 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(--ev-black);
  background: #20d774;
  border-color: #20d774;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 198, 111, 0.22);
}

.btn-ev:active,
.btn-ev-dark:active,
.btn-ghost:active {
  transform: translateY(0) scale(0.99);
}

.btn-ev-dark {
  color: var(--ev-white);
  background: var(--ev-black);
  border-color: var(--ev-black);
  box-shadow: 0 12px 24px rgba(4, 8, 6, 0.16);
}

.btn-ev-dark:hover,
.btn-ev-dark:focus-visible {
  color: var(--ev-white);
  background: #141817;
  border-color: #141817;
}

.btn-ghost {
  min-height: 44px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  color: var(--ev-black);
  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: #fbfdfc;
  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(--ev-white);
  background:
    radial-gradient(circle at 28% 18%, rgba(16, 198, 111, 0.42), rgba(16, 198, 111, 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%, rgba(16, 198, 111, 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-green), rgba(16, 198, 111, 0));
}

.settings-avatar {
  width: 58px;
  height: 58px;
  font-size: 1rem;
  box-shadow: 0 14px 28px rgba(4, 8, 6, 0.16);
}

.settings-profile-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.settings-profile-label {
  margin: 0 0 5px;
  color: var(--ev-green-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: rgba(238, 250, 244, 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-green-dark);
  background: var(--ev-green-soft);
}

.settings-security-card {
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ev-shadow-card);
  overflow: hidden;
}

.settings-security-card[open] {
  border-color: var(--ev-green-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-green-dark);
  background: var(--ev-green-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%, rgba(16, 198, 111, 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-green), rgba(16, 198, 111, 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(--ev-black);
  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(--ev-black);
  background:
    linear-gradient(180deg, var(--ev-white), #fbfdfc);
  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-green);
  border-color: var(--ev-green);
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(217, 229, 222, 0.95);
  background: var(--ev-white);
  box-shadow: 0 -14px 34px rgba(4, 8, 6, 0.09);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ev-muted);
  font-size: 0.67rem;
  line-height: 1;
  font-weight: 780;
  transition: color var(--ev-speed), transform var(--ev-speed);
}

.nav-icon {
  width: 38px;
  height: 34px;
  border-radius: var(--ev-radius);
  transition: background var(--ev-speed), color var(--ev-speed), box-shadow var(--ev-speed), transform var(--ev-speed);
}

.nav-item.active {
  color: var(--ev-black);
}

.nav-item.active .nav-icon {
  color: var(--ev-green-dark);
  background: linear-gradient(180deg, var(--ev-green-soft), #e4f8ee);
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 0.1), 0 8px 18px rgba(16, 198, 111, 0.14);
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--ev-black);
}

.nav-item:active .nav-icon {
  transform: scale(0.96);
}

.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: #b4232a;
  border: 1px solid #f4c9cc;
  background: #fff1f2;
  box-shadow: 0 10px 24px rgba(220, 63, 69, 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: #b4232a;
  stroke: currentColor;
}

.form-message-success {
  color: var(--ev-green-dark);
  border: 1px solid var(--ev-green-line);
  background: var(--ev-green-soft);
  box-shadow: 0 10px 24px rgba(16, 198, 111, 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-green-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 rgba(4, 8, 6, 0.14);
  pointer-events: auto;
}

.toast-error {
  color: #8f1f25;
  border: 1px solid #f4c9cc;
  background: linear-gradient(180deg, #fff8f8, #fff1f2);
}

.toast-success {
  color: var(--ev-green-dark);
  border: 1px solid var(--ev-green-line);
  background: linear-gradient(180deg, #fbfffd, var(--ev-green-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: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background var(--ev-speed), transform var(--ev-speed);
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(255, 255, 255, 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;
  }
}

/* Global Elevera Tailwind theme layer */
:root {
  --ev-green: #10c66f;
  --ev-green-dark: #047340;
  --ev-green-soft: #eefaf4;
  --ev-green-line: #ccefdc;
  --ev-black: #040806;
  --ev-ink: #101612;
  --ev-muted: #65736b;
  --ev-white: #ffffff;
  --ev-surface: #fbfdfc;
  --ev-border: #e7efe9;
  --ev-border-strong: #d7e4dc;
  --ev-danger: #dc3f45;
  --ev-warning: #d49319;
  --ev-radius: 1rem;
  --ev-shadow: 0 18px 46px rgba(4, 8, 6, 0.08);
  --ev-shadow-soft: 0 10px 26px rgba(4, 8, 6, 0.06);
  --ev-shadow-card: 0 6px 16px rgba(4, 8, 6, 0.03);
  --ev-shadow-lift: 0 18px 36px rgba(4, 8, 6, 0.10);
  --ev-focus: 0 0 0 0.2rem rgba(16, 198, 111, 0.16);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #f1f5f9;
  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 rgba(4, 8, 6, 0.10);
  position: relative;
  overflow: hidden;
}

.app-main {
  width: 100%;
  padding: 20px 20px 96px;
}

.auth-screen {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(237, 252, 245, 0.95) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(247, 250, 248, 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: rgba(255, 255, 255, 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, #20dc82, var(--ev-green));
  box-shadow: 0 12px 24px rgba(16, 198, 111, 0.20);
}

.app-header {
  margin-bottom: 20px;
}

.section-stack {
  gap: 16px;
}

.balance-panel {
  border-radius: var(--ev-radius);
  box-shadow: 0 18px 36px rgba(4, 8, 6, 0.20);
  background:
    radial-gradient(circle at 16% 0%, rgba(28, 224, 129, 0.32), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(4, 115, 64, 0.28), transparent 32%),
    linear-gradient(145deg, #07140e 0%, #040806 56%, #000000 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(--ev-black);
  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-green-dark);
  background: linear-gradient(180deg, var(--ev-green-soft), #e4f8ee);
  box-shadow: inset 0 0 0 1px rgba(16, 198, 111, 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: rgba(255, 255, 255, 0.98);
}

.row-title {
  color: var(--ev-black);
  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(--ev-black);
  font-size: 0.94rem;
  font-weight: 900;
}

.amount-positive {
  color: var(--ev-green-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(--ev-black);
  background: var(--ev-green);
  border-color: var(--ev-green);
  box-shadow: 0 10px 22px rgba(16, 198, 111, 0.16);
}

.btn-ev-dark {
  color: var(--ev-white);
  background: var(--ev-black);
  border-color: var(--ev-black);
  box-shadow: 0 10px 22px rgba(4, 8, 6, 0.16);
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  z-index: 999;
  width: 100%;
  max-width: 430px;
  height: 76px;
  margin: 0;
  padding: 8px 12px 16px;
  transform: translateX(-50%);
  border-top: 1px solid var(--ev-border-strong);
  background: var(--ev-white);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.07);
}

.nav-item {
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 0.85rem;
  font-size: 0.66rem;
  transition: transform var(--ev-speed), color var(--ev-speed), background var(--ev-speed), box-shadow var(--ev-speed);
}

.nav-icon {
  width: 40px;
  height: 36px;
  border-radius: var(--ev-radius);
}

.nav-item.active {
  color: var(--ev-green-dark);
  background: rgba(238, 250, 244, 0.92);
  box-shadow: 0 8px 18px rgba(16, 198, 111, 0.12);
}

.nav-item.active .nav-icon {
  color: var(--ev-green-dark);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

@media (max-width: 576px) {
  body {
    background: #f1f5f9;
  }

  .mobile-shell {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 18px 46px rgba(4, 8, 6, 0.08);
  }

  .app-main {
    padding: 20px 20px 96px;
  }
}

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