:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5eef8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #0f172a;
  --navy-2: #13233c;
  --navy-3: #1b2c48;
  --ink: #102033;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.24);
  --paper: #f8fafc;
  --paper-2: #eef6f9;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --amber: #fbbf24;
  --danger: #fb7185;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(2, 8, 23, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--navy);
  color: #e5eef8;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--logo-size) * 0.14);
  max-width: 100%;
  min-width: 0;
  background: transparent;
  line-height: 1;
}

.logo--icon {
  width: var(--logo-size);
}

.logo__icon {
  width: var(--logo-size);
  height: var(--logo-size);
  flex: 0 0 auto;
  background: transparent;
  object-fit: contain;
}

.logo__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.logo__title {
  display: block;
  color: #f8fafc;
  font-size: calc(var(--logo-size) * 0.7);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo__tagline {
  display: block;
  margin-top: calc(var(--logo-size) * 0.08);
  color: rgba(248, 250, 252, 0.82);
  font-size: calc(var(--logo-size) * 0.14);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-brand {
  margin-bottom: 1rem;
}

.button,
.icon-button,
.text-button,
.nav-tab {
  min-height: 44px;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button--large {
  min-height: 50px;
  padding-inline: 1.1rem;
}

.button--primary {
  background: #22c55e;
  color: #052e16;
}

.button--secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
}

.button--ghost {
  border: 1px solid rgba(226, 232, 240, 0.36);
  background: rgba(15, 23, 42, 0.48);
  color: #f8fafc;
}

.button--google {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #102033;
}

.button--danger {
  border: 1px solid rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
}

.text-button {
  width: 100%;
  background: transparent;
  color: var(--cyan);
  font-weight: 800;
}

.text-button--muted {
  color: #94a3b8;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.icon-button--compact {
  width: 36px;
  height: 36px;
  min-height: 36px;
}

.icon-button--danger {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.center-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.landing-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

.landing-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  backdrop-filter: blur(14px);
}

.brand-link,
.brand-button {
  display: inline-flex;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.landing-nav__actions > a:not(.button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.34);
}

.language-toggle__button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 900;
}

.language-toggle__button--active {
  background: #22c55e;
  color: #052e16;
}

.language-toggle--compact .language-toggle__button {
  min-height: 30px;
  padding-inline: 0.5rem;
  font-size: 0.78rem;
}

.hero-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  padding: 4.4rem max(1rem, calc((100vw - 1120px) / 2)) 5rem;
  background:
    radial-gradient(circle at 18% 25%, rgba(34, 211, 238, 0.14), transparent 34%),
    radial-gradient(circle at 82% 15%, rgba(16, 185, 129, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(7, 26, 58, 0.94), rgba(10, 21, 48, 0.96));
  color: #f8fafc;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-content h1 {
  margin: 0.25rem 0 0;
  font-size: 4.4rem;
  line-height: 0.98;
}

.hero-content .hero-headline {
  max-width: 680px;
  margin: 1rem 0 0;
  color: #f8fafc;
  font-size: 2.7rem;
  line-height: 1.08;
}

.hero-subtitle {
  max-width: 560px;
  margin: 1.1rem 0 0;
  color: #d9f8ff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-copy {
  max-width: 590px;
  margin: 1rem 0 0;
  color: #b6c7d6;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-login-note {
  margin: 0.9rem 0 0;
  color: #b6c7d6;
  font-weight: 700;
}

.hero-login-note a {
  color: #f8fafc;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem max(1rem, calc((100vw - 1120px) / 2));
  pointer-events: none;
}

.hero-scene__panel {
  width: min(420px, 42vw);
  padding: 1.25rem;
  border: 1px solid rgba(148, 210, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(11, 31, 68, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.scene-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 0.8rem;
  font-weight: 800;
}

.scene-balance {
  margin-top: 1rem;
  color: #f8fafc;
  font-size: 2.3rem;
  font-weight: 900;
  white-space: nowrap;
}

.scene-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: 150px;
  gap: 0.7rem;
  margin: 1.3rem 0;
}

.scene-bars span {
  border-radius: var(--radius) var(--radius) 0 0;
  background: #34d399;
}

.scene-bars span:nth-child(2n) {
  background: #22d3ee;
}

.scene-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.scene-row strong {
  color: #f8fafc;
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.content-section {
  padding: 4.5rem max(1rem, calc((100vw - 1120px) / 2));
  background: var(--paper);
}

.content-section--surface {
  background: var(--paper-2);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.section-heading h1 {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.08;
}

.section-copy {
  max-width: 780px;
  margin: 1rem 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.feature-grid,
.plans-grid,
.summary-grid,
.account-grid,
.privacy-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.plan-card,
.summary-card,
.settings-card,
.custom-tab-card,
.paywall-panel,
.budget-form,
.custom-tab-form,
.safety-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.feature-card {
  padding: 1.2rem;
}

.feature-card svg,
.settings-card svg,
.safety-panel svg {
  color: #0891b2;
}

.feature-card h3,
.plan-card h3,
.settings-card h2,
.custom-tab-card h3,
.custom-tab-form h2,
.paywall-panel h2 {
  margin: 0.85rem 0 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.feature-card p,
.plan-card p,
.settings-card p,
.custom-tab-card p,
.paywall-panel p,
.safety-panel p {
  margin: 0.55rem 0 0;
  color: #475569;
  line-height: 1.6;
}

.plan-card {
  display: grid;
  gap: 1.1rem;
  align-content: space-between;
  padding: 1.35rem;
}

.plan-card--highlight {
  border-color: rgba(34, 211, 238, 0.36);
  background: #f0fdfa;
}

.plan-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
}

.plan-price {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.plan-note {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.plans-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.1), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8ff 45%, #f8fbff 100%);
  color: #0f172a;
}

.plans-page::before {
  display: none;
}

.plans-page > * {
  position: relative;
  z-index: 1;
}

.plans-nav {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.plans-nav__spacer {
  min-width: 0;
}

.plan-selection {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 6vw, 5.25rem);
}

.plan-selection__hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.plan-selection__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #0891b2;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.plan-selection__hero h1 {
  max-width: 720px;
  margin: 0.55rem auto 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.plan-selection__hero p:not(.eyebrow) {
  max-width: 670px;
  margin: 0.8rem auto 0;
  color: #475569;
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 1.55;
}

.plan-selection__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
  margin-top: clamp(2rem, 4.5vw, 3.3rem);
}

.plan-selection-card {
  display: grid;
  gap: 1.25rem;
  align-content: space-between;
  min-height: 100%;
  padding: clamp(1.2rem, 2.2vw, 1.65rem);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(8, 22, 43, 0.96), rgba(4, 15, 32, 0.95));
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-selection-card--featured {
  border-color: rgba(45, 212, 191, 0.5);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(10, 40, 70, 0.98), rgba(4, 18, 38, 0.96));
  box-shadow: 0 30px 80px rgba(16, 185, 129, 0.16), 0 24px 70px rgba(15, 23, 42, 0.16);
}

.plan-selection-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  font-size: 0.75rem;
  font-weight: 900;
}

.plan-selection-card h2 {
  margin: 0.75rem 0 0;
  color: #f8fafc;
  font-size: 1.35rem;
}

.plan-selection-card strong {
  display: block;
  margin-top: 0.65rem;
  color: #f8fafc;
  font-size: 2rem;
  line-height: 1;
}

.plan-selection-card p {
  margin: 0.8rem 0 0;
  color: #b6c7d6;
  line-height: 1.6;
}

.plan-selection-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-selection-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #e5eef8;
  line-height: 1.45;
}

.plan-selection-card li svg {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  color: var(--emerald);
}

.plan-selection-card .button {
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
}

.plans-page .button--primary {
  background: linear-gradient(135deg, #2dd4bf, #10b981);
  color: #02131f;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.22);
}

.plans-page .button--secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(8, 20, 42, 0.58);
  color: #f8fafc;
}

.plan-selection__note {
  max-width: 780px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: center;
}

.plans-footer {
  margin-top: 0;
}

.legal-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.1), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8ff 45%, #f8fbff 100%);
  color: #0f172a;
}

.legal-nav {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.legal-nav__spacer {
  min-width: 0;
}

.legal-shell {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.legal-article {
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.legal-article__eyebrow {
  margin: 0 0 0.65rem;
  color: #0891b2;
}

.legal-article h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.legal-article__intro {
  max-width: 780px;
  margin: 1rem 0 0;
  color: #475569;
  font-size: 1.06rem;
  line-height: 1.75;
}

.legal-article__sections {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.legal-section {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-section--notice {
  border-color: rgba(16, 185, 129, 0.24);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.09), transparent 38%),
    rgba(255, 255, 255, 0.78);
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  color: #0f172a;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  color: #475569;
  line-height: 1.75;
}

.legal-section p {
  margin: 0.65rem 0 0;
}

.legal-section ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.legal-article__updated {
  margin: 1.5rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 800;
}

.legal-footer {
  margin-top: 0;
}

.safety-panel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.6rem;
  padding: 1.25rem;
}

.steps-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.steps-list svg {
  color: #16a34a;
  flex: 0 0 auto;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(1rem, calc((100vw - 1120px) / 2));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--navy);
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1rem;
  font-size: 0.9rem;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
  background: #0f172a;
}

.auth-panel {
  width: min(100%, 460px);
  padding: clamp(1.25rem, 3vw, 1.6rem);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  background: #13233c;
  box-shadow: var(--shadow);
}

.auth-panel .logo {
  margin-inline: auto;
}

.auth-heading {
  margin-top: 1.15rem;
  text-align: center;
}

.auth-heading h1 {
  margin: 0.3rem 0 0;
  font-size: 2rem;
  line-height: 1.1;
}

.auth-heading p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: #b6c7d6;
  line-height: 1.55;
}

.auth-plan-toggle {
  margin-top: 0.35rem;
}

.auth-plan-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  color: #b6c7d6;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-plan-note strong {
  display: block;
  color: #f8fafc;
  font-size: 0.94rem;
}

.auth-plan-note p {
  margin: 0.35rem 0 0;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.form-stack,
.budget-form,
.custom-tab-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: inherit;
  font-weight: 800;
}

label > span:first-child {
  color: #cbd5e1;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0.72rem 0.8rem;
}

textarea {
  resize: vertical;
  padding: 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.inline-autocomplete {
  position: relative;
  display: block;
  width: 100%;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(8, 20, 42, 0.62));
}

.inline-autocomplete:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.inline-autocomplete input {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.inline-autocomplete input:focus {
  border-color: transparent;
  box-shadow: none;
}

.inline-autocomplete__ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0.72rem 0.8rem;
  color: rgba(125, 211, 252, 0.34);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.inline-autocomplete__spacer {
  color: transparent;
  white-space: pre;
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon svg {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  color: #94a3b8;
  transform: translateY(-50%);
}

.input-with-icon input {
  padding-left: 2.35rem;
}

.alert,
.status-message {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  line-height: 1.5;
}

.alert--error {
  border: 1px solid rgba(251, 113, 133, 0.36);
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
}

.status-message {
  margin-top: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.1);
  color: #cffafe;
}

.demo-intro,
.demo-save-panel,
.demo-notice {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(19, 35, 60, 0.88);
  color: #dbeafe;
}

.demo-intro {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.demo-intro h1,
.demo-intro p {
  margin: 0;
}

.demo-intro h1 {
  color: #f8fafc;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
}

.demo-intro p:not(.eyebrow) {
  color: #b6c7d6;
  line-height: 1.6;
}

.demo-notice {
  margin: 0;
  padding: 0.85rem 1rem;
  color: #a5f3fc;
  font-weight: 700;
}

.demo-save-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.demo-save-panel p {
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.5;
}

.update-banner {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  max-width: min(560px, calc(100vw - 2rem));
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  color: #f8fafc;
}

.update-banner span {
  line-height: 1.45;
}

.app-layout {
  min-height: 100vh;
  overflow-x: hidden;
  background: #0f172a;
}

.app-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 0.55rem;
}

.plan-pill,
.email-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  min-width: 0;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
}

