﻿:root {
  --bg-shell: #f0f4ff;
  --bg-dark: #0b1120;
  --bg-dark-soft: #151d35;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --text: #111a2f;
  --text-muted: #66708a;
  --border: #dbe2f2;
  --primary: #6366f1;
  --primary-strong: #4354d6;
  --primary-soft: #e0e5ff;
  --success: #0f9f6e;
  --warning: #9a671e;
  --danger: #de4c57;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.logo {
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.005em;
}

.hidden {
  display: none !important;
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.02);
  outline: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

.btn-ghost {
  color: #374b84;
  background: #f4f7ff;
  border: 1px solid #d9e0ff;
}

.btn-pro {
  color: #f4f8fb;
  background: linear-gradient(135deg, #2a3564, #1f2850);
  box-shadow: 0 10px 22px rgba(31, 40, 80, 0.35);
}

.btn-glow {
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.34);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-with-icon .icon-inline {
  width: 17px;
  height: 17px;
  margin: 0;
  color: currentColor;
  opacity: 0.92;
}

.hero .btn-glow {
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.38);
}

.hero .btn-glow:hover,
.hero .btn-glow:focus-visible {
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.46);
}

.full {
  width: 100%;
}

.nav-link {
  border: none;
  background: transparent;
  color: #dce4ff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.public-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  color: #f6fbff;
  background:
    radial-gradient(circle at 12% -2%, rgba(130, 145, 255, 0.26), transparent 40%),
    radial-gradient(circle at 84% -4%, rgba(90, 103, 200, 0.32), transparent 36%),
    linear-gradient(180deg, #0a1024, #111a36 48%, #162246);
  padding-bottom: 40px;
}

.public-app::before,
.public-app::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.public-app::before {
  width: 560px;
  height: 560px;
  top: -210px;
  left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 139, 255, 0.32), rgba(124, 139, 255, 0));
  animation: ambientDriftA 14s ease-in-out infinite;
}

.public-app::after {
  width: 480px;
  height: 480px;
  right: -120px;
  top: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0));
  animation: ambientDriftB 16s ease-in-out infinite;
}

.public-app > * {
  position: relative;
  z-index: 1;
}

.public-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0;
  transform: translateY(-8px);
  animation: navReveal 560ms cubic-bezier(0.22, 1, 0.36, 1) 40ms forwards;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.logo span {
  color: #9ca7ff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 62px 24px 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #dde5ff;
  border: 1px solid rgba(221, 229, 255, 0.32);
  background: rgba(221, 229, 255, 0.1);
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8f9eff;
}

.hero h1 {
  margin: 24px 0 12px;
  line-height: 1.08;
  font-size: clamp(34px, 6vw, 58px);
}

.hero h1 span {
  color: #c8d1ff;
}

.hero p {
  margin: 0 auto 28px;
  max-width: 700px;
  color: #b2bddf;
  font-size: 17px;
  line-height: 1.62;
}

.hero-subtitle-mobile {
  display: none;
}

.hero .chip,
.hero h1,
.hero p,
.hero .btn-glow,
.trust-card,
.quick-calc,
.landing-animate {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: saturate(0.92);
  animation: introReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.hero .chip {
  animation-delay: 90ms;
}

.hero h1 {
  animation-delay: 170ms;
}

.hero p {
  animation-delay: 260ms;
}

.hero .btn-glow {
  animation-delay: 360ms;
}

.trust-card:nth-child(1) {
  animation-delay: 460ms;
}

.trust-card:nth-child(2) {
  animation-delay: 540ms;
}

.trust-card:nth-child(3) {
  animation-delay: 620ms;
}

.quick-calc {
  animation-delay: 700ms;
}

.landing-delay-1 {
  animation-delay: 780ms;
}

.landing-delay-2 {
  animation-delay: 860ms;
}

.landing-delay-3 {
  animation-delay: 940ms;
}

.hero .btn-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero .btn-glow::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  opacity: 0;
  mix-blend-mode: screen;
  animation: ctaHalo 4.2s ease-in-out 1.4s infinite;
  pointer-events: none;
}

.icon-inline {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #c8d3ff;
}

.icon-inline svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-inline-lg {
  width: 20px;
  height: 20px;
  color: #d7e0ff;
}

.trust-strip {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(211, 221, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  background: linear-gradient(160deg, rgba(185, 196, 255, 0.2), rgba(117, 132, 209, 0.14));
  box-shadow: 0 12px 28px rgba(7, 12, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.trust-card-penalty {
  border-left: 3px solid #e53e3e;
}

.trust-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(170, 181, 255, 0.95), rgba(139, 92, 246, 0.8));
}

.trust-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
  color: #f4f7ff;
  line-height: 1.22;
}

.trust-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-title .icon-inline {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  padding: 2px;
  color: #d8e3ff;
  background: rgba(214, 222, 255, 0.14);
  border: 1px solid rgba(214, 222, 255, 0.25);
}

.trust-card p {
  margin: 0;
  color: #d0daf8;
  font-size: 14px;
  line-height: 1.5;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(172, 185, 255, 0.55);
  box-shadow: 0 16px 34px rgba(10, 18, 48, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-dark {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 28px 64px rgba(2, 11, 22, 0.45);
  backdrop-filter: blur(8px);
}

.calc-head {
  text-align: center;
  margin-bottom: 18px;
}

.calc-head h2 {
  margin: 0;
  font-size: 26px;
}

.calc-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calc-title .icon-inline {
  color: #dbe4ff;
}

.calc-head-meta {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-head-meta > span {
  font-size: 13px;
  color: #8f9bbc;
}

.landing-period-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(214, 222, 255, 0.3);
  background: rgba(214, 222, 255, 0.12);
}

.landing-period-switch button {
  border: none;
  background: transparent;
  color: #cdd7f8;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.landing-period-switch button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.calc-input-row {
  display: grid;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-input-row label {
  color: #d7e0ff;
  font-size: 14px;
  text-align: center;
}

.landing-income-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.step-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(214, 222, 255, 0.34);
  background: rgba(214, 222, 255, 0.12);
  color: #e6ecff;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.step-btn:hover,
.step-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(214, 222, 255, 0.2);
  outline: none;
}

.landing-income-wrap {
  display: flex;
  align-items: center;
  width: 280px;
  border-radius: 12px;
  border: 1.5px solid rgba(211, 221, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.landing-income-wrap:focus-within {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

.landing-income-wrap > span {
  color: #dbe3ff;
  font-size: 18px;
  font-weight: 700;
  padding: 0 10px 0 12px;
}

#landingIncome {
  width: 100%;
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #f8fbff;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 12px 8px 0;
}

#landingIncome:focus {
  box-shadow: none;
  border-color: transparent;
}

#landingIncome::-webkit-outer-spin-button,
#landingIncome::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#landingIncome[type="number"] {
  -moz-appearance: textfield;
}

.income-presets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.income-presets button {
  border: 1px solid rgba(214, 222, 255, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(214, 222, 255, 0.12);
  color: #d7e2ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.income-presets button.active {
  border-color: rgba(161, 173, 255, 0.72);
  background: rgba(161, 173, 255, 0.24);
  color: #ffffff;
}

.landing-summary {
  max-width: 860px;
  margin: 0 auto 12px;
}

.landing-summary-card {
  border-radius: 16px;
  border: 1px solid rgba(211, 221, 255, 0.36);
  background: linear-gradient(170deg, rgba(168, 181, 255, 0.18), rgba(81, 96, 173, 0.16));
  box-shadow: 0 16px 32px rgba(7, 12, 32, 0.26);
  padding: 14px 16px;
}

.landing-summary-main small {
  display: block;
  color: #b8c4eb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-summary-amount {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.06;
  margin-top: 5px;
  color: #f6f8ff;
}

.landing-summary-main p {
  margin: 7px 0 0;
  color: #ced8f8;
  font-size: 13px;
  line-height: 1.45;
}

.landing-summary-main strong {
  color: #ffffff;
}

.landing-summary-chips {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.landing-summary-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(211, 221, 255, 0.36);
  background: rgba(214, 222, 255, 0.12);
  color: #edf3ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 9px;
}

.landing-summary-chip.is-save {
  border-color: rgba(142, 255, 197, 0.5);
  background: rgba(62, 178, 123, 0.2);
  color: #c8ffe5;
}

.landing-practical-hint {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.landing-practical-copy {
  flex: 1 1 230px;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.landing-practical-line {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-practical-more {
  margin: 0;
}

.landing-practical-more > summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.landing-practical-more > summary::-webkit-details-marker {
  display: none;
}

.landing-practical-more[open] > summary {
  opacity: 1;
}

.landing-practical-more > p {
  margin: 4px 0 0;
  color: inherit;
  opacity: 0.95;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.landing-practical-hint.success {
  background: rgba(72, 187, 120, 0.14);
  border-color: rgba(72, 187, 120, 0.55);
  color: #bcffd7;
}

.landing-practical-hint.warning {
  background: rgba(237, 137, 54, 0.14);
  border-color: rgba(237, 137, 54, 0.55);
  color: #ffe2be;
}

.landing-practical-cta {
  border: 1px solid rgba(180, 197, 255, 0.5);
  background: linear-gradient(135deg, #6c5ce7, #8b6dff);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(60, 49, 140, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.landing-practical-hint.success .landing-practical-cta {
  border-color: rgba(154, 230, 180, 0.55);
  background: linear-gradient(135deg, #2f9f5f, #3fb772);
}

.landing-practical-hint.warning .landing-practical-cta {
  border-color: rgba(255, 213, 165, 0.55);
  background: linear-gradient(135deg, #dd6b20, #ed8936);
}

.landing-practical-cta:hover,
.landing-practical-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(60, 49, 140, 0.42);
  filter: brightness(1.04);
}

.landing-practical-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .landing-practical-copy {
    width: 100%;
  }

  .landing-practical-cta {
    width: 100%;
    text-align: center;
  }
}

.landing-signup-pulse {
  animation: landing-signup-pulse 0.9s ease;
}

@keyframes landing-signup-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(140, 102, 255, 0.36);
  }
  45% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(140, 102, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(140, 102, 255, 0);
  }
}

.landing-breakdown {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-breakdown-accordion {
  margin-top: 10px;
  border: 1px solid rgba(211, 221, 255, 0.3);
  border-radius: 12px;
  background: rgba(214, 222, 255, 0.08);
  overflow: hidden;
}

.landing-breakdown-accordion > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 34px 9px 11px;
  cursor: pointer;
  color: #dde7ff;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.landing-breakdown-accordion > summary::-webkit-details-marker {
  display: none;
}

.landing-breakdown-accordion > summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #d6e2ff;
  border-bottom: 2px solid #d6e2ff;
  transform: translateY(-62%) rotate(45deg);
  transition: transform 180ms ease;
}

.landing-breakdown-accordion[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.landing-breakdown-label {
  color: #f2f6ff;
}

.landing-breakdown-meta {
  color: #b9c8f0;
  font-size: 11px;
  font-weight: 600;
}

.landing-breakdown-accordion .landing-breakdown {
  margin-top: 0;
  padding: 0 9px 9px;
}

.landing-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(211, 221, 255, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(214, 222, 255, 0.12);
  color: #d8e3ff;
  font-size: 12px;
}

.landing-breakdown b {
  color: #ffffff;
  font-weight: 700;
}

.calc-mini-note {
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #c8d5ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.calc-mini-note span[aria-hidden="true"] {
  font-size: 14px;
  line-height: 1;
}

.regime-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.regime-card {
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.regime-card.best {
  border-color: rgba(132, 242, 185, 0.86);
  background: linear-gradient(165deg, rgba(78, 191, 143, 0.3), rgba(24, 138, 96, 0.26));
  box-shadow: 0 14px 30px rgba(18, 124, 88, 0.44), 0 0 0 1px rgba(132, 242, 185, 0.32);
}

.regime-card.best .regime-top-note {
  color: #98ffd2;
  text-shadow: 0 0 10px rgba(116, 255, 199, 0.36);
}

.regime-card.best .regime-save {
  color: #ccffe8;
}

.regime-card.unavailable {
  opacity: 0.78;
  border-color: rgba(245, 197, 207, 0.45);
  background: linear-gradient(165deg, rgba(181, 162, 190, 0.2), rgba(95, 86, 122, 0.18));
}

.regime-card.unavailable .amount {
  color: #d7cfe7;
}

.regime-card.unavailable .regime-save {
  color: #f3c5cf;
}

.regime-top-note {
  min-height: 16px;
  color: #aebbe5;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.regime-title {
  color: #ecf1ff;
  font-size: 19px;
  margin-top: 6px;
}

.regime-card .amount {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  line-height: 1.1;
  margin-top: 8px;
}

.regime-card.best .amount {
  color: #f8faff;
}

.regime-period {
  color: #bac7ec;
  font-size: 12px;
  margin-top: 2px;
}

.regime-save {
  min-height: 16px;
  color: #d6e1ff;
  font-size: 11px;
  margin-top: 6px;
}

.quick-footer {
  margin-top: 22px;
  text-align: center;
}


.landing-block {
  position: relative;
  overflow: hidden;
  width: min(1040px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(211, 221, 255, 0.22);
  background: linear-gradient(165deg, rgba(192, 205, 255, 0.12), rgba(120, 135, 215, 0.08));
  box-shadow: 0 20px 42px rgba(5, 12, 30, 0.28);
  backdrop-filter: blur(7px);
}

.landing-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(145, 160, 255, 0.92), rgba(117, 190, 255, 0.78));
}

.landing-block.how-it-works {
  background: linear-gradient(160deg, rgba(163, 147, 255, 0.14), rgba(113, 132, 218, 0.1));
}

.landing-block.how-it-works::before {
  background: linear-gradient(90deg, rgba(138, 118, 255, 0.96), rgba(173, 136, 255, 0.84));
}

.landing-block.landing-deadlines {
  background: linear-gradient(160deg, rgba(124, 165, 255, 0.14), rgba(71, 163, 207, 0.1));
}

.landing-block.landing-deadlines::before {
  background: linear-gradient(90deg, rgba(111, 171, 255, 0.95), rgba(82, 214, 203, 0.82));
}

.landing-block.landing-faq {
  background: linear-gradient(160deg, rgba(173, 188, 243, 0.11), rgba(106, 118, 168, 0.1));
}

.landing-block.landing-faq::before {
  background: linear-gradient(90deg, rgba(156, 171, 230, 0.9), rgba(189, 199, 236, 0.68));
}

.landing-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.landing-block-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.landing-block-head span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(214, 222, 255, 0.34);
  border-radius: 999px;
  background: rgba(214, 222, 255, 0.12);
  color: #dbe4ff;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.how-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(214, 222, 255, 0.3);
  background: linear-gradient(155deg, rgba(214, 222, 255, 0.12), rgba(214, 222, 255, 0.05));
  padding: 15px;
  display: grid;
  gap: 8px;
}

.how-step {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #eef3ff;
  background: linear-gradient(135deg, #6672ff, #7c4dff);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.35);
}

.how-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #f4f8ff;
}

.how-title .icon-inline {
  width: 20px;
  height: 20px;
  color: #dce5ff;
}

.how-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #c9d5f6;
}

@media (min-width: 1041px) {
  .how-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    right: -18px;
    width: 18px;
    height: 2px;
    background: rgba(173, 186, 255, 0.8);
  }

  .how-card:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 26px;
    right: -22px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(173, 186, 255, 0.85);
    border-bottom: 2px solid rgba(173, 186, 255, 0.85);
    transform: rotate(-45deg);
  }
}

.deadline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.deadline-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(214, 222, 255, 0.3);
  background:
    radial-gradient(130% 140% at 0% 0%, rgba(177, 196, 255, 0.22), rgba(177, 196, 255, 0) 54%),
    linear-gradient(165deg, rgba(46, 64, 108, 0.9), rgba(39, 56, 97, 0.94));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 196px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.deadline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(126, 169, 255, 0.95), rgba(132, 220, 255, 0.78));
  opacity: 0.88;
}

.deadline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(9, 21, 52, 0.34);
  border-color: rgba(171, 191, 255, 0.62);
}

.deadline-card.urgent {
  border-color: rgba(255, 191, 159, 0.66);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 199, 163, 0.22), rgba(255, 199, 163, 0) 54%),
    linear-gradient(165deg, rgba(78, 58, 93, 0.92), rgba(57, 62, 101, 0.94));
}

.deadline-card.urgent::before {
  background: linear-gradient(90deg, rgba(255, 168, 128, 0.95), rgba(255, 211, 149, 0.82));
}

.deadline-card.next-up {
  border-color: rgba(255, 184, 136, 0.78);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 200, 150, 0.3), rgba(255, 200, 150, 0) 58%),
    linear-gradient(165deg, rgba(95, 66, 82, 0.94), rgba(70, 72, 109, 0.94));
  box-shadow: 0 18px 34px rgba(28, 17, 8, 0.34);
}

.deadline-card.next-up::before {
  background: linear-gradient(90deg, rgba(255, 174, 120, 0.97), rgba(255, 214, 142, 0.88));
}

.deadline-card.next-up .deadline-due {
  border-color: rgba(255, 200, 145, 0.64);
  background: rgba(255, 175, 122, 0.22);
  color: #fff3e6;
}
.deadline-checklist {
  margin-top: 12px;
  border-top: 1px solid rgba(187, 202, 255, 0.24);
  padding-top: 12px;
  display: grid;
  gap: 12px;
  animation: fadeIn 200ms ease;
}

.deadline-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.deadline-checklist-col h4 {
  margin: 0 0 7px;
  font-size: 13px;
  color: #e6efff;
}

.deadline-checklist-col ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
  color: #ccd9fa;
  font-size: 13px;
  line-height: 1.45;
}

.deadline-checklist-footer {
  border: 1px solid rgba(186, 202, 255, 0.26);
  border-radius: 12px;
  background: rgba(178, 194, 255, 0.08);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.deadline-subscribe-btn {
  width: fit-content;
  min-height: 42px;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.22);
}

.deadline-subscribe-btn.subscribed {
  background: linear-gradient(135deg, #2ea58a, #20b395);
  box-shadow: 0 10px 20px rgba(35, 174, 142, 0.28);
}

.deadline-checklist-footer p {
  margin: 0;
  color: #c8d6f7;
  font-size: 12px;
  line-height: 1.45;
}

.deadline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deadline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d6e2ff;
}

.deadline-due {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(183, 207, 255, 0.36);
  background: rgba(172, 192, 255, 0.16);
  color: #e2ebff;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 9px;
}

.deadline-due.soon {
  border-color: rgba(146, 223, 218, 0.44);
  background: rgba(82, 196, 180, 0.16);
  color: #d9fff8;
}

.deadline-due.urgent {
  border-color: rgba(255, 193, 167, 0.58);
  background: rgba(244, 163, 132, 0.2);
  color: #fff0e8;
}

.deadline-due.overdue {
  border-color: rgba(255, 154, 175, 0.62);
  background: rgba(235, 92, 125, 0.24);
  color: #ffe7ee;
}

.deadline-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.32;
  color: #f2f6ff;
  letter-spacing: -0.01em;
}

.deadline-period {
  margin: -2px 0 0;
  color: #cfdbfa;
  font-size: 13px;
  font-weight: 600;
}
.deadline-regime-note {
  margin: 6px 0 0;
  color: #afc0e8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.deadline-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #c3cff0;
  font-size: 13px;
}

.deadline-regime {
  color: #d4def8;
  font-weight: 600;
}

.deadline-card-actions {
  margin-top: 2px;
  display: flex;
  align-items: center;
}

