:root {
  --navy-950: #03254c;
  --navy-900: #06356b;
  --navy-800: #0b477f;
  --green-600: #08a85b;
  --green-500: #0cbd69;
  --teal-500: #16a3a5;
  --red-500: #d84b4b;
  --ink: #10243e;
  --muted: #66758a;
  --line: #e5ebf1;
  --surface: #ffffff;
  --background: #f6f8f6;
  --warm: #fffdf7;
  --shadow: 0 22px 60px rgba(3, 37, 76, 0.12);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  color: var(--navy-900);
}

.loading-screen p {
  margin: 0;
  font-weight: 600;
}

.loader {
  width: 42px;
  height: 42px;
  margin: auto;
  border: 4px solid #dce7e1;
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-950);
  text-decoration: none;
}

.brand-mark,
.balance-symbol {
  position: relative;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy-900);
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 25px;
}

.brand-mark span,
.balance-symbol span {
  position: absolute;
  color: var(--green-500);
  font-weight: 900;
  transform: rotate(-7deg);
}

.brand-mark span {
  right: -2px;
  top: -4px;
  font-size: 25px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-name strong {
  color: var(--green-600);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
}

.auth-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 80px);
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(12, 189, 105, 0.24), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.auth-intro .brand {
  color: white;
}

.auth-intro .brand-mark {
  color: var(--navy-950);
  background: white;
}

.auth-intro .brand-name {
  color: white;
}

.auth-intro .brand-name strong {
  color: #57df99;
}

.intro-copy {
  max-width: 660px;
  padding: 60px 0;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--green-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-intro .eyebrow {
  color: #73e8aa;
}

.intro-copy h1 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.intro-copy p {
  max-width: 600px;
  margin: 0;
  color: #d5e3ef;
  font-size: 18px;
  line-height: 1.7;
}

.intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #dce9f3;
  font-size: 14px;
  font-weight: 600;
}

.intro-points span::first-letter {
  color: #73e8aa;
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px;
  background: var(--warm);
}

.auth-card {
  width: min(100%, 470px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(6, 53, 107, 0.08);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: #edf2f0;
}

.tab {
  padding: 12px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.tab.active {
  color: var(--navy-900);
  background: white;
  box-shadow: 0 4px 14px rgba(3, 37, 76, 0.08);
}

.form-heading {
  margin: 34px 0 26px;
}

.form-heading h2 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 28px;
  letter-spacing: -0.025em;
}

.form-heading p,
.privacy-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.forgot-password-button {
  display: block;
  margin: 14px auto 0;
  padding: 6px;
  border: 0;
  color: var(--navy-800);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.forgot-password-button:hover {
  color: var(--green-600);
  text-decoration: underline;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #d8e1e8;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fbfcfc;
  transition: border 0.2s, box-shadow 0.2s;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-900) 50%),
    linear-gradient(135deg, var(--navy-900) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(22, 163, 165, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 86px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 7px;
  border: 0;
  color: var(--navy-800);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}

.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--green-600);
  box-shadow: 0 12px 24px rgba(8, 168, 91, 0.2);
  font-weight: 800;
  transition: transform 0.2s, background 0.2s;
}

.primary-button:hover:not(:disabled) {
  background: #078f4e;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.privacy-note {
  margin-top: 20px;
  font-size: 11px;
  text-align: center;
}

.feedback {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.feedback.error {
  color: #932f2f;
  background: #fff0f0;
}

.feedback.success {
  color: #14663f;
  background: #eaf9f1;
}

.dashboard {
  min-height: 100vh;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand.compact .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.ghost-button {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy-900);
  background: white;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-nav {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.topbar-nav.active {
  color: white;
  background: var(--navy-900);
}

.dashboard-content {
  width: min(100% - 40px, 1180px);
  margin: auto;
  padding: 52px 0 80px;
}

.course-content {
  width: min(100% - 40px, 1060px);
  margin: auto;
  padding: 52px 0 80px;
}

.course-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 6vw, 58px);
  overflow: hidden;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(12, 189, 105, 0.35), transparent 30%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: 0 24px 46px rgba(3, 37, 76, 0.18);
}

.course-hero .eyebrow {
  color: #75e5ae;
}

.course-hero h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.course-hero p {
  max-width: 650px;
  margin: 0;
  color: #c8d9e7;
  line-height: 1.6;
}

.course-seal {
  width: 128px;
  height: 128px;
  display: grid;
  flex: none;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

.course-seal strong,
.course-seal span {
  display: block;
}

.course-seal strong {
  color: #7ce2c0;
  font-size: 42px;
  line-height: 1;
}

.course-seal span {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
}

.course-progress-card,
.lessons-section {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.06);
}

.ebook-card {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 53, 107, 0.09);
}