.plan-pill--lite {
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
}

.plan-pill--pro {
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.13);
  color: #bbf7d0;
}

.plan-pill--max {
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.13);
  color: #a5f3fc;
}

.email-chip {
  max-width: 240px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem max(1rem, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: #13233c;
}

.nav-group {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.nav-group__label {
  margin: 0;
  color: #22d3ee;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-group__list {
  display: flex;
  min-width: 0;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.nav-group--settings .nav-group__label {
  color: #94a3b8;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.35);
  color: #cbd5e1;
  font-weight: 850;
}

.nav-tab--active {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.14);
  color: #f8fafc;
}

.nav-tab--custom {
  border-color: rgba(34, 211, 238, 0.28);
}

.nav-tab--locked {
  border-style: dashed;
  color: #94a3b8;
}

.nav-tab--custom span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 1.4rem 1rem 3rem;
}

.app-section {
  display: grid;
  gap: 1rem;
}

.section-heading--app h1 {
  color: #f8fafc;
  font-size: 2rem;
}

.section-heading--app p:not(.eyebrow) {
  margin: 0.55rem 0 0;
  color: #b6c7d6;
  line-height: 1.55;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  background: #13233c;
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: none;
}

.summary-card span {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 800;
}

.summary-card strong {
  color: #f8fafc;
  font-size: 1.55rem;
  white-space: nowrap;
}

.summary-card__small {
  font-size: 1rem !important;
  line-height: 1.35;
  white-space: normal !important;
}

.summary-card--accent {
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(20, 83, 45, 0.26);
}

.budget-form,
.custom-tab-form {
  padding: 1rem;
  border-color: rgba(148, 163, 184, 0.2);
  background: #13233c;
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.updated-label,
.muted {
  color: #94a3b8;
  font-size: 0.92rem;
}

.paywall-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border-color: rgba(52, 211, 153, 0.26);
  background: #13233c;
  box-shadow: none;
}

.paywall-panel svg,
.custom-tab-form h2 svg {
  color: var(--emerald);
}

.paywall-panel h2,
.paywall-panel p,
.custom-tab-form h2 {
  color: #f8fafc;
}

.paywall-panel p {
  color: #b6c7d6;
}

.paywall-panel .button-row {
  grid-column: 1 / -1;
}

.custom-tab-form h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.template-flow-panel__heading,
.selected-template-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.template-flow-panel__heading h2,
.template-flow-panel__heading p,
.selected-template-summary p {
  margin: 0;
}

.template-flow-panel__heading p,
.selected-template-summary p,
.selected-template-summary small,
.template-card small {
  color: #b6c7d6;
  line-height: 1.5;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.template-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  min-height: 150px;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.28);
  color: #f8fafc;
  text-align: left;
}

.template-card:hover {
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(34, 211, 238, 0.08);
}

.template-card strong,
.selected-template-summary strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
}

.template-card small {
  display: block;
  margin-top: 0.25rem;
}

.template-card em,
.selected-template-summary small {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.template-confirm-form {
  display: grid;
  gap: 1rem;
}

.tabs-list {
  display: grid;
  gap: 0.75rem;
}

.tabs-list > p {
  color: #b6c7d6;
}

.custom-tab-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  border-color: rgba(148, 163, 184, 0.2);
  background: #13233c;
  box-shadow: none;
}

.custom-tab-card h3 {
  margin: 0;
  color: #f8fafc;
}

.custom-tab-card p {
  color: #b6c7d6;
}

.custom-tab-icon {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 900;
}

.custom-tab-icon svg {
  display: block;
}

.custom-tab-icon--large {
  width: 58px;
  min-width: 58px;
  height: 58px;
}

.tab-icon-picker {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.16);
}

.tab-icon-picker legend {
  padding: 0 0.35rem;
  color: #f8fafc;
  font-weight: 900;
}

.tab-icon-picker p {
  margin: 0;
  color: #b6c7d6;
  line-height: 1.5;
}

.tab-icon-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
  gap: 0.55rem;
  align-items: stretch;
}

.tab-icon-option {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 0.55rem;
  min-height: 66px;
  padding: 0.55rem 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.3);
  color: #cbd5e1;
  font-weight: 850;
  text-align: left;
}

.tab-icon-option > span:last-child {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: normal;
}

.tab-icon-option .custom-tab-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
}

.tab-icon-option:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}

.tab-icon-option--selected {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.14);
  color: #f8fafc;
}

.custom-tab-workspace,
.nav-placement-note {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: #13233c;
  box-shadow: none;
}

.custom-tab-workspace {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.custom-tab-workspace h2 {
  margin: 0;
  color: #f8fafc;
}

.custom-tab-workspace p,
.nav-placement-note p {
  margin: 0.4rem 0 0;
  color: #b6c7d6;
  line-height: 1.6;
}

.custom-tab-workspace > svg {
  color: var(--cyan);
}

.nav-placement-note {
  padding: 0.85rem 1rem;
}

.tabs-order-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: #13233c;
  box-shadow: none;
}

.tabs-order-panel__heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.15rem;
}

.tabs-order-panel__heading p {
  margin: 0.45rem 0 0;
  color: #b6c7d6;
  line-height: 1.55;
}

.tabs-order-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tabs-order-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.34);
}

.tabs-order-index {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.11);
  color: #a5f3fc;
  font-weight: 900;
}

.tabs-order-title {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.tabs-order-title strong {
  overflow: hidden;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs-order-title small {
  color: #94a3b8;
  font-weight: 800;
}

.tabs-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tabs-order-edit {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.tabs-order-edit__wide {
  grid-column: 1 / -1;
}

.custom-tab-detail {
  gap: 1.1rem;
}

.custom-tab-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.custom-tab-heading > div:first-child {
  min-width: 0;
}

.custom-tab-heading__title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.custom-tab-heading__title > div {
  min-width: 0;
}

.custom-tab-heading__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.custom-tab-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(19, 35, 60, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.24);
}

.custom-tab-hero__main {
  min-width: 0;
}

.custom-tab-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  width: fit-content;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 900;
}

.custom-tab-hero h1 {
  margin: 0.65rem 0 0;
  color: #f8fafc;
  font-size: 2.05rem;
  line-height: 1.08;
}

.custom-tab-hero p {
  max-width: 720px;
  margin: 0.55rem 0 0;
  color: #b6c7d6;
  line-height: 1.6;
}

.custom-tab-hero__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.custom-empty-state {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: #13233c;
  color: #dbeafe;
}

.custom-empty-state svg {
  color: var(--cyan);
}

.custom-empty-state h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.2rem;
}

.custom-empty-state p {
  max-width: 620px;
  margin: 0;
  color: #b6c7d6;
  line-height: 1.6;
}

.custom-empty-state--compact {
  margin-top: 0.5rem;
  background: rgba(15, 23, 42, 0.24);
}

.field-editor {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.28);
}

.field-editor__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.field-editor__heading h3 {
  margin: 0;
  color: #f8fafc;
}

.field-editor__heading p {
  margin: 0.35rem 0 0;
  color: #b6c7d6;
  line-height: 1.5;
}

.field-editor-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 0.9fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.34);
}

.field-editor-row__check {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 0.55rem;
}

.field-editor-row__check input,
.entry-form-checkbox input {
  width: 18px;
  min-height: 18px;
}

.field-editor-row__options {
  grid-column: 2 / -1;
}

.entry-form-checkbox {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 0.55rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
}

.dynamic-fields-table {
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(15, 23, 42, 0.38);
}

.ledger-filters,
.ledger-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: #13233c;
  box-shadow: none;
}

.ledger-filters {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  padding: 1rem;
}

.ledger-filters > strong {
  align-self: center;
  color: #f8fafc;
}

.ledger-panel {
  overflow-x: auto;
  padding: 1rem;
}

.ledger-panel--premium {
  padding: 0;
  overflow: hidden;
}

.custom-tab-content-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: #13233c;
  box-shadow: none;
}

.custom-entry-form {
  align-content: start;
}

.custom-entry-form__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.custom-entry-form__header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.2rem;
  line-height: 1.2;
}

.custom-entry-form__header p {
  max-width: 680px;
  margin: 0.35rem 0 0;
  color: #b6c7d6;
  line-height: 1.55;
}

.custom-entry-form .form-grid {
  align-items: start;
}

.custom-entry-form .entry-form__wide {
  grid-column: 1 / -1;
}

.custom-entry-form--shopping .form-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
}

.shopping-list-board {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.08), transparent 34%),
    rgba(8, 20, 42, 0.1);
}

.shopping-list-board__summary {
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 900;
}

.shopping-list-section {
  display: grid;
  gap: 0.65rem;
}

.shopping-list-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shopping-list-section__heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
}

.shopping-list-section__heading span {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #a5f3fc;
  font-weight: 900;
}

.shopping-list-items {
  display: grid;
  gap: 0.6rem;
}

.shopping-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(19, 35, 60, 0.9), rgba(15, 23, 42, 0.72));
}

.shopping-list-item--bought {
  border-color: rgba(16, 185, 129, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.46));
}

.shopping-list-item__check {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  cursor: pointer;
}

.shopping-list-item__check input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.shopping-list-item__check span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: 9px;
  background: rgba(8, 20, 42, 0.72);
  color: #042f2e;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.shopping-list-item__check span::after {
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #042f2e;
  border-left: 2px solid #042f2e;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.shopping-list-item__check input:checked + span {
  border-color: rgba(16, 185, 129, 0.72);
  background: #34d399;
}

.shopping-list-item__check input:checked + span::after {
  opacity: 1;
}