.deadline-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(191, 210, 255, 0.62);
  background: linear-gradient(135deg, rgba(166, 186, 255, 0.28), rgba(143, 165, 246, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f2f6ff;
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.deadline-open-btn-label {
  line-height: 1;
}

.deadline-open-icon {
  line-height: 1;
  font-size: 13px;
  opacity: 0.92;
  transition: transform 160ms ease;
}

.deadline-open-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(207, 222, 255, 0.9);
  background: linear-gradient(135deg, rgba(172, 195, 255, 0.38), rgba(145, 168, 248, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(9, 20, 48, 0.24);
}

.deadline-open-btn:hover .deadline-open-icon,
.deadline-open-btn:focus-visible .deadline-open-icon {
  transform: translateX(2px);
}

.deadline-open-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(140, 167, 255, 0.44);
}

.deadline-card.next-up .deadline-open-btn {
  border-color: rgba(255, 211, 171, 0.82);
  background: linear-gradient(135deg, rgba(255, 190, 137, 0.34), rgba(255, 173, 118, 0.24));
  color: #fffaf2;
}

.deadline-card.next-up .deadline-open-btn:hover {
  border-color: rgba(255, 223, 192, 0.95);
  background: linear-gradient(135deg, rgba(255, 195, 144, 0.46), rgba(255, 176, 122, 0.34));
}

.deadline-type {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.deadline-card.payment .deadline-type {
  color: #e0e9ff;
  background: rgba(128, 145, 255, 0.22);
  border-color: rgba(152, 166, 255, 0.45);
}

.deadline-card.report .deadline-type {
  color: #d7f6eb;
  background: rgba(28, 202, 154, 0.14);
  border-color: rgba(72, 223, 182, 0.32);
}

.deadline-empty {
  margin: 0;
  border-radius: 12px;
  border: 1px dashed rgba(214, 222, 255, 0.38);
  padding: 16px;
  color: #c8d4f5;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid rgba(214, 222, 255, 0.26);
  background: rgba(214, 222, 255, 0.08);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease;
}

.faq-item:hover {
  border-color: rgba(179, 195, 255, 0.46);
  background: rgba(214, 222, 255, 0.12);
}

.faq-item[open] {
  border-color: rgba(173, 188, 255, 0.58);
  background: rgba(214, 222, 255, 0.14);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 600;
  color: #ecf2ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(190, 204, 255, 0.48);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #d7e2ff;
  border-bottom: 2px solid #d7e2ff;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 15px;
  line-height: 1.58;
  color: #c8d3f4;
}

.landing-final-cta {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(214, 222, 255, 0.28);
  background: linear-gradient(155deg, rgba(157, 173, 255, 0.16), rgba(109, 127, 209, 0.12));
  box-shadow: 0 16px 30px rgba(9, 17, 44, 0.25);
  text-align: center;
  padding: 16px;
}

.landing-final-cta .btn {
  min-width: 320px;
  min-height: 52px;
  font-size: 18px;
}

.landing-final-cta p {
  margin: 10px 0 0;
  color: #d6e2ff;
  font-size: 14px;
}

.landing-proof {
  margin-top: 11px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.landing-proof span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(214, 222, 255, 0.28);
  background: rgba(214, 222, 255, 0.1);
  color: #e2ebff;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
}

.landing-proof span .icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 0;
  background: transparent;
  color: #cfe0ff;
  flex-shrink: 0;
}

.landing-proof span .icon-inline svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.landing-proof span .proof-lucide {
  width: 15px;
  height: 15px;
  min-width: 15px;
  color: #cfe0ff;
  stroke-width: 2.2;
  flex-shrink: 0;
}


.public-legal-footer {
  margin: 18px 0 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #9fb1df;
  font-size: 13px;
}

.public-legal-footer a {
  color: #c8d6ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.public-legal-footer a:hover,
.public-legal-footer a:focus-visible {
  color: #ffffff;
  border-bottom-color: currentColor;
  outline: none;
}


.dashboard-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-shell);
}

.sidebar {
  width: 242px;
  background:
    radial-gradient(circle at 18% -8%, rgba(131, 146, 255, 0.16), transparent 42%),
    var(--bg-dark-soft);
  color: #8da0c8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .logo {
  color: #f6fbff;
  font-size: 20px;
}

.sidebar-brand .logo span {
  color: #8ea6ff;
}

.sidebar-brand p {
  margin: 4px 0 0;
  font-size: 11px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
}

.sidebar-group {
  display: grid;
  gap: 4px;
}

.sidebar-group + .sidebar-group {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(214, 222, 255, 0.14);
}

.sidebar-group-title {
  margin: 0 12px 4px;
  color: #6f82ae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar button {
  text-align: left;
  border: none;
  background: transparent;
  color: #8da0c8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sidebar button.active,
.sidebar button:hover {
  color: #f4f6ff;
  background: rgba(214, 222, 255, 0.2);
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(220, 228, 255, 0.24);
  background: rgba(214, 222, 255, 0.1);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.account-box small {
  text-transform: uppercase;
  font-size: 10px;
  color: #8f9cbc;
  letter-spacing: 0.08em;
}

.account-box strong {
  color: #eff6fd;
  font-size: 13px;
}

.account-box span {
  font-size: 11px;
  color: #b7c3e2;
}

.main-area {
  flex: 1;
  overflow: auto;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header h2 {
  margin: 0;
  font-size: 24px;
}

.main-header-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.main-header-title.calendar-reminders-mode {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 0;
}

.amount-visibility-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d3def8;
  background: #f5f8ff;
  color: #4a5ca1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.amount-visibility-btn:hover,
.amount-visibility-btn:focus-visible {
  border-color: #b9c8f4;
  background: #edf3ff;
  color: #2f437f;
  outline: none;
}

.amount-visibility-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}
.calendar-reminder-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #d6dff0;
  background: #f5f8ff;
  color: #4c5f89;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  margin-right: 0;
  line-height: 1;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.calendar-reminder-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-reminder-toggle-label-icon {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
  flex-shrink: 0;
}

.calendar-reminder-switch {
  position: relative;
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #CBD5E0;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calendar-reminder-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
}

.calendar-reminder-toggle.is-on .calendar-reminder-switch {
  background: #48BB78;
}

.calendar-reminder-toggle.is-on .calendar-reminder-switch-thumb {
  transform: translateX(18px);
}

.calendar-reminder-settings-btn {
  border: 0;
  background: transparent;
  color: #9CA3AF;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.calendar-reminder-settings-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.calendar-reminder-settings-btn:hover,
.calendar-reminder-settings-btn:focus-visible {
  color: #6366F1;
  outline: none;
}

.app-toast-host {
  position: fixed;
  top: 86px;
  right: 20px;
  z-index: 1200;
  pointer-events: none;
}

.app-toast {
  max-width: min(420px, calc(100vw - 32px));
  border-radius: 12px;
  border: 1px solid #c6d8ff;
  background: #eaf1ff;
  color: #274f9d;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  box-shadow: 0 14px 28px rgba(42, 82, 170, 0.22);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.amount-sensitive {
  transition: filter 0.3s ease;
}

.dashboard-app.amounts-hidden .amount-sensitive {
  filter: blur(8px);
  user-select: none;
  -webkit-user-select: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .calendar-reminder-toggle {
  flex-shrink: 0;
}

.header-actions select {
  background: #f8faff;
}

.page-content {
  padding: 24px;
  animation: pageIn 220ms ease;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-main-grid {
  align-items: stretch;
}

.dashboard-main-grid > .card {
  height: 100%;
}

.dashboard-left-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.chart-panel-stretch {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chart-panel-stretch .chart-flex-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chart-panel-stretch .chart-flex-area > .chart-row,
.chart-panel-stretch .chart-flex-area > .dashboard-empty-state {
  flex: 1;
}

.chart-panel-stretch .chart-row {
  height: auto;
  min-height: 140px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid #dfe5f5;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-10 {
  margin-top: 10px;
}

.stat-title {
  color: #6a7693;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.stat-sub {
  color: #96a1bf;
  font-size: 12px;
}

.stat-danger {
  color: var(--danger);
}

.stat-compact {
  font-size: 22px;
}

.stat-xl {
  font-size: 34px;
}

.total-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d0dbff;
  background: #f0f4ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-box span {
  color: #4258c8;
  font-size: 13px;
  font-weight: 700;
}

.total-box strong {
  color: var(--danger);
  font-size: 22px;
  font-family: "Montserrat", sans-serif;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 11px 6px;
  border-bottom: 1px solid #e9eefc;
  font-size: 13px;
  word-break: break-word;
}

.table th {
  color: #6a7693;
  font-weight: 700;
}

.table tbody tr:hover {
  background: #f8faff;
}

.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.badge-success {
  color: var(--success);
  background: #dff7ec;
}

.badge-warning {
  color: var(--warning);
  background: #fff1dd;
}

.badge-neutral {
  color: #5f6c86;
  background: #eef2f8;
}

.top-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.calc-control-card {
  border: 1px solid #d9e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.calc-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-control-head h3 {
  margin-bottom: 0;
}

.calc-period-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d7def8;
  border-radius: 999px;
  background: #eef2ff;
  padding: 4px;
}

.calc-period-switch button {
  border: none;
  background: transparent;
  color: #55689c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.calc-period-switch button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #5f74ff, #8a64ff);
  box-shadow: 0 8px 18px rgba(95, 116, 255, 0.3);
}

.calc-input-grid {
  gap: 12px;
  align-items: start;
}

.calc-input-grid label {
  margin: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 13px;
  color: #4a5577;
  font-weight: 700;
}

.calc-input-grid input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d2dcf8;
  background: #f8faff;
  color: #1f315a;
  padding: 0 12px;
}

.calc-input-grid input:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  outline: none;
}

.calc-step-input {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
}

.calc-step-input button {
  border: 1px solid #cfd9f8;
  border-radius: 10px;
  background: #eef3ff;
  color: #44588f;
  min-height: 42px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.calc-step-input button:hover,
.calc-step-input button:focus-visible {
  background: #e7eeff;
  border-color: #bfcdf6;
  outline: none;
}

.calc-step-input input {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  border-radius: 12px;
  min-height: 44px;
}

.calc-income-presets,
.calc-expense-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-income-presets,
.calc-expense-presets {
  margin-top: 10px;
}

.calc-income-presets button,
.calc-expense-presets button {
  border: 1px solid #d2dcf8;
  border-radius: 999px;
  background: #f3f6ff;
  color: #4f6297;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.calc-income-presets button.active,
.calc-expense-presets button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #6176ff, #8c66ff);
}

.calc-summary-card {
  border: 1px solid #d9e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.calc-summary-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.calc-summary-kicker {
  margin: 0;
  color: #6778a5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-summary-main h3 {
  margin: 4px 0 4px;
}

.calc-summary-main p {
  margin: 0;
}

.calc-summary-value {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
  color: #1e2e58;
  font-weight: 800;
}

.calc-summary-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calc-summary-item {
  border: 1px solid #d8e2fb;
  border-radius: 12px;
  background: #f7faff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.calc-summary-item span {
  color: #687ca9;
  font-size: 12px;
  font-weight: 600;
}

.calc-summary-item strong {
  color: #22345d;
  font-size: 17px;
  font-family: "Montserrat", sans-serif;
}

.calc-summary-foot {
  margin: 10px 0 0;
  color: #7282ab;
  font-size: 12px;
}

.calc-practical-hint {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.calc-practical-hint.success {
  background: #f0fff4;
  border-color: #9ae6b4;
  color: #276749;
}

.calc-practical-hint.warning {
  background: #fffaf0;
  border-color: #f6d365;
  color: #975a16;
}

.calc-practical-hint.neutral {
  background: #f3f6ff;
  border-color: #d8e2fb;
  color: #4a5c87;
}

.regime-result {
  position: relative;
  border: 2px solid transparent;
}

.calc-regime-grid .regime-result {
  min-height: 100%;
}

.regime-result.best {
  border-color: #97a8ff;
  box-shadow: 0 10px 26px rgba(87, 108, 205, 0.16);
}

.regime-result.unavailable {
  border-color: #e7d6de;
  background: linear-gradient(180deg, #fffafd, #f8f4fa);
}

.regime-result.unavailable .stat-value {
  color: #8f6f82;
}
.calc-amount-neutral {
  color: #1a1a2e;
}

.regime-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-right: 88px;
}

.regime-head h3 {
  margin-bottom: 6px;
}

.regime-limit-chip {
  border-radius: 999px;
  border: 1px solid #cde6d8;
  background: #e9f9f1;
  color: #1d8058;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  white-space: nowrap;
}

.regime-limit-chip.over {
  border-color: #ebced7;
  background: #fff1f5;
  color: #b34458;
}

.regime-meta-row {
  margin: 8px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.regime-rate {
  color: #6a7ca8;
  font-size: 12px;
  font-weight: 700;
}

.regime-delta {
  color: #4f63d8;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #ccd6ff;
  background: #eef2ff;
  padding: 5px 8px;
}

.calendar-summary-card,
.calendar-filter-card,
.calendar-table-card {
  border: 1px solid #d9e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.calendar-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-summary-head h3 {
  margin-bottom: 0;
}

.calendar-summary-chip {
  border-radius: 999px;
  border: 1px solid #d3dcfb;
  background: #eef2ff;
  color: #5a6b99;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.calendar-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calendar-kpi-item {
  border: 1px solid #d8e2fb;
  border-radius: 12px;
  background: #f7faff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.calendar-kpi-item span {
  color: #6b7ca8;
  font-size: 12px;
  font-weight: 700;
}

.calendar-kpi-item strong {
  color: #21345e;
  font-size: 24px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.05;
}

.calendar-kpi-item small {
  color: #7a88ad;
  font-size: 12px;
}

.calendar-kpi-item.danger {
  border-color: #f1d3db;
  background: #fff5f8;
}

.calendar-kpi-item.danger strong {
  color: #bb3e54;
}

.calendar-filter-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-filter-group {
  display: grid;
  gap: 7px;
}

.calendar-filter-group p {
  margin: 0;
  color: #6b7ca8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-chip-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.calendar-chip-group button {
  border: 1px solid #d4defa;
  border-radius: 999px;
  background: #f2f6ff;
  color: #52659a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  cursor: pointer;
}

.calendar-chip-group button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #6276ff, #8c66ff);
}

.calendar-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.calendar-search-form label {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4a5577;
  font-weight: 700;
}

.calendar-search-form input {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d2dcf8;
  background: #f8faff;
  color: #1f315a;
  padding: 0 12px;
}

.calendar-search-form input:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  outline: none;
}

.calendar-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-table .calendar-date-cell {
  white-space: nowrap;
}

.calendar-event-title {
  color: #1f3159;
  font-weight: 700;
}

.calendar-event-sub {
  margin-top: 3px;
  color: #7686ac;
  font-size: 12px;
}
.calendar-event-note {
  color: #98a8c9;
  font-size: 11px;
  line-height: 1.35;
}


.calendar-type-chip,
.calendar-due-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
}

.calendar-type-chip.payment {
  border: 1px solid #d0dbff;
  background: #ecf1ff;
  color: #4d60a2;
}

.calendar-type-chip.report {
  border: 1px solid #cde9dc;
  background: #eaf9f2;
  color: #1d8058;
}

.calendar-due-chip.normal {
  border: 1px solid #d4defa;
  background: #f2f6ff;
  color: #55689c;
}

.calendar-due-chip.soon {
  border: 1px solid #e6d7b6;
  background: #fff4dd;
  color: #9a6a1f;
}

.calendar-due-chip.neutral {
  border: 1px solid #c9d9ff;
  background: #eaf1ff;
  color: #2f4f9b;
}

.calendar-due-chip.prereg {
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
}


.calendar-due-chip.urgent,
.calendar-due-chip.overdue {
  border: 1px solid #efc6cf;
  background: #fff0f4;
  color: #b74359;
}

.calendar-due-chip.done {
  border: 1px solid #bee5d5;
  background: #e8f8f0;
  color: #1f835c;
}

.calendar-row.done {
  opacity: 0.88;
}

.calendar-row.prereg {
  opacity: 1;
}

.calendar-row.prereg td {
  background: #ffffff;
}

.calendar-row.prereg .calendar-event-title,
.calendar-row.prereg .calendar-event-sub,
.calendar-row.prereg .calendar-event-note {
  color: #6B7280;
}

.calendar-row.overdue td {
  background: #fff9fb;
}

.calendar-mobile-list {
  display: none;
}

.calendar-mobile-row {
  border: 1px solid #d8e2fb;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.calendar-mobile-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-mobile-date {
  color: #5f719f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.calendar-mobile-title {
  color: #1f3159;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.calendar-mobile-sub {
  color: #7686ac;
  font-size: 12px;
  line-height: 1.35;
}

.calendar-mobile-note {
  color: #98a8c9;
  font-size: 11px;
  line-height: 1.35;
}

.calendar-mobile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-mobile-actions {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.calendar-mobile-action-btn {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-mobile-empty {
  text-align: center;
  border: 1px dashed #ccd8f5;
  border-radius: 12px;
  padding: 16px 12px;
  color: #6e7fa8;
  font-weight: 600;
  background: #f8fbff;
}

.calendar-mobile-row.done {
  opacity: 0.88;
}

.calendar-mobile-row.prereg .calendar-mobile-title,
.calendar-mobile-row.prereg .calendar-mobile-sub,
.calendar-mobile-row.prereg .calendar-mobile-note,
.calendar-mobile-row.prereg .calendar-mobile-date {
  color: #6b7280;
}

.calendar-actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}


.calendar-reminder-row-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #d5ddee;
  background: #f6f8fc;
  color: #8a94af;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.calendar-reminder-row-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
  pointer-events: none;
}

.calendar-reminder-row-btn:hover,
.calendar-reminder-row-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.calendar-reminder-row-btn.on {
  border-color: #8eb2ff;
  background: #e9f0ff;
  color: #284c9c;
}

.calendar-reminder-row-btn.off {
  border-color: #d7deef;
  background: #f3f6fb;
  color: #8d98b6;
}

.calendar-reminder-row-btn.is-open {
  border-color: #97adf3;
  background: #edf2ff;
  color: #2d4f9f;
}

.calendar-reminder-popover {
  position: fixed;
  z-index: 1200;
  width: 240px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  padding: 12px;
  animation: calendarReminderFadeIn 0.15s ease;
}

.calendar-reminder-popover-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-reminder-popover-text {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.calendar-reminder-popover-btn {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calendar-reminder-popover-btn:hover,
.calendar-reminder-popover-btn:focus-visible {
  color: #4338ca;
  outline: none;
}

@keyframes calendarReminderFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.text-muted {
  color: var(--text-muted);
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #e6ebfb;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.stack-form {
  display: grid;
  gap: 10px;
}

.stack-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #4a5577;
  font-weight: 600;
}

.dashboard-welcome-banner {
  margin-top: 16px;
  border: 1px solid #d7e1fa;
  background: linear-gradient(135deg, #f9fbff 0%, #f1f6ff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-welcome-text {
  margin: 0;
  color: #2f4477;
  font-size: 15px;
  font-weight: 700;
}

.dashboard-welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-empty-state {
  min-height: 220px;
  border: 1px dashed #cfdaf8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafcff, #f4f8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 16px;
  color: #556a99;
  font-weight: 600;
}

.dashboard-empty-state.compact {
  min-height: 120px;
}

.dashboard-empty-state p {
  margin: 0;
}

.chart-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 180px;
}

.chart-bar {
  background: linear-gradient(180deg, #6c78ff, #4f5de0);
  border-radius: 6px 6px 2px 2px;
  min-height: 6px;
}

.chart-labels {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  font-size: 10px;
  color: #8f9cbe;
  text-align: center;
}

.tax-row-note {
  margin-left: 6px;
  color: #8e97b3;
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
}

.tax-row-ipn .text-muted {
  color: #7f89a8;
}
.tax-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #d8e0f3;
}


.dashboard-tax-split {
  display: grid;
  gap: 12px;
}

.dashboard-tax-block {
  border: 1px solid #d7e1fa;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.dashboard-tax-block-later {
  background: #fffbf0;
  border-color: #ffe599;
}

.dashboard-tax-title {
  margin: 0 0 8px;
  color: #1f2a4d;
  font-size: 15px;
  font-weight: 700;
}
.dashboard-month-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 2px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dashboard-month-tab {
  flex: 0 0 auto;
  border: 1px solid #d1dcfa;
  border-radius: 999px;
  background: #f3f7ff;
  color: #5970a3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.dashboard-month-tab:hover {
  border-color: #aebdf1;
  color: #385592;
}

.dashboard-month-tab.active {
  background: #4f62ea;
  border-color: #4f62ea;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(79, 98, 234, 0.24);
}

.dashboard-tax-empty-note {
  margin: 0 0 8px;
  color: #8a96b8;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-tax-month-context {
  margin: 0 0 8px;
  color: #8e97b3;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-tax-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #d8e0f3;
}

.dashboard-tax-row:last-child {
  border-bottom: none;
}

.dashboard-tax-row span {
  color: #5b6c94;
  font-size: 14px;
  line-height: 1.4;
}

.dashboard-tax-row strong {
  color: #1b2f63;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-tax-row-note {
  display: inline-block;
  margin-left: 6px;
  color: #8e97b3;
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
}

.dashboard-tax-total {
  margin-top: 8px;
  border-top: 1px solid #d8e0f3;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.dashboard-tax-total span {
  color: #2f7d47;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-tax-total strong {
  color: #2f7d47;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-tax-subnote {
  margin: 6px 0 0;
  color: #8e97b3;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-tax-divider {
  position: relative;
  text-align: center;
}

.dashboard-tax-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed #cfd8ef;
}

.dashboard-tax-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 10px;
  background: #f5f8ff;
  color: #8894b6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 26, 0.66);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 200;
  animation: fadeIn 180ms ease;
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e1e7f7;
  box-shadow: 0 24px 70px rgba(8, 13, 35, 0.34);
  padding: 24px;
  animation: rise 200ms ease;
}


#remindersSetupModal .reminders-setup-modal-card {
  width: min(560px, calc(100% - 24px));
  max-height: 90vh;
  overflow-y: auto;
}

#remindersSetupModal .reminders-setup-head {
  margin-bottom: 10px;
}

#remindersSetupModal .reminders-settings-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f4ff;
  border: 1px solid #d8e2ff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

#remindersSetupModal .reminders-settings-intro-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
  color: #5f74c7;
  flex-shrink: 0;
}

#remindersSetupModal .reminders-settings-intro p {
  margin: 0;
  color: #6f7d9f;
  font-size: 12px;
  line-height: 1.45;
}

#remindersSetupModal .reminders-settings-form {
  display: grid;
  gap: 12px;
}

#remindersSetupModal .reminders-settings-form label {
  display: grid;
  gap: 6px;
  color: #293a66;
  font-size: 13px;
  font-weight: 600;
}

#remindersSetupModal .reminders-settings-form input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d4def4;
  background: #f9fbff;
  color: #1e2b51;
  font: inherit;
  padding: 0 12px;
}

#remindersSetupModal .reminders-settings-form input::placeholder {
  color: #95a2c4;
}

#remindersSetupModal .reminders-settings-form input.is-invalid {
  border-color: #e46565;
  background: #fff7f7;
  box-shadow: 0 0 0 2px rgba(228, 101, 101, 0.16);
}

#remindersSetupModal .reminders-settings-form small {
  color: #8090b5;
  font-size: 11px;
  font-weight: 500;
}

#remindersSetupModal .reminders-telegram-connect-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#remindersSetupModal .reminders-telegram-connect {
  border-color: #bfd0fb;
  background: #f3f7ff;
  color: #3350a8;
  font-weight: 700;
  padding: 8px 12px;
}

#remindersSetupModal .reminders-telegram-connect:hover,
#remindersSetupModal .reminders-telegram-connect:focus-visible {
  border-color: #a9c0f7;
  background: #eaf1ff;
  color: #27459b;
}

#remindersSetupModal .reminders-telegram-connected {
  display: inline-flex;
  align-items: center;
  border: 1px solid #9ad9b2;
  background: #effcf4;
  color: #226a44;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
#remindersSetupModal .reminders-settings-days {
  border: 1px solid #dce5f8;
  border-radius: 12px;
  background: #f8faff;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

#remindersSetupModal .reminders-settings-days legend {
  font-size: 12px;
  font-weight: 700;
  color: #4b5f90;
  padding: 0 6px;
}

#remindersSetupModal .reminders-settings-days label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2f446f;
  font-weight: 600;
}

#remindersSetupModal .reminders-settings-days input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6c5ce7;
}

#remindersSetupModal .reminders-settings-hint {
  min-height: 18px;
  margin: 0;
  color: #b03f4f;
  font-size: 12px;
}

#remindersSetupModal .reminders-settings-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

#remindersSetupModal .reminders-settings-actions .btn[disabled] {
  background: #c7cedf;
  border-color: #c7cedf;
  color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

#remindersSetupModal .reminders-settings-disable-link {
  margin: -2px 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #8691ab;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

#remindersSetupModal .reminders-settings-disable-link:hover,
#remindersSetupModal .reminders-settings-disable-link:focus-visible {
  color: #6d7792;
  text-decoration: underline;
  outline: none;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #f0f3fb;
  color: #44517b;
  cursor: pointer;
}

.status {
  min-height: 18px;
  margin: 10px 0 0;
  color: #67738e;
  font-size: 13px;
}
#loginModal .modal-card.login-card {
  width: min(520px, 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  border: 1px solid #d7def7;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f8ff 100%);
  box-shadow: 0 26px 72px rgba(10, 17, 40, 0.42);
}

#loginModal .modal-card.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #4f5de0);
}

#loginModal .login-head {
  margin-bottom: 0;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #e2e7fb;
}

#loginModal .login-head h3 {
  margin: 0;
  color: #1b2440;
  font-size: 34px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

#loginModal .login-head p {
  margin: 6px 0 0;
  color: #6777a0;
  font-size: 13px;
}

#loginModal .login-head .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf1ff;
  color: #5a6790;
  transition: transform 140ms ease, background 140ms ease;
}

#loginModal .login-head .icon-btn:hover,
#loginModal .login-head .icon-btn:focus-visible {
  transform: translateY(-1px);
  background: #e3e9ff;
  outline: none;
}

#loginModal .login-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 22px 0;
}

#loginModal .login-trust span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6defb;
  border-radius: 999px;
  background: #eef3ff;
  color: #5b6a95;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
}

#loginModal .login-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 22px 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #d8e1fb;
  background: #f1f5ff;
}

#loginModal .login-mode-btn {
  border: none;
  background: transparent;
  color: #62749f;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

#loginModal .login-mode-btn.active {
  background: #ffffff;
  color: #27355f;
  box-shadow: 0 6px 14px rgba(30, 46, 90, 0.12);
}

#loginModal .login-helper {
  margin: 4px 0 0;
  padding: 0 22px;
  color: #6777a0;
  font-size: 12px;
  font-weight: 600;
}

#loginModal .login-form {
  padding: 14px 22px 0;
  gap: 12px;
}

#loginModal .field-label {
  display: grid;
  gap: 8px;
  color: #465476;
  font-size: 13px;
  font-weight: 600;
}

#loginModal .field-label > span {
  color: #4a5a85;
  font-size: 13px;
  font-weight: 700;
}

#loginModal .field-label input {
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid #d4ddff;
  background: #f7f9ff;
  color: #1b2547;
  font-size: 15px;
  padding: 0 14px;
}

#loginModal .field-label input::placeholder {
  color: #93a0c3;
}

#loginModal .field-label input:focus {
  border-color: rgba(99, 102, 241, 0.62);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

#loginModal .login-legal-consent {
  margin-top: -2px;
}

#loginModal .login-legal-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5f6f98;
  font-size: 12px;
  line-height: 1.45;
}

#loginModal .login-legal-consent-label input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

#loginModal .login-legal-consent-label a {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#loginModal .login-legal-consent-label a:hover,
#loginModal .login-legal-consent-label a:focus-visible {
  color: #4338ca;
  text-decoration-thickness: 2px;
  outline: none;
}

#loginModal .login-auth-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7a89b0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#loginModal .login-auth-separator::before,
#loginModal .login-auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6fb;
}

#loginModal .login-google-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #d4ddfb;
  background: #ffffff;
  color: #2f406f;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(46, 61, 110, 0.1);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

#loginModal .login-google-btn .google-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex-shrink: 0;
}

#loginModal .login-google-btn .google-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#loginModal .login-google-btn:hover,
#loginModal .login-google-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #c2cff8;
  box-shadow: 0 10px 20px rgba(46, 61, 110, 0.14);
  outline: none;
}

#loginModal .login-primary {
  width: 100%;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.28);
}

#loginModal .login-forgot-btn {
  width: fit-content;
  margin-top: -2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f6fb0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

#loginModal .login-forgot-btn:hover,
#loginModal .login-forgot-btn:focus-visible {
  color: #4f46e5;
  text-decoration: underline;
  outline: none;
}
#loginModal .login-status {
  margin: 0;
  min-height: 24px;
  padding: 10px 22px 20px;
  font-size: 13px;
  font-weight: 600;
}

.pro-modal-card {
  width: min(560px, 100%);
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #d8e0fb;
  background: linear-gradient(180deg, #fcfdff 0%, #f3f6ff 100%);
}

.pro-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #5d73ff, #7f6bff, #42c8ff);
}

.pro-modal-head-copy {
  display: grid;
  gap: 6px;
}

.pro-modal-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #d7defb;
  background: #eef2ff;
  color: #596898;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
}

.pro-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pro-modal-head-copy h3 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pro-price-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d3dcfb;
  background: #eef2ff;
  color: #5b6ca0;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.pro-status {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.pro-status.free {
  color: #5f6f99;
}

.pro-status.trial {
  color: #4f46e5;
}

.pro-status.active {
  color: #0e8d63;
}

.pro-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d3dcfb;
  background: #eef2ff;
  color: #5b6ca0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.pro-status-badge.trial {
  border-color: #d3dcfb;
  background: #eef2ff;
  color: #5b6ca0;
}
.pro-reason {
  margin: 2px 0 10px;
  color: #5c6d95;
  font-size: 15px;
  line-height: 1.5;
}

.pro-mobile-stepper {
  display: none;
}

.pro-focus {
  margin: 0 0 10px;
  border: 1px solid #d5defb;
  border-radius: 14px;
  background: #f7f9ff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.pro-focus-label {
  margin: 0;
  color: #6677a5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pro-focus-label .icon-inline {
  width: 16px;
  height: 16px;
  color: #7283b4;
}

.pro-focus h4 {
  margin: 0;
  color: #1e2c53;
  font-size: 21px;
  line-height: 1.2;
}

.pro-focus p {
  margin: 0;
  color: #5a6d99;
  font-size: 14px;
  line-height: 1.5;
}

.pro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pro-list li {
  border: 1px solid #d7e0fb;
  background: #f6f8ff;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #27365f;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pro-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6a77ff;
  margin-top: 1px;
}

.pro-list li span:last-child {
  display: inline-block;
  line-height: 1.45;
}