.ebook-cover {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: 30px 26px;
  overflow: hidden;
  border-radius: 18px 6px 6px 18px;
  color: #fff;
  background: linear-gradient(145deg, #06356b 0%, #074981 65%, #087f88 100%);
  box-shadow: 12px 16px 30px rgba(3, 37, 76, 0.2);
}

.ebook-cover::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.ebook-brand-mark {
  position: absolute;
  top: 22px;
  left: 24px;
  font-size: 28px;
  font-weight: 800;
}

.ebook-brand-mark span {
  color: #68e2a0;
}

.ebook-cover small {
  margin-bottom: 10px;
  color: #78e8aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ebook-cover strong {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
}

.ebook-cover p {
  max-width: 180px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.ebook-edition {
  position: absolute;
  bottom: 22px;
  left: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.ebook-details h2 {
  margin: 8px 0 12px;
  color: var(--navy-900);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
}

.ebook-details > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ebook-details ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.ebook-details li {
  color: var(--ink);
  font-weight: 600;
}

.ebook-details li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--green-600);
  font-weight: 800;
}

.ebook-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ebook-actions a {
  text-decoration: none;
}

.ebook-primary {
  display: inline-flex;
  width: auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
}

.ebook-download {
  color: var(--navy-900);
  font-weight: 800;
}

.ebook-download:hover {
  color: var(--green-600);
}

.course-progress-heading,
.lessons-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.course-progress-heading span,
.course-progress-heading strong,
.course-progress-card p {
  display: block;
}

.course-progress-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.course-progress-heading > strong {
  color: var(--green-600);
  font-size: 30px;
}

.course-progress-heading div strong {
  margin-top: 4px;
  color: var(--navy-950);
  font-size: 20px;
}

.course-progress-track {
  height: 13px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e9e5;
}

.course-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--teal-500));
  transition: width 0.5s ease;
}

.course-progress-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.lessons-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.lessons-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 28px;
}

.lessons-heading > span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-600);
  background: #ecf8f2;
  font-size: 11px;
  font-weight: 800;
}

.lessons-list {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.lesson-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfd;
}

.lesson-card.completed {
  border-color: #aedeC2;
  background: #f3fbf7;
}

.lesson-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--navy-900);
  font-size: 14px;
  font-weight: 900;
}

.lesson-card.completed .lesson-number {
  background: var(--green-600);
}