.shopping-list-item__check:focus-within span {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.shopping-list-item__content {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.shopping-list-item__content strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-list-item--bought .shopping-list-item__content strong {
  color: #cbd5e1;
  text-decoration: line-through;
  text-decoration-color: rgba(52, 211, 153, 0.65);
}

.shopping-list-item__content small,
.shopping-list-item__meta {
  overflow: hidden;
  color: #94a3b8;
  font-weight: 800;
}

.shopping-list-item__content small {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-list-item__meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.28rem 0.45rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.shopping-list-item__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shopping-list-item__meta span:not(:last-child)::after {
  margin-left: 0.45rem;
  color: rgba(148, 163, 184, 0.6);
  content: "·";
}

.shopping-list-item__meta b {
  color: #cbd5e1;
  font-weight: 900;
}

.shopping-list-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.shopping-list-badge--pending {
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
}

.shopping-list-badge--bought {
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
}

.shopping-list-section__empty {
  margin: 0;
  padding: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.22);
}

@media (max-width: 720px) {
  .custom-entry-form--shopping .form-grid,
  .shopping-list-item {
    grid-template-columns: 1fr;
  }

  .shopping-list-item {
    align-items: start;
  }

  .shopping-list-item__check {
    justify-self: start;
  }

  .shopping-list-badge,
  .shopping-list-item__actions {
    justify-self: start;
  }
}

.budget-link-panel {
  align-content: start;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.budget-link-panel__toggle {
  flex: 0 0 auto;
  min-width: min(100%, 220px);
}

.budget-link-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  border: 0;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 36%),
    transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.budget-link-panel__summary:hover,
.budget-link-panel__summary:focus-visible {
  outline: none;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 38%),
    rgba(34, 211, 238, 0.04);
}

.budget-link-panel__summary-copy {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.budget-link-panel__summary-copy strong {
  color: #f8fafc;
  font-size: 1.08rem;
}

.budget-link-panel__summary-copy small {
  color: #b6c7d6;
  font-weight: 750;
  line-height: 1.45;
}

.budget-link-panel__summary-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.6rem;
}

.budget-link-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.budget-link-status--active {
  border-color: rgba(16, 185, 129, 0.28);
  color: #86efac;
  background: rgba(16, 185, 129, 0.12);
}

.budget-link-panel__chevron {
  color: #7dd3fc;
  transition: transform 160ms ease;
}

.budget-link-panel.is-expanded .budget-link-panel__chevron {
  transform: rotate(180deg);
}

.budget-link-panel__content {
  display: grid;
  gap: 1rem;
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.budget-link-panel__content > .budget-link-panel__toggle {
  margin-top: 1rem;
}

.budget-link-panel__hint {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.07);
  color: #bfdbfe;
  font-weight: 800;
  line-height: 1.5;
}

.custom-tab-content-panel__body {
  margin: 0;
  padding: 1rem 1.1rem;
}

.custom-tab-content-panel .custom-empty-state--compact {
  margin: 1rem;
}

.mapped-budget-panel h2,
.mapped-budget-panel h3 {
  margin: 0;
  color: #f8fafc;
}

.mapped-budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mapped-budget-grid section {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.3);
}

.mapped-budget-list {
  display: grid;
  gap: 0.55rem;
}

.mapped-budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #cbd5e1;
  padding: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(2, 6, 23, 0.2);
}

.mapped-budget-row strong {
  color: #f8fafc;
  white-space: nowrap;
}

.mapped-budget-source,
.mapped-budget-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mapped-budget-source {
  min-width: 0;
  flex-wrap: wrap;
}

.mapped-budget-source strong {
  white-space: normal;
}

.mapped-budget-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #67e8f9;
  font-size: 0.74rem;
  font-weight: 800;
}

.mapped-budget-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.button--compact {
  min-height: 2.1rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
}

.mapped-budget-empty {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.28);
}

.mapped-budget-empty h3 {
  margin: 0;
}

.mapped-budget-empty p {
  margin: 0;
  color: #b6c7d6;
}

.tabs-onboarding-panel {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
  padding: 1.1rem;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 42%),
    rgba(15, 23, 42, 0.32);
}

.tabs-onboarding-panel h2,
.tabs-onboarding-panel p {
  margin: 0;
}

.tabs-onboarding-panel h2 {
  color: #f8fafc;
  font-size: 1.15rem;
}

.tabs-onboarding-panel p {
  color: #b6c7d6;
  line-height: 1.6;
}

.tabs-onboarding-panel .button {
  justify-self: start;
}

.free-demo-limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: fit-content;
  min-width: min(100%, 260px);
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #c6d8e9;
  font-size: 0.9rem;
  font-weight: 800;
}

.free-demo-limit-row strong {
  color: #67e8f9;
  white-space: nowrap;
}

.free-demo-upgrade-panel,
.pro-max-preview-panel {
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(18, 38, 68, 0.88), rgba(12, 27, 50, 0.92));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.free-demo-upgrade-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.free-demo-upgrade-panel h3,
.free-demo-upgrade-panel p,
.pro-max-preview-panel h2,
.pro-max-preview-panel h3,
.pro-max-preview-panel p {
  margin: 0;
}

.free-demo-upgrade-panel h3,
.pro-max-preview-panel h2,
.pro-max-preview-panel h3 {
  color: #f8fafc;
}

.free-demo-upgrade-panel h3 {
  margin-top: 0.55rem;
  font-size: 1.05rem;
}

.free-demo-upgrade-panel p,
.pro-max-preview-panel p {
  margin-top: 0.45rem;
  color: #b6c7d6;
  line-height: 1.55;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  font-size: 0.74rem;
  font-weight: 900;
}

.pro-max-preview-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.pro-max-preview-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pro-max-preview-panel__header > div {
  max-width: 780px;
}

.pro-max-preview-panel__header h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.preview-tabs-block,
.preview-budget-card,
.locked-feature-card {
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 16px;
  background: rgba(8, 20, 42, 0.42);
}

.preview-tabs-block {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.preview-section-label {
  margin: 0;
  color: #67e8f9 !important;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.preview-tab-card {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 35, 68, 0.6);
}

.preview-tab-card__rows {
  display: grid;
  gap: 0.45rem;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #b6c7d6;
  font-size: 0.9rem;
}

.preview-row strong {
  color: #f8fafc;
  white-space: nowrap;
}

.preview-row--total {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #e5eef8;
  font-weight: 900;
}

.preview-budget-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
}

.preview-budget-card__totals {
  display: grid;
  gap: 0.65rem;
}

.preview-budget-card__totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.36);
  color: #b6c7d6;
}

.preview-budget-card__totals strong {
  color: #f8fafc;
  white-space: nowrap;
}

.preview-budget-card__balance {
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.1) !important;
}

.preview-budget-card__balance strong {
  color: #86efac;
}

.locked-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.locked-feature-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
}

.locked-feature-card > span {
  width: fit-content;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 900;
}

.pro-budget-controls .form-grid {
  max-width: 320px;
}

.upgrade-panel {
  max-width: 720px;
}

.ledger-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.24);
}

.ledger-panel__header div {
  display: grid;
  gap: 0.15rem;
}

.ledger-panel__header span {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-panel__header strong {
  color: #f8fafc;
  font-size: 1.35rem;
}

.ledger-panel__header p {
  margin: 0;
  color: #b6c7d6;
  font-weight: 800;
}

.ledger-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.ledger-table th,
.ledger-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  text-align: left;
  vertical-align: top;
}

.dynamic-fields-table th,
.dynamic-fields-table td {
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.dynamic-fields-table th:first-child,
.dynamic-fields-table td:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.dynamic-fields-table th {
  background: rgba(34, 211, 238, 0.08);
}

.dynamic-fields-table tbody td {
  background: rgba(15, 23, 42, 0.2);
}

.dynamic-fields-table tbody tr:nth-child(even) td {
  background: rgba(30, 41, 59, 0.2);
}

.dynamic-fields-table tbody tr:hover td {
  background: rgba(34, 211, 238, 0.08);
}

.ledger-table th {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-table tbody tr {
  transition: background 160ms ease;
}

.ledger-table tbody tr:hover {
  background: rgba(34, 211, 238, 0.06);
}

.ledger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ledger-cards {
  display: none;
}

.ledger-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.34);
}

.ledger-card--premium {
  border-color: rgba(56, 189, 248, 0.18);
  background: linear-gradient(135deg, rgba(19, 35, 60, 0.98), rgba(15, 23, 42, 0.92));
}

.ledger-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ledger-card__top div {
  display: grid;
  gap: 0.25rem;
}

.ledger-card__top b {
  color: #f8fafc;
  font-size: 1.25rem;
  white-space: nowrap;
}

.entry-drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  background: rgba(2, 8, 23, 0.68);
  backdrop-filter: blur(8px);
}

.entry-drawer {
  display: grid;
  align-content: start;
  width: min(100%, 620px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 32%),
    #13233c;
  box-shadow: 0 28px 70px rgba(2, 8, 23, 0.42);
}

.entry-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.entry-drawer__header h2 {
  margin: 0.5rem 0 0;
  color: #f8fafc;
  font-size: 1.45rem;
}

.entry-form {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.entry-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.entry-form__wide {
  grid-column: 1 / -1;
}

.entry-drawer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.ledger-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.ledger-card strong {
  color: #f8fafc;
}

.ledger-card span,
.ledger-card dt {
  color: #94a3b8;
  font-weight: 800;
}

.ledger-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.ledger-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.ledger-card dd {
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
  text-align: right;
}

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card {
  padding: 1rem;
  border-color: rgba(148, 163, 184, 0.2);
  background: #13233c;
  box-shadow: none;
}

.settings-card h2 {
  color: #f8fafc;
}

.settings-card p {
  color: #b6c7d6;
}

.account-plan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.account-plan-summary strong,
.account-plan-summary span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.34);
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 800;
}

.account-plan-summary strong {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.13);
  color: #bbf7d0;
}

.account-page {
  position: relative;
}

.account-status {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  background: rgba(8, 20, 42, 0.56);
  color: #dbeafe;
  font-weight: 800;
}

.account-status--success {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
}

.account-status--danger {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.account-card .button {
  width: fit-content;
}

.account-card__note {
  margin: 0.2rem 0 0;
}

.account-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.account-import-preview {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding: 0.8rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  background: rgba(8, 20, 42, 0.34);
}

.account-import-preview h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 0.98rem;
}

.account-card--accent {
  border-color: rgba(45, 212, 191, 0.22);
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.1), transparent 42%),
    #13233c;
}

.account-card--danger {
  border-color: rgba(251, 113, 133, 0.24);
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.1), transparent 42%),
    #13233c;
}

.account-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.account-link-row a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  background: rgba(8, 20, 42, 0.45);
  color: #67e8f9;
  font-weight: 900;
  text-decoration: none;
}

.account-link-row a:hover,
.account-link-row a:focus-visible {
  border-color: rgba(45, 212, 191, 0.42);
  color: #ecfeff;
  outline: none;
}

.account-modal-backdrop {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(10px);
}

.account-modal {
  display: grid;
  width: min(100%, 560px);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 35, 65, 0.98), rgba(8, 22, 43, 0.98));
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.account-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid rgba(251, 113, 133, 0.16);
}

.account-modal__header h2 {
  margin: 0.2rem 0 0;
  color: #f8fafc;
  font-size: 1.3rem;
}

.account-modal__close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: 999px;
  background: rgba(8, 20, 42, 0.62);
  color: #fecdd3;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.account-modal__close:hover,
.account-modal__close:focus-visible {
  border-color: rgba(251, 113, 133, 0.45);
  color: #fff1f2;
  outline: none;
}

.account-modal__body {
  display: grid;
  gap: 1rem;
  overflow: auto;
  padding: 1rem 1.2rem 1.2rem;
}

.account-modal__body p {
  margin: 0;
  color: #cbd5e1;
}

.account-confirm-field {
  display: grid;
  gap: 0.35rem;
}

.account-confirm-field span {
  color: #f8fafc;
  font-weight: 900;
}

.account-confirm-field input {
  min-height: 44px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  background: rgba(8, 20, 42, 0.66);
  color: #f8fafc;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 800;
}