.pro-proof {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pro-proof span {
  border-radius: 999px;
  border: 1px solid #d6ddfb;
  background: #eef2ff;
  color: #586a98;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.pro-proof span .icon-inline {
  width: 17px;
  height: 17px;
  color: #6779ab;
}

#proModalCta {
  width: 100%;
  min-height: 52px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  border: 1px solid rgba(153, 169, 255, 0.45);
  background: linear-gradient(135deg, #6153e8 0%, #7f61ff 46%, #6c86ff 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(86, 73, 206, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.pro-cta-meta {
  margin: 0 0 10px;
  color: #6779a6;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

#proModal .pro-secondary-link {
  margin-top: 2px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7b88ab;
  font-size: 14px;
  font-weight: 600;
  min-height: auto;
  padding: 2px 0 0;
}

#proModal .pro-secondary-link:hover,
#proModal .pro-secondary-link:focus-visible {
  color: #5f6f99;
  text-decoration: underline;
  outline: none;
}

#proModalCta:hover,
#proModalCta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(86, 73, 206, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  filter: brightness(1.04);
}

#proModalCta:active {
  transform: translateY(0);
  box-shadow: 0 9px 20px rgba(86, 73, 206, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
#proModalCta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.feature-lock-inline {
  margin-top: 10px;
  border: 1px dashed #d1daf4;
  background: #f4f7ff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-lock-inline p {
  margin: 0;
  color: #546893;
  font-size: 13px;
  font-weight: 600;
}

#deadlineModal .modal-card.deadline-modal-card {
  width: min(860px, calc(100% - 26px));
  border-radius: 20px;
  border: 1px solid rgba(168, 184, 239, 0.34);
  background: linear-gradient(165deg, #2a3865, #27355f 58%, #25335b);
  color: #eef3ff;
  box-shadow: 0 28px 60px rgba(4, 10, 28, 0.58);
  max-height: 90vh;
  overflow-y: auto;
}

#deadlineModal .deadline-modal-head {
  border-bottom: 1px solid rgba(178, 194, 245, 0.2);
  padding: 18px 20px 14px;
  align-items: flex-start;
  gap: 12px;
}

#deadlineModal .deadline-modal-head > div {
  flex: 1;
  min-width: 0;
}


#deadlineModal .deadline-modal-date {
  margin: 0 0 6px;
  color: #c5d4ff;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#deadlineModal .deadline-modal-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  color: #f5f8ff;
  overflow-wrap: anywhere;
}

#deadlineModal .deadline-modal-meta {
  display: grid;
  gap: 10px;
  padding: 12px 20px 0;
}
#deadlineModal .deadline-modal-note {
  margin: 0;
  color: #b8c8ef;
  font-size: 12px;
  line-height: 1.4;
}


#deadlineModal .deadline-payment-summary {
  border-radius: 12px;
  border: 1px solid rgba(190, 205, 255, 0.28);
  background: rgba(186, 201, 255, 0.1);
  padding: 12px;
  display: grid;
  gap: 7px;
}

#deadlineModal .deadline-payment-summary h4 {
  margin: 0;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cfdcff;
}

#deadlineModal .deadline-payment-row,
#deadlineModal .deadline-payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e8efff;
  font-size: 14px;
}

#deadlineModal .deadline-payment-row strong,
#deadlineModal .deadline-payment-total strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
}

#deadlineModal .deadline-payment-total {
  border-top: 1px solid rgba(193, 208, 255, 0.24);
  padding-top: 8px;
  margin-top: 2px;
  font-weight: 700;
}

#deadlineModal .deadline-modal-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#deadlineModal .deadline-modal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(183, 198, 255, 0.36);
  background: rgba(167, 184, 255, 0.14);
  color: #e6edff;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  padding: 6px 10px;
}

#deadlineModal .deadline-modal-chip.payment {
  border-color: rgba(146, 164, 255, 0.56);
  background: rgba(132, 150, 255, 0.2);
}

#deadlineModal .deadline-modal-chip.report {
  border-color: rgba(118, 220, 188, 0.45);
  background: rgba(63, 186, 151, 0.18);
}

#deadlineModal .deadline-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 14px 20px 0;
}

#deadlineModal .deadline-modal-col {
  border-radius: 12px;
  border: 1px solid rgba(183, 198, 255, 0.25);
  background: rgba(177, 192, 255, 0.08);
  padding: 11px 12px;
}

#deadlineModal .deadline-modal-col h4 {
  margin: 0 0 8px;
  color: #eef3ff;
  font-size: 14px;
}

#deadlineModal .deadline-modal-col ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: #d3defa;
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  gap: 6px;
}

#deadlineModal .deadline-modal-footer {
  margin: 14px 20px 20px;
  border-radius: 14px;
  border: 1px solid #f59e0b;
  background: transparent;
  padding: 12px;
  display: grid;
  gap: 8px;
}

#deadlineModal .deadline-modal-subscribe {
  width: fit-content;
  min-height: 46px;
  font-size: 14px;
  border-radius: 14px;
  border: 1px solid rgba(183, 198, 255, 0.38);
  background: rgba(166, 182, 245, 0.14);
  box-shadow: none;
  color: #f0f4ff;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#deadlineModal .deadline-modal-subscribe .deadline-modal-toggle-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

#deadlineModal .deadline-modal-subscribe .deadline-modal-toggle-copy b {
  font-size: 13px;
  line-height: 1.1;
}

#deadlineModal .deadline-modal-subscribe .deadline-modal-toggle-copy small {
  font-size: 11px;
  color: #cfdcff;
}

#deadlineModal .deadline-modal-toggle-switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(190, 206, 255, 0.46);
  background: rgba(142, 160, 228, 0.34);
  position: relative;
  flex-shrink: 0;
  transition: background 160ms ease, border-color 160ms ease;
}

#deadlineModal .deadline-modal-toggle-switch > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f8ff;
  box-shadow: 0 4px 10px rgba(7, 14, 34, 0.3);
  transition: transform 160ms ease;
}

#deadlineModal .deadline-modal-subscribe.subscribed {
  border-color: rgba(102, 222, 177, 0.5);
  background: rgba(47, 173, 140, 0.2);
}

#deadlineModal .deadline-modal-subscribe.subscribed .deadline-modal-toggle-switch {
  border-color: rgba(102, 222, 177, 0.6);
  background: rgba(58, 188, 151, 0.5);
}

#deadlineModal .deadline-modal-subscribe.subscribed .deadline-modal-toggle-switch > span {
  transform: translateX(18px);
}

#deadlineModal .deadline-modal-subscribe:hover,
#deadlineModal .deadline-modal-subscribe:focus-visible {
  transform: none;
  filter: none;
}

#deadlineModal .deadline-modal-subscribe.locked {
  border-color: rgba(175, 190, 239, 0.34);
  background: rgba(133, 148, 197, 0.22);
}

#deadlineModal .deadline-modal-card.landing-lite {
  width: min(620px, calc(100% - 20px));
}

#deadlineModal .deadline-modal-card.landing-lite .deadline-modal-grid {
  grid-template-columns: 1fr;
  padding-top: 10px;
}

#deadlineModal .deadline-modal-card.landing-lite .deadline-modal-footer {
  gap: 10px;
}

#deadlineModal .deadline-modal-subscribe.landing-cta {
  width: 100%;
  justify-content: center;
  border-color: rgba(124, 223, 185, 0.55);
  background: linear-gradient(135deg, #2bb991, #229f81);
  color: #f7fffd;
  font-weight: 800;
}

#deadlineModal .deadline-modal-subscribe.landing-cta:hover,
#deadlineModal .deadline-modal-subscribe.landing-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

#deadlineModal .deadline-lite-card {
  border-radius: 12px;
  border: 1px solid rgba(181, 199, 255, 0.3);
  background: rgba(176, 193, 255, 0.1);
  padding: 12px;
}

#deadlineModal .deadline-lite-card h4 {
  margin: 0 0 10px;
  color: #eef3ff;
  font-size: 14px;
}

#deadlineModal .deadline-lite-steps {
  margin: 0;
  padding: 0 0 0 20px;
  color: #dbe6ff;
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  gap: 8px;
}

#deadlineModal .deadline-modal-footer p {
  margin: 0;
  color: #a8b8d8;
  font-size: 13px;
}

.deadline-checklist-flag {
  border-radius: 999px;
  border: 1px solid rgba(170, 188, 245, 0.46);
  background: rgba(173, 190, 255, 0.16);
  color: #deebff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
}

#deadlineModal .deadline-modal-progress {
  display: grid;
  gap: 6px;
}

#deadlineModal .deadline-modal-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d8e4ff;
  font-size: 12px;
  font-weight: 700;
}

#deadlineModal .deadline-modal-progress-head strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #edf3ff;
}

#deadlineModal .deadline-modal-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(139, 156, 220, 0.28);
  border: 1px solid rgba(177, 193, 245, 0.32);
  overflow: hidden;
}

#deadlineModal .deadline-modal-progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7687ff, #95a3ff);
}

#deadlineModal .deadline-modal-progress.done .deadline-modal-progress-track > span {
  background: linear-gradient(90deg, #2eb090, #6edcae);
}

#deadlineModal .deadline-task-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

#deadlineModal .deadline-task-item label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #dce7ff;
  font-size: 13px;
  line-height: 1.45;
}

#deadlineModal .deadline-task-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid #6366f1;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#deadlineModal .deadline-task-item input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 4px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease;
  margin-top: -1px;
}

#deadlineModal .deadline-task-item input[type="checkbox"]:checked {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#deadlineModal .deadline-task-item input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

#deadlineModal .deadline-task-item input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

#deadlineModal .deadline-task-item.done span {
  color: #9cc9b4;
  text-decoration: line-through;
}

#deadlineModal .deadline-step-instruction {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #a8b8d8;
}

#deadlineModal .deadline-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#deadlineModal .deadline-step-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(164, 184, 252, 0.5);
  background: rgba(180, 196, 248, 0.1);
  color: #e4ecff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#deadlineModal .deadline-step-store-link:hover,
#deadlineModal .deadline-step-store-link:focus-visible {
  background: rgba(180, 196, 248, 0.2);
  border-color: rgba(180, 196, 248, 0.7);
  color: #f6f8ff;
  text-decoration: none;
}

#deadlineModal .deadline-step-inline-link {
  color: #6366f1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#deadlineModal .deadline-step-inline-link:hover,
#deadlineModal .deadline-step-inline-link:focus-visible {
  color: #4f46e5;
}

#deadlineModal #deadlineModalReminderPanel {
  border-top: 1px solid rgba(181, 196, 245, 0.22);
  padding-top: 10px;
}

#deadlineModal .deadline-reminder-form {
  display: grid;
  gap: 10px;
}

#deadlineModal .deadline-reminder-channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#deadlineModal .deadline-reminder-channel-grid label {
  border-radius: 999px;
  border: 1px solid rgba(176, 192, 248, 0.4);
  background: rgba(178, 193, 255, 0.12);
  color: #dce6ff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#deadlineModal .deadline-reminder-channel-grid.disabled,
#deadlineModal .deadline-reminder-contact-grid.disabled {
  opacity: 0.65;
}

#deadlineModal .deadline-reminder-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

#deadlineModal .deadline-contact-label {
  display: grid;
  gap: 6px;
  grid-template-rows: auto 36px minmax(16px, auto);
  align-content: start;
  color: #d5e1ff;
  font-size: 12px;
  font-weight: 600;
}

#deadlineModal .deadline-reminder-contact-grid input {
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(180, 196, 248, 0.35);
  background: rgba(160, 176, 238, 0.13);
  color: #edf3ff;
  font: inherit;
  padding: 0 10px;
}

#deadlineModal .deadline-reminder-contact-grid input::placeholder {
  color: #a8b7df;
}

#deadlineModal .deadline-field-hint {
  color: #aebde7;
  font-size: 11px;
  line-height: 1.3;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
}

#deadlineModal .deadline-inline-link {
  border: none;
  background: transparent;
  color: #dbe6ff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
}

#deadlineModal .deadline-inline-link:hover,
#deadlineModal .deadline-inline-link:focus-visible {
  color: #f1f5ff;
  outline: none;
}

#deadlineModal .deadline-reminder-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#deadlineModal .deadline-reminder-pill {
  border-radius: 999px;
  border: 1px solid rgba(180, 197, 248, 0.38);
  background: rgba(160, 177, 241, 0.14);
  color: #dbe6ff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  appearance: none;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

#deadlineModal .deadline-reminder-pill.today {
  border-color: rgba(125, 236, 183, 0.55);
  background: rgba(74, 197, 152, 0.2);
  color: #dffcef;
}

#deadlineModal .deadline-reminder-pill.past {
  border-color: rgba(164, 180, 233, 0.35);
  background: rgba(130, 146, 210, 0.16);
  color: #afbddf;
}

#deadlineModal .deadline-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#deadlineModal .deadline-btn-secondary {
  border-color: rgba(164, 184, 252, 0.5);
  background: transparent;
  color: #e1eaff;
}

#deadlineModal .deadline-btn-utility {
  border: 1px solid rgba(171, 184, 227, 0.34);
  background: rgba(138, 151, 194, 0.24);
  color: #d8e2ff;
}

#deadlineModal .deadline-btn-utility:hover,
#deadlineModal .deadline-btn-utility:focus-visible {
  background: rgba(152, 166, 211, 0.3);
}

#deadlineModal .deadline-reminder-cta,
#deadlineModal .deadline-payment-cta {
  width: 100%;
  justify-content: center;
  min-height: 36px;
  border-color: rgba(180, 196, 248, 0.45);
  background: rgba(180, 196, 248, 0.1);
  color: #e4ecff;
  text-decoration: none;
}

#deadlineModal .deadline-reminder-cta:hover,
#deadlineModal .deadline-reminder-cta:focus-visible,
#deadlineModal .deadline-payment-cta:hover,
#deadlineModal .deadline-payment-cta:focus-visible {
  text-decoration: none;
}
.mobile-tabbar {
  display: none;
}

.mobile-tabbar button.active {
  color: #ffffff;
  background: rgba(220, 232, 245, 0.2);
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: saturate(0.9) blur(1.5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1) blur(0);
  }
}

@keyframes ambientDriftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(22px, 26px, 0) scale(1.08);
    opacity: 0.62;
  }
}

@keyframes ambientDriftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(-18px, -22px, 0) scale(1.1);
    opacity: 0.52;
  }
}

@keyframes ctaHalo {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.86);
  }
  35% {
    opacity: 0.33;
    transform: scale(1);
  }
  60% {
    opacity: 0.12;
    transform: scale(1.08);
  }
}
@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Dashboard polish */
.dashboard-app {
  background: linear-gradient(180deg, #e5ebf8 0%, #dde5f3 46%, #d7dfef 100%);
}

.main-area {
  background:
    radial-gradient(circle at 8% -6%, rgba(122, 141, 255, 0.2), transparent 34%),
    radial-gradient(circle at 92% -10%, rgba(125, 92, 246, 0.14), transparent 40%);
}

.main-header {
  background: rgba(248, 251, 255, 0.9);
  border-bottom-color: #d6def2;
  box-shadow: 0 8px 20px rgba(18, 29, 56, 0.08);
}

.header-actions select {
  border-radius: 10px;
  border: 1px solid #c7d3f5;
  color: #2e3d6a;
  font-weight: 600;
  padding: 6px 10px;
}

.kpi-grid {
  gap: 14px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  border-color: #d7e1f9;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: 0 10px 24px rgba(18, 29, 56, 0.08);
}

.kpi-card.kpi-card-income-hero {
  border-color: #7081bc;
  background: linear-gradient(145deg, #5e6da1 0%, #526395 52%, #44527e 100%);
  box-shadow:
    0 12px 26px rgba(33, 44, 78, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -22px 34px rgba(35, 47, 84, 0.2);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kpi-card.kpi-card-income-hero::before {
  height: 3px;
  background: linear-gradient(90deg, rgba(244, 248, 255, 0.82), rgba(198, 210, 246, 0.5));
}

.kpi-card.kpi-card-income-hero::after {
  content: "";
  position: absolute;
  right: -86px;
  top: -104px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 195, 248, 0.28), rgba(180, 195, 248, 0));
  pointer-events: none;
}

.kpi-card.kpi-card-income-hero .income-hero-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#deadlineModal .deadline-modal-subscribe-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
  flex-shrink: 0;
}

.kpi-card.kpi-card-income-hero .income-hero-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229, 236, 255, 0.45);
  background: rgba(233, 239, 255, 0.2);
}

.kpi-card.kpi-card-income-hero .income-hero-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kpi-card.kpi-card-income-hero .stat-title {
  color: rgba(242, 246, 255, 0.9);
}

.kpi-card.kpi-card-income-hero .stat-value {
  margin-top: 6px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(36, 25, 97, 0.28);
}