.lesson-card-content > span {
  color: var(--green-600);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-card-content h3 {
  margin: 4px 0 5px;
  color: var(--navy-950);
  font-size: 17px;
}

.lesson-card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.lesson-open-button {
  padding: 10px 14px;
  border: 1px solid #c8d8e4;
  border-radius: 10px;
  color: var(--navy-900);
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.lesson-card.completed .lesson-open-button {
  border-color: #aedeC2;
  color: var(--green-600);
}

.lesson-modal-card {
  width: min(100%, 760px);
}

.lesson-modal-content {
  color: var(--muted);
  line-height: 1.65;
}

.lesson-introduction {
  margin: -7px 0 24px;
  padding: 15px 17px;
  border-left: 4px solid var(--green-600);
  border-radius: 0 12px 12px 0;
  color: var(--navy-900);
  background: #f0faf5;
  font-weight: 600;
}

.lesson-modal-content section {
  margin-top: 22px;
}

.lesson-modal-content h3 {
  margin: 0 0 7px;
  color: var(--navy-950);
  font-size: 17px;
}

.lesson-modal-content p,
.lesson-modal-content ul {
  margin: 0;
}

.lesson-modal-content ul {
  padding-left: 21px;
}

.lesson-modal-content li + li {
  margin-top: 7px;
}

.lesson-action {
  margin-top: 25px;
  padding: 17px;
  border: 1px solid #b9dfc9;
  border-radius: 14px;
  color: #176840;
  background: #f2fbf6;
}

.lesson-action strong,
.lesson-action p {
  display: block;
  margin: 0;
}

.lesson-action p {
  margin-top: 4px;
  font-size: 13px;
}

.lesson-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 24px;
}

.welcome-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.welcome-row h1 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.welcome-row p {
  margin: 0;
  color: var(--muted);
}

.welcome-tools {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.print-report-button {
  padding: 10px 15px;
  border: 1px solid var(--navy-900);
  border-radius: 11px;
  color: var(--navy-900);
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.print-report-button:hover {
  color: white;
  background: var(--navy-900);
}

.print-header,
.print-footer {
  display: none;
}

.period-pill {
  flex: none;
  padding: 10px 15px;
  border: 1px solid #d9e8e0;
  border-radius: 999px;
  color: var(--green-600);
  background: #effaf4;
  font-size: 13px;
  font-weight: 700;
}

.month-navigation {
  display: grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  gap: 8px;
}

.month-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid #cfe0d8;
  border-radius: 50%;
  color: var(--navy-900);
  background: white;
  font-size: 29px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(3, 37, 76, 0.06);
}

.month-arrow:hover:not(:disabled) {
  border-color: var(--green-600);
  color: var(--green-600);
}

.month-arrow:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.back-current-month {
  grid-column: 1 / -1;
  justify-self: center;
  border: 0;
  color: var(--green-600);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 285px;
  padding: clamp(30px, 6vw, 56px);
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 82% 20%, rgba(12, 189, 105, 0.25), transparent 30%),
    var(--navy-900);
  box-shadow: 0 24px 46px rgba(3, 37, 76, 0.2);
}

.balance-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.balance-card span {
  color: #a8e6c7;
  font-weight: 600;
}

.balance-card strong {
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: -0.055em;
}

.balance-card small {
  color: #c6d8e7;
}

#available-balance.negative {
  color: #ffb5b5;
}

.balance-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 13px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.balance-details article {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.balance-details span,
.balance-details strong {
  display: block;
}

.balance-details span {
  color: #c6d8e7;
  font-size: 11px;
}

.balance-details strong {
  margin-top: 5px;
  color: white;
  font-size: 18px;
  letter-spacing: -0.025em;
}

#balance-reserve {
  color: #7ce2c0;
}

.balance-symbol {
  width: 94px;
  height: 94px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 48px;
}

.balance-symbol span {
  right: 2px;
  top: -8px;
  font-size: 44px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.06);
}

.summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}

.summary-card p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.summary-card strong {
  font-size: clamp(18px, 2.5vw, 24px);
}

.income .summary-icon,
.income strong {
  color: var(--green-600);
}

.income .summary-icon {
  background: #e8f8f0;
}

.expense .summary-icon,
.expense strong {
  color: var(--red-500);
}

.expense .summary-icon {
  background: #fff0f0;
}

.withdrawal .summary-icon,
.withdrawal strong {
  color: var(--teal-500);
}

.withdrawal .summary-icon {
  background: #e7f7f7;
}

.empty-card {
  margin-top: 22px;
  padding: 48px 24px;
  border: 1px dashed #cbd9d2;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: white;
  background: var(--green-600);
  font-size: 34px;
}

.empty-card h2 {
  margin: 0 0 10px;
  color: var(--navy-950);
}

.empty-card p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-card .primary-button {
  max-width: 360px;
}

.history-card {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.06);
}

.category-card {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.06);
}

.comparison-card {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid #dce7ed;
  border-radius: 24px;
  background: linear-gradient(145deg, #f7fbfd, #ffffff);
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.06);
}

.insights-card {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid #d7e3eb;
  border-radius: 24px;
  background: linear-gradient(145deg, #f4f8fb, #ffffff);
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.06);
}

.insights-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.insights-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(22px, 3.5vw, 29px);
  letter-spacing: -0.03em;
}

.insights-badge {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy-800);
  background: #e8f0f6;
  font-size: 11px;
  font-weight: 800;
}