.account-confirm-field input:focus {
  border-color: rgba(45, 212, 191, 0.48);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.account-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.settings-card--wide {
  grid-column: 1 / -1;
}

.details-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.details-list dt {
  color: #94a3b8;
  font-weight: 800;
}

.details-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-weight: 800;
  text-align: right;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.42);
}

.segmented-control button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 900;
}

.segmented-control button.active {
  background: #22c55e;
  color: #052e16;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.privacy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
  .landing-nav {
    align-items: flex-start;
  }

  .landing-nav__actions {
    gap: 0.5rem;
  }

  .landing-nav__actions .button {
    padding-inline: 0.75rem;
  }

  .hero-section {
    min-height: auto;
    padding-block: 3rem 3.5rem;
  }

  .hero-brand {
    --logo-size: 130px !important;
  }

  .hero-content h1 {
    font-size: 3.15rem;
  }

  .hero-content .hero-headline {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-scene {
    align-items: end;
    justify-content: center;
    opacity: 0.34;
  }

  .hero-scene__panel {
    width: min(100%, 390px);
  }

  .feature-grid,
  .plans-grid,
  .plan-selection__grid,
  .summary-grid,
  .account-grid,
  .privacy-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mapped-budget-grid {
    grid-template-columns: 1fr;
  }

  .mapped-budget-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mapped-budget-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-section {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 2rem 1rem 2.6rem;
  }

  .hero-section::before {
    mask-image: none;
  }

  .hero-content {
    order: 1;
    max-width: none;
  }

  .hero-brand,
  .hero-content > .eyebrow {
    display: none;
  }

  .hero-content .hero-headline {
    max-width: 22rem;
    margin: 0;
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.05;
  }

  .hero-copy {
    max-width: 33rem;
    margin-top: 0.9rem;
    color: #d5e4f2;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.15rem;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .hero-login-note {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-scene {
    position: relative;
    inset: auto;
    order: 2;
    display: block;
    padding: 0;
    opacity: 1;
  }

  .hero-scene__panel {
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
    padding: 1rem;
    border-color: rgba(148, 210, 255, 0.18);
    background: rgba(11, 31, 68, 0.72);
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.22);
  }

  .scene-balance {
    margin-top: 0.75rem;
    font-size: 1.75rem;
  }

  .scene-bars {
    height: 92px;
    gap: 0.5rem;
    margin: 0.9rem 0;
  }

  .scene-row {
    padding-block: 0.55rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .hero-section::before {
    opacity: 0.72;
  }

  .landing-nav {
    position: sticky;
    align-items: center;
    flex-direction: row;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
  }

  .landing-nav__actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .landing-nav__actions .button {
    min-height: 34px;
    padding: 0.45rem 0.62rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .landing-nav .language-toggle {
    gap: 0.15rem;
    padding: 0.15rem;
  }

  .landing-nav .language-toggle__button {
    min-height: 28px;
    padding-inline: 0.42rem;
    font-size: 0.74rem;
  }

  .landing-nav .brand-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .landing-nav .logo,
  .app-topbar .logo {
    --logo-size: 32px !important;
  }

  .auth-panel .logo {
    --logo-size: 82px !important;
  }

  .content-section {
    padding-block: 3.2rem;
  }

  .section-heading h2,
  .section-heading h1 {
    font-size: 1.75rem;
  }

  .hero-actions,
  .hero-actions .button,
  .button-row,
  .button-row .button,
  .placeholder-actions,
  .placeholder-actions .button {
    width: 100%;
  }

  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-meta {
    width: 100%;
  }

  .email-chip {
    flex: 1;
    max-width: none;
  }

  .summary-card strong {
    font-size: 1.25rem;
  }

  .update-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    align-items: stretch;
    flex-direction: column;
  }

  .paywall-panel {
    grid-template-columns: 1fr;
  }

  .custom-tab-workspace {
    grid-template-columns: 1fr;
  }

  .custom-tab-hero {
    display: grid;
  }

  .custom-tab-heading {
    display: grid;
  }

  .custom-tab-heading__actions,
  .custom-tab-heading__actions .button,
  .custom-tab-hero__actions,
  .custom-tab-hero__actions .button {
    width: 100%;
  }

  .tabs-order-item {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .tabs-order-actions {
    grid-column: 1 / -1;
    gap: 0.35rem;
  }

  .tabs-order-edit {
    grid-template-columns: 1fr;
  }

  .tabs-order-edit__wide {
    grid-column: auto;
  }

  .field-editor__heading,
  .field-editor-row {
    grid-template-columns: 1fr;
  }

  .field-editor__heading {
    display: grid;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .template-flow-panel__heading,
  .selected-template-summary {
    display: grid;
  }

  .field-editor-row__options {
    grid-column: auto;
  }

  .ledger-filters {
    grid-template-columns: 1fr;
  }

  .ledger-table {
    display: none;
  }

  .ledger-panel {
    overflow-x: visible;
  }

  .ledger-cards {
    display: grid;
    gap: 0.75rem;
  }

  .entry-drawer-backdrop {
    padding: 0.75rem;
  }

  .entry-drawer {
    width: 100%;
    max-height: calc(100vh - 1.5rem);
  }

  .entry-form__grid {
    grid-template-columns: 1fr;
  }

  .entry-form__wide {
    grid-column: auto;
  }

  .entry-drawer__actions {
    display: grid;
  }

  .details-list div {
    display: grid;
  }

  .details-list dd {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .landing-nav {
    padding-inline: 0.55rem;
  }

  .landing-nav__actions {
    gap: 0.3rem;
  }

  .landing-nav__actions .button {
    padding-inline: 0.5rem;
    font-size: 0.78rem;
  }

  .landing-nav .language-toggle__button {
    padding-inline: 0.35rem;
    font-size: 0.7rem;
  }

  .landing-nav .logo {
    --logo-size: 30px !important;
  }

  .hero-brand {
    --logo-size: 76px !important;
  }
}

/* Tamevio dark fintech alignment pass */
.auth-page {
  position: relative;
  overflow: hidden;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.1), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8ff 45%, #f8fbff 100%);
}

.auth-page::before {
  display: none;
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 398px);
  padding: clamp(1.05rem, 2.4vw, 1.45rem);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(8, 22, 43, 0.97), rgba(4, 15, 32, 0.95));
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16), 0 0 42px rgba(45, 212, 191, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.auth-heading {
  margin-top: 0.85rem;
}

.auth-heading h1 {
  color: #f8fafc;
  font-size: clamp(1.32rem, 2.5vw, 1.6rem);
  letter-spacing: 0;
}

.auth-heading p:not(.eyebrow) {
  margin-top: 0.55rem;
  color: #b6c7d6;
  font-size: 0.9rem;
}

.auth-panel .button,
.auth-panel input {
  border-radius: 12px;
}

.auth-panel .button {
  min-height: 44px;
}

.button--google {
  gap: 0.7rem;
  justify-content: center;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: #122033;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.16);
}

.button--google:hover {
  background: #ffffff;
}

.google-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.input-with-icon input {
  min-height: 44px;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(5, 14, 31, 0.72);
}

.auth-panel label > span:first-child {
  color: #dbeafe;
}

.auth-panel .divider {
  margin: 0.78rem 0;
  color: #8ea7bd;
}

.auth-panel .divider::before,
.auth-panel .divider::after {
  background: rgba(148, 163, 184, 0.18);
}

.auth-panel .text-button {
  min-height: 32px;
  color: #67e8f9;
}

.auth-panel .text-button--muted {
  color: #9fb4c8;
}

.auth-panel .form-stack {
  gap: 0.78rem;
}

.auth-panel label {
  gap: 0.34rem;
}

.auth-panel label > span:first-child {
  font-size: 0.86rem;
}

.auth-plan-note {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.84rem;
}

.auth-plan-note strong {
  font-size: 0.88rem;
}

.auth-plan-note p {
  margin-top: 0.25rem;
}

.app-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(180deg, #06162f 0%, #071a34 44%, #050b18 100%);
}

.app-layout::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
}

.app-nav,
.app-topbar,
.app-main {
  position: relative;
  z-index: 1;
}

.app-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  align-self: start;
  grid-row: 1 / span 2;
  grid-column: 1;
  display: flex;
  width: 260px;
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.1rem;
  border-right: 1px solid rgba(125, 211, 252, 0.16);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(12, 27, 52, 0.96), rgba(7, 18, 37, 0.96)),
    rgba(15, 23, 42, 0.96);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.24);
  overscroll-behavior: contain;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0.35rem 0.25rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.app-sidebar-brand .logo {
  --logo-size: 36px !important;
}

.nav-group {
  gap: 0.65rem;
}

.nav-group__label {
  color: rgba(34, 211, 238, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.nav-group__list {
  display: grid;
  gap: 0.4rem;
  overflow: visible;
  padding-bottom: 0;
}

.nav-tab {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  border-color: transparent;
  border-radius: 14px;
  background: transparent;
  color: #9fb4c8;
}

.nav-tab:hover {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.06);
  color: #e8f2ff;
}

.nav-tab--active {
  border-color: rgba(34, 211, 238, 0.34);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(16, 185, 129, 0.08)),
    rgba(15, 23, 42, 0.52);
  color: #f8fafc;
  box-shadow: inset 3px 0 0 #22d3ee, 0 10px 28px rgba(0, 0, 0, 0.18);
}

.nav-group--settings {
  margin-top: auto;
}

.nav-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 14px;
  padding: 0.62rem 0.72rem;
  background: rgba(15, 23, 42, 0.32);
  color: #9fb4c8;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.nav-settings-toggle span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}

.nav-settings-toggle:hover,
.nav-settings-toggle:focus-visible,
.nav-settings-toggle--active {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.07);
  color: #e8f2ff;
  outline: none;
}

.nav-settings-toggle__chevron {
  flex: 0 0 auto;
  color: #67e8f9;
  transition: transform 160ms ease;
}

.nav-settings-toggle[aria-expanded="true"] .nav-settings-toggle__chevron {
  transform: rotate(180deg);
}

.nav-group__list--settings {
  margin-left: 0.4rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(125, 211, 252, 0.14);
}

.app-topbar {
  position: sticky;
  top: 0;
  grid-row: 1;
  grid-column: 2;
  justify-content: flex-end;
  min-height: 72px;
  padding: 0.85rem clamp(1rem, 3vw, 1.65rem);
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(6, 16, 34, 0.72);
  backdrop-filter: blur(18px);
}

.app-topbar .brand-button {
  display: none;
}

.topbar-meta {
  gap: 0.6rem;
}

.plan-pill,
.email-chip,
.language-toggle--compact {
  border-radius: 14px;
  background: rgba(17, 34, 60, 0.7);
}

.icon-button {
  border-radius: 14px;
  background: rgba(17, 34, 60, 0.7);
}

.app-main {
  grid-row: 2;
  grid-column: 2;
  width: min(100%, 1220px);
  padding: clamp(1rem, 2.2vw, 1.65rem);
}