.kpi-card.kpi-card-income-hero .income-hero-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.kpi-card.kpi-card-income-hero .kpi-trend {
  margin-top: 0;
  border: 1px solid rgba(235, 241, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.kpi-card.kpi-card-income-hero .kpi-trend.up {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
}

.kpi-card.kpi-card-income-hero .kpi-trend.down {
  background: rgba(248, 173, 181, 0.32);
  border-color: rgba(248, 206, 212, 0.8);
  color: #7b2336;
}

.kpi-card.kpi-card-income-hero .kpi-trend.flat {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(235, 241, 255, 0.45);
  color: #ffffff;
}

.kpi-card.kpi-card-income-hero .income-hero-side-sub {
  margin: 0;
  color: rgba(236, 242, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.kpi-card.kpi-card-income-hero .income-hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(240, 245, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.kpi-card.kpi-card-income-hero .income-hero-cta:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(247, 250, 255, 0.75);
}

.kpi-card.kpi-card-income-hero .income-hero-cta:active {
  transform: translateY(1px);
}

.kpi-card.kpi-card-income-hero .income-hero-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 1px;
}

@media (hover: hover) {
  .kpi-card.kpi-card-income-hero:hover {
    transform: translateY(-2px);
    border-color: #7e91ce;
    box-shadow:
      0 16px 30px rgba(33, 45, 82, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -24px 38px rgba(36, 49, 89, 0.22);
  }
}

.kpi-card.kpi-card-income-hero:focus-visible {
  outline: 2px solid #9aa8ff;
  outline-offset: 2px;
}

.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #5d71f3, #7b64f9);
}

.kpi-card.danger::before {
  background: linear-gradient(90deg, #ec5a67, #ff7d63);
}

.kpi-card.deadline::before {
  background: linear-gradient(90deg, #2f8ff8, #5d71f3);
}

.kpi-card.deadline.warning {
  border-color: #f0cd95;
  background: linear-gradient(165deg, #fffaf1 0%, #fff3dd 100%);
  box-shadow: 0 12px 26px rgba(201, 135, 40, 0.16);
}

.kpi-card.deadline.warning::before {
  background: linear-gradient(90deg, #e9a23a, #f3bf55);
}

.kpi-card.deadline.warning .stat-value,
.kpi-note.warning {
  color: #b86a12;
}

.kpi-card.deadline.urgent {
  border-color: #f2b5c0;
  background: linear-gradient(165deg, #fff8fa 0%, #ffeef2 100%);
  box-shadow: 0 12px 26px rgba(194, 57, 89, 0.18);
}

.kpi-card.deadline.urgent::before {
  background: linear-gradient(90deg, #e15169, #ff7a8b);
}

.kpi-card.deadline.urgent .stat-value,
.kpi-note.urgent {
  color: #b73952;
}

.kpi-alert {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid #efc1cc;
  background: #fff0f4;
  color: #b33d56;
  font-size: 12px;
  font-weight: 700;
}

.kpi-card .stat-value {
  margin-top: 10px;
  font-size: clamp(34px, 2.2vw, 42px);
  line-height: 1.05;
}

.kpi-note {
  margin-top: 9px;
  color: #3e4f7f;
  font-size: 13px;
  font-weight: 600;
}

.deadline-desktop-calendar-link {
  margin-top: 8px;
  align-self: flex-start;
  border: 1px solid #e0b15e;
  background: #fff6e8;
  padding: 8px 12px;
  border-radius: 999px;
  color: #b86a12;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.deadline-desktop-calendar-link:hover,
.deadline-desktop-calendar-link:focus-visible {
  background: #ffefcf;
  border-color: #d39a3f;
  color: #9f5b0a;
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.kpi-trend {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.kpi-trend.up {
  color: #0e9869;
  background: #def8ec;
}

.kpi-trend.down {
  color: #ce4258;
  background: #ffe6ea;
}

.kpi-trend.flat {
  color: #59678f;
  background: #ecf1ff;
}

.onboarding-shell {
  max-width: 920px;
  margin: 0 auto;
}

.onboarding-card {
  border-color: #d7e1fa;
  box-shadow: 0 12px 28px rgba(18, 29, 56, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.onboarding-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d4def8;
  background: #eef3ff;
  color: #42588e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.onboarding-card h2 {
  margin-top: 12px;
  margin-bottom: 6px;
}

.onboarding-lead {
  margin: 0;
  color: #5a6c96;
}

.onboarding-progress {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onboarding-step-pill {
  border-radius: 999px;
  border: 1px solid #d6dbe8;
  background: #eceff4;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.onboarding-step-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  line-height: 1;
}

.onboarding-step-pill.active {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.22);
}

.onboarding-step-pill.done {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

.onboarding-step-pill.upcoming {
  border-color: #d6dbe8;
  background: #eceff4;
  color: #6b7280;
}

.onboarding-step-body {
  margin-top: 16px;
}

.onboarding-step-body h3 {
  margin: 0;
}

.onboarding-step-body p {
  margin-top: 8px;
  margin-bottom: 0;
  color: #5e6f98;
}

.onboarding-regime-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-regime-card {
  position: relative;
  border: 1px solid #d4def8;
  border-radius: 12px;
  background: #f8faff;
  color: #23345e;
  min-height: 138px;
  text-align: left;
  padding: 12px;
  display: grid;
  gap: 6px;
  overflow: visible !important;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.onboarding-regime-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
}

.onboarding-regime-icon {
  width: 24px;
  height: 24px;
  color: #6c5ce7;
  stroke-width: 2;
  flex-shrink: 0;
}


.onboarding-regime-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 4px 8px;
}
.onboarding-regime-badge-best {
  border-color: #48bb78;
  background: #f0fff4;
  color: #166534;
}

.onboarding-regime-note {
  color: #62739d;
  font-size: 13px;
  line-height: 1.45;
}


.onboarding-regime-limit {
  margin-top: 2px;
  color: #4d6295;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.onboarding-regime-note-muted {
  color: #6c7ea8;
  font-size: 13px;
}

.onboarding-regime-tax {
  color: #1d2c52;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.onboarding-regime-grid-review {
  margin-top: 12px;
}

.onboarding-regime-card-readonly {
  cursor: default;
  min-height: 126px;
}

.onboarding-regime-card-readonly:hover,
.onboarding-regime-card-readonly:focus-visible {
  transform: none;
}

.onboarding-regime-card.unavailable {
  border-style: dashed;
  background: #f3f6ff;
}

.onboarding-regime-hint {
  margin-top: 10px;
  color: #7f8aad;
  font-size: 13px;
}

.onboarding-regime-card:hover,
.onboarding-regime-card:focus-visible {
  border-color: #b7c7f8;
  box-shadow: 0 8px 20px rgba(72, 92, 168, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.onboarding-regime-card.active {
  border: 2px solid #7c3aed;
  background: #f0eeff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}

.onboarding-profile-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-field {
  display: grid;
  gap: 8px;
}

.onboarding-field-full {
  grid-column: 1 / -1;
}

.onboarding-field span {
  color: #4a5d8c;
  font-size: 12px;
  font-weight: 700;
}

.onboarding-field input,
.onboarding-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid #cfd9f4;
  background: #f9fbff;
  color: #1b274a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  outline: none;
}

.onboarding-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6e82b8 50%), linear-gradient(135deg, #6e82b8 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.onboarding-field input:focus,
.onboarding-field select:focus {
  border-color: #98a9f7;
  box-shadow: 0 0 0 4px rgba(98, 113, 233, 0.14);
  background: #ffffff;
}

.onboarding-input-label {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #405381;
}

.onboarding-income-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.onboarding-income-control input {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid #cfd9f4;
  background: #f9fbff;
  color: #1b274a;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 12px;
  outline: none;
}

.onboarding-income-control input:focus {
  border-color: #98a9f7;
  box-shadow: 0 0 0 4px rgba(98, 113, 233, 0.14);
  background: #ffffff;
}

.onboarding-income-presets {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.onboarding-income-presets button {
  border: 1px solid #cfdaf8;
  border-radius: 999px;
  background: #eef3ff;
  color: #415486;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  cursor: pointer;
}

.onboarding-income-presets button:hover,
.onboarding-income-presets button:focus-visible {
  border-color: #aebff6;
  color: #32498c;
  background: #e8eeff;
  outline: none;
}

.onboarding-tax-card {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid #d8e2fb;
  background: #f7faff;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.onboarding-tax-card small {
  color: #5d709b;
  font-size: 12px;
  font-weight: 700;
}

.onboarding-tax-card strong {
  color: #1d2c52;
  font-size: clamp(30px, 2.4vw, 40px);
  line-height: 1.05;
}


.onboarding-tax-card span {
  color: #4f618e;
  font-size: 13px;
  font-weight: 600;
}
.onboarding-tax-card .onboarding-tax-subtitle {
  color: #7b86a7;
  font-size: 13px;
  font-weight: 500;
}

.onboarding-warning {
  margin: 2px 0 0;
  border-radius: 10px;
  border: 1px solid #f1ccd5;
  background: #fff3f6;
  color: #b33c53;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

.onboarding-tax-breakdown {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #dbe4fb;
  background: #ffffff;
  padding: 8px 12px;
}

.onboarding-tax-groups {
  display: grid;
  gap: 10px;
}

.onboarding-tax-group h4 {
  margin: 0 0 2px;
  color: #3f5488;
  font-size: 13px;
  font-weight: 700;
}

.onboarding-tax-note-muted {
  margin: 8px 0 0;
  color: #7f8baa;
  font-size: 13px;
  font-weight: 600;
}

.onboarding-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.onboarding-actions .btn {
  min-height: 44px;
}

.income-empty-state {
  margin-bottom: 12px;
  border: 1px solid #d7e1fa;
  background: linear-gradient(135deg, #f9fbff 0%, #f2f6ff 100%);
}

.income-empty-body h3 {
  margin: 0;
}

.income-empty-body p {
  margin: 10px 0 0;
  color: #5f719b;
}

.income-empty-body .btn {
  margin-top: 14px;
}

.income-empty-hint {
  margin-top: 12px;
  border: 1px dashed #cfdaf8;
  border-radius: 10px;
  background: #f5f8ff;
  color: #4d6193;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
}


.chart-panel,
.taxes-panel,
.progress-card,
.income-table-panel {
  border-color: #d7e1fa;
  box-shadow: 0 9px 20px rgba(18, 29, 56, 0.07);
}

.chart-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 220px;
  padding: 12px 6px 4px;
  border-radius: 14px;
  border: 1px solid #d9e2f8;
  background: linear-gradient(180deg, #f9fbff, #f2f6ff);
}

.chart-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.chart-item:focus-visible {
  outline: 2px solid #6c5ce7;
  outline-offset: 2px;
  border-radius: 8px;
}

.chart-bar {
  width: min(52px, 100%);
  background: linear-gradient(180deg, #7a86ff, #4f62ea);
  border-radius: 12px 12px 6px 6px;
  min-height: 4px;
  position: relative;
  box-shadow: 0 6px 16px rgba(79, 98, 234, 0.2);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.chart-bar.is-active {
  background: linear-gradient(180deg, #4f7cff, #2f56e3);
  box-shadow: 0 10px 22px rgba(47, 86, 227, 0.32);
}

.chart-bar.is-muted {
  background: linear-gradient(180deg, #b8c7ed, #8fa4d9);
  box-shadow: 0 4px 12px rgba(96, 117, 172, 0.18);
}

.chart-item.is-active span {
  color: #2f56e3;
  font-weight: 700;
}

.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #c9d5f7;
  background: #f4f8ff;
  color: #344675;
  font-size: 11px;
  font-weight: 700;
  transition: opacity 160ms ease, transform 160ms ease;
}

.chart-item:hover .chart-bar {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.chart-item:hover .chart-bar::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chart-item span {
  font-size: 11px;
  font-weight: 600;
  color: #7986ad;
}

.chart-row.chart-row-placeholder .chart-item {
  cursor: default;
  pointer-events: none;
}

.chart-row.chart-row-placeholder .chart-item span {
  opacity: 0.45;
}

.chart-bar.chart-bar-placeholder {
  background: linear-gradient(180deg, #7a86ff, #4f62ea);
  opacity: 0.2;
  border: 2px dashed rgba(79, 98, 234, 0.5);
  box-shadow: none;
  border-radius: 12px;
  min-height: 56px;
}

.chart-row.chart-row-placeholder .chart-bar::after {
  display: none;
}

.chart-placeholder-note {
  margin: 10px 4px 2px;
  text-align: center;
  color: #7a88ad;
  font-size: 12px;
  font-weight: 600;
}

.progress-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.progress-card-head h3 {
  margin-bottom: 0;
}

.progress-card-compact {
  padding: 10px 14px;
}

.progress-card-compact .progress-card-head {
  gap: 8px;
  align-items: center;
}

.progress-card-compact .progress-meta {
  margin: 4px 0 5px;
  line-height: 1.25;
}

.progress-card-compact .progress {
  height: 8px;
}

.progress-card-compact .feature-lock-inline {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 10px;
}

.progress-card-compact .feature-lock-inline p {
  font-size: 12px;
  line-height: 1.3;
}

.progress-card-compact .feature-lock-inline .btn.btn-xs {
  min-height: 30px;
  padding: 6px 10px;
}

.progress-card-compact p.text-muted.mt-10 {
  margin-top: 4px;
}

.progress-meta {
  margin: 10px 0 8px;
}

.progress-with-markers {
  position: relative;
  margin-top: 2px;
  padding-bottom: 22px;
}

.progress-with-markers .progress {
  position: relative;
  z-index: 2;
}

.progress {
  height: 12px;
  border: 1px solid #d6dff6;
  background: #edf2ff;
}

.progress > span {
  border-radius: 999px;
}

.progress-threshold {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  pointer-events: none;
  z-index: 3;
}

.progress-threshold.threshold-50 {
  left: 50%;
}

.progress-threshold.threshold-80 {
  left: 80%;
}

.progress-threshold-line {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: rgba(79, 94, 138, 0.7);
}

.progress-threshold-label {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #5b6d99;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  border: none;
  background: transparent;
}

.progress-threshold-legend {
  display: none;
}

.progress-eta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #5b6890;
  font-size: 13px;
}

.limit-risk {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.limit-risk.low {
  color: #0d8f64;
  background: #dff8ec;
  border-color: #bae9d2;
}

.limit-risk.medium {
  color: #9a651d;
  background: #fff3df;
  border-color: #f0d7ae;
}

.limit-risk.high {
  color: #be314c;
  background: #ffe4ea;
  border-color: #f4c2ce;
}

.limit-risk.unknown {
  color: #52638e;
  background: #edf2ff;
  border-color: #d5def7;
}

.table-wrap {
  margin-top: 10px;
  max-height: 320px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #d9e2f7;
  background: #f9fbff;
}

.dashboard-recent-table-wrap {
  max-height: none;
  overflow: visible;
}

.dashboard-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dashboard-recent-head h3 {
  margin-bottom: 0;
}

.dashboard-month-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #d6dff8;
  border-radius: 999px;
  background: #f4f7ff;
}

.dashboard-month-switcher-label {
  min-width: 132px;
  text-align: center;
  color: #2f457d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-month-nav {
  width: 30px;
  height: 30px;
  border: 1px solid #d2dcf7;
  border-radius: 999px;
  background: #ffffff;
  color: #5268a1;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboard-month-nav:hover:not(:disabled) {
  border-color: #9fb0ea;
  color: #2f56e3;
}

.dashboard-month-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dashboard-recent-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 14px;
  align-items: start;
}

.dashboard-recent-main {
  min-width: 0;
}

.dashboard-recent-side {
  display: grid;
  gap: 10px;
}

.dashboard-recent-side-card {
  border: 1px solid #d7e1fa;
  border-radius: 12px;
  background: #f8faff;
  padding: 10px 12px;
}

.dashboard-recent-side-card h4 {
  margin: 0 0 8px;
  color: #1f2a4d;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-top-categories {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.dashboard-top-category-item {
  display: grid;
  gap: 4px;
}

.dashboard-top-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #4d6193;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-top-category-head strong {
  color: #2c457f;
  font-weight: 700;
}

.dashboard-top-category-bar {
  height: 7px;
  border-radius: 999px;
  background: #e6edff;
  overflow: hidden;
}

.dashboard-top-category-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dashboard-recent-empty-small {
  margin: 0;
  color: #7b88ad;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-recent-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #d9e1f5;
  color: #5c6e99;
  font-size: 13px;
}

.dashboard-recent-stat-row:last-child {
  border-bottom: none;
}

.dashboard-recent-stat-row strong {
  color: #1f3568;
  font-weight: 700;
}

.dashboard-recent-all-btn {
  width: 100%;
}

.dashboard-recent-empty-month {
  min-height: 170px;
}

.dashboard-recent-empty-icon {
  font-size: 30px;
  line-height: 1;
}
.dashboard-table {
  margin: 0;
}

.dashboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf2ff;
}

.dashboard-table tbody tr:nth-child(even) {
  background: #f4f8ff;
}

.dashboard-table tbody tr:hover {
  background: #eaf1ff;
}

.dashboard-table tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: #edf2ff;
  border-top: 1px solid #d3ddf8;
  color: #334a81;
  font-size: 13px;
}

.dashboard-table .table-total-row th:last-child {
  text-align: right;
  color: #243c74;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d0daf9;
  background: #eef3ff;
  color: #364a84;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.income-table .cat-pill.cat-pill-rent,
.dashboard-table .cat-pill.cat-pill-rent,
.cat-pill.cat-pill-rent {
  background: #EBF8FF;
  border-color: #C7E7FF;
  color: #2B6CB0;
}

.income-table .cat-pill.cat-pill-sales,
.dashboard-table .cat-pill.cat-pill-sales,
.cat-pill.cat-pill-sales {
  background: #F0FFF4;
  border-color: #CAEFD9;
  color: #276749;
}

.income-table .cat-pill.cat-pill-commission,
.dashboard-table .cat-pill.cat-pill-commission,
.cat-pill.cat-pill-commission {
  background: #FFFBEB;
  border-color: #FBE7BD;
  color: #975A16;
}

.income-table .cat-pill.cat-pill-services,
.dashboard-table .cat-pill.cat-pill-services,
.cat-pill.cat-pill-services {
  background: #FAF5FF;
  border-color: #E5D7FF;
  color: #6B46C1;
}

.income-table .cat-pill.cat-pill-other,
.dashboard-table .cat-pill.cat-pill-other,
.cat-pill.cat-pill-other {
  background: #F7FAFC;
  border-color: #E2E8F0;
  color: #4A5568;
}

.sidebar button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar button[data-page]::before {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(214, 222, 255, 0.12);
  color: #d2ddff;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar button[data-page="dashboard"]::before {
  content: "D";
}

.sidebar button[data-page="income"]::before {
  content: "$";
}

.sidebar button[data-page="taxes"]::before {
  content: "%";
}

.sidebar button[data-page="calendar"]::before {
  content: "C";
}

.sidebar button[data-page="calculator"]::before {
  content: "=";
}

.sidebar button[data-page="knowledge"]::before {
  content: "?";
}

.sidebar button[data-page="feedback"]::before {
  content: "F";
}

.sidebar button[data-page="settings"]::before {
  content: "S";
}

.sidebar button.active::before,
.sidebar button:hover::before {
  background: rgba(214, 222, 255, 0.24);
  color: #f3f7ff;
}

.sidebar button.active::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8c6dff, #4f62ea);
}

/* Income Page V2 */
.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #cfd9f4;
  background: #f9fbff;
  color: #1b274a;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.stack-form textarea {
  resize: vertical;
  min-height: 92px;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  border-color: #98a9f7;
  box-shadow: 0 0 0 4px rgba(98, 113, 233, 0.14);
  background: #ffffff;
}

.income-layout {
  align-items: start;
}

.income-form-card,
.income-summary-card,
.income-journal-card {
  border-color: #d7e1fa;
  box-shadow: 0 10px 22px rgba(18, 29, 56, 0.08);
}

.income-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.income-edit-chip {
  border-radius: 999px;
  border: 1px solid #c7d7ff;
  background: #edf2ff;
  color: #445ea6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.amount-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.amount-presets button {
  border: 1px solid #cfdaf8;
  border-radius: 999px;
  background: #eef3ff;
  color: #415486;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  cursor: pointer;
}

.amount-presets button:hover,
.amount-presets button:focus-visible {
  border-color: #aebff6;
  color: #32498c;
  background: #e8eeff;
  outline: none;
}

.income-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.income-form-actions .btn {
  min-height: 44px;
}

.income-form-actions .income-save-btn {
  background: #48BB78;
  box-shadow: 0 10px 22px rgba(72, 187, 120, 0.26);
}

.income-form-actions .income-save-btn:hover,
.income-form-actions .income-save-btn:focus-visible {
  background: #3fa86b;
}

.income-summary-card .stat-value {
  font-size: clamp(34px, 2.2vw, 44px);
  line-height: 1.06;
}

.income-metrics-combined {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.income-metrics-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.income-metric-main,
.income-metric-inline {
  border-radius: 12px;
  border: 1px solid #d7e1fa;
  background: #f6f9ff;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.income-metric-main small,
.income-metric-inline small {
  color: #61739f;
  font-size: 12px;
  font-weight: 700;
}

.income-metric-main strong {
  color: #1e2c52;
  font-size: 24px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.1;
}

.income-metric-inline strong {
  color: #1e2c52;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
}

.income-metric-main span {
  color: #6d7ea9;
  font-size: 12px;
  font-weight: 600;
}

.income-metrics-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.income-dynamics.up {
  border-color: #bde6d6;
  background: #eefcf5;
}

.income-dynamics.down {
  border-color: #f0c5cf;
  background: #fff3f6;
}

.income-dynamics.up strong {
  color: #1d8f62;
}

.income-dynamics.down strong {
  color: #c23d56;
}

.income-comment-toggle {
  border: 0;
  background: transparent;
  color: #7a88ab;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.income-comment-toggle:hover,
.income-comment-toggle:focus-visible {
  color: #51648f;
  outline: none;
  text-decoration: underline;
}

.income-comment-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

.income-comment-wrap.is-visible {
  max-height: 76px;
  opacity: 1;
  transform: translateY(0);
}

.income-trial-notice {
  margin-top: 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f3d38a;
  background: #fff8e8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.income-trial-notice p {
  margin: 0;
  color: #765320;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.income-trial-link {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid #d2a04b;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8d37b 0%, #efbf63 100%);
  color: #4f350d;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 8px 12px;
  max-width: 100%;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.income-trial-link:hover,
.income-trial-link:focus-visible {
  background: linear-gradient(180deg, #f9da8b 0%, #f2c86f 100%);
  border-color: #c0913f;
  color: #442c09;
}

.income-trial-link:active {
  transform: translateY(1px);
}

.income-trial-close {
  border: 0;
  background: transparent;
  color: #8f7236;
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.income-trial-close:hover,
.income-trial-close:focus-visible {
  color: #6d531f;
}

.income-journal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.income-journal-head h3 {
  margin-bottom: 0;
}

.income-journal-head span {
  color: #60719a;
  font-size: 13px;
  font-weight: 600;
}
.income-journal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.income-month-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #dbe4fb;
  border-radius: 12px;
  background: #f8fbff;
}

.income-month-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.income-month-nav {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 18px;
  line-height: 1;
}

.income-month-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.income-month-label {
  min-width: 148px;
  text-align: center;
  color: #1f315a;
  font-size: 15px;
  font-weight: 800;
}

.income-month-total {
  color: #5f709c;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.lock-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d4ddff;
  background: #edf2ff;
  color: #4e5f91;
  font-size: 12px;
  font-weight: 700;
}

.income-limit-note {
  margin: 0;
  border-radius: 10px;
  border: 1px solid #d9e2fb;
  background: #f4f7ff;
  color: #5b6d97;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 10px;
}

.income-limit-note.pro {
  border-color: #bfe8dc;
  background: #ebfbf5;
  color: #14724f;
}

.income-limit-note.danger {
  border-color: #f3ccd5;
  background: #fff2f5;
  color: #b13b50;
}

.subscription-card {
  border: 1px solid #d5dff9;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.subscription-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.subscription-head h3 {
  margin-bottom: 0;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.subscription-badge.free {
  border-color: #d7dff6;
  background: #eff3ff;
  color: #58688f;
}

.subscription-badge.trial {
  border-color: #cfc5ff;
  background: #f0ecff;
  color: #5a48d8;
}

.subscription-badge.active {
  border-color: #bde6d9;
  background: #e9f9f2;
  color: #14724f;
}

.feature-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.feature-list li {
  border: 1px solid #dbe4fb;
  border-radius: 10px;
  background: #f7f9ff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #223258;
  font-size: 14px;
  font-weight: 600;
}

.feature-state {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.feature-state.enabled {
  color: #167552;
}

.feature-state.locked {
  color: #7b87a6;
}

.subscription-actions {
  margin-top: 12px;
}

.subscription-actions .btn {
  min-width: 190px;
}

.income-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.income-filters label {
  margin: 0;
}

.income-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.income-table-wrap {
  max-height: 410px;
}

.income-table td.amount-cell,
.income-table th:nth-child(4) {
  text-align: right;
}

.income-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-action-btn {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #7d8cae;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.icon-action-btn .income-action-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.icon-action-btn.icon-edit:hover,
.icon-action-btn.icon-edit:focus-visible {
  color: #4f66d7;
  border-color: #cfd9ff;
  background: #edf2ff;
}

.icon-action-btn.icon-delete:hover,
.icon-action-btn.icon-delete:focus-visible {
  color: #d84f60;
  border-color: #f2c9d0;
  background: #fff1f4;
}

.btn-xs {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 34px;
}

.income-table tbody tr:nth-child(even) {
  background: #f7faff;
}

.income-table tbody tr.income-row-max {
  background: #FFFBF0;
}

.income-table tbody tr.income-row-max:hover {
  background: #FFF4CF;
}

.income-table .income-table-total-row td {
  background: #F7FAFC;
  border-top: 1px solid #e2e8f0;
  color: #2d3748;
  font-weight: 700;
}

.empty-row {
  text-align: center;
  color: #6e7fa8;
  font-weight: 600;
  padding: 20px 10px !important;
}

.empty-row-month {
  padding: 22px 12px !important;
}

.empty-row-month span {
  display: block;
  margin-bottom: 10px;
}

.income-cards-empty-month {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.income-cards-empty-month p {
  margin: 0;
}

#incomeDeleteModal .income-delete-modal-card {
  width: min(480px, 92vw);
  border-radius: 18px;
  border: 1px solid #d9e2f6;
}

#incomeDeleteModal .income-delete-head {
  margin-bottom: 10px;
}

#incomeDeleteModal .income-delete-head h3 {
  margin: 0;
  color: #1d2b55;
}

#incomeDeleteModal .income-delete-message {
  margin: 0;
  display: grid;
  gap: 6px;
  color: #51648f;
  line-height: 1.45;
}

#incomeDeleteModal .income-delete-message strong {
  color: #1c2b54;
}

#incomeDeleteModal .income-delete-message span {
  color: #6b7c9f;
}

#incomeDeleteModal .income-delete-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#incomeDeleteModal .income-delete-cancel {
  min-width: 140px;
}

#incomeDeleteModal .income-delete-confirm {
  min-width: 140px;
  color: #ffffff;
  background: linear-gradient(135deg, #F56565, #E53E3E);
  box-shadow: 0 10px 20px rgba(229, 62, 62, 0.3);
}

#incomeDeleteModal .income-delete-confirm:hover,
#incomeDeleteModal .income-delete-confirm:focus-visible {
  background: linear-gradient(135deg, #EE5252, #D53333);
}

@media (max-width: 720px) {
  #incomeDeleteModal .income-delete-actions {
    flex-direction: column;
  }

  #incomeDeleteModal .income-delete-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-app::before,
  .public-app::after,
  .hero .chip,
  .hero h1,
  .hero p,
  .hero .btn-glow,
  .hero .btn-glow::after,
  .trust-card,
  .quick-calc,
  .landing-animate,
  .public-nav {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .trust-card,
  .hero .btn-glow {
    transition: none !important;
  }
}
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .onboarding-regime-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-profile-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-actions .btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 640px) {
  .income-form-actions {
    flex-direction: column;
  }

  .income-form-actions .btn {
    width: 100%;
  }

  .income-row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-kpi-grid {
    grid-template-columns: 1fr;
  }

  .calendar-chip-group {
    gap: 6px;
  }

  .calendar-chip-group button {
    padding: 6px 9px;
  }

  .calendar-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-filter-actions .btn {
    width: 100%;
  }

  .calendar-actions-cell {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-welcome-actions {
    width: 100%;
  }

  .dashboard-empty-state {
    min-height: 170px;
  }

  .dashboard-empty-state.compact {
    min-height: 110px;
  }

  .calc-step-input {
    grid-template-columns: 38px 1fr 38px;
  }

  .calc-step-input input {
    font-size: 18px;
  }

  .calc-period-switch {
    justify-content: center;
  }

  .calc-period-switch button {
    flex: 1;
    text-align: center;
  }

  .calc-income-presets,
  .calc-expense-presets {
    gap: 6px;
  }

  .calc-income-presets button,
  .calc-expense-presets button {
    padding: 6px 10px;
  }

  .calc-summary-value {
    font-size: 34px;
  }

  .regime-limit-chip {
    white-space: normal;
  }

  .kpi-card .stat-value {
    font-size: 32px;
  }

  .chart-row {
    height: 170px;
    gap: 8px;
  }

  .table-wrap {
    max-height: none;
  }
  .icon-inline {
    width: 17px;
    height: 17px;
  }

  .icon-inline-lg {
    width: 19px;
    height: 19px;
  }

  .trust-title .icon-inline {
    width: 22px;
    height: 22px;
  }

  .btn-with-icon .icon-inline {
    width: 16px;
    height: 16px;
  }
  #loginModal {
    padding: 10px;
  }

  #loginModal .modal-card.login-card {
    border-radius: 16px;
  }

  #loginModal .login-head {
    padding: 16px 14px 12px;
  }

  #loginModal .login-head h3 {
    font-size: 24px;
  }

  #loginModal .login-head p {
    font-size: 13px;
  }

  #loginModal .login-trust,
  #loginModal .login-form,
  #loginModal .login-status {
    padding-left: 14px;
    padding-right: 14px;
  }

  #loginModal .login-mode-switch {
    margin-left: 14px;
    margin-right: 14px;
  }

  #loginModal .login-helper {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 11px;
  }

  #loginModal .login-primary {
    font-size: 15px;
  }

  #proModal {
    padding: 10px;
  }

  #proModal .pro-modal-card {
    border-radius: 16px;
    padding: 16px 14px;
  }

  #proModal .pro-title-row {
    align-items: flex-start;
    gap: 8px;
  }

  #proModal .pro-modal-head-copy h3 {
    font-size: 24px;
  }

  #proModal .pro-price-chip {
    font-size: 11px;
    padding: 5px 9px;
  }

  #proModal .pro-modal-card.pro-mobile-compact {
    max-height: min(86vh, 700px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto auto;
    gap: 8px;
  }

  #proModal .pro-modal-card.pro-mobile-compact .modal-head {
    margin-bottom: 0;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-reason {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-mobile-stepper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-mobile-stepper-btn {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid #d4defa;
    background: #f3f6ff;
    color: #5c6d95;
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
    cursor: pointer;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-mobile-stepper-btn:disabled {
    opacity: 0.45;
    cursor: default;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-mobile-stepper-btn.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #6276ff, #8c66ff);
    color: #ffffff;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-mobile-stepper-label {
    justify-self: center;
    font-size: 12px;
    font-weight: 700;
    color: #697aa6;
  }

  #proModal .pro-focus h4 {
    font-size: 18px;
  }

  #proModal .pro-list li {
    font-size: 13px;
    padding: 9px 10px;
  }

  #proModal .pro-item-icon {
    width: 17px;
    height: 17px;
  }

  #proModal .pro-proof span {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  #proModal #proModalCta {
    min-height: 48px;
    font-size: 15px;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-focus {
    margin: 0;
    padding: 10px;
    gap: 4px;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-focus h4 {
    font-size: 17px;
    line-height: 1.2;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-focus p {
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-list {
    margin: 0;
    min-height: 0;
    overflow: auto;
    gap: 6px;
  }

  #proModal .pro-modal-card.pro-mobile-compact .pro-list li {
    padding: 8px 9px;
    font-size: 13px;
  }

  #proModal .pro-modal-card.pro-mobile-compact.is-step-1 .pro-list li:nth-child(n + 3) {
    display: none;
  }

  #proModal .pro-modal-card.pro-mobile-compact.is-step-1 .pro-proof {
    display: none;
  }

  #proModal .pro-modal-card.pro-mobile-compact.is-step-1 .pro-secondary-link,
  #proModal .pro-modal-card.pro-mobile-compact.is-step-1 .pro-cta-meta {
    display: none;
  }

  #proModal .pro-modal-card.pro-mobile-compact.is-step-2 .pro-reason,
  #proModal .pro-modal-card.pro-mobile-compact.is-step-2 .pro-focus {
    display: none;
  }

  .public-nav,
  .hero,
  .page-content,
  .main-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero .btn-glow {
    width: 100%;
    max-width: 360px;
    font-size: 16px;
    padding: 13px 18px;
  }

  .landing-period-switch {
    width: 100%;
    justify-content: center;
  }

  .landing-income-control {
    width: 100%;
    gap: 8px;
  }

  .landing-income-wrap {
    width: min(100%, 290px);
  }

  #landingIncome {
    font-size: 30px;
  }

  .income-presets button {
    padding: 6px 11px;
  }

  .landing-summary-card {
    padding: 12px;
  }

  .landing-summary-amount {
    font-size: clamp(28px, 9vw, 36px);
  }

  .landing-breakdown span {
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
  }


  .landing-block {
    margin-top: 14px;
    padding: 16px;
  }

  .landing-block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .landing-block-head h2 {
    font-size: 24px;
  }

  .how-grid,
  .deadline-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .how-card,
  .deadline-card {
    padding: 14px;
  }

  .deadline-card {
    min-height: auto;
    gap: 10px;
  }

  .deadline-top {
    align-items: flex-start;
  }

  .deadline-date {
    font-size: 13px;
  }

  .deadline-title {
    font-size: 18px;
  }

  .deadline-period {
    font-size: 13px;
  }

  .deadline-open-btn {
    width: 100%;
    justify-content: center;
  }

  .deadline-due {
    font-size: 10px;
    padding: 4px 8px;
  }

  .deadline-subscribe-btn {
    width: 100%;
    min-height: 44px;
  }

  #deadlineModal .modal-card.deadline-modal-card {
    width: calc(100% - 14px);
    border-radius: 16px;
  }

  #deadlineModal .deadline-modal-head {
    padding: 14px 14px 10px;
    gap: 10px;
  }

  #deadlineModal .deadline-modal-head > div {
    min-width: 0;
  }

  #deadlineModal .deadline-modal-head h3 {
    font-size: clamp(20px, 7vw, 36px);
    line-height: 1.12;
  }

  #deadlineModal .deadline-modal-meta,
  #deadlineModal .deadline-modal-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  #deadlineModal .deadline-modal-footer {
    margin: 12px 14px 14px;
  }

  .deadline-checklist-col ul {
    font-size: 13px;
  }

  .landing-final-cta .btn {
    min-width: 0;
    width: 100%;
    font-size: 16px;
    min-height: 48px;
  }

  .landing-proof span {
    width: 100%;
    text-align: center;
  }

  .faq-item summary {
    font-size: 16px;
    padding: 12px 14px;
  }

  .faq-item p {
    padding: 0 14px 12px;
    font-size: 14px;
  }

  .regime-card {
    min-height: 142px;
  }

  .regime-title {
    font-size: 17px;
  }

  .regime-card .amount {
    font-size: 32px;
  }


  .nav-actions {
    gap: 8px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .card-dark {
    margin: 0 10px;
    padding: 18px;
    border-radius: 16px;
  }

  .calc-input-row {
    flex-direction: column;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}









@media (max-width: 768px) {
  .dashboard-app.onboarding-mode .mobile-tabbar {
    display: none !important;
  }

  .dashboard-app.onboarding-mode .main-area {
    padding-bottom: 8px;
  }

  .dashboard-app.onboarding-mode .page-content {
    padding: 8px 10px 10px;
  }

  .dashboard-app.onboarding-mode .onboarding-shell {
    max-width: 100%;
    min-height: calc(100dvh - 62px);
  }

  .dashboard-app.onboarding-mode .onboarding-card {
    min-height: calc(100dvh - 78px);
    padding: 12px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-app.onboarding-mode .onboarding-kicker {
    padding: 4px 8px;
    font-size: 10px;
  }

  .dashboard-app.onboarding-mode .onboarding-card h2 {
    margin: 4px 0 2px;
    font-size: clamp(24px, 7.4vw, 32px);
    line-height: 1.08;
  }

  .dashboard-app.onboarding-mode .onboarding-lead {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-card:not(.onboarding-step-1) .onboarding-kicker,
  .dashboard-app.onboarding-mode .onboarding-card:not(.onboarding-step-1) h2 {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-progress {
    margin-top: 2px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .dashboard-app.onboarding-mode .onboarding-step-pill {
    white-space: nowrap;
    font-size: 11px;
    padding: 6px 9px;
  }

  .dashboard-app.onboarding-mode .onboarding-step-body {
    margin-top: 6px;
    display: grid;
    gap: 8px;
  }

  .dashboard-app.onboarding-mode .onboarding-step-body h3 {
    font-size: 20px;
    line-height: 1.15;
  }

  .dashboard-app.onboarding-mode .onboarding-step-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-grid {
    margin-top: 0;
    gap: 6px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-card {
    min-height: 86px;
    padding: 10px 11px;
    border-radius: 10px;
    gap: 4px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-card strong {
    font-size: 16px;
    gap: 7px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-icon {
    width: 20px;
    height: 20px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-note {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-limit {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.25;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-hint {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
  }

  .dashboard-app.onboarding-mode .onboarding-profile-grid {
    margin-top: 0;
    gap: 8px;
  }

  .dashboard-app.onboarding-mode .onboarding-field {
    gap: 5px;
  }

  .dashboard-app.onboarding-mode .onboarding-field span {
    font-size: 11px;
  }

  .dashboard-app.onboarding-mode .onboarding-field input,
  .dashboard-app.onboarding-mode .onboarding-field select {
    min-height: 38px;
    height: 38px;
    font-size: 15px;
    padding: 0 10px;
  }

  .dashboard-app.onboarding-mode .onboarding-input-label {
    margin-top: 0;
    font-size: 12px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-control {
    margin-top: 0;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-control .step-btn {
    min-height: 34px;
    height: 34px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-control input {
    height: 38px;
    font-size: 24px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-presets {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-presets button {
    min-height: 32px;
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 12px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-grid-review,
  .dashboard-app.onboarding-mode .onboarding-tax-breakdown {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card {
    margin-top: 0;
    padding: 10px;
    gap: 4px;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card small {
    font-size: 11px;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card strong {
    font-size: 32px;
    line-height: 1.05;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card span {
    font-size: 12px;
    line-height: 1.3;
  }

  .dashboard-app.onboarding-mode .onboarding-warning {
    margin: 4px 0 0;
    padding: 8px 10px;
    font-size: 12px;
  }

  .dashboard-app.onboarding-mode .onboarding-actions {
    margin-top: auto;
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 14px;
    flex: 0 0 auto !important;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn:only-child {
    grid-column: 1 / -1;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn[data-action="onboarding-complete-income"] {
    grid-column: 1 / -1;
    order: 1;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn[data-action="onboarding-back"] {
    order: 2;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn[data-action="onboarding-complete"] {
    order: 3;
  }
}














/* Taxes Page V2 */
.tax-kpi-grid {
  gap: 14px;
}

.tax-kpi-card {
  border: 1px solid #d7e1fa;
  box-shadow: 0 10px 24px rgba(16, 29, 60, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.tax-kpi-card-hero {
  border-color: #6c5ce7;
  background: #6c5ce7;
  box-shadow: 0 14px 28px rgba(108, 92, 231, 0.32);
}

.tax-kpi-card-hero .stat-title,
.tax-kpi-card-hero .tax-kpi-main,
.tax-kpi-card-hero .tax-kpi-meta {
  color: #ffffff;
}

.tax-kpi-card-hero .tax-kpi-main {
  font-size: clamp(34px, 2.8vw, 44px);
}

.tax-kpi-card-hero .tax-kpi-meta {
  color: rgba(255, 255, 255, 0.9);
}

.tax-kpi-main {
  margin-top: 10px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.05;
  font-weight: 800;
  color: #0f1f46;
}
.tax-kpi-main.is-empty {
  font-size: 22px;
  font-weight: 700;
  color: #6b7ea8;
}
.tax-kpi-meta {
  margin-top: 8px;
  color: #4d5f90;
  font-size: 13px;
  font-weight: 600;
}

.tax-planner-card {
  border-color: #d6e1fa;
  background: linear-gradient(180deg, #fcfdff, #f5f8ff);
}

.tax-planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tax-planner-head h3 {
  margin: 0;
}

.tax-planner-head p {
  margin: 6px 0 0;
  color: #576992;
  font-size: 14px;
}

.tax-planner-form {
  margin-top: 14px;
}

.tax-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.tax-form-grid label {
  display: grid;
  gap: 6px;
  color: #425583;
  font-size: 13px;
  font-weight: 700;
}

.tax-form-grid input {
  height: 42px;
  border-radius: 11px;
  border: 1px solid #ccd8f6;
  background: #f7f9ff;
  color: #17264d;
  font: inherit;
  font-size: 14px;
  padding: 0 12px;
}

.tax-form-grid input:disabled {
  background: #eef2fc;
  color: #8a98bc;
}

.tax-form-grid .btn {
  height: 42px;
  border-radius: 11px;
}

.tax-presets {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tax-presets > span {
  color: #5a6b96;
  font-size: 12px;
  font-weight: 700;
}

.tax-presets button {
  border: 1px solid #ccd8f6;
  background: #f2f6ff;
  color: #3d5186;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.tax-presets button:hover,
.tax-presets button:focus-visible {
  transform: translateY(-1px);
  background: #e9f0ff;
  border-color: #b7c8f7;
  outline: none;
}

.tax-presets.disabled {
  opacity: 0.65;
}

.tax-input-hint {
  margin: 10px 0 0;
  color: #3f5f8d;
  font-size: 13px;
  font-weight: 600;
}

.tax-input-hint.muted {
  color: #7687ad;
}

.tax-breakdown-card,
.tax-compare-panel,
.tax-forecast-panel,
.tax-deadlines-panel {
  border-color: #d7e2fa;
  box-shadow: 0 8px 20px rgba(16, 29, 60, 0.07);
}

.tax-share-list {
  display: grid;
  gap: 10px;
}

.tax-share-row {
  border: 1px solid #d5e0fa;
  border-radius: 12px;
  background: #f7f9ff;
  padding: 10px;
}

.tax-share-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #415585;
}

.tax-share-head strong {
  color: #13254e;
  font-size: 15px;
}

.tax-share-track {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e4ebff;
  overflow: hidden;
}

.tax-share-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d7dff, #7d63ff);
}

.tax-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tax-compare-card {
  border: 1px solid #d8dde6;
  border-radius: 12px;
  background: #f3f5f8;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.tax-compare-card.best {
  border-color: #48bb78;
  background: #f0fff4;
  box-shadow: inset 0 0 0 1px rgba(72, 187, 120, 0.22);
}

.tax-compare-card.current {
  border-color: #4a90e2;
  box-shadow: inset 0 0 0 1px rgba(74, 144, 226, 0.22);
}

.tax-compare-card.best.current {
  border-color: #48bb78;
  box-shadow: inset 0 0 0 1px rgba(72, 187, 120, 0.22), 0 0 0 2px rgba(74, 144, 226, 0.22);
}

.tax-compare-card.unavailable {
  opacity: 0.72;
}

.tax-compare-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.tax-compare-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tax-compare-badge.best {
  background: #48bb78;
  color: #ffffff;
}

.tax-compare-badge.current {
  border: 1px solid #4a90e2;
  background: #e9f2ff;
  color: #2f65ab;
}

.tax-compare-title {
  color: #435785;
  font-size: 13px;
  font-weight: 700;
}

.tax-compare-value {
  color: #122651;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
}
.tax-compare-context {
  color: #6a7da8;
  font-size: 11px;
  font-weight: 600;
}

.tax-compare-note {
  color: #556a99;
  font-size: 12px;
  font-weight: 600;
}

.tax-forecast-table tbody tr.current {
  background: #eef3ff;
}

.tax-forecast-table tbody tr.current td {
  color: #142958;
  font-weight: 700;
}

.tax-forecast-tax-note {
  display: block;
  margin-top: 2px;
  color: #8d99bb;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.tax-forecast-mobile-list {
  display: none;
}

.tax-forecast-mobile-card {
  border: 1px solid #d6e1fa;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.tax-forecast-mobile-card.current {
  border-color: #bfcfff;
  background: #eef3ff;
}

.tax-forecast-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tax-forecast-mobile-head strong {
  font-size: 14px;
  color: #1b2f5e;
}

.tax-forecast-mobile-rate {
  font-size: 12px;
  font-weight: 700;
  color: #435a95;
}

.tax-forecast-mobile-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #4f628f;
}

.tax-forecast-mobile-row strong {
  color: #142958;
}

.tax-deadlines-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tax-deadline-list {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.tax-deadline-item {
  border: 1px solid #d6e1fa;
  border-radius: 12px;
  background: #f7f9ff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tax-deadline-item strong {
  display: block;
  color: #162a56;
  font-size: 13px;
  margin-bottom: 2px;
}

.tax-deadline-item span {
  color: #4f628f;
  font-size: 13px;
}

.tax-deadline-item em {
  font-style: normal;
  border-radius: 999px;
  border: 1px solid #cad7f7;
  background: #ecf2ff;
  color: #475c90;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}


/* Knowledge Base */
.knowledge-hero-card {
  border-color: #d6e2fb;
  background: linear-gradient(180deg, #fdfcff 0%, #f5f8ff 100%);
  box-shadow: 0 10px 24px rgba(18, 29, 56, 0.07);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.knowledge-hero-card h3 {
  margin: 0;
}

.knowledge-hero-card p {
  margin: 8px 0 0;
  color: #516391;
}

.knowledge-hero-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.knowledge-hero-meta span {
  border-radius: 999px;
  border: 1px solid #c9d8ff;
  background: #edf2ff;
  color: #3c5490;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  white-space: nowrap;
}

.knowledge-hero-meta small {
  color: #6c7da6;
  font-size: 12px;
  font-weight: 600;
  max-width: 280px;
}

.knowledge-filter-card {
  border-color: #d5e1fb;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f9ff 100%);
  box-shadow: 0 8px 20px rgba(16, 29, 60, 0.06);
}

.knowledge-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-chip-group button {
  border: 1px solid #cfdcf9;
  background: #eef3ff;
  color: #465d93;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}

.knowledge-chip-group button:hover,
.knowledge-chip-group button:focus-visible {
  border-color: #b7c8f8;
  background: #e6eeff;
  transform: translateY(-1px);
  outline: none;
}

.knowledge-chip-group button.active {
  border-color: #95abff;
  background: linear-gradient(135deg, #6d7df9, #7f63f1);
  color: #ffffff;
}

.knowledge-search-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.knowledge-search-form label {
  display: grid;
  gap: 6px;
  color: #455984;
  font-size: 13px;
  font-weight: 700;
}

.knowledge-search-form input[type="text"] {
  height: 42px;
  border-radius: 11px;
  border: 1px solid #cfdaf7;
  background: #f9fbff;
  color: #1a2a52;
  font: inherit;
  font-size: 14px;
  padding: 0 12px;
}

.knowledge-search-form input[type="text"]:focus {
  outline: none;
  border-color: #98a9f7;
  box-shadow: 0 0 0 4px rgba(98, 113, 233, 0.14);
  background: #ffffff;
}

.knowledge-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.knowledge-grid {
  align-items: start;
}

.knowledge-card {
  border-color: #d7e2fa;
  box-shadow: 0 10px 22px rgba(17, 30, 57, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.knowledge-card-head {
  display: grid;
  gap: 8px;
}

.knowledge-topic-chip {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #cfdcfb;
  background: #edf3ff;
  color: #486199;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.knowledge-card-head p {
  margin: 0;
  color: #5b6f9a;
}
.knowledge-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}


.knowledge-regime-chip {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #b7d7ca;
  background: #e9f7f0;
  color: #27664b;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}


.knowledge-personal-note {
  margin-top: 12px;
  border: 1px dashed #bdd0fa;
  background: #eef4ff;
  border-radius: 10px;
  padding: 9px 11px;
  color: #244071;
  font-size: 13px;
  line-height: 1.35;
}

.knowledge-personal-note strong {
  color: #143260;
}

.knowledge-card-muted {
  opacity: 0.64;
  border-style: dashed;
}

.knowledge-practical {
  margin-top: 12px;
  border: 1px solid #d8e2fb;
  border-radius: 12px;
  background: #f3f7ff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  color: #2f477d;
}

.knowledge-practical strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a63a2;
}

.knowledge-facts {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.knowledge-facts > div {
  border-radius: 10px;
  border: 1px solid #d7e2fb;
  background: #f9fbff;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.knowledge-facts span {
  font-size: 11px;
  text-transform: uppercase;
  color: #60729d;
  font-weight: 700;
}

.knowledge-facts b {
  color: #17305d;
  font-size: 13px;
  line-height: 1.35;
}

.knowledge-details {
  margin-top: 12px;
  border: 1px solid #d8e2fb;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}

.knowledge-details summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-weight: 700;
  color: #334d83;
}

.knowledge-details summary::-webkit-details-marker {
  display: none;
}

.knowledge-details summary::after {
  content: "+";
  float: right;
  color: #6279b3;
}

.knowledge-details[open] summary::after {
  content: "?";
}

.knowledge-details-body {
  border-top: 1px solid #dce5fc;
  padding: 10px 12px 12px;
  color: #4e6190;
}

.knowledge-details-body p {
  margin: 0;
}

.knowledge-details-body ul {
  margin: 8px 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.knowledge-note {
  font-size: 12px;
  color: #6b7da8;
}

.knowledge-actions-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-empty {
  grid-column: 1 / -1;
  color: #4a5e8f;
  text-align: center;
}

.knowledge-disclaimer-card {
  border-color: #d8e2fb;
  background: #f8fbff;
}

.knowledge-disclaimer-card p {
  margin: 8px 0 0;
  color: #5b6f98;
}
@media (max-width: 1240px) {
  .tax-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-compare-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .tax-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tax-form-grid {
    grid-template-columns: 1fr;
  }

  .tax-kpi-main {
    font-size: 30px;
  }

  .tax-deadline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .tax-deadline-item em {
    align-self: flex-start;
  }

  .knowledge-hero-card {
    flex-direction: column;
  }

  .knowledge-hero-meta {
    justify-items: start;
    text-align: left;
  }

  .knowledge-search-form {
    grid-template-columns: 1fr;
  }

  .knowledge-filter-actions {
    flex-wrap: wrap;
  }
}




@media (max-width: 980px) {
  #deadlineModal .deadline-reminder-contact-grid {
    grid-template-columns: 1fr;
  }

  #deadlineModal .deadline-reminder-actions .btn {
    width: 100%;
  }
}

#deadlineModal .deadline-reminder-pill:hover,
#deadlineModal .deadline-reminder-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(198, 211, 255, 0.62);
  outline: none;
}

#deadlineModal .deadline-reminder-pill.active {
  border-color: rgba(139, 159, 255, 0.72);
  background: rgba(116, 136, 255, 0.32);
  color: #eef3ff;
}

#deadlineModal .deadline-reminder-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}























@media (max-width: 960px) {
  .onboarding-regime-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-profile-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-actions .btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 640px) {
  .onboarding-income-control {
    grid-template-columns: 40px 1fr 40px;
  }

  .onboarding-actions {
    flex-direction: column;
  }

  .onboarding-actions .btn {
    width: 100%;
  }

  .onboarding-income-presets button {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }
}


/* Feedback */
.feedback-hero-card {
  position: relative;
  overflow: hidden;
  border-color: #d6e1fb;
  background: linear-gradient(160deg, #fbfdff 0%, #f1f5ff 100%);
  box-shadow: 0 10px 24px rgba(17, 29, 56, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.feedback-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 14%, rgba(116, 149, 255, 0.2), transparent 42%);
  pointer-events: none;
}

.feedback-hero-card > * {
  position: relative;
  z-index: 1;
}

.feedback-kicker {
  margin: 0;
  color: #5f75ad;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feedback-hero-card h3 {
  margin: 6px 0 0;
}

.feedback-hero-card .text-muted {
  margin: 8px 0 0;
  max-width: 720px;
}

.feedback-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.feedback-hero-chips span {
  border: 1px solid #cfdbfc;
  background: #eef3ff;
  color: #3f5a97;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.feedback-grid {
  align-items: start;
}

.feedback-form-card {
  border-color: #d7e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(18, 31, 58, 0.07);
}

.feedback-form {
  margin-top: 12px;
  gap: 12px;
}

.feedback-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feedback-category-option {
  display: block;
  cursor: pointer;
}

.feedback-category-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feedback-category-body {
  min-height: 96px;
  border-radius: 12px;
  border: 1px solid #d3defb;
  background: #f6f9ff;
  padding: 10px 11px;
  display: grid;
  gap: 5px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.feedback-category-body b {
  color: #213765;
  font-size: 14px;
}

.feedback-category-body small {
  color: #5f729f;
  font-size: 12px;
  line-height: 1.35;
}

.feedback-category-option:hover .feedback-category-body {
  transform: translateY(-1px);
  border-color: #bfcff9;
  background: #f1f6ff;
}

.feedback-category-option input:focus-visible + .feedback-category-body {
  outline: none;
  box-shadow: 0 0 0 4px rgba(98, 113, 233, 0.14);
}

.feedback-category-option input:checked + .feedback-category-body {
  border-color: #98adff;
  background: linear-gradient(155deg, #ebf1ff, #f4f0ff);
  box-shadow: 0 10px 20px rgba(85, 101, 200, 0.14);
}

.feedback-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #4c608f;
  font-size: 13px;
  font-weight: 600;
}

.feedback-consent-row input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: #6366f1;
}

.feedback-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-status {
  margin-top: 12px;
  font-weight: 600;
}

.feedback-status.ok {
  color: #0f9f6e;
}

.feedback-status.error {
  color: #b91c1c;
}

.feedback-side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.feedback-side-card {
  border-color: #d7e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.feedback-contact-card {
  border-color: #d7e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  box-shadow: 0 8px 20px rgba(18, 31, 58, 0.06);
}

.feedback-flow-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #4f6392;
  font-size: 14px;
}

.feedback-tip-box {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #d0dcfb;
  background: #eef4ff;
  padding: 11px 12px;
}

.feedback-tip-box strong {
  color: #213e70;
  font-size: 13px;
}

.feedback-tip-box p {
  margin: 8px 0 0;
  color: #466192;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-sla {
  margin: 8px 0 12px;
  color: #274575;
  font-size: 14px;
  font-weight: 700;
}

.feedback-telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid #cdd9fb;
  background: #eef3ff;
  color: #254b86;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.feedback-telegram-link:hover,
.feedback-telegram-link:focus-visible {
  transform: translateY(-1px);
  border-color: #aebff5;
  background: #e8efff;
  outline: none;
}

.feedback-contact-note {
  margin: 10px 0 0;
  color: #536c9b;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feedback-hero-card {
    flex-direction: column;
  }

  .feedback-hero-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .feedback-category-grid {
    grid-template-columns: 1fr;
  }

  .feedback-actions-row {
    flex-direction: column;
  }

  .feedback-actions-row .btn {
    width: 100%;
  }
}









.calc-input-note {
  margin: 2px 0 0;
  text-align: center;
  color: #9fadd7;
  font-size: 12px;
  line-height: 1.4;
}

.regime-unavailable-reason {
  margin-top: 10px;
  color: #f3c5cf;
  font-size: 13px;
  line-height: 1.4;
}























.kpi-card.tax-load-kpi {
  cursor: pointer;
}

.kpi-card.tax-load-kpi:hover,
.kpi-card.tax-load-kpi:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(220, 77, 96, 0.18);
  outline: none;
}

.kpi-card.tax-load-kpi:focus-visible {
  outline: 2px solid #9aa8ff;
  outline-offset: 2px;
}

.tax-load-paynow {
  margin-top: 8px;
  color: #3f4f7c;
  font-size: 13px;
  font-weight: 700;
}

.tax-load-paynow b {
  color: #1f2c55;
}

.tax-load-monthly-note {
  margin-top: 6px;
  color: #2f3f6a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.tax-load-monthly-note .amount-sensitive {
  font-weight: 800;
}
.tax-load-hint {
  margin-top: 8px;
  color: #5b6c96;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tax-load-min-note,
.tax-load-meta-line {
  margin-top: 4px;
  color: #7a88ad;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.inline-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 999px;
  background: #e9efff;
  color: #3f57a5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.inline-info-icon svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.tax-load-warning-badge {
  margin-top: 8px;
  display: inline-flex;
}

.tax-load-warning-hint {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #f3d5a4;
  background: #fff8e9;
  color: #8c5a14;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

#taxLoadModal .tax-load-modal-card {
  width: min(760px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid #d8e1fb;
}

#taxLoadModal .tax-load-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

#taxLoadModal .tax-load-modal-head h3 {
  margin: 0;
  color: #1b2440;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.12;
}

#taxLoadModal .tax-load-modal-body {
  display: grid;
  gap: 12px;
}

#taxLoadModal .tax-load-mobile-tabs {
  display: none;
}

#taxLoadModal .tax-load-mobile-panels {
  display: grid;
  gap: 12px;
}

#taxLoadModal .tax-load-mobile-panel {
  display: block;
}


#taxLoadModal .tax-load-highlight {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #48BB78;
  background: #F0FFF4;
}

#taxLoadModal .tax-load-highlight p {
  margin: 0;
  color: #1F7A44;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
#taxLoadModal .tax-load-section {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid transparent;
}

#taxLoadModal .tax-load-section h4 {
  margin: 0 0 10px;
  color: #223463;
  font-size: 18px;
}

#taxLoadModal .tax-load-section-now {
  background: #FFF5F5;
  border-color: #FFCCCC;
}

#taxLoadModal .tax-load-section-later {
  background: #FFFBF0;
  border-color: #FFE599;
}

#taxLoadModal .tax-load-section-info {
  background: #F0F4FF;
  border-color: #d9e2ff;
}

#taxLoadModal .tax-load-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #e3e7f5;
}

#taxLoadModal .tax-load-row:last-child {
  border-bottom: none;
}

#taxLoadModal .tax-load-row span {
  color: #455783;
  font-size: 14px;
}

#taxLoadModal .tax-load-row strong {
  color: #1c2b55;
}

#taxLoadModal .tax-load-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(67, 84, 160, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

#taxLoadModal .tax-load-total span {
  color: #2f4377;
}

#taxLoadModal .tax-load-total strong {
  color: #1d2f65;
}

#taxLoadModal .tax-load-section p {
  margin: 8px 0 0;
  color: #3e507d;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

#taxLoadModal .tax-load-modal-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

#taxLoadModal .tax-load-modal-footer .btn {
  min-width: 220px;
}

@media (max-width: 900px) {
  #taxLoadModal {
    padding: 10px;
  }

  #taxLoadModal .tax-load-modal-card {
    width: 90vw;
    max-height: 88vh;
    border-radius: 16px;
    padding: 14px;
  }

  #taxLoadModal .tax-load-modal-head h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  #taxLoadModal .tax-load-row {
    align-items: flex-start;
  }

  #taxLoadModal .tax-load-row strong {
    white-space: nowrap;
  }

  #taxLoadModal .tax-load-modal-footer .btn {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 768px) {
  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact {
    width: min(94vw, 540px) !important;
    max-height: min(88vh, 760px) !important;
    overflow: hidden !important;
    padding: 14px !important;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-modal-head {
    margin-bottom: 0;
    align-items: center;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-modal-head h3 {
    font-size: clamp(16px, 5.8vw, 24px);
    line-height: 1.2;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-modal-body {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-highlight {
    padding: 9px 10px;
    border-radius: 12px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-highlight p {
    font-size: 12px;
    line-height: 1.35;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-mobile-tab {
    min-height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #d4defa;
    background: #f2f6ff;
    color: #52659a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-mobile-tab.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #6276ff, #8c66ff);
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-mobile-panels {
    min-height: 0;
    overflow: hidden;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-mobile-panel {
    display: none;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-mobile-panel.is-active {
    display: block;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-section {
    padding: 10px;
    border-radius: 12px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-section h4 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.2;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-row {
    gap: 8px;
    padding: 5px 0;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-row span {
    font-size: 12px;
    line-height: 1.3;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-row strong {
    font-size: 12px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-total {
    margin-top: 6px;
    padding-top: 8px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-total span,
  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-total strong {
    font-size: 13px;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-section p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-modal-footer {
    margin-top: 0;
  }

  #taxLoadModal .tax-load-modal-card.tax-load-mobile-compact .tax-load-modal-footer .btn {
    min-height: 40px;
  }
}






/* Sidebar Refresh */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  padding: 10px 8px;
}

.sidebar-group {
  gap: 2px;
}

.sidebar-group + .sidebar-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(214, 222, 255, 0.12);
}

.sidebar-group-title {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #718096;
  opacity: 0.7;
  text-transform: uppercase;
  padding: 16px 16px 6px;
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-legal-links {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  padding: 0 16px 4px;
}

.sidebar-legal-links a {
  color: #8fa1c9;
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
}

.sidebar-legal-links a:hover,
.sidebar-legal-links a:focus-visible {
  color: #dbe7ff;
  text-decoration: underline;
  outline: none;
}

.sidebar button,
.sidebar-footer > button[data-page] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #A0AEC0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar button[data-page]::before,
.sidebar button.active::after {
  content: none !important;
  display: none !important;
}

.nav-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.sidebar button .nav-icon,
.sidebar-footer > button[data-page] .nav-icon {
  color: #A0AEC0;
  stroke: currentColor;
}

.sidebar button span {
  line-height: 1.2;
}

.sidebar button.active,
.sidebar-footer > button[data-page].active {
  border-left: 3px solid #6C5CE7;
  padding-left: 13px;
  background: rgba(108, 92, 231, 0.1);
  color: #FFFFFF;
}

.sidebar button.active .nav-icon,
.sidebar-footer > button[data-page].active .nav-icon {
  color: #FFFFFF;
}

.sidebar button:hover,
.sidebar-footer > button[data-page]:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.sidebar button:hover .nav-icon,
.sidebar-footer > button[data-page]:hover .nav-icon {
  color: #FFFFFF;
}

.nav-badge {
  background: #E53E3E;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
  cursor: help;
}

.account-box #planBadge {
  display: inline-flex;
  align-items: center;
}

.plan-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.plan-pro {
  background: #22C55E;
  color: #FFFFFF;
}

.plan-trial {
  background: #ED8936;
  color: #fff;
}

.plan-free {
  background: #718096;
  color: #fff;
}

.sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid #d3ddf8;
  background: #f5f8ff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.sidebar-toggle .nav-icon {
  color: #2f4578;
  stroke: currentColor;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 960px) {
  .dashboard-app {
    position: relative;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 140;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .dashboard-app.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 35, 0.45);
    z-index: 130;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .dashboard-app.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .main-header {
    justify-content: flex-start;
    gap: 10px;
  }

  .main-header .header-actions {
    margin-left: auto;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #121a34;
  }

  .mobile-tabbar button {
    border: 1px solid rgba(154, 171, 214, 0.28);
    border-radius: 8px;
    background: rgba(130, 147, 198, 0.16);
    color: #a8b8de;
    min-height: 36px;
    font-size: 11px;
    font-weight: 600;
  }

  .mobile-tabbar button.active {
    color: #ffffff;
    background: rgba(108, 92, 231, 0.42);
    border-color: rgba(137, 122, 255, 0.8);
  }

  .main-area {
    padding-bottom: 64px;
  }
}
/* Income Journal Mobile Cards */
.income-mobile-list,
.income-mobile-total {
  display: none;
}

.income-mobile-row {
  border: 1px solid #d7e1fa;
  border-radius: 12px;
  background: #f8fbff;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
}

.income-mobile-row.income-mobile-row-max {
  background: #fffbf0;
  border-color: #f2d89b;
}

.income-mobile-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.income-mobile-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.income-mobile-row-date {
  color: #7a8eb6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.income-mobile-row-comment {
  color: #566a98;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.income-mobile-row-comment.is-empty {
  color: #93a2c2;
}

.income-mobile-row-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.income-mobile-row-amount {
  color: #1b2a55;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(22px, 6.4vw, 28px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  white-space: nowrap;
  min-width: 0;
  text-align: right;
}

.income-mobile-row-amount-m {
  font-size: clamp(21px, 6.2vw, 26px);
}

.income-mobile-row-amount-s {
  font-size: clamp(18px, 5.4vw, 22px);
}

.income-mobile-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.income-mobile-total {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #dfe5f3;
  background: #F7FAFC;
  color: #2d3748;
  padding: 11px 12px;
}

.income-mobile-total strong {
  display: block;
}

.income-cards-empty {
  text-align: center;
  border: 1px dashed #ccd8f5;
  border-radius: 12px;
  padding: 16px 12px;
  color: #6e7fa8;
  font-weight: 600;
  background: #f8fbff;
}

@media (max-width: 960px) {
  .income-layout {
    grid-template-columns: 1fr;
  }

  .income-metrics-main,
  .income-metrics-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .income-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .income-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .income-journal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .income-journal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .income-journal-actions .btn {
    flex: 1 1 auto;
  }

  .income-month-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .income-month-switcher {
    justify-content: space-between;
  }

  .income-month-label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .income-month-total {
    text-align: left;
    white-space: normal;
  }

  .income-filters {
    grid-template-columns: 1fr;
  }

  .income-filter-actions {
    justify-content: flex-start;
  }

  .income-filter-actions .btn {
    width: 100%;
  }

  .income-table-desktop {
    display: none;
  }

  .income-mobile-list {
    display: grid;
    gap: 10px;
  }

  .income-mobile-total {
    display: block;
  }

  .income-mobile-row {
    padding: 8px 9px;
  }

  .income-mobile-row-top .cat-pill {
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .income-mobile-row-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .income-mobile-row-amount {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .income-mobile-row-actions .icon-action-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
    min-width: 30px;
    padding: 0;
  }

  .income-metrics-main,
  .income-metrics-secondary {
    grid-template-columns: 1fr;
  }

  .income-trial-notice {
    padding: 10px 12px;
  }

  .income-trial-notice p {
    font-size: 13px;
  }
}


/* Global Mobile UX Pass (Dashboard App) */
@media (max-width: 1180px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .page-content {
    padding: 14px;
  }

  .card {
    padding: 14px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .main-header {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .main-header h2 {
    margin-top: 2px;
    font-size: clamp(22px, 5.4vw, 30px);
    line-height: 1.1;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .header-actions select {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
  }

  .header-actions .btn {
    width: 100%;
    min-height: 42px;
  }

  .table-wrap {
    max-height: none;
  }

  .dashboard-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-welcome-actions {
    width: 100%;
  }

  .dashboard-welcome-actions .btn {
    flex: 1 1 0;
  }

  .progress-card-head {
    flex-wrap: wrap;
  }

  .tax-planner-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tax-planner-head .btn {
    width: 100%;
  }

  .tax-deadlines-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tax-deadlines-head .btn {
    width: 100%;
  }

  .calendar-summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-summary-chip {
    align-self: flex-start;
  }

  .calendar-filter-groups {
    grid-template-columns: 1fr;
  }

  .calendar-search-form {
    grid-template-columns: 1fr;
  }

  .dashboard-recent-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-recent-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-month-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-month-switcher-label {
    min-width: 0;
    flex: 1;
  }

  .calendar-filter-actions {
    justify-content: flex-start;
  }

  .feature-lock-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .knowledge-actions-row .btn,
  .feedback-actions-row .btn,
  .subscription-actions .btn,
  .subscription-manage-link {
    width: 100%;
  }

  .subscription-manage-link {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .page-content {
    padding: 12px;
  }

  .card {
    padding: 12px;
    border-radius: 14px;
  }

  .main-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .main-header h2 {
    font-size: clamp(20px, 6vw, 28px);
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .kpi-card .stat-value,
  .tax-kpi-main,
  .income-summary-card .stat-value,
  .calc-summary-value {
    font-size: clamp(30px, 9vw, 40px);
  }

  .chart-panel .chart-row {
    height: 200px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 10px 4px 2px;
    scroll-snap-type: x proximity;
  }

  .chart-panel .chart-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

}

.chart-item:focus-visible {
  outline: 2px solid #6c5ce7;
  outline-offset: 2px;
  border-radius: 8px;
}

.dashboard-welcome-copy h3 {
  margin: 0;
  color: #273b6b;
  font-size: 22px;
  line-height: 1.2;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.dashboard-welcome-copy p {
  margin: 6px 0 0;
  color: #6b7ca8;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.dashboard-welcome-copy .dashboard-welcome-deadline {
  margin-top: 4px;
  color: #5f6f98;
  font-weight: 600;
}

.dashboard-welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.dashboard-welcome-actions .btn {
  min-height: 42px;
  white-space: nowrap;
}

.dashboard-welcome-primary {
  background: #6C5CE7;
  border-color: #6C5CE7;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(108, 92, 231, 0.28);
}

.dashboard-welcome-primary:hover,
.dashboard-welcome-primary:focus-visible {
  background: #5b4dd1;
  border-color: #5b4dd1;
}

.dashboard-welcome-secondary {
  background: transparent;
  border: 1px solid #c7d2f6;
  color: #445b93;
}

.dashboard-welcome-secondary:hover,
.dashboard-welcome-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  border-color: #b4c4f3;
  color: #314978;
}

@media (max-width: 900px) {
  .dashboard-welcome-banner {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .dashboard-welcome-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-welcome-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .dashboard-welcome-main {
    align-items: flex-start;
  }

  .dashboard-welcome-icon {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .dashboard-welcome-copy h3 {
    font-size: 18px;
  }

  .dashboard-welcome-copy p {
    font-size: 13px;
  }

  .dashboard-welcome-actions {
    grid-template-columns: 1fr;
  }
}

.tax-kpi-subtitle {
  margin-top: 4px;
  color: #7a88ad;
  font-size: 12px;
  font-weight: 500;
}


.settings-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.subscription-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.subscription-manage-link {
  display: inline-flex;
  align-items: center;
  color: #5268a6;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.subscription-manage-link:hover,
.subscription-manage-link:focus-visible {
  color: #394f90;
  text-decoration: underline;
}

.subscription-debug-hint {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
}









.deadline-income-hint {
  margin-top: 4px;
  color: #8a97b6;
}


.sidebar-beta-banner {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(151, 163, 194, 0.35);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.sidebar-beta-banner .beta-banner-text {
  color: #e5edff;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.sidebar-beta-banner .beta-banner-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(138, 153, 201, 0.45);
  background: rgba(108, 92, 231, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-beta-banner .beta-banner-btn:hover,
.sidebar-beta-banner .beta-banner-btn:focus-visible {
  background: rgba(108, 92, 231, 0.3);
  border-color: rgba(162, 176, 226, 0.75);
  outline: none;
}

.sidebar-beta-banner.pro {
  border-color: rgba(86, 214, 120, 0.45);
}

.sidebar-beta-banner.pro .beta-banner-text {
  color: #f8fbff;
}

.sidebar-beta-banner.pro-green {
  background: rgba(34, 197, 94, 0.16);
}

.sidebar-beta-banner.pro-yellow {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(245, 200, 77, 0.45);
}

.sidebar-beta-banner.pro-red {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(244, 114, 114, 0.45);
}

.beta-access-modal-card {
  width: min(560px, 100%);
  border-radius: 18px;
  border: 1px solid #d8e0fb;
  background: #ffffff;
  padding: 20px;
}

.beta-access-head h3 {
  margin: 0;
  color: #1f2c55;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
}

.beta-access-message {
  margin: 12px 0 0;
  color: #4f618e;
  font-size: 16px;
  line-height: 1.5;
}

.beta-access-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.beta-access-actions .btn {
  min-width: 240px;
}

@media (max-width: 720px) {
  .beta-access-modal-card {
    width: 90vw;
    padding: 16px;
  }

  .beta-access-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

body.onboarding-tour-active {
  overflow: hidden;
}

.onboarding-tour-root {
  pointer-events: none;
}

.onboarding-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 12010;
  background: rgba(10, 14, 30, 0.5);
  pointer-events: auto;
  animation: onboardingTourFadeIn 180ms ease;
}

.onboarding-tour-root.mobile .onboarding-tour-overlay {
  background: rgba(10, 14, 30, 0.4);
}

.onboarding-tour-highlight {
  position: relative;
  z-index: 12020;
  box-shadow: 0 0 0 4px #6c5ce7, 0 20px 36px rgba(14, 21, 43, 0.24);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.onboarding-tour-panel {
  position: fixed;
  pointer-events: auto;
  z-index: 12030;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #dbe2ff;
  box-shadow: 0 28px 70px rgba(8, 14, 36, 0.36);
  overflow: hidden;
}

.onboarding-tour-root.desktop .onboarding-tour-panel {
  width: min(480px, calc(100vw - 32px));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: onboardingTourScaleIn 200ms ease;
}

.onboarding-tour-root.mobile .onboarding-tour-panel {
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  max-height: 38vh;
  min-height: 32vh;
  border-radius: 18px;
  animation: onboardingTourSlideUp 220ms ease;
  overflow-y: auto;
}

.onboarding-tour-topbar {
  height: 5px;
  background: #6c5ce7;
}

.onboarding-tour-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #d8dff8;
  margin: 10px auto 2px;
}

.onboarding-tour-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 0;
}

.onboarding-tour-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef0ff;
  color: #6c5ce7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding-tour-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.onboarding-tour-header h3 {
  margin: 0;
  color: #1f2c55;
  font-size: 22px;
  line-height: 1.2;
}

.onboarding-tour-text {
  margin: 12px 0 0;
  padding: 0 20px;
  color: #556791;
  font-size: 15px;
  line-height: 1.5;
}

.onboarding-tour-footer {
  padding: 16px 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.onboarding-tour-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

.onboarding-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d0ea;
}

.onboarding-tour-dot.active {
  background: #6c5ce7;
}

.onboarding-tour-next {
  min-width: 142px;
}

.onboarding-tour-skip {
  border: none;
  background: transparent;
  color: #7b89ad;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.onboarding-tour-skip:hover,
.onboarding-tour-skip:focus-visible {
  color: #4f618f;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 768px) {
  .onboarding-tour-header {
    padding: 10px 16px 0;
  }

  .onboarding-tour-header h3 {
    font-size: 20px;
  }

  .onboarding-tour-text {
    padding: 0 16px;
    font-size: 14px;
  }

  .onboarding-tour-footer {
    padding: 14px 16px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .onboarding-tour-dots {
    margin-right: 0;
    justify-content: center;
  }

  .onboarding-tour-next {
    width: 100%;
    min-width: 0;
  }

  .onboarding-tour-skip {
    text-align: center;
    width: 100%;
  }
}

@keyframes onboardingTourFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes onboardingTourScaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes onboardingTourSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



@media (max-width: 720px) {
  .main-header-title {
    gap: 8px;
  }

  .amount-visibility-btn {
    width: 34px;
    height: 34px;
  }
}



/* Income Journal Polish (Filters + Header) */
.income-journal-head {
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e8fb;
}

.income-journal-head h3 {
  line-height: 1.15;
}

.income-journal-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.income-filters {
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(160px, 1fr)) auto;
  gap: 16px;
  margin-bottom: 0;
  padding: 16px 0;
  border: 0;
  background: transparent;
}

.income-filters .income-filter-field {
  display: grid;
  gap: 0;
  margin: 0;
}

.income-filter-label {
  color: #6B7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.income-filter-input-wrap,
.income-filter-select-wrap {
  position: relative;
}

.income-filters input,
.income-filters select {
  width: 100%;
  min-height: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #374151;
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.income-filter-select-wrap select {
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
  padding-right: 14px;
}

.income-filters input::placeholder {
  color: #9CA3AF;
}

.income-filters input:hover,
.income-filters select:hover,
.income-filters input:focus,
.income-filters select:focus {
  border-color: #6366F1;
  box-shadow: none;
  background: #ffffff;
}

.income-filter-actions {
  justify-content: flex-end;
  align-self: end;
}

.income-filter-reset-link {
  border: 0;
  background: transparent;
  color: #9CA3AF;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  min-height: 40px;
  cursor: pointer;
}

.income-filter-reset-link:hover,
.income-filter-reset-link:focus-visible {
  color: #6b7280;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 960px) {
  .income-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .income-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .income-journal-head {
    padding-bottom: 0;
    border-bottom: none;
  }

  .income-filters {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .income-filter-actions {
    justify-content: flex-start;
  }

  .income-filter-actions .btn {
    width: 100%;
  }
}
















@media (max-width: 960px) {
  .calendar-reminder-toggle-label {
    display: none;
  }

  .calendar-reminder-toggle {
    padding: 6px 8px;
    margin-right: 0;
  }

  .header-actions .calendar-reminder-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ------------------------------------------------------------------ */
/* Unified Mobile UX Stabilization (2026-03-14)                       */
/* ------------------------------------------------------------------ */
#onboardingTourRoot {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

#onboardingTourRoot .onboarding-tour-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 12010 !important;
  pointer-events: auto !important;
}

#onboardingTourRoot .onboarding-tour-panel {
  position: fixed !important;
  z-index: 12030 !important;
  pointer-events: auto !important;
}

#onboardingTourRoot.desktop .onboarding-tour-panel {
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

#onboardingTourRoot.mobile .onboarding-tour-panel {
  left: 12px;
  right: 12px;
  bottom: 12px;
  top: auto;
  width: auto;
  max-height: min(62vh, 520px);
  min-height: 0;
  transform: none;
}

@media (max-width: 1180px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .dashboard-app {
    height: 100dvh;
  }

  .main-area {
    min-width: 0;
    overflow: auto;
    padding-bottom: 78px;
  }

  .page-content {
    padding: 14px;
  }

  .card {
    padding: 14px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .dashboard-main-grid,
  .calendar-kpi-grid,
  .calendar-filter-groups,
  .tax-form-grid,
  .tax-compare-grid,
  .feedback-grid,
  .knowledge-grid {
    grid-template-columns: 1fr !important;
  }

  .main-header {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }

  .main-header-title {
    width: 100%;
    min-width: 0;
  }

  .main-header h2 {
    font-size: clamp(22px, 5vw, 28px);
    line-height: 1.12;
  }

  .amount-visibility-btn {
    margin-left: auto;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }

  .header-actions #regimeSelect {
    flex: 1 1 210px;
    min-height: 40px;
  }

  .header-actions .btn {
    min-height: 40px;
  }

  .header-actions .calendar-reminder-toggle {
    margin-right: auto;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-table,
  .calendar-table,
  .tax-forecast-table {
    min-width: 640px;
  }

  .dashboard-main-grid {
    gap: 14px;
  }

  .dashboard-left-column {
    gap: 14px;
  }

  .dashboard-month-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .dashboard-month-tab {
    flex: 0 0 auto;
  }

  .dashboard-welcome-banner {
    display: grid;
    gap: 12px;
  }

  .dashboard-welcome-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-welcome-actions .btn {
    width: 100%;
  }

  .dashboard-recent-head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .dashboard-month-switcher {
    margin-left: auto;
  }

  .dashboard-recent-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-recent-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .dashboard-recent-all-btn {
    grid-column: 1 / -1;
  }

  .progress-card-compact {
    min-height: 0;
  }

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

  .income-month-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .income-month-total {
    margin-left: auto;
  }

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

  .income-filter-actions {
    grid-column: 1 / -1;
  }

  .tax-presets {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tax-presets span {
    width: 100%;
  }

  .tax-deadline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-filter-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .calendar-filter-actions .btn {
    flex: 1 1 180px;
  }

  .knowledge-search-form {
    grid-template-columns: 1fr;
  }

  .knowledge-filter-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .feedback-actions-row {
    flex-wrap: wrap;
  }

  .feedback-actions-row .btn {
    flex: 1 1 220px;
  }

  .subscription-actions {
    align-items: stretch;
  }

  .subscription-actions .btn,
  .subscription-manage-link {
    width: 100%;
    justify-content: center;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #121a34;
    scrollbar-width: thin;
  }

  .mobile-tabbar button {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .trust-strip {
    width: min(1040px, calc(100% - 24px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .trust-card {
    min-width: 0;
  }

  #deadlineModal .modal-card,
  #taxLoadModal .modal-card,
  #remindersSetupModal .modal-card,
  #incomeDeleteModal .modal-card,
  #proModal .modal-card,
  #betaAccessModal .modal-card,
  #loginModal .modal-card {
    width: min(92vw, 720px);
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .main-area {
    padding-bottom: 84px;
  }

  .page-content {
    padding: 12px;
  }

  .card {
    padding: 12px;
    border-radius: 14px;
  }

  .main-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .main-header h2 {
    font-size: clamp(20px, 6vw, 26px);
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions .calendar-reminder-toggle {
    order: 1;
    width: 100%;
    justify-content: space-between;
    margin-right: 0;
  }

  .header-actions #regimeSelect {
    order: 2;
    flex: 1 1 100%;
  }

  .header-actions #proBtn {
    order: 3;
    flex: 1 1 calc(50% - 4px);
  }

  .header-actions [data-action="logout"] {
    order: 4;
    flex: 1 1 calc(50% - 4px);
  }

  .kpi-card .stat-value,
  .tax-kpi-main,
  .income-summary-card .stat-value {
    font-size: clamp(30px, 9vw, 40px);
  }

  .chart-row {
    height: 176px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 2px 2px;
  }

  .chart-item {
    min-width: 54px;
  }

  .chart-bar {
    width: 38px;
  }

  .dashboard-welcome-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-recent-side {
    grid-template-columns: 1fr;
  }

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

  .amount-presets {
    margin-top: 6px;
  }

  .income-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .income-form-actions .btn {
    width: 100%;
  }

  .income-journal-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .income-journal-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .income-journal-actions .btn {
    flex: 1 1 auto;
  }

  .income-month-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .income-month-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .income-month-total {
    margin-left: 0;
    text-align: left;
  }

  .income-filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .income-filter-actions {
    justify-content: flex-start;
  }

  .income-table-desktop {
    display: none;
  }

  .income-mobile-list {
    display: grid;
    gap: 10px;
  }

  .income-mobile-total {
    display: block;
  }

  .income-mobile-row {
    padding: 8px 9px;
  }

  .income-mobile-row-top .cat-pill {
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .income-mobile-row-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .income-mobile-row-amount {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .income-mobile-row-actions .icon-action-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
    min-width: 30px;
    padding: 0;
  }

  .tax-kpi-main.is-empty {
    font-size: 24px;
  }

  .tax-compare-value {
    font-size: clamp(28px, 8vw, 34px);
  }

  .tax-deadline-item em {
    align-self: flex-start;
  }

  .calendar-table,
  .tax-forecast-table,
  .dashboard-table {
    min-width: 620px;
  }

  .feedback-category-grid,
  .onboarding-regime-grid,
  .onboarding-profile-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    flex-direction: column;
  }

  .onboarding-actions .btn {
    width: 100%;
  }

  .public-nav {
    padding: 12px 14px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-link {
    font-size: 13px;
    padding: 8px 6px;
  }

  .public-nav .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 28px 16px 8px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.2vw, 46px);
    max-width: 18.5ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: normal;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.52;
    max-width: 42ch;
    text-wrap: normal;
  }

  .trust-strip {
    width: min(1040px, calc(100% - 20px));
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .trust-card {
    padding: 14px;
    min-height: 0;
  }

  .trust-card h3 {
    font-size: 18px;
    line-height: 1.24;
    text-wrap: balance;
  }

  .trust-card p {
    font-size: 14px;
    line-height: 1.46;
  }

  .trust-title {
    align-items: flex-start;
    gap: 8px;
  }

  .quick-calc,
  .landing-block {
    padding-left: 14px;
    padding-right: 14px;
  }

  .calc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .calc-head-meta {
    width: 100%;
    justify-content: space-between;
  }

  .landing-income-control {
    width: 100%;
  }

  .income-presets button {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }

  .public-legal-footer {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .main-area {
    padding-bottom: 88px;
  }

  .page-content {
    padding: 10px;
  }

  .main-header-title {
    gap: 8px;
  }

  .amount-visibility-btn {
    width: 34px;
    height: 34px;
  }

  .header-actions #proBtn,
  .header-actions [data-action="logout"] {
    flex: 1 1 100%;
  }

  .calendar-reminder-toggle-label {
    display: none;
  }

  .calendar-reminder-toggle {
    padding: 6px 8px;
  }

  .dashboard-month-switcher-label,
  .income-month-label {
    min-width: 0;
    font-size: 12px;
  }

  .mobile-tabbar {
    padding: 8px;
    gap: 6px;
  }

  .mobile-tabbar button {
    min-width: 80px;
    font-size: 11px;
  }

  .trust-card h3 {
    font-size: 18px;
  }

  .trust-card p {
    font-size: 15px;
  }
}

/* ------------------------------------------------------------------ */
/* Text Layout Guardrails                                             */
/* ------------------------------------------------------------------ */
.main-area,
.page-content,
.card,
.grid > *,
.dashboard-main-grid > *,
.dashboard-left-column > *,
.dashboard-recent-layout > *,
.dashboard-recent-main,
.dashboard-recent-side,
.income-layout > *,
.tax-compare-grid > *,
.knowledge-grid > *,
.feedback-grid > * {
  min-width: 0;
}

.main-header-title,
.main-header-title h2,
.header-actions,
.calendar-reminder-toggle,
.calendar-reminder-toggle-label,
.dashboard-recent-head,
.dashboard-month-switcher,
.income-month-switcher,
.income-journal-head > div,
.tax-planner-head > div,
.tax-deadlines-head h3,
.calendar-summary-head h3 {
  min-width: 0;
}

h1,
h2,
h3,
h4,
.stat-title,
.stat-sub,
.kpi-note,
.text-muted,
.dashboard-tax-row span,
.dashboard-tax-row-note,
.dashboard-tax-subnote,
.dashboard-tax-month-context,
.dashboard-recent-empty-small,
.dashboard-recent-stat-row span,
.tax-kpi-meta,
.tax-compare-note,
.tax-compare-context,
.tax-input-hint,
.calendar-event-title,
.calendar-event-sub,
.calendar-event-note,
.knowledge-card p,
.knowledge-note,
.knowledge-details-body,
.feedback-hero-card .text-muted,
.feedback-contact-note,
.subscription-debug-hint {
  overflow-wrap: anywhere;
  word-break: normal;
}

.tax-row {
  align-items: flex-start;
}

.tax-row .text-muted,
.tax-row > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}

.tax-row strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.dashboard-tax-row span {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-tax-row strong,
.dashboard-tax-total strong {
  flex: 0 0 auto;
}

.dashboard-tax-total span {
  flex: 1 1 auto;
  min-width: 0;
}

.income-table td,
.dashboard-table td,
.calendar-table td,
.tax-forecast-table td {
  vertical-align: top;
}

@media (max-width: 720px) {
  .btn {
    white-space: normal;
    line-height: 1.25;
  }

  .sidebar button span,
  .mobile-tabbar button {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 960px) {
  .regime-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .regime-card {
    min-height: 0;
    padding: 14px;
  }

  .regime-title {
    font-size: 19px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .regime-card .amount {
    font-size: clamp(34px, 6vw, 44px);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .regime-period,
  .regime-save {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 860px) {
  .regime-cards {
    grid-template-columns: 1fr;
  }

  .quick-footer .btn {
    width: 100%;
    max-width: 100%;
  }
}

.mobile-header-brand {
  display: none;
}

@media (max-width: 768px) {
  .main-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    gap: 0;
    justify-content: initial;
    flex-wrap: initial;
  }

  .sidebar-toggle {
    display: none !important;
  }

  #mobileMenuBtn {
    display: inline-flex !important;
    grid-column: 1;
    justify-self: start;
    width: 36px;
    height: 36px;
    border: 1px solid #d2dbf4;
    border-radius: 10px;
    background: #f8fbff;
    color: #33487a;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
  }

  #mobileMenuBtn .nav-icon {
    width: 24px;
    height: 24px;
  }

  .main-header-title {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    flex: initial;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .mobile-header-brand {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #1d2a52;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-align: center;
    width: 100%;
  }

  .mobile-header-brand span {
    color: #5f6ff2;
  }

  .main-header-title #pageTitle,
  .main-header-title .amount-visibility-btn {
    display: none !important;
  }

  #mobileAmountsVisibilityBtn {
    display: inline-flex !important;
    grid-column: 3;
    justify-self: end;
    width: 36px;
    height: 36px;
    flex: initial;
    border-radius: 10px;
    margin-left: 0;
  }

  #mobileAmountsVisibilityBtn .amount-visibility-icon {
    width: 24px;
    height: 24px;
  }

  .main-header .header-actions {
    display: none !important;
  }

  .calendar-reminder-toggle,
  .calendar-reminder-settings-btn {
    display: none !important;
  }

  .quick-calc.card-dark {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .calc-head {
    margin-bottom: 12px;
    text-align: center;
  }

  .calc-head h2 {
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -0.01em;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-title {
    gap: 8px;
  }

  .calc-head-meta {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
  }

  .landing-period-switch {
    width: 100%;
    max-width: 320px;
  }

  .landing-period-switch button {
    flex: 1 1 50%;
    min-height: 34px;
    font-size: 13px;
  }

  .calc-input-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .calc-input-row label {
    font-size: 13px;
    line-height: 1.35;
  }

  .landing-income-control {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
  }

  .step-btn {
    width: 42px;
    height: 40px;
    border-radius: 10px;
    font-size: 24px;
  }

  .landing-income-wrap {
    width: 100%;
    min-width: 0;
  }

  #landingIncome {
    font-size: 32px;
    padding: 7px 10px 7px 0;
  }

  .calc-input-note {
    font-size: 12px;
    line-height: 1.4;
    max-width: 38ch;
    margin: 0 auto 10px;
  }

  .income-presets {
    gap: 8px;
    margin: 0 0 12px;
  }

  .income-presets button {
    flex: 1 1 calc(50% - 6px);
    min-height: 34px;
    font-size: 14px;
  }

  .landing-summary-card {
    padding: 12px;
    border-radius: 14px;
  }

  .landing-summary-main small {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .landing-summary-main p {
    font-size: 13px;
    line-height: 1.45;
  }

  .landing-summary-main {
    text-align: center;
  }

  .landing-summary-chips {
    gap: 5px;
    justify-content: center;
  }

  .landing-summary-chip {
    font-size: 11px;
    padding: 4px 8px;
  }

  .landing-practical-hint {
    padding: 10px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
  }

  .landing-practical-line {
    font-size: 13px;
  }

  .landing-practical-more > summary {
    font-size: 11px;
  }

  .landing-practical-cta {
    width: 100%;
    min-height: 38px;
    font-size: 14px;
  }

  .landing-breakdown {
    gap: 6px;
  }

  .landing-breakdown-accordion > summary {
    padding: 8px 32px 8px 10px;
    font-size: 12px;
  }

  .landing-breakdown-accordion .landing-breakdown {
    padding: 0 8px 8px;
  }

  .landing-breakdown span {
    width: 100%;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 13px;
  }

  .regime-cards {
    gap: 8px;
  }

  .regime-card {
    padding: 12px;
    border-radius: 12px;
  }

  .regime-card.best {
    min-height: 0;
  }

  .regime-card.best .regime-title {
    font-size: 16px;
    font-weight: 700;
    color: #f3f8ff;
    margin-top: 4px;
  }

  .regime-card.best .amount {
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.08;
    margin-top: 6px;
  }

  .regime-card:not(.best) {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title amount"
      "period amount";
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    text-align: left;
  }

  .regime-card:not(.best) .regime-top-note,
  .regime-card:not(.best) .regime-save {
    display: none;
  }

  .regime-card:not(.best) .regime-title {
    grid-area: title;
    margin-top: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #edf3ff;
  }

  .regime-card:not(.best) .amount {
    grid-area: amount;
    margin-top: 0;
    font-size: clamp(24px, 7.6vw, 31px);
    line-height: 1.04;
    text-align: right;
    white-space: nowrap;
  }

  .regime-card:not(.best) .regime-period {
    grid-area: period;
    margin-top: 1px;
    font-size: 11px;
    color: #c5d3f6;
  }

  .regime-card:not(.best).unavailable {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "period";
    row-gap: 4px;
  }

  .regime-card:not(.best).unavailable .regime-unavailable-reason {
    grid-area: period;
    font-size: 11px;
    line-height: 1.35;
    color: #f6d2d8;
  }

  .regime-save {
    margin-top: 4px;
    min-height: 0;
    font-size: 11px;
  }

  .quick-footer {
    margin-top: 14px;
  }

  .quick-footer .btn {
    min-height: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 15px;
  }

  #mobileDrawerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  #mobileDrawerOverlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  #mobileDrawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: calc(100vw - 20px);
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 10px 0 28px rgba(10, 16, 35, 0.2);
    padding: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
  }

  #mobileDrawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer-close {
    align-self: flex-end;
    margin: 0 12px 8px 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-drawer-profile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 0 16px 10px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
  }

  .mobile-drawer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
  }

  .mobile-drawer-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2e58;
    line-height: 1.2;
  }

  .mobile-drawer-user-email {
    margin-top: 3px;
    color: #64739c;
    font-size: 13px;
    line-height: 1.25;
    word-break: break-word;
  }

  .mobile-drawer-plan-badge {
    flex: 0 0 auto;
  }

  .mobile-drawer-regime-wrap {
    margin: 0 16px 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    display: grid;
    gap: 8px;
  }

  .mobile-drawer-regime-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.1;
  }

  .mobile-drawer-regime-tabs {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.8fr;
    gap: 6px;
  }

  .mobile-drawer-regime-btn {
    border: 0;
    border-radius: 10px;
    min-height: 34px;
    padding: 8px 4px;
    background: #f1f5f9;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .mobile-drawer-regime-btn.active {
    background: #6366f1;
    color: #ffffff;
  }

  .mobile-drawer-reminders-wrap {
    margin: 0 16px 10px;
    padding: 14px 16px;
    background: #f0f4ff;
    border-radius: 12px;
  }

  #mobileDrawerReminderToggle {
    display: inline-flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  #mobileDrawerReminderToggle .calendar-reminder-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #2f4677;
  }

  #mobileDrawerReminderToggle .calendar-reminder-settings-btn {
    display: inline-flex !important;
    width: 24px;
    height: 24px;
  }

  #mobileDrawerReminderToggle .calendar-reminder-settings-icon {
    width: 16px;
    height: 16px;
  }

  .mobile-drawer-nav {
    display: grid;
    gap: 0;
    margin: 0;
  }

  .mobile-drawer-group-title {
    margin: 6px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.2;
  }

  .mobile-drawer-item {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #1f2e58;
  }

  .mobile-drawer-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: #1f2e58;
  }

  .mobile-drawer-item.active .mobile-drawer-item-main {
    font-weight: 700;
  }

  .mobile-drawer-item.active .mobile-drawer-item-arrow {
    color: #6366f1;
  }

  .mobile-drawer-item:active,
  .mobile-drawer-item:hover,
  .mobile-drawer-item:focus-visible {
    background: #f5f7fb;
    outline: none;
  }

  .mobile-drawer-item-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
  }

  .mobile-drawer-item-icon {
    width: 20px;
    height: 20px;
    color: #6366f1;
    flex: 0 0 20px;
    stroke-width: 2;
  }

  .mobile-drawer-item-arrow {
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-drawer-actions {
    display: grid;
    gap: 8px;
    margin: 10px 16px 0;
  }

  .mobile-drawer-pro-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.24);
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-drawer-pro-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-drawer-pro-btn.is-active {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.28);
  }

  .mobile-drawer-pro-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex: 0 0 16px;
  }

  .mobile-drawer-pro-btn:hover,
  .mobile-drawer-pro-btn:focus-visible {
    filter: brightness(1.03);
    outline: none;
  }

  .mobile-drawer-logout-btn {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
  }

  .mobile-drawer-logout-btn .mobile-drawer-item-icon {
    color: #ef4444;
  }

  .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    text-align: center;
  }

  .mobile-drawer-links a {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
  }

  .mobile-drawer-links a:hover,
  .mobile-drawer-links a:focus-visible {
    color: #5f6ff2;
    text-decoration: underline;
  }

  .main-area {
    padding-bottom: 76px;
  }

  .mobile-tabbar {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #121a34;
  }

  .mobile-tabbar button {
    min-width: 0;
    height: 44px;
    padding: 2px 2px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .mobile-tabbar button .mobile-tab-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
  }

  .mobile-tabbar button span {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    align-items: stretch;
  }

  .kpi-grid > .kpi-card {
    padding: 14px;
  }

  .kpi-grid > .kpi-card:first-child {
    grid-column: auto;
  }

  .kpi-card .stat-value,
  .kpi-card .kpi-value {
    font-size: 20px !important;
    line-height: 1.12;
  }

  .kpi-card .stat-title,
  .kpi-card .kpi-label {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .kpi-trend {
    font-size: 11px;
    padding: 2px 6px;
  }

  .mobile-more-modal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(7, 10, 26, 0.56);
    backdrop-filter: blur(3px);
  }

  .mobile-more-sheet {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    border: 1px solid #d8e1f9;
    border-bottom: 0;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    animation: mobileSheetUp 180ms ease;
  }

  .mobile-more-handle {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: #c8d2ec;
    margin: 0 auto 10px;
  }

  .mobile-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .mobile-more-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
  }

  .mobile-more-actions {
    display: grid;
    gap: 8px;
  }

  .mobile-more-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }
}

@keyframes mobileSheetUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.kpi-card-actionable {
  cursor: pointer;
}

.dashboard-kpi-sheet-card {
  width: min(420px, 100%);
}

.dashboard-kpi-sheet-head {
  margin-bottom: 8px;
}

.dashboard-kpi-sheet-body {
  display: grid;
  gap: 10px;
}

.dashboard-kpi-sheet-main {
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.08;
  font-weight: 800;
  color: #1d2a52;
}

.dashboard-kpi-sheet-note {
  margin: 0;
  color: #5d6d95;
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-kpi-sheet-list {
  display: grid;
  gap: 8px;
  border: 1px solid #e0e8fb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f7f9ff;
}

.dashboard-kpi-sheet-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #425584;
  font-size: 14px;
}

.dashboard-kpi-sheet-row strong {
  color: #1b2a54;
}

.dashboard-kpi-sheet-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.dashboard-kpi-sheet-actions .btn {
  min-width: 170px;
}

@media (max-width: 768px) {
  .tax-load-mobile-hint,
  .deadline-mobile-title {
    font-size: 12px;
    line-height: 1.35;
    color: #5a6b95;
  }

  .dashboard-kpi-sheet-modal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(7, 10, 26, 0.56);
    backdrop-filter: blur(3px);
  }

  .dashboard-kpi-sheet-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    border: 1px solid #d8e1f9;
    border-bottom: 0;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    animation: mobileSheetUp 180ms ease;
  }

  .dashboard-kpi-sheet-handle {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: #c8d2ec;
    margin: 0 auto 10px;
  }
}

/* Mobile Readability Polish (global, mobile only) */
@media (max-width: 768px) {
  .page-content {
    padding: 12px;
    gap: 10px;
  }

  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .card h2,
  .card h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .text-muted,
  .stat-sub,
  .kpi-note,
  .tax-kpi-meta,
  .dashboard-tax-subnote,
  .dashboard-tax-month-context {
    font-size: 13px;
    line-height: 1.45;
  }

  .main-header h2,
  #pageTitle {
    font-size: clamp(28px, 6.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .logo {
    font-size: 20px;
  }

  .public-nav {
    padding: 10px 12px;
  }

  .public-nav .btn {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-link {
    white-space: nowrap;
  }

  .hero .chip {
    font-size: 10px;
    padding: 6px 10px;
  }

  .hero h1 {
    max-width: 19ch;
  }

  .hero p {
    max-width: 44ch;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    align-items: stretch;
  }

  .kpi-grid > .kpi-card {
    padding: 12px;
    min-height: 112px;
    display: grid;
    align-content: start;
    gap: 6px;
  }

  .kpi-grid > .kpi-card:first-child,
  .kpi-grid > .kpi-card:nth-child(4) {
    grid-column: 1 / -1;
    min-height: 118px;
  }

  .kpi-card.kpi-card-income-hero {
    box-shadow:
      0 12px 24px rgba(34, 47, 86, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -20px 30px rgba(35, 47, 84, 0.2);
  }

  .kpi-card.kpi-card-income-hero::after {
    width: 172px;
    height: 172px;
    right: -54px;
    top: -62px;
  }

  .kpi-card.kpi-card-income-hero .income-hero-head {
    gap: 8px;
  }

  .kpi-card.kpi-card-income-hero .income-hero-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .kpi-card.kpi-card-income-hero .income-hero-icon svg {
    width: 16px;
    height: 16px;
  }

  .kpi-card.kpi-card-income-hero .income-hero-meta {
    margin-top: 8px;
    gap: 8px;
  }

  .kpi-card.kpi-card-income-hero .kpi-trend {
    margin: 0;
    font-size: 11px;
    padding: 4px 8px;
  }

  .kpi-card.kpi-card-income-hero .income-hero-side-sub {
    font-size: 11px;
    color: rgba(236, 242, 255, 0.92);
    white-space: nowrap;
    text-align: right;
  }

  .kpi-card .stat-title,
  .kpi-card .kpi-label {
    font-size: 11px;
    line-height: 1.25;
  }

  .kpi-card .kpi-value,
  .tax-kpi-main,
  .calc-summary-value,
  .tax-compare-value,
  .regime-result .stat-value,
  .landing-summary-amount {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.08;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .kpi-grid > .kpi-card:first-child .stat-value,
  .kpi-grid > .kpi-card:nth-child(4) .stat-value {
    font-size: clamp(36px, 10vw, 44px) !important;
  }

  .kpi-grid > .kpi-card:nth-child(2) .stat-value,
  .kpi-grid > .kpi-card:nth-child(3) .stat-value {
    font-size: clamp(26px, 7.2vw, 34px) !important;
  }

  .kpi-grid > .kpi-card:nth-child(2) .tax-load-mobile-hint,
  .kpi-grid > .kpi-card:nth-child(3) .kpi-note {
    font-size: 12px;
    line-height: 1.35;
  }

  .kpi-grid > .kpi-card:nth-child(2) .tax-load-hint {
    font-size: 11px;
    line-height: 1.25;
  }

  #landingIncome {
    font-size: clamp(30px, 9.5vw, 40px);
    line-height: 1.08;
  }

  .kpi-trend {
    font-size: 11px;
    padding: 2px 6px;
  }

  .grid.grid-2,
  .grid.grid-3 {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .dashboard-main-grid {
    gap: 10px;
  }

  .dashboard-left-column {
    gap: 10px;
  }

  .chart-row {
    height: 156px;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 2px;
  }

  .chart-item {
    min-width: 46px;
  }

  .chart-bar {
    width: 30px;
  }

  .dashboard-month-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .dashboard-month-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 11px;
    font-size: 12px;
  }

  .dashboard-recent-head {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  .dashboard-recent-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-recent-side {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-recent-mobile-list {
    display: grid;
    gap: 8px;
  }

  .dashboard-recent-mobile-item {
    border: 1px solid #d9e2f8;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fbff;
    display: grid;
    gap: 7px;
  }

  .dashboard-recent-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .dashboard-recent-mobile-amount {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.05;
    color: #1d2a52;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .dashboard-recent-mobile-head .cat-pill {
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-recent-mobile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6a7ba5;
    font-size: 12px;
    line-height: 1.35;
  }

  .dashboard-recent-mobile-date {
    white-space: nowrap;
  }

  .dashboard-recent-mobile-comment {
    color: #8a97b8;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 58%;
  }

  .dashboard-recent-all-btn {
    width: 100%;
  }

  .income-month-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .income-month-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .income-month-label {
    font-size: 14px;
  }

  .income-filters {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .income-filter-label {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .income-filters input,
  .income-filters select,
  .tax-form-grid input,
  .calc-input-grid input,
  .calendar-search-form input,
  .knowledge-search-form input,
  .onboarding-field input,
  .onboarding-field select,
  .stack-form input,
  .stack-form select,
  .stack-form textarea {
    min-height: 42px;
    font-size: 16px;
  }

  .income-form-card {
    overflow: hidden;
  }

  .income-form .form-grid-2,
  .income-form .form-grid-2 > label {
    min-width: 0;
  }

  .income-form input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 15px;
  }

  .income-form input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
  }

  .income-form input[type="date"]::-webkit-datetime-edit {
    padding: 0;
  }

  .stack-form textarea {
    min-height: 108px;
    line-height: 1.4;
  }

  .income-filter-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .calc-input-grid,
  .tax-form-grid,
  .calendar-filter-groups,
  .knowledge-search-form,
  .feedback-grid,
  .knowledge-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .calc-step-input {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .calc-step-input button {
    min-height: 40px;
  }

  .calc-step-input input {
    font-size: clamp(24px, 8vw, 32px);
    text-align: center;
  }

  .calc-summary-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-summary-item strong {
    font-size: clamp(24px, 7vw, 32px);
  }

  .calc-practical-hint {
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
  }

  .regime-result {
    padding: 12px;
  }

  .regime-head {
    gap: 8px;
    flex-wrap: wrap;
  }

  .regime-limit-chip {
    font-size: 11px;
    padding: 4px 8px;
  }

  .tax-compare-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tax-compare-card {
    padding: 12px;
  }

  .tax-share-row {
    padding-bottom: 8px;
  }

  .tax-forecast-table {
    min-width: 520px;
  }

  .calendar-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .calendar-summary-head {
    margin-bottom: 10px;
    gap: 8px;
  }

  .calendar-summary-head h3 {
    font-size: clamp(22px, 6.6vw, 30px);
    line-height: 1.14;
  }

  .calendar-summary-chip {
    font-size: 11px;
    padding: 5px 9px;
  }

  .calendar-kpi-item {
    padding: 9px 10px;
    gap: 4px;
    min-height: 0;
  }

  .calendar-kpi-item span {
    font-size: 11px;
  }

  .calendar-kpi-item strong {
    font-size: 22px;
  }

  .calendar-kpi-item small {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .calendar-chip-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .calendar-chip-group button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .calendar-filter-card {
    padding: 12px;
  }

  .calendar-filter-groups {
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin-bottom: 10px;
  }

  .calendar-filter-group {
    gap: 6px;
  }

  .calendar-search-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calendar-search-form label {
    gap: 5px;
    font-size: 12px;
  }

  .calendar-search-form input {
    height: 40px;
    font-size: 15px;
  }

  .calendar-filter-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .calendar-filter-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-table-wrap-desktop {
    display: none;
  }

  .calendar-mobile-list {
    display: grid;
    gap: 8px;
  }

  .calendar-reminder-row-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  .calendar-mobile-action-btn {
    min-height: 34px;
  }

  .knowledge-facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .knowledge-card,
  .feedback-form-card,
  .feedback-side-card,
  .feedback-contact-card,
  .subscription-card {
    padding: 12px;
  }

  .feedback-category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feedback-category-body {
    padding: 10px;
  }

  .feature-list li {
    padding: 10px 0;
    font-size: 14px;
  }

  .subscription-actions .btn,
  .subscription-manage-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .onboarding-card {
    padding: 14px;
  }

  .onboarding-card h2 {
    font-size: clamp(24px, 7.5vw, 30px);
  }

  .onboarding-step-pill {
    font-size: 12px;
    padding: 6px 9px;
  }

  .onboarding-regime-grid,
  .onboarding-profile-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .onboarding-regime-card {
    padding: 12px;
  }

  .onboarding-regime-card strong {
    font-size: 24px;
  }

  .amount-presets,
  .income-presets,
  .calc-income-presets,
  .calc-expense-presets,
  .tax-presets,
  .onboarding-income-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .tax-presets > span {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-size: 12px;
    line-height: 1.3;
  }

  .amount-presets button,
  .income-presets button,
  .calc-income-presets button,
  .calc-expense-presets button,
  .tax-presets button,
  .onboarding-income-presets button {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
  }

  #mobileDrawer {
    width: min(290px, calc(100vw - 18px));
    padding-top: 8px;
  }

  .mobile-drawer-profile {
    margin: 0 12px 8px;
    padding: 12px;
  }

  .mobile-drawer-regime-wrap,
  .mobile-drawer-reminders-wrap {
    margin: 0 12px 8px;
    padding: 10px 12px;
  }

  .mobile-drawer-item {
    padding: 12px;
    min-height: 44px;
  }

  .mobile-drawer-actions {
    margin: 8px 12px 0;
    gap: 6px;
    margin-top: auto;
  }

  .mobile-drawer-pro-btn {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .mobile-drawer-logout-btn {
    padding: 12px;
    font-size: 14px;
  }

  .mobile-drawer-links {
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  }
}

/* Mobile KPI variant 4: 2 tiles + 2 compact full-width rows */
@media (max-width: 768px) {
  .kpi-grid-mobile-welcome .dashboard-welcome-banner {
    margin-top: 10px;
    margin-bottom: 0;
  }

  .kpi-grid.kpi-grid-mobile-secondary {
    margin-top: 10px;
  }

  .kpi-grid.kpi-grid-mobile-secondary > .kpi-card {
    grid-column: 1 / -1 !important;
    min-height: 122px;
    padding: 12px 14px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    align-items: stretch;
  }

  .kpi-grid > .kpi-card {
    grid-column: auto !important;
    min-height: 112px;
    padding: 12px;
  }

  .kpi-grid > .kpi-card:nth-child(3),
  .kpi-grid > .kpi-card:nth-child(4) {
    grid-column: 1 / -1 !important;
    min-height: 122px;
    padding: 12px 14px;
  }

  .kpi-grid > .kpi-card:nth-child(4) {
    padding: 12px 14px;
  }

  .kpi-grid > .kpi-card:nth-child(1) .stat-value,
  .kpi-grid > .kpi-card:nth-child(2) .stat-value {
    font-size: clamp(22px, 6.9vw, 30px) !important;
    line-height: 1.04;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .kpi-grid > .kpi-card:nth-child(1) .income-hero-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex: 0 0 auto;
  }

  .kpi-grid > .kpi-card:nth-child(1) .income-hero-icon svg {
    width: 14px;
    height: 14px;
  }

  .kpi-grid > .kpi-card:nth-child(1) .kpi-trend {
    font-size: 10px;
    padding: 4px 7px;
  }

  .kpi-grid .stat-value.kpi-value-mobile-m {
    font-size: clamp(24px, 7.2vw, 32px) !important;
    letter-spacing: -0.01em;
  }

  .kpi-grid .stat-value.kpi-value-mobile-s {
    font-size: clamp(21px, 6.4vw, 28px) !important;
    letter-spacing: -0.015em;
  }

  .kpi-card-compact-row {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 8px;
  }

  .kpi-card-compact-row .kpi-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    width: 100%;
    height: 100%;
  }

  .kpi-mobile-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .kpi-mobile-action-btn {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 9px;
    border: 1px solid #b7c7ff;
    background: #edf1ff;
    color: #4a5ee6;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .kpi-card-deadline-row .kpi-mobile-action-row {
    justify-content: flex-end;
  }

  .kpi-card-ytd-row .kpi-mobile-action-row {
    justify-content: flex-end;
  }

  .kpi-card-compact-row .kpi-row-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    align-content: start;
  }

  .kpi-card-compact-row .kpi-row-main .stat-title {
    margin: 0;
  }

  .kpi-card-compact-row .kpi-row-main .stat-value {
    font-size: clamp(36px, 9vw, 44px) !important;
    line-height: 1.04;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .kpi-card-ytd-row .kpi-row-main .stat-value {
    font-size: clamp(32px, 8vw, 40px) !important;
  }

  .kpi-card-ytd-row .kpi-row-main .stat-value.kpi-value-mobile-m {
    font-size: clamp(27px, 7vw, 34px) !important;
  }

  .kpi-card-ytd-row .kpi-row-main .stat-value.kpi-value-mobile-s {
    font-size: clamp(24px, 6.2vw, 30px) !important;
  }

  .kpi-card-deadline-row .kpi-row-main .stat-value {
    font-size: clamp(28px, 7.2vw, 38px) !important;
    color: #bd6a02;
    white-space: nowrap;
  }

  .kpi-deadline-right {
    display: grid;
    justify-items: end;
    gap: 4px;
    align-content: end;
    min-width: max-content;
  }

  .kpi-card-deadline-row .kpi-row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 8px;
  }

  .kpi-card-deadline-row .deadline-mobile-title,
  .kpi-card-ytd-row .kpi-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .tax-load-mobile-meta {
    display: grid;
    gap: 4px;
    margin-top: 2px;
  }

  .tax-load-mobile-due {
    font-size: 12px;
    color: #5d6d95;
    line-height: 1.3;
  }

  .tax-load-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #b7c7ff;
    background: #edf1ff;
    color: #4a5ee6;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .deadline-mobile-calendar-btn {
    margin-top: 0;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 9px;
    border: 1px solid #e7b457;
    background: #fff8e8;
    color: #9b5c08;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    justify-self: end;
    white-space: nowrap;
  }

  #proModal .pro-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
    margin: 10px 0;
  }

  #proModal .pro-proof span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.25;
    gap: 8px;
  }

  #proModal .pro-proof span .icon-inline {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
  }

  .tax-planner-card {
    padding: 12px;
  }

  .tax-planner-card .tax-planner-head {
    gap: 8px;
  }

  .tax-planner-card .tax-planner-head p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  .tax-planner-form-mobile {
    margin-top: 10px;
    display: grid;
    gap: 8px;
  }

  .tax-form-grid-mobile-main {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tax-form-grid-mobile-main label {
    display: grid;
    gap: 6px;
    color: #425583;
    font-size: 13px;
    font-weight: 700;
  }

  .tax-planner-form-mobile .tax-presets {
    margin-top: 0;
  }

  .tax-mobile-reset-btn {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
  }

  .tax-planner-form-mobile .tax-presets > span {
    font-size: 11px;
    color: #6a7ba5;
  }

  .tax-planner-form-mobile .tax-presets button {
    min-height: 36px;
    border-radius: 10px;
    font-size: 13px;
    padding: 6px 10px;
  }

  .tax-mobile-advanced {
    border: 1px solid #d7e2fa;
    border-radius: 12px;
    background: #f8fbff;
    overflow: hidden;
  }

  .tax-mobile-advanced > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .tax-mobile-advanced > summary::-webkit-details-marker {
    display: none;
  }

  .tax-mobile-advanced > summary span {
    font-size: 13px;
    font-weight: 700;
    color: #2d4478;
  }

  .tax-mobile-advanced > summary small {
    font-size: 11px;
    font-weight: 600;
    color: #8a99ba;
  }

  .tax-mobile-advanced > summary::after {
    content: "▾";
    font-size: 12px;
    color: #5f6ff2;
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
  }

  .tax-mobile-advanced[open] > summary::after {
    transform: rotate(0deg);
  }

  .tax-mobile-advanced-body {
    border-top: 1px solid #e2eafd;
    padding: 10px 12px 12px;
    display: grid;
    gap: 8px;
  }

  .tax-mobile-advanced-body label {
    display: grid;
    gap: 6px;
    color: #425583;
    font-size: 13px;
    font-weight: 700;
  }

  .tax-mobile-inline-hint {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .tax-planner-card > .tax-input-hint {
    display: none;
  }

  .tax-forecast-panel .tax-forecast-table-wrap {
    display: none;
  }

  .tax-forecast-mobile-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .tax-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch;
  }

  .tax-kpi-grid > .tax-kpi-card {
    grid-column: auto !important;
    min-height: 120px;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 6px;
  }

  .tax-kpi-grid > .tax-kpi-card.tax-kpi-card-hero {
    min-height: 120px;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.24);
  }

  .tax-kpi-grid .stat-title {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .tax-kpi-grid .tax-kpi-main {
    margin-top: 2px;
    font-size: clamp(28px, 7.8vw, 36px);
    line-height: 1.04;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .tax-kpi-grid .tax-kpi-main.tax-kpi-value-mobile-m {
    font-size: clamp(23px, 6.9vw, 31px) !important;
    letter-spacing: -0.01em;
  }

  .tax-kpi-grid .tax-kpi-main.tax-kpi-value-mobile-s {
    font-size: clamp(20px, 6.1vw, 27px) !important;
    letter-spacing: -0.015em;
  }

  .tax-kpi-grid .tax-kpi-subtitle,
  .tax-kpi-grid .tax-kpi-meta {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  /* Deadline checklist modal: mobile typography tune */
  #deadlineModal .modal-card.deadline-modal-card {
    width: min(94vw, 560px);
  }

  #deadlineModal .deadline-modal-head {
    padding: 12px 14px 10px;
    gap: 8px;
  }

  #deadlineModal .deadline-modal-date {
    font-size: 11px;
    margin-bottom: 4px;
  }

  #deadlineModal .deadline-modal-head h3 {
    font-size: clamp(16px, 5.8vw, 24px);
    line-height: 1.18;
    letter-spacing: -0.01em;
  }

  #deadlineModal .deadline-modal-meta {
    gap: 8px;
    padding-top: 10px;
  }

  #deadlineModal .deadline-payment-summary {
    padding: 10px;
    gap: 6px;
  }

  #deadlineModal .deadline-payment-summary h4 {
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  #deadlineModal .deadline-payment-row,
  #deadlineModal .deadline-payment-total {
    font-size: 13px;
    gap: 8px;
  }

  #deadlineModal .deadline-payment-row strong,
  #deadlineModal .deadline-payment-total strong {
    font-size: 14px;
  }

  #deadlineModal .deadline-modal-chip {
    font-size: 11px;
    padding: 5px 9px;
  }

  #deadlineModal .deadline-modal-note {
    font-size: 11px;
    line-height: 1.35;
  }

  #deadlineModal .deadline-modal-progress-head {
    font-size: 11px;
  }

  #deadlineModal .deadline-modal-progress-head strong {
    font-size: 11px;
  }

  #deadlineModal .deadline-modal-col {
    padding: 10px;
  }

  #deadlineModal .deadline-modal-col h4 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  #deadlineModal .deadline-task-item label {
    grid-template-columns: 18px 1fr;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  #deadlineModal .deadline-task-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  #deadlineModal .deadline-step-instruction {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  #deadlineModal .deadline-step-links {
    gap: 6px;
    margin-top: 6px;
  }

  #deadlineModal .deadline-step-store-link {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 9px;
  }

  #deadlineModal .deadline-modal-footer {
    margin: 10px 14px 14px;
    padding: 10px;
    gap: 6px;
  }

  #deadlineModal .deadline-modal-subscribe {
    min-height: 42px;
    font-size: 13px;
    padding: 8px 10px;
  }

  #deadlineModal .deadline-modal-footer p {
    font-size: 12px;
    line-height: 1.35;
  }

  #deadlineModal .deadline-mobile-steps-shell {
    display: grid;
    gap: 8px;
  }

  #deadlineModal .deadline-mobile-step-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 6px;
  }

  #deadlineModal .deadline-mobile-step-tab {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(168, 184, 239, 0.45);
    background: rgba(144, 160, 222, 0.12);
    color: #d7e4ff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  #deadlineModal .deadline-mobile-step-tab.active {
    background: rgba(108, 92, 231, 0.38);
    border-color: rgba(150, 138, 255, 0.78);
    color: #ffffff;
  }

  #deadlineModal .deadline-mobile-step-panel {
    display: none;
  }

  #deadlineModal .deadline-mobile-step-panel.is-active {
    display: block;
  }

  #deadlineModal .deadline-mobile-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  #deadlineModal .deadline-mobile-step-nav-btn {
    min-height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(168, 184, 239, 0.45);
    background: rgba(144, 160, 222, 0.12);
    color: #dbe6ff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
    cursor: pointer;
  }

  #deadlineModal .deadline-mobile-step-nav-btn:disabled {
    opacity: 0.45;
    cursor: default;
  }

  #deadlineModal .deadline-mobile-step-counter {
    color: #b6c6ee;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    min-width: 86px;
  }

  #deadlineModal .deadline-mobile-instruction {
    margin-top: 8px;
    border: 1px solid rgba(176, 192, 248, 0.35);
    border-radius: 10px;
    background: rgba(166, 182, 245, 0.08);
    padding: 8px 10px;
  }

  #deadlineModal .deadline-mobile-instruction summary {
    list-style: none;
    cursor: pointer;
    color: #d6e3ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  #deadlineModal .deadline-mobile-instruction summary::-webkit-details-marker {
    display: none;
  }

  #deadlineModal .deadline-mobile-instruction-body {
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .calc-control-card {
    padding: 10px 12px;
  }

  .calc-control-head {
    margin-bottom: 8px;
    gap: 8px;
    align-items: flex-start;
  }

  .calc-control-head h3 {
    margin: 0;
    font-size: clamp(18px, 5.6vw, 24px);
    line-height: 1.14;
  }

  .calc-period-switch {
    gap: 2px;
    padding: 3px;
    flex-wrap: nowrap;
  }

  .calc-period-switch button {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
    flex: 0 0 auto !important;
    min-width: 68px;
    white-space: nowrap;
    line-height: 1;
  }

  .calc-input-grid {
    gap: 8px;
  }

  .calc-input-grid label {
    gap: 5px;
    font-size: 12px;
  }

  .calc-input-grid input {
    min-height: 38px;
    height: 38px;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 16px;
  }

  .calc-step-input {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .calc-step-input button {
    min-height: 34px;
    border-radius: 9px;
    font-size: 20px;
  }

  .calc-step-input input {
    min-height: 38px;
    font-size: clamp(20px, 6vw, 28px);
  }

  .calc-income-presets,
  .calc-expense-presets {
    margin-top: 6px;
    gap: 6px;
    display: grid;
    overflow: hidden;
    padding-bottom: 0;
  }

  .calc-income-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .calc-income-presets button,
  .calc-expense-presets button {
    min-height: 30px;
    padding: 4px 6px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1;
    width: 100%;
    min-width: 0;
  }

  .calc-income-presets button {
    white-space: nowrap;
  }

  .calc-summary-card {
    margin-top: 12px;
    padding: 10px 12px;
  }

  .calc-summary-main {
    display: grid;
    gap: 6px;
  }

  .calc-summary-main h3 {
    margin: 2px 0;
    font-size: clamp(18px, 5.7vw, 24px);
    line-height: 1.15;
  }

  .calc-summary-main .text-muted {
    font-size: 12px;
    line-height: 1.35;
  }

  .calc-summary-value {
    font-size: clamp(26px, 8vw, 36px) !important;
    line-height: 1.06;
  }

  .calc-summary-grid {
    margin-top: 8px;
    gap: 6px;
  }

  .calc-summary-item {
    padding: 8px;
    border-radius: 10px;
    gap: 4px;
  }

  .calc-summary-item span {
    font-size: 11px;
    line-height: 1.25;
  }

  .calc-summary-item strong {
    font-size: clamp(20px, 6.5vw, 28px);
    line-height: 1.06;
  }

  .calc-summary-foot {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.35;
  }

  .calc-practical-hint {
    margin-top: 6px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.35;
  }

  .calc-regime-grid {
    margin-top: 12px;
    gap: 8px;
  }

  .calc-regime-grid .regime-result {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .calc-regime-grid .top-badge {
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    font-size: 10px;
    z-index: 2;
  }

  .calc-regime-grid .regime-result .top-badge + .regime-head {
    padding-top: 22px;
  }

  .calc-regime-grid .regime-head {
    padding-right: 0;
    gap: 6px;
  }

  .calc-regime-grid .regime-head h3 {
    margin: 0 0 4px;
    font-size: clamp(18px, 6vw, 26px);
    line-height: 1.14;
  }

  .calc-regime-grid .regime-limit-chip {
    font-size: 10px;
    padding: 4px 7px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calc-regime-grid .stat-value {
    font-size: clamp(27px, 9vw, 42px) !important;
    line-height: 1.06;
    letter-spacing: -0.012em;
    white-space: nowrap;
  }

  .calc-regime-grid .text-muted {
    font-size: 12px;
    line-height: 1.35;
  }

  .calc-regime-grid .regime-meta-row {
    margin: 6px 0 8px;
    gap: 6px;
  }

  .calc-regime-grid .regime-rate {
    font-size: 11px;
  }

  .calc-regime-grid .regime-delta {
    font-size: 11px;
    padding: 4px 7px;
  }

  .calc-regime-grid .tax-row {
    padding: 5px 0;
    gap: 8px;
  }

  .calc-regime-grid .tax-row .text-muted {
    font-size: 12px;
    line-height: 1.3;
  }

  .calc-regime-grid .tax-row strong {
    font-size: 14px;
  }

  .calendar-filter-card-mobile {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: start;
  }

  .calendar-filter-card-mobile > * {
    min-width: 0;
  }

  .calendar-filter-card-mobile .calendar-filter-groups {
    margin-bottom: 0;
    gap: 8px;
    order: 2;
    min-width: 0;
  }

  .calendar-filter-card-mobile .calendar-filter-group {
    gap: 5px;
  }

  .calendar-filter-card-mobile .calendar-filter-group p {
    font-size: 11px;
    margin-bottom: 0;
  }

  .calendar-filter-card-mobile .calendar-chip-group {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) minmax(0, 0.82fr);
    flex-wrap: nowrap;
    overflow: visible;
    white-space: nowrap;
    padding-bottom: 0;
    gap: 4px;
  }

  .calendar-filter-card-mobile .calendar-chip-group button {
    min-height: 30px;
    padding: 4px;
    font-size: 10px;
    line-height: 1;
    width: 100%;
    justify-content: center;
    min-width: 0;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .calendar-search-form-mobile-compact {
    display: grid;
    gap: 8px;
    align-content: start;
    order: 1;
    min-width: 0;
  }

  .calendar-search-form-mobile-compact label {
    gap: 5px;
    font-size: 12px;
    min-width: 0;
  }

  .calendar-search-form-mobile-compact input[name="query"] {
    width: 100%;
    max-width: 100%;
    height: 36px;
    font-size: 14px;
  }

  .calendar-search-form-mobile-compact .calendar-filter-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
  }

  .calendar-search-form-mobile-compact .calendar-filter-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    font-size: 12px;
    padding: 7px 10px;
  }

}











/* Onboarding mobile compact override (must stay at file end) */
@media (max-width: 768px) {
  body.onboarding-page-active {
    overflow: hidden;
  }

  body.onboarding-page-active #mobileTabbar,
  body.onboarding-page-active .mobile-tabbar,
  .dashboard-app.onboarding-mode #mobileTabbar,
  .dashboard-app.onboarding-mode .mobile-tabbar {
    display: none !important;
  }

  .dashboard-app.onboarding-mode .main-area {
    min-height: calc(100dvh - 56px);
    padding-bottom: 8px !important;
  }

  .dashboard-app.onboarding-mode .page-content {
    padding: 8px 10px 10px !important;
  }

  .dashboard-app.onboarding-mode .onboarding-shell {
    min-height: calc(100dvh - 66px);
    display: flex;
  }

  .dashboard-app.onboarding-mode .onboarding-card {
    width: 100%;
    min-height: calc(100dvh - 82px);
    padding: 12px !important;
    border-radius: 14px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 8px;
    overflow: hidden;
  }

  .dashboard-app.onboarding-mode .onboarding-lead {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-card:not(.onboarding-step-1) .onboarding-kicker,
  .dashboard-app.onboarding-mode .onboarding-card:not(.onboarding-step-1) h2 {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-progress {
    margin-top: 0;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .dashboard-app.onboarding-mode .onboarding-step-pill {
    white-space: nowrap;
    font-size: 11px;
    padding: 6px 9px;
  }

  .dashboard-app.onboarding-mode .onboarding-step-body {
    margin-top: 4px;
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-app.onboarding-mode .onboarding-step-body h3 {
    font-size: 20px;
    line-height: 1.13;
  }

  .dashboard-app.onboarding-mode .onboarding-step-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.32;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-grid {
    margin-top: 0;
    gap: 6px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-card {
    min-height: 76px;
    padding: 9px 10px;
    border-radius: 10px;
    gap: 3px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-card strong {
    font-size: 15px;
    gap: 7px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-icon {
    width: 19px;
    height: 19px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-note {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-limit {
    margin-top: 0;
    font-size: 11px;
    line-height: 1.2;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-hint {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.28;
  }

  .dashboard-app.onboarding-mode .onboarding-profile-grid {
    margin-top: 0;
    gap: 8px;
  }

  .dashboard-app.onboarding-mode .onboarding-field {
    gap: 4px;
  }

  .dashboard-app.onboarding-mode .onboarding-field span {
    font-size: 11px;
  }

  .dashboard-app.onboarding-mode .onboarding-field input,
  .dashboard-app.onboarding-mode .onboarding-field select {
    min-height: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 15px;
  }

  .dashboard-app.onboarding-mode .onboarding-input-label {
    margin-top: 0;
    font-size: 12px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-control {
    margin-top: 0;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-control .step-btn {
    min-height: 34px;
    height: 34px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-control input {
    height: 38px;
    font-size: 23px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-presets {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-app.onboarding-mode .onboarding-income-presets button {
    min-height: 31px;
    padding: 5px 3px;
    border-radius: 8px;
    font-size: 11px;
  }

  .dashboard-app.onboarding-mode .onboarding-regime-grid-review,
  .dashboard-app.onboarding-mode .onboarding-tax-breakdown {
    display: none;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card {
    margin-top: 0;
    padding: 10px;
    gap: 4px;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card small {
    font-size: 11px;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card strong {
    font-size: 30px;
    line-height: 1.05;
  }

  .dashboard-app.onboarding-mode .onboarding-tax-card span {
    font-size: 12px;
    line-height: 1.25;
  }

  .dashboard-app.onboarding-mode .onboarding-warning {
    margin: 4px 0 0;
    padding: 8px 9px;
    font-size: 12px;
  }

  .dashboard-app.onboarding-mode .onboarding-actions {
    margin-top: auto;
    padding-top: 6px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .dashboard-app.onboarding-mode .onboarding-card.onboarding-step-1 {
    grid-template-rows: auto auto auto auto auto;
    align-content: start;
  }

  .dashboard-app.onboarding-mode .onboarding-step-1 .onboarding-actions {
    margin-top: 6px;
    padding-top: 0;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn,
  body.onboarding-page-active .onboarding-actions .btn {
    width: 100%;
    min-height: 38px !important;
    height: 38px !important;
    max-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto !important;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn:only-child,
  .dashboard-app.onboarding-mode .onboarding-step-1 .onboarding-actions .btn[data-action="onboarding-next"] {
    grid-column: 1 / -1;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn[data-action="onboarding-complete-income"] {
    grid-column: 1 / -1;
    order: 1;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn[data-action="onboarding-back"] {
    order: 2;
  }

  .dashboard-app.onboarding-mode .onboarding-actions .btn[data-action="onboarding-complete"] {
    order: 3;
  }
}

/* Onboarding tour layer fix (desktop + mobile) */
#onboardingTourRoot {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  pointer-events: none !important;
  isolation: auto !important;
}

#onboardingTourRoot .onboarding-tour-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483010 !important;
  pointer-events: auto !important;
}

#onboardingTourRoot .onboarding-tour-panel {
  position: fixed !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

#onboardingTourRoot.desktop .onboarding-tour-panel {
  width: min(480px, calc(100vw - 32px)) !important;
  max-width: 480px !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}

body.onboarding-tour-active .onboarding-tour-highlight {
  position: relative;
  z-index: 2147483025 !important;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 768px) {
  body.onboarding-tour-active #mobileTabbar,
  body.onboarding-tour-active .mobile-tabbar {
    display: none !important;
  }

  #onboardingTourRoot.mobile .onboarding-tour-panel {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    width: auto !important;
    min-height: 0 !important;
    max-height: min(66vh, 560px) !important;
    overflow-y: auto !important;
  }
}

/* Mobile tabbar glassmorphism override */
@media (max-width: 768px) {
  .main-area {
    padding-bottom: 92px !important;
  }

  #mobileTabbar.mobile-tabbar,
  .mobile-tabbar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 180;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(223, 232, 255, 0.26);
    background: rgba(12, 20, 43, 0.62);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    box-shadow:
      0 12px 30px rgba(4, 9, 28, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .mobile-tabbar button {
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 3px 2px;
    border-radius: 11px;
    border: 1px solid rgba(203, 218, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #c8d6ff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  }

  .mobile-tabbar button .mobile-tab-icon {
    width: 17px;
    height: 17px;
    stroke-width: 1.95;
    color: currentColor;
  }

  .mobile-tabbar button span {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .mobile-tabbar button.active {
    color: #ffffff;
    border-color: rgba(173, 190, 255, 0.7);
    background: linear-gradient(135deg, rgba(101, 109, 240, 0.84), rgba(124, 95, 244, 0.84));
    box-shadow: 0 6px 14px rgba(83, 87, 224, 0.34);
  }

  .mobile-tabbar button:active {
    transform: translateY(1px);
  }
}

/* Landing hero rhythm polish (mobile only) */
@media (max-width: 768px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .hero h1 {
    margin: 16px auto 10px;
    max-width: 100%;
    font-size: clamp(26px, 8.1vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.012em;
    text-wrap: balance;
  }

  .hero h1 span {
    display: block;
    margin-top: 2px;
  }

  .hero p {
    max-width: 42ch;
    margin: 0 auto 14px;
    line-height: 1.45;
  }

  .hero-subtitle-desktop {
    display: none;
  }

  .hero-subtitle-mobile {
    display: inline;
  }

  .hero .btn-glow {
    width: min(100%, 360px);
    min-height: 48px;
    margin: 0 auto 22px;
    display: inline-flex;
    justify-content: center;
  }

  /* Trust cards: centered pre-headlines, left-aligned descriptions */
  .trust-card .trust-title {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .trust-card .trust-title .icon-inline {
    margin-top: 0;
  }

  .trust-card p {
    text-align: center;
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Quick-calc title icon alignment (mobile only) */
@media (max-width: 768px) {
  .calc-head h2 {
    max-width: none !important;
    font-size: clamp(16px, 4.8vw, 21px);
    line-height: 1.18;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calc-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .calc-title .icon-inline {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    transform: translateY(-1px);
  }
}

/* Quick-calc accent header (mobile only) */
@media (max-width: 768px) {
  .quick-calc.card-dark {
    position: relative;
    border: 1px solid rgba(154, 168, 255, 0.42);
    box-shadow:
      0 16px 30px rgba(16, 22, 58, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
  }

  .quick-calc.card-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6c5ce7 0%, #8b5cf6 60%, #7c3aed 100%);
    z-index: 0;
  }

  .quick-calc .calc-head {
    position: relative;
    z-index: 1;
    margin-top: 4px;
  }

  .quick-calc .calc-head::before {
    content: "КАЛЬКУЛЯТОР";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #dfe7ff;
    border: 1px solid rgba(195, 208, 255, 0.38);
    background: rgba(160, 175, 255, 0.14);
  }
}