.insights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 20px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.insight-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-800);
  background: #e9f0f5;
  font-weight: 900;
}

.insight-item strong {
  color: var(--ink);
  font-size: 13px;
}

.insight-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.insight-item.good {
  border-color: #b7e1c9;
  background: #f5fcf8;
}

.insight-item.good .insight-icon {
  color: var(--green-600);
  background: #dcf5e7;
}

.insight-item.warning {
  border-color: #efd5a7;
  background: #fffaf1;
}

.insight-item.warning .insight-icon {
  color: #b87310;
  background: #fff0cf;
}

.insight-item.urgent {
  border-color: #efb9b9;
  background: #fff6f6;
}

.insight-item.urgent .insight-icon {
  color: var(--red-500);
  background: #ffe3e3;
}

.insight-item.info .insight-icon {
  color: var(--teal-500);
  background: #e1f4f4;
}

.insights-loading,
.insights-note {
  color: var(--muted);
  font-size: 10px;
}

.insights-loading {
  grid-column: 1 / -1;
  text-align: center;
}

.insights-note {
  margin: 15px 0 0;
  text-align: right;
}

.comparison-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.comparison-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(22px, 3.5vw, 29px);
  letter-spacing: -0.03em;
}

.comparison-period {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 22px;
}

.comparison-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.comparison-item-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.comparison-item-heading span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-900);
  background: #edf3f7;
  font-weight: 900;
}

.comparison-value {
  display: block;
  margin-top: 16px;
  color: var(--navy-950);
  font-size: clamp(19px, 2.5vw, 25px);
}

.comparison-item p {
  margin: 9px 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.comparison-item small {
  color: #8b97a7;
  font-size: 10px;
}

.comparison-item.good p {
  color: var(--green-600);
}

.comparison-item.warning p {
  color: var(--red-500);
}

.comparison-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.annual-card {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid #dce7ed;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.06);
}

.annual-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.annual-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(22px, 3.5vw, 29px);
  letter-spacing: -0.03em;
}

.annual-year {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--navy-900);
  background: #edf4f9;
  font-size: 13px;
  font-weight: 800;
}

.annual-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.annual-totals article {
  padding: 17px;
  border-radius: 15px;
  background: #f6f9fa;
}

.annual-totals span,
.annual-totals strong {
  display: block;
}

.annual-totals span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.annual-totals strong {
  margin-top: 7px;
  color: var(--navy-950);
  font-size: clamp(17px, 2.4vw, 23px);
}

#annual-income {
  color: var(--green-600);
}

#annual-outgoing,
#annual-balance.negative {
  color: var(--red-500);
}

.annual-highlight {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  color: var(--navy-900);
  background: #f0faf5;
  font-size: 12px;
  font-weight: 700;
}

.annual-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.annual-legend span {
  width: 9px;
  height: 9px;
  margin-left: 7px;
  border-radius: 50%;
}

.income-dot,
.income-bar {
  background: var(--green-600);
}

.outgoing-dot,
.outgoing-bar {
  background: var(--red-500);
}

.annual-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(32px, 1fr));
  gap: 8px;
  min-width: 520px;
  height: 220px;
  margin-top: 10px;
  padding: 18px 12px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 49px, #eef2f4 50px);
}

.annual-chart-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.annual-month {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 7px;
  min-width: 28px;
  text-align: center;
}

.annual-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  min-height: 0;
}

.annual-bar {
  width: 9px;
  min-height: 0;
  border-radius: 5px 5px 0 0;
}

.annual-month small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: capitalize;
}

.category-heading,
.category-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.category-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(22px, 3.5vw, 29px);
  letter-spacing: -0.03em;
}

.category-heading > strong {
  flex: none;
  color: var(--red-500);
  font-size: 22px;
}

.category-breakdown {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.category-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.category-item-heading {
  margin-bottom: 8px;
  font-size: 13px;
}

.category-item-heading strong {
  color: var(--ink);
}

.category-item-heading span {
  color: var(--muted);
  font-weight: 700;
}

.category-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eff2;
}

.category-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), var(--green-600));
}

.goal-card {
  margin-top: 22px;
  padding: clamp(25px, 4vw, 36px);
  border: 1px solid #d9e8e0;
  border-radius: 24px;
  background: linear-gradient(145deg, #f4fcf7, #ffffff);
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.05);
}