.section-heading--app h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid--pro {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card,
.budget-form,
.custom-tab-form,
.settings-card,
.tabs-order-panel,
.custom-tab-workspace,
.nav-placement-note,
.paywall-panel {
  border-color: rgba(125, 211, 252, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 38, 68, 0.86), rgba(13, 28, 52, 0.86)),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.summary-card {
  min-height: 116px;
  padding: 1.05rem;
}

.summary-card span {
  color: #9fb4c8;
  font-size: 0.84rem;
}

.summary-card strong {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.summary-card--accent {
  border-color: rgba(52, 211, 153, 0.28);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(18, 45, 61, 0.9), rgba(12, 31, 45, 0.9));
}

.pro-budget-controls {
  align-items: center;
  grid-template-columns: minmax(190px, 260px) 1fr;
}

.month-control {
  min-width: min(100%, 260px);
}

.month-control__field {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 220px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  background: rgba(5, 14, 31, 0.5);
  color: #f8fafc;
  overflow: visible;
}

.month-control__field::after {
  color: #67e8f9;
  content: "▾";
  font-size: 0.9rem;
}

.month-control__field strong {
  min-width: 0;
  overflow: visible;
  color: #f8fafc;
  font-size: 0.98rem;
  line-height: 1.15;
  white-space: nowrap;
}

.month-control__field input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr);
  gap: 1rem;
}

.dashboard-charts--pro {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.chart-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(18, 38, 68, 0.86), rgba(13, 28, 52, 0.86));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.chart-card__heading h2,
.chart-card__heading p {
  margin: 0;
}

.chart-card__heading h2 {
  color: #f8fafc;
  font-size: 1.05rem;
}

.chart-card__heading p {
  margin-top: 0.35rem;
  color: #9fb4c8;
  line-height: 1.5;
}

.donut-chart-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
}

.donut-chart {
  display: grid;
  width: clamp(140px, 16vw, 190px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0b1f44 0 48%, transparent 49%),
    conic-gradient(
      #10b981 0deg var(--income-degrees),
      #ef4444 var(--income-degrees) 360deg
    );
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.donut-chart span {
  display: inline-grid;
  width: 58%;
  height: 58%;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 14, 31, 0.88);
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 900;
}

.chart-legend {
  display: grid;
  gap: 0.75rem;
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(5, 14, 31, 0.26);
}

.chart-legend__item div {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.chart-legend__item strong {
  color: #f8fafc;
}

.chart-legend__item small {
  color: #9fb4c8;
  font-weight: 800;
}

.chart-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 999px;
}

.chart-dot--income {
  background: #10b981;
}

.chart-dot--expense {
  background: #ef4444;
}

.breakdown-chart-list {
  display: grid;
  gap: 0.85rem;
}

.breakdown-chart-row {
  display: grid;
  gap: 0.42rem;
}

.breakdown-chart-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #cbd5e1;
  font-weight: 800;
}

.breakdown-chart-row__meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-chart-row__meta strong {
  color: #f8fafc;
  white-space: nowrap;
}

.breakdown-chart-row__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.breakdown-chart-row__bar {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
}

.breakdown-chart-row__bar--income {
  background: linear-gradient(90deg, #10b981, #22d3ee);
}

.breakdown-chart-row__bar--expense {
  background: linear-gradient(90deg, #fb7185, #f97316);
}

.chart-empty-state {
  display: grid;
  min-height: 156px;
  place-items: center;
  padding: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(5, 14, 31, 0.22);
  color: #9fb4c8;
  line-height: 1.5;
  text-align: center;
}

.mapped-budget-panel {
  padding: 1.15rem;
}

.mapped-budget-grid section {
  border-color: rgba(125, 211, 252, 0.14);
  border-radius: 16px;
  background: rgba(5, 14, 31, 0.28);
}

.mapped-budget-row {
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mapped-budget-row:hover {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
}

.mapped-budget-empty,
.tabs-onboarding-panel {
  border-radius: 18px;
}

.app-main {
  width: min(100%, 1360px);
}

.pro-dashboard-shell {
  gap: 1rem;
}

.dashboard-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.dashboard-page-header .section-heading--app h1 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 3.3vw, 2.9rem);
  line-height: 0.98;
}

.dashboard-utility-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.dashboard-month-picker,
.dashboard-save-button,
.dashboard-icon-button,
.dashboard-select-pill {
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(8, 20, 42, 0.64);
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-month-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 220px;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 18px;
}

.dashboard-month-picker__trigger {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: space-between;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.dashboard-month-picker__trigger::after {
  margin-left: 0.55rem;
  color: #22d3ee;
  font-size: 0.8rem;
  content: "▾";
}

.dashboard-month-picker strong {
  color: #f8fafc;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dashboard-month-picker input {
  position: absolute;
  right: 0.5rem;
  bottom: 0.35rem;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.dashboard-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-save-button:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}

.dashboard-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 16px;
}

.dashboard-icon-button:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}

.dashboard-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-metric-card {
  position: relative;
  display: grid;
  min-height: 138px;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid rgba(125, 211, 252, 0.17);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(18, 38, 68, 0.88), rgba(10, 25, 48, 0.9));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-metric-card span {
  color: #a8bfd4;
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-metric-card strong {
  display: block;
  margin-top: 1.15rem;
  color: #f8fafc;
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1;
  white-space: nowrap;
}

.dashboard-metric-card small {
  display: block;
  margin-top: 0.7rem;
  color: #9fb4c8;
  font-weight: 800;
}

.dashboard-metric-card--income small,
.dashboard-metric-card--balance small {
  color: #34d399;
}

.dashboard-metric-card--expense small {
  color: #fb7185;
}

.dashboard-metric-card__icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #86efac !important;
  background: rgba(16, 185, 129, 0.16);
}

.dashboard-metric-card--expense .dashboard-metric-card__icon {
  color: #fb7185 !important;
  background: rgba(244, 63, 94, 0.18);
}

.dashboard-metric-card--balance .dashboard-metric-card__icon {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.18);
}

.dashboard-metric-card--tabs .dashboard-metric-card__icon {
  color: #c084fc !important;
  background: rgba(168, 85, 247, 0.18);
}

.metric-sparkline {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 112px;
  height: 34px;
  opacity: 0.95;
}

.metric-sparkline path {
  fill: none;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
}

.metric-sparkline--expense path {
  stroke: #fb7185;
}

.metric-sparkline--balance path {
  stroke: #38bdf8;
}

.metric-sparkline--tabs path {
  stroke: #c084fc;
}

.dashboard-schedule-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-schedule-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 42%),
    rgba(10, 25, 48, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-schedule-card span {
  color: #9fb4c8;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-schedule-card strong {
  color: #e0f2fe;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

.dashboard-schedule-card small {
  color: #94a3b8;
  font-weight: 800;
}

.dashboard-schedule-card--projected {
  border-color: rgba(16, 185, 129, 0.2);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 42%),
    rgba(10, 25, 48, 0.76);
}

.dashboard-analytics-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.05fr) minmax(360px, 1.1fr);
  gap: 1rem;
}

.dashboard-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 1rem;
}

.dashboard-card {
  display: grid;
  min-width: 0;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid rgba(125, 211, 252, 0.17);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(16, 34, 61, 0.9), rgba(8, 22, 43, 0.92));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-inline-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 42%),
    rgba(10, 25, 48, 0.78);
  color: #dffcff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-inline-notice__close {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(8, 20, 42, 0.56);
  color: #a7f3d0;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-inline-notice__close:hover,
.dashboard-inline-notice__close:focus-visible {
  border-color: rgba(45, 212, 191, 0.42);
  color: #ecfeff;
  outline: none;
}

.ai-coach-page {
  gap: 1.15rem;
}

.ai-coach-page__header {
  align-items: flex-start;
}

.ai-coach-page__main {
  display: grid;
  gap: 1rem;
  max-width: 980px;
}

.ai-coach-page__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ai-coach-page__title-row h1 {
  margin: 0;
}

.ai-coach-powered-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ai-coach-page__intro {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 18px;
  background: rgba(8, 20, 42, 0.4);
}

.ai-coach-page__intro h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
}

.ai-coach-page__intro p {
  margin: 0.25rem 0 0;
  color: #a9bdd1;
  line-height: 1.5;
}

.ai-coach-card {
  display: grid;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(15, 38, 64, 0.94), rgba(8, 22, 43, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ai-coach-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.ai-coach-card__header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.04rem;
}

.ai-coach-card__header p,
.ai-coach-card__locked p,
.ai-coach-status {
  margin: 0.22rem 0 0;
  color: #a9bdd1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-coach-card__icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.1);
  color: #67e8f9;
}

.ai-coach-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ai-coach-prompt-chip {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(8, 20, 42, 0.58);
  color: #d7f5ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.ai-coach-prompt-chip:hover,
.ai-coach-prompt-chip:focus-visible {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(20, 184, 166, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.ai-coach-prompt-chip:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.ai-coach-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.ai-coach-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  background: rgba(5, 16, 32, 0.64);
  color: #f8fafc;
  font: inherit;
  padding: 0.7rem 0.85rem;
  outline: none;
}

.ai-coach-form input::placeholder {
  color: rgba(203, 213, 225, 0.58);
}

.ai-coach-form input:focus {
  border-color: rgba(45, 212, 191, 0.54);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.ai-coach-error {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(251, 113, 133, 0.24);
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecdd3;
  font-weight: 800;
}

.ai-coach-answer {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 16px;
  background: rgba(4, 15, 30, 0.5);
}

.ai-coach-answer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #99f6e4;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-coach-mode-badge {
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: #bae6fd;
}

.ai-coach-answer__body {
  max-height: min(320px, 46vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-color: rgba(45, 212, 191, 0.46) rgba(8, 20, 42, 0.38);
  scrollbar-width: thin;
}

.ai-coach-answer__body::-webkit-scrollbar {
  width: 8px;
}

.ai-coach-answer__body::-webkit-scrollbar-track {
  background: rgba(8, 20, 42, 0.38);
  border-radius: 999px;
}

.ai-coach-answer__body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 20, 42, 0.38);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.46);
}

.ai-coach-answer__body p {
  margin: 0;
  color: #eef8ff;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ai-coach-answer small {
  color: #94a3b8;
  line-height: 1.5;
}

.ai-coach-card__locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 16px;
  background: rgba(5, 16, 32, 0.48);
}

.dashboard-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.dashboard-card__header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.03rem;
}

.dashboard-select-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  color: #e5eef8;
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-link-button {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(125, 211, 252, 0.17);
  border-radius: 12px;
  background: rgba(8, 20, 42, 0.42);
  color: #a8bfd4;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.dashboard-link-button:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}

.dashboard-link-button--center {
  justify-self: center;
}

.dashboard-link-button--inline {
  border: 0;
  background: transparent;
  padding-inline: 0;
}

.dashboard-link-button--static {
  cursor: default;
}

.income-expense-visual,
.category-chart-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.dashboard-donut {
  display: grid;
  width: clamp(160px, 15vw, 220px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.dashboard-donut--income {
  background:
    radial-gradient(circle, #08162f 0 47%, transparent 48%),
    conic-gradient(#10b981 0deg var(--income-degrees), #fb7185 var(--income-degrees) 360deg);
}

.dashboard-donut span,
.dashboard-donut strong {
  grid-area: 1 / 1;
}

.dashboard-donut span {
  margin-top: -1.8rem;
  color: #9fb4c8;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-donut strong {
  margin-top: 1.2rem;
  color: #f8fafc;
  font-size: 1.15rem;
}

.dashboard-legend,
.category-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-legend__row,
.category-list__row {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.category-list__row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.dashboard-legend__row strong,
.category-list__row strong {
  display: block;
  color: #dbeafe;
}

.dashboard-legend__row small,
.category-list__row small,
.dashboard-legend__row em,
.category-list__row em {
  color: #9fb4c8;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

.trend-chart {
  display: grid;
  gap: 0.7rem;
}

.trend-chart__legend {
  display: flex;
  gap: 1rem;
  color: #9fb4c8;
  font-size: 0.84rem;
  font-weight: 800;
}

.trend-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trend-chart__plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  min-height: 210px;
  padding: 1rem 0.4rem 0;
  border-radius: 16px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 100% 42px;
}

.trend-chart__plot svg {
  position: absolute;
  inset: 0.6rem 0.45rem 2.4rem;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.trend-chart__plot polyline {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.4));
}

.trend-chart__group {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 0.55rem;
}

.trend-chart__bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.25rem;
  height: 150px;
}

.trend-chart__bar {
  width: min(18px, 38%);
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
}

.trend-chart__bar--income {
  background: linear-gradient(180deg, #34d399, #10b981);
}

.trend-chart__bar--expense {
  background: linear-gradient(180deg, #fb7185, #e11d48);
}

.trend-chart__group small {
  color: #9fb4c8;
  font-size: 0.72rem;
  text-align: center;
}

.dashboard-card--table,
.dashboard-card--recent {
  align-content: start;
}

.tabs-finance-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 16px;
}

.tabs-finance-table__head,
.tabs-finance-table__row {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(90px, 0.65fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr) 42px;
  align-items: center;
  gap: 0.8rem;
  min-width: 760px;
  padding: 0.8rem 0.9rem;
}

.tabs-finance-table__head {
  color: #9fb4c8;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(8, 20, 42, 0.4);
}

.tabs-finance-table__row {
  border-top: 1px solid rgba(125, 211, 252, 0.1);
  color: #dbeafe;
}

.tabs-finance-table__row:hover {
  background: rgba(34, 211, 238, 0.055);
}

.tabs-finance-table__tab {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}

.tabs-finance-table__icon,
.recent-movement-row__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.tabs-finance-table__tab strong,
.recent-movement-row strong {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs-finance-table__tab small,
.recent-movement-row small {
  display: block;
  margin-top: 0.2rem;
  color: #9fb4c8;
  font-weight: 700;
}

.amount-positive {
  color: #34d399 !important;
}

.amount-negative {
  color: #fb7185 !important;
}

.recent-movement-list {
  display: grid;
}

.recent-movement-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(125, 211, 252, 0.1);
}

.recent-movement-list .recent-movement-row:first-child {
  border-top: 0;
}

.recent-movement-row__icon--income {
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}

.recent-movement-row__amount {
  text-align: right;
}

.recent-movement-row--scheduled {
  border-color: rgba(56, 189, 248, 0.14);
}

.recent-movement-row--scheduled .recent-movement-row__icon {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.upcoming-movement-section {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(125, 211, 252, 0.14);
}

.upcoming-movement-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.upcoming-movement-section__header h3 {
  margin: 0;
  color: #e0f2fe;
  font-size: 0.95rem;
}

.upcoming-movement-section__header span,
.entry-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  font-size: 0.74rem;
  font-weight: 900;
}

.movements-modal-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 8, 23, 0.7);
  backdrop-filter: blur(10px);
}

.movements-modal {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 35, 65, 0.98), rgba(8, 22, 43, 0.98));
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.movements-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
}

.movements-modal__header h2 {
  margin: 0.2rem 0 0;
  color: #f8fafc;
  font-size: 1.3rem;
}

.movements-modal__close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(8, 20, 42, 0.62);
  color: #a7f3d0;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.movements-modal__close:hover,
.movements-modal__close:focus-visible {
  border-color: rgba(45, 212, 191, 0.42);
  color: #ecfeff;
  outline: none;
}

.movements-modal__body {
  display: grid;
  min-height: 0;
  gap: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 1.2rem 1.2rem;
  overscroll-behavior: contain;
  scrollbar-color: rgba(45, 212, 191, 0.46) rgba(8, 20, 42, 0.42);
  scrollbar-width: thin;
}

.movements-modal__body::-webkit-scrollbar {
  width: 10px;
}

.movements-modal__body::-webkit-scrollbar-track {
  background: rgba(8, 20, 42, 0.42);
  border-radius: 999px;
}

.movements-modal__body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 20, 42, 0.42);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.46);
}

.movements-modal__section {
  display: grid;
  gap: 0.35rem;
}

.movements-modal__section h3 {
  margin: 0;
  color: #e0f2fe;
  font-size: 0.95rem;
}

.recent-movement-list--modal {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 16px;
  background: rgba(8, 20, 42, 0.26);
}

.recent-movement-list--modal .recent-movement-row {
  padding-inline: 0.85rem;
}

.entry-status-badge--executed {
  border-color: rgba(16, 185, 129, 0.24);
  color: #86efac;
  background: rgba(16, 185, 129, 0.12);
}

.entry-field-helper {
  display: block;
  margin-top: 0.35rem;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.chart-empty-state--compact {
  min-height: auto;
  padding: 0.75rem;
  font-size: 0.86rem;
}

.dashboard-empty-state {
  align-content: start;
}

@media (max-width: 980px) {
  .app-layout {
    display: block;
  }

  .app-layout::before {
    background-size: 44px 44px;
  }

  .app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    padding: 0.7rem 0.85rem;
  }

  .app-topbar .brand-button {
    display: inline-flex;
  }

  .app-nav {
    position: sticky;
    top: 60px;
    bottom: auto;
    left: auto;
    z-index: 12;
    display: grid;
    width: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    align-self: auto;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 211, 252, 0.14);
    overflow: visible;
  }

  .app-sidebar-brand {
    display: none;
  }

  .nav-group__list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-tab {
    width: auto;
    flex: 0 0 auto;
  }

  .nav-settings-toggle {
    width: auto;
    min-height: 40px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-group__list--settings {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .nav-group--settings {
    margin-top: 0;
  }

  .app-main {
    padding: 1rem 0.85rem 2.8rem;
  }

  .summary-grid,
  .summary-grid--pro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pro-budget-controls {
    grid-template-columns: 1fr;
  }

  .dashboard-charts,
  .dashboard-charts--pro {
    grid-template-columns: 1fr;
  }

  .dashboard-page-header {
    display: grid;
  }

  .dashboard-utility-controls {
    justify-content: flex-start;
  }

  .dashboard-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-analytics-row,
  .dashboard-bottom-row {
    grid-template-columns: 1fr;
  }

  .tabs-finance-table {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .account-card .button,
  .account-import-actions .button,
  .account-modal__actions .button,
  .account-link-row a {
    width: 100%;
    justify-content: center;
  }

  .account-modal-backdrop {
    align-items: start;
    padding: 0.75rem;
  }

  .account-modal {
    max-height: calc(100vh - 1.5rem);
    border-radius: 20px;
  }

  .account-modal__header,
  .account-modal__body {
    padding-inline: 0.9rem;
  }

  .movements-modal-backdrop {
    align-items: start;
    padding: 0.75rem;
  }

  .movements-modal {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 20px;
  }

  .movements-modal__header,
  .movements-modal__body {
    padding-inline: 0.9rem;
  }

  .movements-modal__header h2 {
    font-size: 1.1rem;
  }

  .auth-page {
    align-items: start;
    place-items: start center;
    padding: 0.75rem;
  }

  .auth-panel {
    width: min(100%, 420px);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .topbar-meta {
    width: auto;
    flex: 1;
    justify-content: flex-end;
  }

  .language-toggle--compact,
  .email-chip {
    display: none;
  }

  .summary-grid,
  .summary-grid--pro {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 96px;
  }

  .mapped-budget-grid {
    grid-template-columns: 1fr;
  }

  .month-control__field {
    min-width: 0;
  }

  .donut-chart-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chart-legend {
    width: 100%;
  }

  .dashboard-summary-row {
    grid-template-columns: 1fr;
  }

  .dashboard-schedule-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-utility-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-month-picker {
    flex: 1 1 100%;
  }

  .dashboard-save-button {
    flex: 1 1 auto;
  }

  .ai-coach-form,
  .ai-coach-card__locked {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ai-coach-card__locked {
    flex-direction: column;
  }

  .ai-coach-form .button,
  .ai-coach-card__locked .button {
    width: 100%;
    justify-content: center;
  }

  .budget-link-panel__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .budget-link-panel__summary-actions {
    justify-content: space-between;
    width: 100%;
  }

  .income-expense-visual,
  .category-chart-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dashboard-legend,
  .category-list {
    width: 100%;
  }

  .trend-chart__plot {
    gap: 0.35rem;
    min-height: 180px;
  }

  .trend-chart__bars {
    height: 120px;
  }

  .free-demo-upgrade-panel,
  .pro-max-preview-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .free-demo-upgrade-panel .button,
  .pro-max-preview-panel__header .button {
    width: 100%;
  }

  .preview-layout,
  .preview-tabs-grid,
  .locked-feature-grid {
    grid-template-columns: 1fr;
  }

  .preview-tabs-block,
  .preview-budget-card,
  .locked-feature-card {
    min-width: 0;
  }

  .free-demo-limit-row {
    width: 100%;
  }
}

/* Strict landing page recreation pass */
.landing-page--mockup {
  --landing-bg: #f6fbff;
  --landing-surface: rgba(8, 22, 43, 0.78);
  --landing-surface-2: rgba(11, 29, 56, 0.9);
  --landing-border: rgba(125, 211, 252, 0.16);
  --landing-muted: #475569;
  --landing-text: #0f172a;
  --landing-emerald: #10b981;
  --landing-cyan: #22d3ee;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.1), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8ff 45%, #f8fbff 100%);
  color: var(--landing-text);
}

.landing-page--mockup::before {
  display: none;
}

.landing-page--mockup > * {
  position: relative;
  z-index: 1;
}

.landing-desktop {
  position: relative;
  z-index: 1;
}

.landing-mobile {
  display: none;
}

.landing-nav--mockup {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - 2rem, 1320px);
  margin: 0.85rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(8, 22, 43, 0.96), rgba(4, 15, 32, 0.94));
  color: #f8fafc;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.landing-nav--mockup .logo {
  --logo-size: 38px !important;
}

.landing-nav--mockup .logo__title,
.landing-footer--mockup .logo__title {
  color: #f8fafc;
}

.landing-nav__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.3rem);
  min-width: 0;
}

.landing-nav__center a {
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.landing-nav__center a:hover {
  color: var(--landing-cyan);
}

.landing-nav--mockup .landing-nav__actions {
  gap: 0.65rem;
}

.landing-nav--mockup .button {
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
}

.landing-nav--mockup .button--secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(8, 20, 42, 0.58);
  color: #f8fafc;
}

.landing-nav--mockup .language-toggle {
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(8, 20, 42, 0.62);
}

.landing-nav--mockup .language-toggle__button {
  color: #dbeafe;
}