.reserve-card {
  margin-top: 22px;
  padding: clamp(25px, 4vw, 36px);
  border: 1px solid #cce5e5;
  border-radius: 24px;
  background: linear-gradient(145deg, #effafa, #ffffff);
  box-shadow: 0 12px 30px rgba(3, 37, 76, 0.05);
}

.reserve-card.achieved {
  border-color: #83cfb0;
  background: linear-gradient(145deg, #e9faef, #ffffff);
}

.reserve-heading,
.reserve-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reserve-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(22px, 3.5vw, 29px);
  letter-spacing: -0.03em;
}

.reserve-button {
  flex: none;
  padding: 11px 16px;
  border: 1px solid #a9d8d8;
  border-radius: 11px;
  color: var(--teal-500);
  background: white;
  font-size: 13px;
  font-weight: 800;
}

.reserve-values {
  margin-top: 25px;
}

.reserve-values article {
  flex: 1;
}

.reserve-values article:last-child {
  text-align: right;
}

.reserve-values span,
.reserve-values strong,
.reserve-values small {
  display: block;
}

.reserve-values span,
.reserve-values small,
.reserve-message,
.reserve-help {
  color: var(--muted);
}

.reserve-values span {
  font-size: 12px;
  font-weight: 700;
}

.reserve-values strong {
  margin: 5px 0;
  color: var(--teal-500);
  font-size: 23px;
}

.reserve-values small {
  font-size: 11px;
}

.reserve-progress {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9e9;
}

.reserve-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), var(--green-600));
  transition: width 0.5s ease;
}

.reserve-message {
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.reserve-modal-card {
  width: min(100%, 520px);
}

.percentage-input {
  position: relative;
}

.percentage-input input {
  padding-right: 48px;
}

.percentage-input span {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--teal-500);
  font-weight: 800;
  transform: translateY(-50%);
}

.reserve-help {
  margin: -4px 0 18px;
  font-size: 12px;
  line-height: 1.5;
}

.goal-card.achieved {
  border-color: #8bd0aa;
  background: linear-gradient(145deg, #e9faef, #ffffff);
  box-shadow: 0 16px 38px rgba(8, 168, 91, 0.12);
}

.goal-achievement {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #a9ddbe;
  border-radius: 15px;
  color: #116d42;
  background: rgba(255, 255, 255, 0.75);
}

.achievement-medal {
  width: 42px;
  height: 42px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-600);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(8, 168, 91, 0.2);
}

.goal-achievement strong,
.goal-achievement small {
  display: block;
}

.goal-achievement strong {
  font-size: 15px;
}

.goal-achievement small {
  margin-top: 3px;
  color: #4c7f66;
  font-size: 12px;
}

.goal-heading,
.goal-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.goal-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(22px, 3.5vw, 29px);
  letter-spacing: -0.03em;
}

.goal-button {
  flex: none;
  padding: 11px 16px;
  border: 1px solid #b9dfc9;
  border-radius: 11px;
  color: var(--green-600);
  background: white;
  font-size: 13px;
  font-weight: 800;
}

.goal-content {
  margin-top: 25px;
}

.goal-values p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.goal-values p span {
  color: var(--green-600);
  font-size: 23px;
  font-weight: 800;
}

.goal-values strong {
  color: var(--green-600);
  font-size: 27px;
}

.goal-progress {
  height: 13px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde6e1;
}

.goal-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--teal-500));
  transition: width 0.5s ease;
}

.goal-message,
.goal-help {
  color: var(--muted);
  line-height: 1.55;
}

.goal-message {
  margin: 12px 0 0;
  font-size: 13px;
}

.goal-help {
  margin: -4px 0 18px;
  font-size: 12px;
}

.goal-modal-card {
  width: min(100%, 520px);
}

.reset-modal-card {
  width: min(100%, 500px);
}

.reset-intro {
  margin: -5px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.history-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.history-header h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 27px;
  letter-spacing: -0.03em;
}

.history-count {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: #f0f3f5;
  font-size: 12px;
  font-weight: 700;
}

.history-list {
  display: grid;
}