.landing-nav--mockup .language-toggle__button--active {
  background: linear-gradient(135deg, #2dd4bf, #10b981);
  color: #02131f;
}

.landing-nav--mockup .button--primary,
.landing-page--mockup .button--primary {
  background: linear-gradient(135deg, #2dd4bf, #10b981);
  color: #02131f;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.22);
}

.landing-page--mockup .button--secondary {
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: #0f172a;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(600px, 1.18fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.8rem);
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  min-height: 690px;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 3.7rem;
}

.landing-hero__copy {
  max-width: 560px;
}

.landing-hero__copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.85rem, 5vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.landing-hero__copy h1 span {
  display: inline;
  color: var(--landing-emerald);
}

.landing-hero__copy p {
  max-width: 520px;
  margin: 1.6rem 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.72;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.landing-hero__actions .button {
  border-radius: 12px;
  min-height: 54px;
  padding: 0.85rem 1.2rem;
}

.landing-dashboard-preview {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-width: 0;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(11, 28, 54, 0.94), rgba(4, 15, 32, 0.96));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(125, 211, 252, 0.15);
  background: rgba(3, 12, 27, 0.42);
}

.preview-sidebar .logo {
  --logo-size: 24px !important;
  margin-bottom: 0.6rem;
}

.preview-nav-item {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  color: #a8bfd4;
  font-size: 0.78rem;
  font-weight: 850;
}

.preview-nav-item--active {
  background: rgba(34, 211, 238, 0.13);
  color: #67e8f9;
}

.preview-user {
  margin-top: auto;
  padding-top: 14rem;
  color: #9fb4c8;
  font-size: 0.76rem;
  font-weight: 800;
}

.preview-dashboard-main {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.3rem;
  min-width: 0;
}

.preview-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.preview-dashboard-top span {
  display: block;
  color: #22d3ee;
  font-size: 0.7rem;
  font-weight: 900;
}

.preview-dashboard-top strong {
  display: block;
  margin-top: 0.35rem;
  color: #f8fafc;
  font-size: 1.3rem;
}

.preview-month-pill {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(8, 20, 42, 0.56);
  color: #dbeafe !important;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.preview-metrics article,
.preview-chart-card,
.preview-bottom > div,
.overview-chart-card,
.overview-table-card,
.landing-feature-card,
.landing-price-card,
.landing-final-cta {
  border: 1px solid var(--landing-border);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.06), transparent 32%),
    var(--landing-surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preview-metrics article {
  min-height: 94px;
  padding: 0.8rem;
  border-radius: 12px;
}

.preview-metrics span,
.preview-bottom span,
.preview-chart-card h3 {
  color: #a8bfd4;
  font-size: 0.75rem;
  font-weight: 800;
}

.preview-metrics strong {
  display: block;
  margin-top: 0.75rem;
  color: #f8fafc;
  font-size: 1.1rem;
}

.preview-metrics small {
  display: block;
  margin-top: 0.45rem;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 900;
}

.preview-metrics small.negative {
  color: #fb7185;
}

.preview-analytics {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 0.75rem;
}

.preview-chart-card {
  display: grid;
  gap: 0.75rem;
  min-height: 175px;
  padding: 0.9rem;
  border-radius: 14px;
}

.preview-donut,
.preview-mini-donut,
.phone-donut,
.overview-donut {
  border-radius: 50%;
  background:
    radial-gradient(circle, #06162f 0 48%, transparent 49%),
    conic-gradient(#10b981 0deg 218deg, #fb7185 218deg 360deg);
}

.preview-donut {
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  margin: auto;
}

.preview-donut strong {
  color: #f8fafc;
  font-size: 0.95rem;
}

.preview-mini-donut {
  width: 116px;
  aspect-ratio: 1;
  margin: auto;
  background:
    radial-gradient(circle, #06162f 0 48%, transparent 49%),
    conic-gradient(#38bdf8 0 110deg, #fb7185 110deg 190deg, #a78bfa 190deg 270deg, #f97316 270deg 360deg);
}

.preview-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0.6rem;
  height: 126px;
  padding-top: 0.5rem;
}

.preview-bars span,
.overview-chart-card--bars i {
  height: var(--height);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #34d399, #10b981);
}

.preview-bars span:nth-child(even),
.overview-chart-card--bars i:nth-child(even) {
  background: linear-gradient(180deg, #fb7185, #e11d48);
}

.preview-bottom {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 0.75rem;
}

.preview-bottom > div {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: 14px;
}

.preview-bottom strong {
  color: #f8fafc;
  font-size: 0.9rem;
}

.landing-section {
  width: min(100% - 2rem, 1260px);
  margin: 0 auto;
  padding: clamp(3.2rem, 5vw, 5rem) 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-section__heading {
  max-width: 760px;
}

.landing-section__heading--center {
  margin-inline: auto;
  text-align: center;
}

.landing-section__heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.landing-section__heading h2 span {
  color: var(--landing-emerald);
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.landing-feature-card {
  display: grid;
  justify-items: center;
  min-height: 240px;
  padding: 2rem 1.35rem;
  border-radius: 18px;
  text-align: center;
}

.landing-feature-card__icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  box-shadow: 0 0 36px rgba(16, 185, 129, 0.18);
}

.landing-feature-card--purple .landing-feature-card__icon {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.2);
}

.landing-feature-card--cyan .landing-feature-card__icon {
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
}

.landing-feature-card--blue .landing-feature-card__icon {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.landing-feature-card h3 {
  margin: 1.25rem 0 0;
  color: #f8fafc;
  font-size: 1.15rem;
}

.landing-feature-card p {
  margin: 0.8rem 0 0;
  color: #b6c7d6;
  line-height: 1.55;
}

.landing-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.landing-steps::before {
  position: absolute;
  top: 34px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: rgba(15, 118, 110, 0.22);
  content: "";
}

.landing-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.landing-step span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.9), rgba(12, 35, 84, 0.92));
  color: #f8fafc;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.24);
}

.landing-step h3 {
  margin: 0.9rem 0 0;
  color: #0f172a;
  font-size: 1rem;
}

.landing-step p {
  max-width: 300px;
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.landing-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.landing-overview__visual {
  position: relative;
  min-height: 430px;
}

.landing-phone-preview {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
}

.phone-shell {
  width: 210px;
  min-height: 400px;
  padding: 1rem;
  border: 3px solid rgba(125, 211, 252, 0.2);
  border-radius: 34px;
  background: linear-gradient(180deg, #071a34, #040d1e);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.phone-top span,
.phone-card span {
  color: #9fb4c8;
  font-size: 0.72rem;
  font-weight: 800;
}

.phone-top strong,
.phone-card strong {
  display: block;
  margin-top: 0.25rem;
  color: #f8fafc;
}

.phone-card {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(16, 34, 61, 0.9);
}

.phone-card--expense strong {
  color: #fb7185;
}

.phone-card--balance strong {
  color: #38bdf8;
}

.phone-donut {
  width: 126px;
  aspect-ratio: 1;
  margin: 1rem auto 0;
}

.overview-dashboard-card {
  margin-left: 130px;
  padding: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 18px;
  background: rgba(7, 19, 39, 0.76);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.overview-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.overview-chart-card,
.overview-table-card {
  min-height: 150px;
  padding: 0.9rem;
  border-radius: 14px;
}

.overview-chart-card span,
.overview-table-card span {
  display: block;
  color: #a8bfd4;
  font-size: 0.78rem;
  font-weight: 900;
}

.overview-chart-card--bars div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0.45rem;
  height: 105px;
  margin-top: 0.8rem;
}

.overview-donut {
  width: 104px;
  aspect-ratio: 1;
  margin: 1rem auto 0;
  background:
    radial-gradient(circle, #06162f 0 48%, transparent 49%),
    conic-gradient(#38bdf8 0 110deg, #a78bfa 110deg 230deg, #f97316 230deg 360deg);
}

.overview-table-card p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem 0 0;
  color: #b6c7d6;
  font-size: 0.82rem;
}

.overview-table-card strong {
  color: #fb7185;
}

.overview-table-card strong.positive {
  color: #34d399;
}

.landing-overview__copy h2 {
  max-width: 520px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.06;
}

.landing-overview__copy ul {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0 2rem;
  padding: 0;
  list-style: none;
}

.landing-overview__copy li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #1f2937;
  font-weight: 800;
}

.landing-overview__copy li svg {
  color: #34d399;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.landing-price-card {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  min-height: 390px;
  padding: 1.55rem;
  border-radius: 18px;
}

.landing-price-card--pro {
  border-color: rgba(34, 211, 238, 0.3);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
    rgba(9, 30, 54, 0.86);
}

.landing-price-card__top {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.landing-price-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
}

.landing-price-card__top h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.25rem;
}

.landing-price-card__top p {
  margin: 0.35rem 0 0;
  color: #b6c7d6;
  line-height: 1.45;
}

.landing-price-card__top em {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 999px;
  color: #a7f3d0;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.landing-price-card__price {
  color: #f8fafc;
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1;
}

.landing-price-card ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-price-card li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #dbeafe;
  font-weight: 780;
}

.landing-price-card li svg {
  color: #34d399;
}

.landing-price-card--max .button {
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  color: #fff;
}

.landing-final-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2rem, 1260px);
  margin: 2rem auto 3.75rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 20px;
}

.landing-final-cta__icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), rgba(16, 185, 129, 0.12));
  color: #a7f3d0;
  box-shadow: 0 0 44px rgba(16, 185, 129, 0.22);
}

.landing-final-cta h2,
.landing-final-cta p {
  margin: 0;
}

.landing-final-cta h2 {
  color: #f8fafc;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.landing-final-cta p {
  margin-top: 0.45rem;
  color: #b6c7d6;
}

.landing-footer--mockup {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.75rem;
  width: min(100% - 2rem, 1320px);
  margin: 0 auto 1.6rem;
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(8, 22, 43, 0.96), rgba(4, 15, 32, 0.94));
  color: #a8bfd4;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-footer--mockup p {
  margin: 0.55rem 0 0;
  color: #9fb4c8;
}