.history-filters {
  display: flex;
  gap: 8px;
  padding: 18px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.history-filter {
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.history-filter.active {
  border-color: var(--navy-900);
  color: white;
  background: var(--navy-900);
}

.history-empty {
  margin: 0;
  padding: 34px 10px 12px;
  color: var(--muted);
  text-align: center;
}

.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.history-item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.history-item-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.history-item.recebimento .history-item-icon {
  color: var(--green-600);
  background: #e8f8f0;
}

.history-item.despesa_trabalho .history-item-icon {
  color: var(--red-500);
  background: #fff0f0;
}

.history-item.retirada_pessoal .history-item-icon {
  color: var(--teal-500);
  background: #e7f7f7;
}

.history-item-main {
  min-width: 0;
}

.history-item-main strong,
.history-item-main span {
  display: block;
}

.history-item-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-main span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.history-item-value {
  text-align: right;
}

.history-item-value strong,
.history-item-value small {
  display: block;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-action-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy-800);
  background: white;
  font-size: 16px;
  font-weight: 700;
}

.history-action-button:hover {
  border-color: #c5d3df;
  background: #f4f7f9;
}

.history-action-button.delete {
  color: var(--red-500);
}

.delete-modal-card {
  width: min(100%, 460px);
  text-align: center;
}

.delete-alert-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--red-500);
  background: #fff0f0;
  font-size: 30px;
  font-weight: 800;
}

.delete-modal-card h2 {
  margin: 0 0 10px;
  color: var(--navy-950);
  font-size: 27px;
}

.delete-modal-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.danger-button {
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--red-500);
  font-weight: 800;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.history-item-value strong {
  font-size: 15px;
}

.history-item.recebimento .history-item-value strong {
  color: var(--green-600);
}

.history-item.despesa_trabalho .history-item-value strong {
  color: var(--red-500);
}

.history-item.retirada_pessoal .history-item-value strong {
  color: var(--teal-500);
}

.history-item-value small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 25, 50, 0.66);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  width: min(100%, 670px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 26px;
  background: white;
  box-shadow: 0 30px 90px rgba(3, 25, 50, 0.28);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.modal-header h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(23px, 4vw, 31px);
  letter-spacing: -0.035em;
}

.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: white;
  font-size: 26px;
}

.type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.type-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.type-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 94px;
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s, transform 0.2s;
}

.type-option:hover {
  transform: translateY(-1px);
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-option:has(input:checked) {
  border-color: var(--green-500);
  background: #effaf4;
}

.expense-option:has(input:checked) {
  border-color: var(--red-500);
  background: #fff4f4;
}

.withdrawal-option:has(input:checked) {
  border-color: var(--teal-500);
  background: #effafa;
}

.type-option-icon {
  width: 36px;
  height: 36px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--green-600);
  background: #ddf6e9;
  font-weight: 800;
}

.expense-option .type-option-icon {
  color: var(--red-500);
  background: #ffe5e5;
}

.withdrawal-option .type-option-icon {
  color: var(--teal-500);
  background: #dff5f5;
}

.type-option strong,
.type-option small {
  display: block;
}

.type-option strong {
  color: var(--ink);
  font-size: 13px;
}

.type-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.transaction-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.money-input {
  position: relative;
}

.money-input > span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--navy-900);
  font-weight: 800;
  transform: translateY(-50%);
}

.money-input input {
  padding-left: 48px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 12px;
  margin-top: 8px;
}

.secondary-button {
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--navy-900);
  background: white;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  padding: 15px 20px;
  border-radius: 13px;
  color: white;
  background: var(--green-600);
  box-shadow: 0 18px 40px rgba(3, 37, 76, 0.22);
  font-weight: 700;
}

.plans-content {
  width: min(100% - 36px, 1100px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.plans-hero {
  padding: 50px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #06356b 0%, #064a79 58%, #07858a 100%);
  box-shadow: 0 24px 60px rgba(6, 53, 107, 0.18);
}

.plans-hero .eyebrow {
  color: #79e9ad;
}

.plans-hero h1 {
  max-width: 800px;
  margin: 10px 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
}

.plans-hero > p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.65;
}

.launch-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 17px;
  border: 1px solid rgba(121, 233, 173, 0.38);
  border-radius: 999px;
  color: #d8ffe9;
  background: rgba(1, 30, 57, 0.28);
  font-weight: 800;
}

.launch-access-badge span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #06356b;
  background: #79e9ad;
}

.current-access-detail {
  margin: 12px 0 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.plans-introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: end;
  padding: 50px 10px 28px;
}

.plans-introduction h2 {
  margin: 7px 0 0;
  color: var(--navy-900);
  font-size: clamp(28px, 4vw, 40px);
}

.plans-introduction > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.plan-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(6, 53, 107, 0.08);
}

.pro-plan {
  border: 2px solid var(--green-600);
}

.recommended-ribbon {
  position: absolute;
  top: 20px;
  right: -37px;
  width: 150px;
  padding: 7px 0;
  color: #fff;
  background: var(--green-600);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(36deg);
}

.plan-label {
  color: var(--green-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.plan-card h2 {
  margin: 8px 0;
  color: var(--navy-900);
  font-size: 34px;
}

.plan-card header p {
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plan-price {
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 28px;
}

.plan-price strong {
  color: var(--navy-900);
  font-size: 38px;
  line-height: 1;
}

.plan-price span,
.annual-offer {
  color: var(--muted);
}

.annual-offer {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.plan-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  color: var(--ink);
  line-height: 1.45;
}

.plan-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--green-600);
  font-weight: 900;
}

.plan-status,
.founder-offer {
  padding: 15px 17px;
  border-radius: 14px;
  background: #effaf4;
}

.plan-status {
  color: var(--green-600);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.founder-offer span,
.founder-offer strong {
  display: block;
}

.founder-offer span {
  color: var(--green-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-offer strong {
  margin-top: 4px;
  color: var(--navy-900);
}

.plans-guarantee {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #cfe7db;
  border-radius: 22px;
  background: #f5fcf8;
}

.plans-guarantee-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--green-600);
  font-size: 24px;
  font-weight: 900;
}

.plans-guarantee h2,
.plans-guarantee p {
  margin: 0;
}

.plans-guarantee h2 {
  color: var(--navy-900);
}

.plans-guarantee p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.plans-guarantee .primary-button {
  width: auto;
  min-width: 245px;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
    padding: 36px 28px 44px;
  }

  .intro-copy {
    padding: 64px 0 48px;
  }

  .intro-copy h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .auth-panel {
    min-height: auto;
    padding: 30px 18px 56px;
  }

  .auth-card {
    margin-top: -24px;
  }

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

  .ebook-card {
    grid-template-columns: 210px 1fr;
    gap: 24px;
    padding: 26px;
  }

  .plans-introduction,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plans-guarantee {
    grid-template-columns: auto 1fr;
  }

  .plans-guarantee .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .auth-intro {
    padding: 26px 20px 42px;
  }

  .intro-copy {
    padding: 50px 0 40px;
  }

  .intro-copy p {
    font-size: 16px;
  }

  .intro-points {
    display: grid;
    gap: 12px;
  }

  .auth-panel {
    padding-inline: 12px;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 22px;
  }

  .topbar {
    height: 70px;
    padding: 0 18px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-nav,
  .ghost-button {
    padding: 9px 8px;
    font-size: 10px;
  }

  .topbar .brand-name {
    display: none;
  }

  .dashboard-content {
    width: min(100% - 24px, 1180px);
    padding-top: 32px;
  }

  .course-content {
    width: min(100% - 24px, 1060px);
    padding-top: 32px;
  }

  .plans-content {
    width: min(100% - 24px, 1100px);
    padding-top: 32px;
  }

  .plans-hero {
    padding: 34px 24px;
  }

  .plans-hero h1 {
    font-size: 36px;
  }

  .plans-hero > p {
    font-size: 16px;
  }

  .plans-introduction {
    gap: 15px;
    padding: 36px 4px 22px;
  }

  .plan-card {
    padding: 28px 22px;
  }

  .plans-guarantee {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .course-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 24px;
  }

  .course-seal {
    width: 96px;
    height: 96px;
  }

  .course-progress-card,
  .lessons-section {
    padding: 22px 18px;
  }

  .ebook-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .ebook-cover {
    width: min(100%, 250px);
    min-height: 320px;
    margin: 0 auto;
  }

  .ebook-details h2 {
    font-size: 27px;
  }

  .ebook-actions {
    display: grid;
  }

  .ebook-primary,
  .ebook-download {
    width: 100%;
    text-align: center;
  }

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

  .lesson-open-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .lesson-modal-actions {
    grid-template-columns: 1fr;
  }

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

  .month-navigation {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .welcome-tools {
    width: 100%;
  }

  .print-report-button {
    width: 100%;
  }

  .period-pill {
    text-align: center;
  }

  .balance-card {
    min-height: 290px;
    padding: 28px 24px;
  }

  .balance-symbol {
    display: none;
  }

  .balance-card strong {
    font-size: 45px;
  }

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

  .balance-details strong {
    font-size: 17px;
  }

  .summary-card {
    padding: 20px;
  }

  .history-card {
    padding: 22px 18px;
  }

  .category-card {
    padding: 22px 18px;
  }

  .comparison-card {
    padding: 22px 18px;
  }

  .insights-card {
    padding: 22px 18px;
  }

  .insights-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .comparison-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .annual-card {
    padding: 22px 18px;
  }

  .annual-heading {
    align-items: flex-start;
  }

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

  .category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .goal-card {
    padding: 24px 18px;
  }

  .reserve-card {
    padding: 24px 18px;
  }

  .reserve-heading,
  .reserve-values {
    align-items: flex-start;
    flex-direction: column;
  }

  .reserve-button {
    width: 100%;
  }

  .reserve-values article:last-child {
    text-align: left;
  }

  .goal-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .goal-button {
    width: 100%;
  }

  .goal-values p span {
    display: block;
  }

  .goal-achievement {
    align-items: flex-start;
  }

  .history-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
  }

  .history-item-icon {
    width: 40px;
    height: 40px;
  }

  .history-item-main strong {
    max-width: 150px;
  }

  .history-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
    margin-top: -4px;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 94vh;
    padding: 24px 18px 28px;
    border-radius: 24px 24px 0 0;
  }

  .type-selector {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .type-option {
    min-height: 70px;
  }

  .transaction-fields,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .secondary-button {
    order: 2;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body,
  .dashboard {
    background: white !important;
  }

  .topbar,
  .course-content,
  .welcome-row,
  .empty-card,
  .history-filters,
  .history-actions,
  .goal-button,
  .reserve-button,
  .modal,
  .toast {
    display: none !important;
  }

  .dashboard-content {
    width: 100%;
    padding: 0;
  }

  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--navy-900);
  }

  .print-header h1,
  .print-header p {
    margin: 0;
    text-align: right;
  }

  .print-header h1 {
    color: var(--navy-950);
    font-size: 21px;
  }

  .print-header p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    text-transform: capitalize;
  }

  .print-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy-950);
    font-size: 12px;
  }

  .print-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 20px;
  }

  .balance-card {
    min-height: 130px;
    padding: 24px;
    box-shadow: none;
  }

  .balance-card strong {
    font-size: 38px;
  }

  .balance-details strong {
    font-size: 15px;
  }

  .summary-grid {
    gap: 8px;
    margin-top: 10px;
  }

  .summary-card,
  .comparison-card,
  .insights-card,
  .annual-card,
  .goal-card,
  .reserve-card,
  .category-card,
  .history-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .comparison-card,
  .insights-card,
  .annual-card,
  .goal-card,
  .reserve-card,
  .category-card,
  .history-card {
    margin-top: 12px;
    padding: 18px;
  }

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

  .insights-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .annual-chart-scroll {
    overflow: visible;
  }

  .annual-chart {
    min-width: 0;
    height: 180px;
  }

  .history-item {
    break-inside: avoid;
  }

  .history-item-main strong {
    max-width: none;
  }

  .print-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
  }
}
.hotmart-course-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #06356b;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(6, 53, 107, 0.12);
}

.ebook-lock-message {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  background: #f4f8fc;
  color: #36536e;
  font-weight: 700;
}

.no-renewal-note {
  margin: 14px 0 0;
  color: #51677b;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

body.plan-free .pro-only {
  display: none !important;
}