.landing-footer--mockup .footer-links {
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.landing-footer--mockup .footer-links a,
.landing-footer--mockup .footer-links span {
  color: #c5d7e8;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .landing-nav__center {
    display: none;
  }

  .landing-nav--mockup {
    grid-template-columns: auto auto;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-dashboard-preview {
    min-height: 560px;
  }

  .landing-feature-grid,
  .landing-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-nav--mockup {
    width: min(100% - 1rem, 1320px);
    margin-top: 0.5rem;
    padding: 0.65rem 0.75rem;
  }

  .landing-nav--mockup .logo {
    --logo-size: 32px !important;
  }

  .landing-nav--mockup .landing-nav__actions {
    gap: 0.45rem;
  }

  .landing-nav--mockup .button {
    min-height: 36px;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
  }

  .landing-nav--mockup .language-toggle {
    padding: 0.18rem;
  }

  .landing-nav--mockup .language-toggle__button {
    min-height: 30px;
    padding-inline: 0.45rem;
    font-size: 0.74rem;
  }

  .landing-hero {
    width: min(100% - 1.2rem, 1320px);
    min-height: auto;
    padding: 2.4rem 0 2.6rem;
  }

  .landing-hero__copy h1 {
    font-size: clamp(2.15rem, 9.5vw, 3rem);
    line-height: 1.08;
  }

  .landing-hero__copy p {
    font-size: 0.98rem;
  }

  .landing-hero__actions,
  .landing-hero__actions .button {
    width: 100%;
  }

  .landing-dashboard-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-dashboard-main {
    padding: 0.9rem;
  }

  .preview-metrics,
  .preview-analytics,
  .preview-bottom,
  .landing-feature-grid,
  .landing-steps,
  .landing-pricing-grid,
  .landing-final-cta,
  .landing-footer--mockup {
    grid-template-columns: 1fr;
  }

  .preview-chart-card--wide {
    min-height: 150px;
  }

  .landing-section {
    width: min(100% - 1.2rem, 1260px);
    padding: 2.8rem 0;
  }

  .landing-steps::before {
    display: none;
  }

  .landing-overview__visual {
    min-height: auto;
  }

  .landing-phone-preview {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .overview-dashboard-card {
    margin: 1rem 0 0;
  }

  .overview-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .landing-final-cta {
    text-align: left;
  }

  .landing-final-cta .button {
    width: 100%;
  }

  .landing-footer--mockup {
    align-items: start;
  }

  .landing-footer--mockup .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .landing-nav--mockup .brand-link .logo__title {
    font-size: 1.2rem;
  }

  .landing-nav--mockup .landing-nav__actions > .button--secondary {
    display: none;
  }

  .preview-dashboard-top,
  .landing-price-card__top {
    grid-template-columns: 1fr;
  }

  .preview-month-pill {
    display: none;
  }
}

@media (max-width: 1180px) {
  .plans-page .plans-nav {
    grid-template-columns: auto auto;
  }

  .plans-page .plans-nav__spacer,
  .legal-page .legal-nav__spacer {
    display: none;
  }

  .plans-page .plans-nav .landing-nav__actions,
  .legal-page .legal-nav .landing-nav__actions {
    justify-self: end;
  }

  .legal-page .legal-nav {
    grid-template-columns: auto auto;
  }
}

@media (max-width: 760px) {
  .plans-page .plans-nav,
  .legal-page .legal-nav {
    margin-bottom: 2rem;
  }

  .plan-selection,
  .legal-shell {
    width: min(100% - 1.2rem, 1120px);
    padding-bottom: 3rem;
  }

  .plan-selection__hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .plan-selection-card {
    border-radius: 18px;
  }

  .legal-article {
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .plans-page .landing-nav--mockup .landing-nav__actions > .button--secondary {
    display: inline-flex;
  }

  .plans-page .plans-nav__login,
  .legal-page .legal-nav .landing-nav__actions > .button--secondary {
    display: none !important;
  }

  .plans-page .landing-nav--mockup .landing-nav__actions,
  .legal-page .landing-nav--mockup .landing-nav__actions {
    gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .landing-page--mockup {
    background:
      radial-gradient(circle at 18% 5%, rgba(34, 211, 238, 0.1), transparent 24%),
      radial-gradient(circle at 82% 14%, rgba(16, 185, 129, 0.08), transparent 26%),
      linear-gradient(180deg, #fbfdff 0%, #f2f8ff 46%, #f8fbff 100%);
  }

  .landing-desktop {
    display: none;
  }

  .landing-mobile {
    display: block;
    width: min(100% - 1rem, 480px);
    margin: 0 auto;
    padding: 0.55rem 0 1.15rem;
  }

  .mobile-landing__header {
    position: sticky;
    top: 0.5rem;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 18px;
    background:
      radial-gradient(circle at top left, rgba(34, 211, 238, 0.09), transparent 34%),
      linear-gradient(180deg, rgba(8, 22, 43, 0.97), rgba(4, 15, 32, 0.95));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
  }

  .mobile-landing__header .brand-link {
    min-width: 0;
  }

  .mobile-landing__header .logo {
    --logo-size: 31px !important;
  }

  .mobile-landing__header .logo__title,
  .mobile-landing__footer .logo__title {
    color: #f8fafc;
  }

  .mobile-landing__header .language-toggle {
    flex: 0 0 auto;
    padding: 0.18rem;
    border-color: rgba(125, 211, 252, 0.18);
    background: rgba(8, 20, 42, 0.62);
  }

  .mobile-landing__header .mobile-language-toggle {
    display: inline-flex !important;
    margin-left: auto;
    border-color: rgba(45, 212, 191, 0.36);
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.18);
    opacity: 1;
    visibility: visible;
  }

  .mobile-landing__header .language-toggle__button {
    min-height: 30px;
    min-width: 34px;
    padding-inline: 0.5rem;
    color: #dbeafe;
    font-size: 0.74rem;
    font-weight: 950;
  }

  .mobile-landing__header .language-toggle__button--active {
    background: linear-gradient(135deg, #2dd4bf, #10b981);
    color: #02131f;
  }

  .mobile-landing__main {
    display: grid;
    gap: 1.05rem;
    padding: 1.05rem 0 1.35rem;
  }

  .mobile-hero {
    display: grid;
    gap: 1.05rem;
  }

  .mobile-hero__copy {
    padding: 0.75rem 0.2rem 0;
    text-align: left;
  }

  .mobile-hero__eyebrow {
    display: inline-flex;
    margin: 0 0 0.65rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-hero__copy h1 {
    max-width: 13ch;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 9.6vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .mobile-hero__copy p {
    margin: 0.85rem 0 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .mobile-hero__actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.1rem;
  }

  .mobile-hero__actions .button,
  .mobile-plan-teaser .button,
  .mobile-final-cta .button {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
  }

  .mobile-login-link {
    display: inline-flex;
    margin-top: 0.85rem;
    color: #0f766e;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-preview-card,
  .mobile-feature-card,
  .mobile-how,
  .mobile-plan-teaser,
  .mobile-final-cta,
  .mobile-landing__footer {
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 22px;
    background:
      radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 32%),
      linear-gradient(180deg, rgba(8, 22, 43, 0.97), rgba(4, 15, 32, 0.95));
    color: #f8fafc;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .mobile-preview-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.05rem;
    border-radius: 24px;
  }

  .mobile-preview-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .mobile-preview-card__top span {
    color: #22d3ee;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.14em;
  }

  .mobile-preview-card__top strong {
    color: #f8fafc;
  }

  .mobile-preview-card__stats {
    display: grid;
    gap: 0.65rem;
  }

  .mobile-preview-card__stats article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.82rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 17px;
    background: rgba(15, 35, 68, 0.62);
  }

  .mobile-preview-card__stats span {
    color: #b6c7d6;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .mobile-preview-card__stats strong {
    color: #f8fafc;
    font-size: 1.05rem;
  }

  .mobile-preview-card__stats article:first-child strong {
    color: #34d399;
  }

  .mobile-preview-card__stats article:nth-child(2) strong {
    color: #fb7185;
  }

  .mobile-preview-card__stats article:nth-child(3) strong {
    color: #7dd3fc;
  }

  .mobile-preview-card__chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 0.42rem;
    min-height: 86px;
    padding: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(2, 8, 23, 0.28);
  }

  .mobile-preview-card__chart span {
    display: block;
    height: var(--height);
    min-height: 22px;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #2dd4bf, #10b981);
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.22);
  }

  .mobile-section {
    display: grid;
    gap: 0.85rem;
  }

  .mobile-card-stack {
    display: grid;
    gap: 0.75rem;
  }

  .mobile-feature-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border-radius: 20px;
  }

  .mobile-feature-card > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
  }

  .mobile-feature-card--purple > span {
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
  }

  .mobile-feature-card--cyan > span {
    background: rgba(34, 211, 238, 0.14);
    color: #22d3ee;
  }

  .mobile-feature-card--blue > span {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
  }

  .mobile-feature-card h2,
  .mobile-how h2,
  .mobile-plan-teaser h2,
  .mobile-final-cta h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.06rem;
    line-height: 1.25;
  }

  .mobile-feature-card p,
  .mobile-step p,
  .mobile-final-cta p {
    margin: 0.3rem 0 0;
    color: #b6c7d6;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .mobile-how,
  .mobile-plan-teaser,
  .mobile-final-cta {
    padding: 1.05rem;
    border-radius: 22px;
  }

  .mobile-stepper {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
  }

  .mobile-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  .mobile-step > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #2dd4bf, #10b981);
    color: #02131f;
    font-weight: 950;
  }

  .mobile-step h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 0.98rem;
  }

  .mobile-plan-list {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
  }

  .mobile-plan-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.82rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(15, 35, 68, 0.58);
  }

  .mobile-plan-list strong {
    color: #f8fafc;
  }

  .mobile-plan-list span {
    color: #b6c7d6;
    font-size: 0.86rem;
    text-align: right;
  }

  .mobile-final-cta {
    background:
      radial-gradient(circle at top left, rgba(45, 212, 191, 0.13), transparent 36%),
      linear-gradient(180deg, rgba(8, 22, 43, 0.98), rgba(4, 15, 32, 0.96));
    text-align: left;
  }

  .mobile-final-cta .button {
    margin-top: 1rem;
  }

  .mobile-landing__footer {
    display: grid;
    gap: 0.75rem;
    padding: 1.05rem;
    margin-bottom: 0.75rem;
  }

  .mobile-landing__footer p,
  .mobile-landing__footer small {
    margin: 0;
    color: #a8bfd4;
    line-height: 1.5;
  }

  .mobile-landing__footer .footer-links {
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .mobile-landing__footer .footer-links a {
    color: #c5d7e8;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
  }
}

/* Auth modal variant used by /app when the visitor is logged out. */
.auth-page.auth-page--modal {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.12), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.08), transparent 28%),
    linear-gradient(180deg, #eef6fb 0%, #e4eef7 48%, #edf4fa 100%);
}

.auth-page.auth-page--modal::before {
  display: none;
}

.auth-panel.auth-panel--modal {
  width: min(100%, 392px);
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(8, 22, 43, 0.97), rgba(4, 15, 32, 0.95));
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16), 0 0 42px rgba(45, 212, 191, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-panel.auth-panel--modal .auth-logo-clean {
  --logo-size: 46px !important;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  background: transparent;
}

.auth-panel.auth-panel--modal .auth-logo-clean .logo__icon,
.auth-panel.auth-panel--modal .auth-logo-clean .logo__text {
  background: transparent;
}

.auth-panel.auth-panel--modal .auth-heading {
  margin-top: 0.8rem;
}

.auth-panel.auth-panel--modal .auth-heading h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.14;
}

.auth-panel.auth-panel--modal .auth-heading p {
  margin-top: 0.5rem;
  color: #b6c7d6;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-panel.auth-panel--modal .auth-google-button,
.auth-panel.auth-panel--modal .button,
.auth-panel.auth-panel--modal input {
  min-height: 44px;
  border-radius: 12px;
}

.auth-panel.auth-panel--modal .auth-google-button {
  gap: 0.7rem;
  justify-content: center;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: #122033;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.16);
}

.auth-panel.auth-panel--modal .auth-form {
  gap: 0.74rem;
}

.auth-panel.auth-panel--modal .divider {
  margin: 0.72rem 0;
}

.auth-panel.auth-panel--modal .text-button {
  min-height: 32px;
}

@media (max-width: 640px) {
  .auth-page.auth-page--modal {
    align-items: start;
    place-items: start center;
    padding: 0.75rem;
  }

  .auth-panel.auth-panel--modal {
    width: min(100%, 420px);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .auth-panel.auth-panel--modal .auth-logo-clean {
    --logo-size: 42px !important;
  }
}

